To get high and low number in a string
Hello
I have the following
< cfset question = "1,5,8,11,22,76,6,143,147" >
How can I get the number maximum and minimum of this string?
Thanking you in advance for your help!
Concerning
Delon
Use the very aptly named ListToArray() function... and without a doubt to bookmark the documentation online ;-) The functions of the display of the categories is invaluable.
http://livedocs.Adobe.com/ColdFusion/8/functions-pt0_13.html
Tags: ColdFusion
Similar Questions
-
Convert a single number to a hexadecimal string of 32-bit and exchange the high and low bytes
I need to convert a number single precision floating decimal to hexadecimal format of 32 bits, share the high and low bytes and that convert a hexadecimal string. I tried to use the 'Word of Swap' function but it seems to have no effect on the unique number.
Then
A single decimal number of entry: 100
Convert 32 bit hexadecimal string with the low byte first: 0000 42 8
Anyone have any ideas?
Thank you
Slightly lighter, try to cast U32 and exchange words. Same difference.
(apparently, exchanging words is a NOOP for SGL, but still accepts SGL without constraint. Interesting...)
-
Control the time times of high and low of trains of pulses in C++
Dear team of support of National Instruments,
Here's what I have so far:
I was able to generate the number of pulses (a pulse = a rising edge and front descending one) that the user has indicated via the GUI I created in Visual C++ 2008.
I use DAQmx 8.6.
I use the DigitalSingleChanWriter (hopefully, that's what it's called).
I use for the synchronization of the sample, on request. I tried to use all other types of calendar but I always get a DAQException run the error that says I can use only OnDemand calendar.
OK, so here's the problem:
I have a USB-6008-6009 card connected to an oscilloscope. I know that the connection is correct, otherwise nothing would appear. However, if I send say... 6 impulses, the delay between the first rising edge and the first falling edge is dramatically different and then the second and the third. If I return my samples, I get an assortment of new and totally random times. So finally, my question is "Is there a way to control the time of a great time and a bit of time?"
I use a Compaq 2003 lap top, what is worthy of the rubbish heap. I'm not to blame on this right away as problems that will not solve the problem at hand. Although I understand if it's actually the problem for random times, but I would still have no way to control the time themselves.
I hope that I don't have drug it too long, but I decided that distribute information on would be better then just a few tid bits.
Thank you for support, that you can offer,
Daniel
OK, so I just returned from the lab, and this is what I got:
I was able to control the time at the time of the high and low by using the "WriteSingleSamplePort" of the DigitalSingleChanWriter method.
I put it in a loop that repeated many times that the user wanted impulses.
At the beginning of the loop, I used a delay function that I wrote and delayed for a time given and then a pulse with a value of 255 and then delayed again and a pulse with a value of 0. And then restarted the loop.
In the end, it works.
Of course, I have another question. I kept reducing the amount of time between two pulses (1 s, .5s, .2us and so on). However, once I have diminished the time of secondes.01 or a millisecond, the pulses on the arrested oscilliscope becomes smaller. It seems that past 1 millisecond Board USB-6008/6009 is unable to deal with the exigencies of the moment. Or else the computer trash part on that I cannot deal with the exigencies of the moment. But I believe that the Council is not at fault because it was designed for this exact sort of thing, could you tell me if there is no limitation to the Commission which prevent production of pulses in or within a period of 1 millisecond. Thank you very much.
Thanks for all the help,
Daniel
P.S. I'll stop you buggin with big messages that I promise you.
P.P.S. If someone wants to see my source code for their own project, I'd be more than willing to share. Please email me or leave a message here.
-
How do I output up to 8 high and low?
Hello
I'm still new to Labview, and I can't seem to find a way to do something fairly simple.
I have a device that has 8 entries, and each entry is "lit" by providing a high signal (5V). I would like to use Labview to provide that these high and low signals to these 8 output pins. An additional intracacy is that each channel will have to be activated or deactivated by pressing a button of Labview. What commands/functions labview I should use to provide this feature? Are there related examples in Labview or online? Thank you very much.
I use a NI 9401 to provide these 8 output channels. http://sine.NI.com/NIPs/CDs/view/p/lang/en/NID/208809
John
You can search for examples on how to produce digital signals. Go to help - find examples and numeric type and get labeled examples "write dig Chan". There is an example that will run on the 9401. Then, you can adapt it for your use.
-
Satellite A105-S361 - temperature of the processor to get high and it shuts
I have Satellite A105-S361 and look like that get high CPU temperature and she off-ramp of the aircraft.
I downloaded temperature some monitoring tools, but none can read the temperature of the processor on this unit.
Sometimes, what's the problem?
For me, it looks a bit like an overheating problem.
Usually the laptop stops automatically if the temperature reaches a critical threshold. Then the notebooks overheat protection stops the laptop to prevent material damage.
Especially, the temperature rises to a higher level because notebooks modules of cooling don't work properly.
You can try to clean the fans with a professional pneumatic sprayer.It s a really useful tool for blowing air even if the railings of cooling and get rid of the dust and debris. These sprays, you can buy a portable computer/computer dealer.
Good luck
-
What is the difference between ram high and low density?
I have an ibm x 3455 7984. high density RAM will it work? If so, it will affect the speed for virtual machines?
Hello
If your system is designed to accept briefs DDR (Double Data Rate) DIMM 184pin (usually for desktop computers) or (usually laptops) SODIMM 200pin built for your system to recognize fully the capacity of 1 GB per slot of memory, you must use "Low Density - 64Mx8 config" module of 1 GB. If you use ' high-density - 128Mx4 config' 1 GB module, your PC can only recognize that it is HALF the size to 512 MB or most of the time it won't work.
In summary: -.
- The LOW DENSITY modules have 100% compatibility with all systems and all chipsets as it is entirely due to the JEDEC guidelines.
- HIGH DENSITY modules only have 10% of compatibility and are VERY RIVER because it breaks any guidance Council JEDEC (Joint Electron devices Engineering)
I also suggest you to contact the IBM support center and check.
-
Bad high and low value with the varchar2 data type
Hello
It is an application on e - biz on database 9205, with inventory module.
In one of the mtl_txn_request_headers of the table, the data for the number of application type is varchar2 (30). When I checked the low_value & high_value in dab_tab_columns, I see that the low_value is 100001 (6 digits) and high_value is 99999 (5 digits).
I used the utl_raw.cast_to_varchar2 (low_value) to convert the value.
In our case, we save a large part of the value in incremental number and some of our query will be in the predicate of the range (between).
How should I handle this kind of situation and which option do I?
Appreciate any help. Thank you.Accepted this looks like a classic bad-data type problem, but as this picture seems be part of Oracle E-Business Suite the OP should probably talk first Oracle.
-
Limit high and low AI in DAQmx
What is the way easiest to measure an analogy of entry line in DAQmx while placing a threshold up and down for the input and output a Boolean value if the value is not within the limits?
You need to do a comparison of the table read you and see if the value of MAX exceeds your limit. This will generate a Boolean result. The DAQmx Read by itself does not do anything except the signal s cut if the signal exceeds the range that you set.
-
How can I leave an inch of 1/2 for high and low resident only?
Hello
I'm a bit new with Illustrator, but I created a picture for a contest. It should be 11 "and 22" wide. I have already created the chart, but later, I got the score I have to leave one inch half-space to the top and bottom only. What is the best way to do it without compromising the graphics?
Thank you very much!
a little advice
Go to the window-> Transfrom
in the height field, make sure that the reference Point is in the middle and Type:-1
where-1 decrease the height of 1/2 inch of the top and bottom
See the image below,
hope this will help.
-
How to get higher and second higher value of a line?
Hello world
I want more solid and second upper sal from emp in a line,
Thank youHello
Whenever you have a problem, after the results you want.
Always tell what version of Oracle you are using.Are you looking for this?
HIGHEST_SAL SECOND_HIGHEST_SAL ----------- ------------------ 5000 3000
If so, follow these steps:
WITH got_r_num AS ( SELECT sal , ROW_NUMBER () OVER (ORDER BY sal DESC) AS r_num FROM scott.emp ) SELECT MAX (CASE WHEN r_num = 1 THEN sal END) AS highest_sal , MAX (CASE WHEN r_num = 2 THEN sal END) AS second_highest_sal FROM got_r_num ;
It works in Oracle 9 (and), but can easily be adapted for Oracle 8.1.
From Oracle 11, you can also use SELECT... PIVOT.It is unclear how you want to handle links. Say there were only 3 rows, with 100, 200 and 200 sals. What do you consider being the second highest?
-
Restart computer suddenly (at time of high and low), no BSOD?
This has happened quite a bit recently.
I was wondering if anyone has an idea as to what is causing that?
(Dxdiag if necessary)
------------------
Information System
------------------
Operating system: Windows 7 Home Premium 64 - bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.141211) - 1742
Language: English (regional setting: English)
System manufacturer: Micro-Star International Co., Ltd.
System model: GX780R, GT780R, GT780DXR, GT783R
BIOS: MSI GT780DXR E1761IMS Ver: 3.0: 18/11/2011-computer laptop MSI
Processor: Intel Core i7-2670QM CPU @ 2.20 GHz (8 CPUs), ~2.2GHz
Memory: RAM 16384MB
Available OS memory: 16362MB RAM
Page file: 6169MB used, 26551 MB of available space
Windows Dir: C:\windows
DirectX version: DirectX 11
DX setup parameters: not found
DPI setting: Using System DPI
System DPI setting: 120 DPI (125%)
DWM DPI Scaling: unknown
DxDiag Version: 6.01.7601.17514 32 bit Unicode---------------
Display devices
---------------
Card name: NVIDIA GeForce GTX 570 M
Manufacturer: NVIDIA
Track type: GeForce GTX 570 M
DAC type: Integrated RAMDAC
Memory display: 4048 MB
Dedicated memory: 1488 MB
Shared memory: 2559 MB
Current mode: 1920 x 1080 (32 bit) (60 Hz)
Name of the monitor: generic PnP monitorWhat surfaces does not have the rest of the laptop on? You can buy a cooler stand to help with good ventilation under the computer.
Removal of the dust bunnies should reduce the noise that makes your computer. It can also reduce overheating, which can lead to unexpected stops.
http://support.Dell.com/support/topics/global.aspx/support/KCS/document?docid=279891
-
take the digital output USB-6001 always high or low in c
Hi all
I am new to the NI DAQ interface. I have a USB-6001 and I am trying to use this device to control some flowchart in C. What I want to do is:
* set digital output lines with high and low intensity and change their status as needed (in C).
I tested the device NEITHER Max--> Test panels and found that the device is capable to do that. Then I try to do in C. I have checked hace examples and function I use is one called "DAQmxWriteDigitalU32". I have problem in the understanding of its input parameters. I tried something with my own knowledge, but it does not work as I expected. Here is a test I did:
data uInt32 = 1;
Int32 wrote;
TaskHandle taskHandle = 0;
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "Dev1/port0/line7", "", DAQmx_Val_ChanForAllLines));
DAQmxErrChk (DAQmxStartTask (taskHandle));
DAQmxErrChk (DAQmxWriteDigitalU32(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,&data,&written,));taskHandle = 0;
DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
DAQmxErrChk (DAQmxCreateDOChan (taskHandle, "Dev1/port0/$line0", "", DAQmx_Val_ChanForAllLines));
DAQmxErrChk (DAQmxStartTask (taskHandle));
DAQmxErrChk (DAQmxWriteDigitalU32(taskHandle,1,1,10.0,DAQmx_Val_GroupByChannel,&data,&written,));I just want to set ' Dev1/port0/line7' and ' Dev1/port0/$line0"at a high level, but only ' Dev1/port0/$line0' answer me. The second parameter of the DAQmxWriteDigitalU32 function is numSampsPerChan. If I replace (currently 1) with a higher value, such as 100, I see that "Dev1/port0/line7" sends a number of 1 output, then back to 0. So I guess that the problem is just that I understand not all parameters for the DAQmxWriteDigitalU32 function. Is someone can you please tell me how I can set up a line of digital output 1 or 0?
Thank you!
Hongkun
Hello
I finally find a way to do it! The feature works very well, and my problem was not set the data value to write correctly. It seems that if I want to write a 1 to the port0/line1, I put "data = 2 ^ 1" rather than "data = 1", because by default it is the second bit of the port.» Similarly, "data = 2 ^ 7 ' high level to port0/line7. I find that this setting is surprising when you want to control an individual line. It seems more reasonable when you control the whole port. In any case, is to solve the problem!
Thanks anyway!
Hongkun
-
(Management and port number) firewall rules
Someone at - it information on how to get management and port number for a given ESX host firewall rules using the 'VI Perl Toolkit?'
For some reason, I can't work this one on. I can get to:
$host - & gt; config - & gt; Firewall - & gt; set of rules
and from there I can get the label and the State enabled, etc., but I want to delve into the section rule to get the port number and the management as well as for each service.
For example, from the CROWD:
HostFirewallRule
Name
Type
Value
Direction
HostFirewallRuleDirection
"entrants".
dynamicProperty
[DynamicProperty]
Unset
dynamicType
string
Unset
endPort
int
Unset
port
int
5989
Protocol
string
"tcp".
|
How can I get this information for each service?
Thanks in advance
If you found this helpful, please consider awarding points
Hi Paul,.
You will need to first loop through the array rule set of firewall and from there you will get some properties this State if it is active, service, etc. and you will also have access to an array called rule that contains the rules within each of the ruleset. Once you go through the rules, you will find information about the direction, endPort, port and Protocol
Something like this should work (there will be values that will not fill as endPort, so make sure you check before printing/etc.)
my $fw_ruleset = $host->config->firewall->ruleset; foreach(@$fw_ruleset) { my $rules = $_->rule; if($_->enabled) { print "Firewall Rule: ", $_->label, "\n"; foreach(@$rules) { print "Direction: ", $_->direction->val, "\n"; print "End Port: ", $_->endPort, "\n"; print "Port: ", $_->port, "\n"; print "Protocol: ", $_->protocol, "\n"; } print "-------------\n" } }
Here's a quick snippet out:
Firewall rule: SNMP Server
Direction: inbound
Use of uninitialized value, catalogue in ligne./vmwareHealthCheck.pl 1748.
Ending port:
Port: 161
Protocol: udp
Direction: outgoing
Use of uninitialized value, catalogue in ligne./vmwareHealthCheck.pl 1748.
Ending port:
Port: 162
Protocol: udp
-
-
Hello
I need where there are quick dashboard that selects the date, second interval column consists of >, <, = and the third column is seen number (in days)
for example, the user enters: 12 18, 2015, <, 9. here I report who should get the data (records) 9 days earlier from the date specified (from 12/10/2015 to 18/12/2015).
Similarly for > =.
How to get there. I'm unable to write the script and I use the column date in my report. Ask that you please advice how to solve this problem.
Please find below the screen for reference.
Kind regards
Chandra Khalil.
Hello
Not exactly why you're doing the report this way. If the user must select, basically, a period of dates, would not easier to have a column of data with a between the operator and the user would select 2 dates (upper and lower intervals)?
In any case, it is possible to achieve what you want to do as a result of your approach. You could use when's CASE and have a more complex filter, but I think that it is better to have a few nested filters where you use the range operator to determine what date filter that you use (see image below)
Some notes about my filter. First of all, I am making the assumption that the operator is "=", then the number of days specified must be ignored and you just return the data for the selected date. You will notice also that in my filters, I got a cast so far, but if you are using a column that is already a timestamp so it won't be necessary.
This should achieve what you want.
See you soon,.
Pedro
-
upper and lower filters in the registry how ca I get it back
in the registry, how can upper and lower filters I get them back. CD and dvd not being recognized
Hello
You are not absent from these filters, you do not want in most cases.
This is for Windows 7 and Vista is very similar.
------------------------------------------------------------------------------------------
Follow these steps to remove corruption and missing/damaged file system repair or replacement.
Start - type in the search box - find CMD top - RIGHT CLICK – RUN AS ADMIN
sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlThen run checkdisk (chkdsk).
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html==========================================================
After the foregoing:
References to Vista also apply to Windows 7.
Step 1: Please do all the same underneath if you did some before as is often total
a process that solves the problem.Try this - Panel - Device Manager - CD/DVD - double click on the device - driver tab.
Click on update drivers (this will probably do nothing) - RIGHT click ON the drive - uninstall.
RESTART this will refresh the default driver stack. Even if the reader does not appear to continue
below.
Then, work your way through these - don't forget the drive might be bad, could be a coward
cable or slight corrosion on the contacts (usually for a laptop) and other issues.Your CD or DVD drive is missing or is not recognized by Windows or other programs
http://support.microsoft.com/kb/314060 - a Mr FixitTry this fix manually if the Fixit 314060 does not work
http://www.pchell.com/hardware/cd_drive_error_code_39.shtmlYour CD or DVD drive is missing or is not recognized by Windows or other programs-
a Mr Fixit
http://support.Microsoft.com/kb/982116The DVD player does not work after installing Windows 7
http://support.Microsoft.com/kb/975270/The CD drive or the DVD drive does not work as expected on a computer that you upgraded to
Windows Vista
http://support.Microsoft.com/kb/929461When you insert a CD or a DVD, Windows Vista may not recognize the disc
http://support.Microsoft.com/kb/939052Your CD or DVD drive cannot read or write media - A Mr Fixit
http://support.Microsoft.com/GP/cd_dvd_drive_problemsCD/DVD drive does not appear in Windows Vista, or you receive this error during Windows Vista
Setup after booting from the DVD (AHCI)
http://support.Microsoft.com/kb/952951
Drive CD - R or CD - RW Drive is not recognized as a recordable device
http://support.Microsoft.com/kb/316529/Hardware devices not detected or not working - A Mr Fixit
http://support.Microsoft.com/GP/hardware_device_problemsAnother possibility is that the cables are loose. Remove ALL power, then make sure that the cables in both
ends. Remove and replace, do not just tight. For laptops, you can often clean power and
contacts data with a pencil eraser.Some DVD players do not use the Windows default drivers so check with the manufacturer of system and
manufacturer of device to see if there is a firmware or drivers for your drive if necessary.===============================
Step 2: You have disc problems as the CD/DVD is actually 4 discs in 1 case (CD & DVD
Burn and CD and DVD read). So it is not unusual for 1 or 2 operational so that other parts
do it right.Did you follow the Troubleshooting Guide for the reader who still does not work? There are
the entries in registry that the troubleshooter does not solve and those who "might" be the cause.Check with your Maker system and a device for the two possible firmware updates and the
correct registry entries for your car.Here are the keys that I of course are those in question - for the subkeys of the CD/DVD drive
as there will be other subkeys in these keys. Do not forget to ask specific keys involved as well as
the parameters.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\IDE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\0001\System\CurrentControlSet\Enum\IDE
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\ {4D36E965-E325-11CE-BFC1-08002BE10318}
-----------------------------------------------------------------------
You can probably find more info here and maybe even the exact registry settings for your
CD/DVD drive someone with the same model.Forums - a lot of expert real help
http://Club.myce.com/CD/DVD units
http://www.myce.com/storage/Use DevManView to locate the CD/DVD in the registry (be careful and do a prior Restore Point)
nothing change) - find the DevManView device and then make a right click on it free in RegEdit.DevManView - free - an alternative to the standard Windows Device Manager, which displays
all devices and their properties in flat table, instead of the tree viewer
http://www.NirSoft.NET/utils/device_manager_view.htmlI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
Maybe you are looking for
-
I'm a new mac user. Successfully transferred all of the files from my PC to MacBook pro. All of this is to be seen in the documents. Opened now MacBook and only one file to be seen in 'documents. Where can I find the others. Convinced they are there
-
How can I move my iphone5 on a removable sd card photos?
So I never am not familiar with the way to apple to do things, please forgive me. I am trying to remove pictures and videos of this iPhone I have but I want to put on a removable SD card instead of importing it on my laptop, and then selecting indivi
-
No HARD drive during installation Satellite C series
Hi people, I'm trying to fix my laptop the son, who crashed suddenly and has since stopped working.On the attempt to start, I barely go beyond the BIOS before it published any number of hard disk error. When you try to reinstall windows 7 or use my r
-
still can not get windowsmail to wm 2011 has always worked, cannot receive not send
occurred after the update from ms re live essentials try to reply or send a new mail and get an error to reject
-
How can I switch platform for installation of Windows for Mac OS 10?
Hello.I installed CC (charged monthly) on a win10 platform. During that time, I owned an iMac and want to switch to the installation of Win10 for Mac OS. Installation of Win10 is no longer necessary. How can ist of the question, I do this.Kind regard