A loop makes me Loopy!
I'm trying to get an Adobe animation to begin to frame 0, replay to 280 frame, then loop back and replay frame of 90 permanently. Seems simple enough, but the solution eludes me. Help, please. Thank you!
Try this on 280 chassis:
/ * Stop to this image
The timeline will be stop/pause on the frame where you insert this code.
Can also be used to stop/pause the chronology of the movieclips.
*/
This.Stop ();
this.gotoAndPlay (90)
Tags: Adobe Animate
Similar Questions
-
New at EA and I've seen several tutorials on this subject:
I have an animation set to auto play with several symbols nested all the same exact length in time. I tried to define an action to 'play' at the end of the timeline, but nothing happens. I also tried setting the shutter to 'play' on the symbols themselves, but nothing happens. I'm going crazy.
You need a sym.play(1000) trigger (0) at the end of each of the five slide show time, if indeed you want to that they simultaneously loop inside your main symbol.
Decomposition in symbols is not a question of efficiency, but to structure your project. Everything in the scene (in Edge animate, the scene is itself a symbol, so your main symbol is useless) would lead to a huge stack of items in unique mounting Panel: much harder to read and maintain.
Gil
-
DIO using loop to generate TTL
Hello
I have a sbRio and on the FPGA, I have a loop that runs every 5 US. The loop has a counter that increments with each iteration, and I acquire analog data each cycle (effectively setting the rate to 200kS/s). The counter is used to generate a Boolean value True or False. Thus, for example, if the count is less than 200 (for example) the value is False, but greater than 200, it's true. The counter then resets back to zero in, say, 400. This counter is used for two purposes - the resulting value of T/F is sent to a DIO port then it becomes, in effect, a TTL output, and because I store the meter with the analog data, it acts as a reference for where the data were sampled in the cycle TTL.
My problem is that when I look at the output "TTL" on an oscilloscope everything seems pretty OK... except that now and then I get a glitch where it suddenly either falls to zero or "stutters".
The question I have is this - if I write a True value for a port DIO in a timed, loop makes this "lock" of value until it is changed or does literally flick on then turned off during a period of time (the implication being that it is actually not a true continuous, but a series of true/false steps which occur on a timescale much shorter than my loop time)? If so, is there a way to make sure the value remains constant until the next iteration of the loop? If this isn't the case, then should I move using ticks rather than at the loop timer?
Thanks (and sorry for the length).
I think the question is read the values half/full cycle. If I replace those with constants, the problem seems to disappear. I moved the reading of those outside the main loop, and that seems to have worked.
Thanks for your help! The loop of the case has been deleted since, as you pointed out, it was not necessary. Oh and sorry for the twisted...
-
Best practices with the sliders with loops
I have the following code:
Declare CURSOR c_contacts_cursor IS SELECT OUTLET_CODE, OUTLET_NAME, CONTACT_NAME, MOBILE_NO, ALT_NO, ADDRESS1, ADDRESS2, CITY, POSTCODE, EMAIL FROM SYNC_CONTACTS WHERE (source = 'W' OR SOURCE = 'T') AND SURVIVAL_FLAG = 'Y'; TYPE temp_string IS TABLE OF VARCHAR2 (2000); V_OUTLET_CODE temp_string; V_OUTLET_NAME temp_string; V_CONTACT_NAME temp_string; V_MOBILE_NO temp_string; V_ALT_NO temp_string; V_ADDRESS1 temp_string; V_ADDRESS2 temp_string; V_CITY temp_string; V_POSTCODE temp_string; V_EMAIL temp_string; BEGIN OPEN c_contacts_cursor; FETCH c_contacts_cursor BULK COLLECT INTO V_OUTLET_CODE, V_OUTLET_NAME, V_CONTACT_NAME, V_MOBILE_NO, V_ALT_NO, V_ADDRESS1, V_ADDRESS2, V_CITY, V_POSTCODE, V_EMAIL; CLOSE c_contacts_cursor; FOR indx IN 1 .. V_OUTLET_CODE.count LOOP --xecutable statements on V_OUTLET_CODE(indx) and the like END LOOP; End;
I used the above structure at length in many functions and procedures of all associated with an application and works very well. However, I began to review my code and I thought he might be better way to do it. One of the methods I've found is cursor for loop: http://www.techonthenet.com/oracle/loops/cursor_for.php
and http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/cursor_for_loop_statement.htm#LNPLS1155
I'm trying to understand the advantages and disadvantages of each method. I get the following (rating my approach is, and cursor for loop is B
(1) A is faster because it uses in BULK COLLECT IN as opposed to B which is implicitly opens, fetch a row and close each round loop.
(2) A is a bit messy, a lot more code as opposed to B which is readable, ranger.
First of all, I would like to know, if my conclusions are correct or not?
Second, what other differences might be between the two?
Third, is there another approach, that I'm not aware? Or what improvement could be applied to my approach, if there is?
Hawk333 wrote:
Yes, I did. Executable statements are most HTTP POST and PUT request that write in MongoDB on a platform that does not write in BULK. So I have to write one record per HTTP request.
Then pass PL/SQL to run multipe HTTP put and recorded at the same time. In which case manual removal bulk buys you no performance gain and zero scalability.
Use DBMS_PARALLEL_EXECUTE to chunk the workload. Execute each thread (parallel work process) using a standard FOR cursor loop (for example for loop in(select...) end of loop; c...) --and inside the loop, make HTTP calls.
-
Continue the loop after the exception thrown in SQL
How would continue the while loop in the code below after an exception was thrown?
DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; v_quote_pos1 NUMBER; v_quote_pos2 NUMBER; v_enclosed_str VARCHAR(200); v_errmsg VARCHAR2(4000); BEGIN delete from TEMP_MM_UPDATE where username = :P1_USER_ID; -- Read data from wwv_flow_files</span> select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char</span> WHILE ( v_position <= v_blob_len ) LOOP begin v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved </span> IF v_char = CHR(10) THEN LOOP --Make sure there's something to replace IF INSTR(v_line, '"', 1, 1) = 0 THEN EXIT; -- If nothing to replace, exit loop and don't try END IF; --Find the position of the first and second quotes in the line of text v_quote_pos1 := INSTR(v_line, '"', 1, 1); v_quote_pos2 := INSTR(v_line, '"', 1, 2); --Extract the inner string v_enclosed_str := SUBSTR(v_line, v_quote_pos1 + 1, v_quote_pos2 - v_quote_pos1 - 1); --perform the replacement v_line := SUBSTR(v_line, 0, v_quote_pos1 - 1) || REPLACE(v_enclosed_str, ',', '<') || SUBSTR(v_line, v_quote_pos2 + 1); END LOOP; -- Convert comma to : to use wwv_flow_utilities </span> v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (v_line, '<', ','); v_line := REPLACE (trim(v_line), '-', NULL); --v_line := REPLACE (trim(v_line), '"', NULL); -- Convert each column separated by : into array of data </span> v_data_array := wwv_flow_utilities.string_to_table (v_line); --Check to see if the row of column headers has already been parsed through IF(v_first_line_done != true)THEN v_first_line_done := true; --Check column order in spreadsheet IF(v_data_array(1) LIKE '%Username%' AND v_data_array(2) LIKE '%NDN%' AND v_data_array(3) LIKE '%PCFN%' ) THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; --If first line is done and the column order is correct then ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN -- Insert data into target table </span> EXECUTE IMMEDIATE 'insert into TEMP_MM_UPDATE (USERNAME, RPT_FLAG, PCFN) values (:1,:2,:3)' USING v_data_array(1), v_data_array(2), v_data_array(3); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; exception WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); end; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; DELETE FROM TEMP_MM_UPDATE WHERE USERNAME IS NULL AND PCFN IS NULL; IF(v_error_cd = 1) THEN INSERT INTO temp_mm_update (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Error. Please check column order in spreadsheet.'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, 'No Data Found.'); WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); END;
When I set the exception inside the loop, as above, the procedure seems never to end, and I end up getting a 'NOWAIT' error when I try to remove the table or something like that.
The code works fine if I remove the 'START' just after the loop and also out of the exception within the loop, but I want to be able to specify what's wrong with each record rather than deal with the correct records and then stop after that it is a record that has, for example, 9 values in a column that accepts only 6.
Can anyone help with this?
Thank you
Steven
Play with my code I found what was wrong.I needed to add in the following line in my code block of exception:v_line := NULL; v_sr_no := v_sr_no + 1;
Final code:DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; v_quote_pos1 NUMBER; v_quote_pos2 NUMBER; v_enclosed_str VARCHAR(200); v_errmsg VARCHAR2(4000); BEGIN delete from TEMP_MM_UPDATE where username = :P1_USER_ID; -- Read data from wwv_flow_files select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char WHILE ( v_position <= v_blob_len ) LOOP begin v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved IF v_char = CHR(10) THEN LOOP --Make sure there's something to replace IF INSTR(v_line, '"', 1, 1) = 0 THEN EXIT; -- If nothing to replace, exit loop and don't try END IF; --Find the position of the first and second quotes in the line of text v_quote_pos1 := INSTR(v_line, '"', 1, 1); v_quote_pos2 := INSTR(v_line, '"', 1, 2); --Extract the inner string v_enclosed_str := SUBSTR(v_line, v_quote_pos1 + 1, v_quote_pos2 - v_quote_pos1 - 1); --perform the replacement v_line := SUBSTR(v_line, 0, v_quote_pos1 - 1) || REPLACE(v_enclosed_str, ',', '<') || SUBSTR(v_line, v_quote_pos2 + 1); END LOOP; -- Convert comma to : to use wwv_flow_utilities v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (v_line, '<', ','); v_line := REPLACE (trim(v_line), '-', NULL); --v_line := REPLACE (trim(v_line), '"', NULL); -- Convert each column separated by : into array of data v_data_array := wwv_flow_utilities.string_to_table (v_line); --Check to see if the row of column headers has already been parsed through IF(v_first_line_done != true)THEN v_first_line_done := true; --Check column order in spreadsheet IF(v_data_array(1) LIKE '%Username%' AND v_data_array(2) LIKE '%NDN%' AND v_data_array(3) LIKE '%PCFN%') THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; --If first line is done and the column order is correct then ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN -- Insert data into target table EXECUTE IMMEDIATE 'insert into TEMP_MM_UPDATE (USERNAME, RPT_FLAG, PCFN) values (:1,:2,:3)' USING v_data_array(1), v_data_array(2), v_data_array(3); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; exception WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); v_line := NULL; v_sr_no := v_sr_no + 1; END; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; DELETE FROM TEMP_MM_UPDATE WHERE USERNAME IS NULL AND PCFN IS NULL; IF(v_error_cd = 1) THEN INSERT INTO temp_mm_update (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Error. Please check column order in spreadsheet.'); END IF; EXCEPTION WHEN NO_DATA_FOUND THEN insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, 'No Data Found.'); WHEN OTHERS then v_errmsg := SQLERRM; insert into temp_mm_update (username,error_desc) values (:P1_USER_ID, v_errmsg); END;
-
How to remove columns from the table on the master 1-0?
I have an array of 96 columns with strings. I also have the array of int 96-elemets (mask) with 1 and 0.
What I want to do is to is to remove (or hide - but I read that it is not possible) all the columns with index corresponding to 0 in the mask table.
example:
columns in the table
1 2 3 4 5
mask
0 1 0 0 1
I want to remove the columns 1, 3 and 4 and leave only 2 and 5 in my table.
How can I do?
If I create loop for with i as the index of the column, when I do DeleteTableColumns() columns number decreases, and I get an error of range out of
Or do I have an option to hide the unnecessary columns (not set their width to 1, it's very ugly-looking)?
Please help me (())
Hello rovnyart!
1. removal of columns in the table:
I suspect that the reason why you get the out-of-range error is due to fact that in your loop, you delete the columns in the table, you'll eventually end up by referring to a column that no longer exists, because the other columns before it have been deleted. While you remove each column of your table in the loop for example, the column index number will move, because you deleted the other columns in front of her.
To resolve this, even if you delete a column in your loop, make sure that you take also into account that the index of the column is moved because of the removed columns.
2 hide columns in table:
You can use the ATTR_COLUMN_VISIBLE attribute to hide columns in the table:
http://zone.NI.com/reference/en-XX/help/370051Y-01/CVI/uiref/cviattrcolumnvisible_column/
3 alternatives:
Note that another alternative would also use a tree instead, control as the tree control also supports the hidable columns:
http://forums.NI.com/T5/LabWindows-CVI/table-hide-column/TD-p/569773
Best regards!
-Johannes
-
Help with oscilloscope Agilent 54810 A data recording
I use an Agilent 54810 A oscilloscope with GPIB interface, I can't save the voltage (y-axis) and data(x axis) of the time together. I can only record time data.
could you please help, I would like to save the data to a text file.
I don't know why you say that you are only able to save the time data. What you save is the data. If you want to use scripture to measure file, create a waveform based on data type of Y and x increment that you receive from the wave function of reading. You simply use the wave function build for it (inside the loop).
With a constant True not wired to the GOLD from inside everything in fact point of termination of the loop makes no sense. Might as well not have while loop. With a single iteration, I understand not also the purpose of the exit of the auto-index in a 2D array.
-
To find screws with front panels open to a project!
How do you find the screws with facades open, which were launched from within a project?
(See attached image).
Maybe it's something you could do. In the path of project control, use a path to the project that you want to test against. Within the loop, make sure to transfer the reference of the VI primitive Open reference applications.
Within the loop, it tests only whether the FP Panel is open. This means that the output array could end up with including ctl/Globals/Broken screws also. If you want to filter those out, you could add another VI as VIType property to test whether the item is something you want to include.
I hope that helps!
-
How to read the txt file that has words in between?
Hi all
I'm using Labview 8.2.
I would like to read a text file. I have given (after whenever he was on average more than 100 waveforms) several times recorded on the file. The idea is to further improve the SNR in post processing by averaging once again the data (which was on average about 100 wave forms).
I can get LabView to save the data in the file several times, then it keeps joins.
The problem is to read data from labview, so I can on average now again. The problem is the labview separates data sets with the following:
"Channel 1".
9925 samples
Date 28/10/2008
Time 17:16:11.638363
X_Dimension time
X 0 - 3.0125000000000013E - 3
Delta_X 2.500000E - 6
"End_of_Header."Then when I read it, he sees only the first set of data.
Can someone tell me please how to read all the datasets under labview?
I am attaching the file I want to read 'acquiredwaveform.txt' and the VI base (really basic btw) to play the file.
Thank you
This seems to be a standard LVM-file. You can read segments of different data using the VI Express LVM loop (make sure that the file retains its extension .lvm). I modified your example to show this.
Note that my example is quite inefficient. Table of primitive construction causes a massive memory copy whenever it is used, and you would be probably better on average that you read in. I made this way to make it more obvious how read segments of a file LVM. In the process, I noticed that you have a good amount of phase jitter (zoom in on the graph of all the three waveforms). With an average simple will make you smear on your waveforms. You can either fix the problem in hardware (recommended) or phase shift your data so it lines up before on average. If you need help with it, let us know.
-
Hello!
In the file attacched, I write a table using loop1. In the loop2 2 I build an array of arrays, but im not able to link the two loops to add a new table to table every time 2 loop in loop change 1.
Any suggestion?
Thank you
Antonio
Antonio ferrante wrote:
In the file attacched, I write a table using loop1. In the loop2 2 I build an array of arrays, but im not able to link the two loops to add a new table to table every time 2 loop in loop change 1.
At the present time, but the curls are run independently and there is no guarantee that the loop 2 wait until new data has been produced in loop 1. Your second loop makes no sense. He simpliy duplicates the current data 100 times.
The correct way to proceed is by using a queue. Here is a very quick project on how to deal with table 1 d in the second loop, whenever new data were obtained.
You still need to add error handling and the code for the calculation of the average. Most likely, you want to initialize the shift with a fixed array size 2D register according to the desired number of averages and then replace the oldest line on each before call on average. See how far you get and ask again if you get stuck.
-
Hello!
My name i s Andreas and I have problem with flickering images on the screen. I tried to use the snapshot without success. I also read that you can use the node property erase images first, but the thing I have is it impossible to use because it says that
the property is not valid for this class. the display gets imaqimages. I have to convert the images it's supports the property?
I have attaced the file below. The screen is in the loop in order to data.
Hello
A proposal without the full code I guess you are the flickering image thresholding. Images works slightly differently to most cables in LabVIEW. The value on the wire is a reference to the image so that we do not round huge chunks of data. Outside of your loops, make sure to create an image for the eachstage of your image processing. Each VI Vision that you use which has a destination image must have that cable to the corresponding image you have created outside of the loop.
The display Gets the mapping to the memory segment that has the image in it. If the picture changes then made the display. If you change the image through many operations of the display, flickers.
Try and see if it solves the problem, if not you will have to publish the project as a whole, then we can see what is happening in the subVIs.
Mike
-
How to use DBMS_PARALLEL_EXECUTE with CURSOR
I write data from Oracle database MongoDB via http calls (POST, PUT). Data is changing and I'm entering it via a slider and then inside the loop for example, I make the call http (appealed by iteration). MongoDb does not write in bulk, so I have to send one line per iteration. It takes a lot of time (for example, 30 minutes to write 3 K lines).
Inspired by the answer to this question that I figured out that the process can be more effective with the help of DBMS_PARALLEL_EXECUTE. However, this part "run each thread (parallel work process) using a standard FOR cursor loop (for example for in(select...)). c loop... end loop; )- and inside the loop, make HTTP calls" is not not clear to me."
I have the following syntax:
FOR c IN (SELECT......) LOOP --http calls END LOOP;)
I tried to read the examples here , but I couldn't understand the following:
- Based on what I should create pieces in my case (ROWID, collar number or SQL)?
- Where should I create task? At the beginning of my procedure? Inside the loop? And where I create pieces? Inside the loop?
- What about DBMS_PARALLEL_EXECUTE.run_task?
- What is the size of chunck? I understand that I can open only 5 max http calls at the same time
Your help is very appreciated.
P.S. I preferred to open the new thread, as the discussion will be on DBMS_PARALLEL_EXECUTE instead of the sliders of best practices.
Yes, you can not chunk a cursor (compiled and analyzed SQL).
You need for the block using a SQL (SQL source code). And this SQL must return the piece ranges using custom logic.
If a table must be stored in a block or a SQL statement must provide the pieces. A cursor cannot be chunked, as Oracle has absolutely no idea that the lines will be processed by the slider - what is discovered only when the cursor is running and running and looking for lines. And by then, the process is already running and cannot be transformed into a parallel process.
In other words, the workload must be known, to chunk this workload - it break up in smaller workloads. A cursor represents an unknown work load. How many rows will be treated? Unknown until the cursor runs and made search lines to deal with. An unknown work load can be stored in a block.
-
divide the text in paragraph format
I came across a scenario where I have to pull the value of database table column whose datatype is clob.
This column contains descriptive information. Here I have to publish data in the format of paragraph to comply with the conditions
No line exceed 80 characters maximum, no words are cut between the two to start the new line.
Example of
If I limit myself is by line 4 char
then separated from the text abcd ef ghi jkl mn opqr
Power required is
ABCD
EF
IGS
JKL
MN
opqr
In addition, if solutions comes from regexp that guide/document/link is recommended for this.
Some examples of my library of examples:
SQL > ed
A written file afiedt.buf1 with t as (select q '[this is a very long piece of text that need packaging word at my limit of 50 character width specified for it to appear on different lines, when I select it.]' as double txt)
2 --
3. Select rn, txt, length (txt) ln
4 of)
5 Select rownum: nurse
6, trim (regexp_substr (txt,'.)) {} 1.50} (| $) ', 1, rownum)) as txt
7 t
8. connect by rownum<=>=>
9 )
10 * where txt is not null
SQL > /.RN TXT LN
---------- ---------------------------------------------------------------------------------------------------- ----------
1. This is a very long piece of text that will be 46
2 who needs my 50 50 specified character word wrapping
3 limit of width so that it appears on different lines 49
4 when I select it. 17SQL >
Back to the line with left and right justification...
declare
number of v_linesize: = 50;
cursor cur_data is
with t as (select 1 as id, q'[for several days after leaving Nantucket, nothing above hatches was seen of Captain Ahab.) The companions of the other statement regularly to watches, and for punishment that could be seen on the contrary, they seemed to be the only commanders of the ship; only, they sometimes emitted from the cabin with orders so sudden and peremptory, after all, it's clear that they have command but the vicarious. [Yes, their supreme Lord and dictator was there, although far invisible for the eyes not allowed into retirement now sacred cabin.] "as txt of the union double all the
q 2, select "[whenever I mounted on the bridge from my watch below, I was watching instantly back to mark if any strange face was visible; for my first wave of malaise affecting the unknown captain, now in the solitude of the sea, became almost a disturbance. It was strangely sometimes accentuated by diabolical inconsistencies of the Elijah ragged uninvitedly recurring for me, with a subtle energy, that I couldn't have conceived before. But bad I couldn't resist, as much as in other States of mind, I was almost ready to smile at the solemn whimsicalities of this strange Prophet of the docks. But whatever apprehension or illness - to call it that - that I felt, yet whenever I came to look around in the ship, apparently against all the warrantry to cherish these emotions. For good the harpooneers, with the great body of the crew, were a set much more barbaric, Pagan and eclectic as any of the merchant-ship companies tame my previous experiences had acquainted me, always I attributed this - and - attributed rightly wild ferocious nature of this Scandinavian vocation oneness in which I had embarked so abandonedly. But it is especially the aspect of the three Directors of the ship, comrades, that was calculated more force to dispel these fears colourless and induce the confidence and good humor to every presentation of the trip. Three better, more likely to sea-officers and men, each in its different way, is easily found, and they were all of them American. a Nantucketer, a Vineyarder, a man of Cape. Now it's Christmas when the ship fired on its port, for a space we had Polar weather, bite well always run away from him to the South; and all degrees and minutes of latitude which we sailed, gradually leaving this winter ruthless and all its intolerable time behind us. It was one of those who are less down, but still gray and dark enough the morning of the transition, when with a good wind of the ship was rushing into the water with some sort of revenge of fast bouncing and melancholy, which as I rode on the bridge to the morning call attention, so as soon as I brought my gaze towards the taffrail , foreboding shivers ran over me. Reality musi apprehension; Captain Ahab asked on her forecastle. (End]' double)
SELECT id, txt
t;
cursor cur_wordwrap (p_txt in varchar2) is
Select rn, txt
de)
Select rownum: nurse
, trim (regexp_substr (p_txt,'.)) {} 1,'|| {v_linesize |'} (| $) ((', 1, rownum)) as txt
of the double
connect by rownum<=>=>
)
where txt is not null
order by rn;
v_txt varchar2 (2000);
number of v_loops;
Start
for d in cur_data
loop
dbms_output.put_line ('ID: ' | d.ID);
dbms_output.put_line('===');
for w in cur_wordwrap (d.txt)
loop
v_txt: = w.txt;
loop
When the output length (v_txt) = v_linesize or instr (v_txt,' ') = 0;
because me in 1.v_linesize - length (v_txt)
loop
v_txt: = regexp_replace (v_txt,'([^]) ',' \1 ', 1, i);
end loop;
end loop;
dbms_output.put_line (v_txt);
end loop;
dbms_output.put_line ('- ooo-');
end loop;
end;
/ID: 1
===========
For several days after leaving Nantucket, nothing
above hatches was seen of Captain Ahab. The companions of
the other noted regularly in watches, and
for punishment that could be seen on the contrary, they
seem to be the only commanders of the ship; only
they sometimes come from the cabin with orders
It was so sudden and peremptory, after all
plain, they have command but the vicarious. Yes, their
supreme Lord and dictator was there, although
so far unseen by the eyes not allowed to
Enter the now sacred retreat of the
cabin.
-oOo-
ID: 2
===========
Whenever I climbed onto the bridge from my watches
below, I was watching instantly back to mark as appropriate
strange face were visible; for my first wave
worry about touching the unknown now in Captain
the solitude of the sea, has become almost a
disturbance. It was strangely raised at
time by the Elijah of diabolical rags
inconsistencies recurring uninvitedly for me, with a
I could not have conceived before the subtle energy
of. But bad could I resist them, much as in
other moods, I was almost ready to smile at the
solemn whimsicalities of this strange Prophet
docks. But whatever it is of
reluctance or discomfort - to call it so-
that I felt, yet whenever I came to look around
in the ship, apparently against all the warrantry to
cherish these emotions. For the harpooneers,
with the great body of the crew, have been further
Barbarian game, Pagan and eclectic than any of
the ship merchant companies tame that my previous
experiences had met me with, still, I
attributed to this - and rightly-attributed to the
fierce nature uniqueness of this savage
Scandinavian vocation in which I had so
abandonedly embarked. But it was above all the
aspect of the three Directors of the ship,
peer, who has been calculated more forcibly to
allay these fears colourless and induce
confidence and good humor to every presentation
of the trip. Three better, more likely
Sea-officers and soldiers, each to its own different
so easily is not found, and they were
each of them American; a Nantucketer, one
Vineyarder, a man of Cape. Now, it's Christmas
When the ship pulled on its port, once
space, we had to bite Polar weather, although all the
times in a row away from him to the South; and surroundings
each degree and minute of latitude we
departed, leaving little by little this merciless winter.
and all its intolerable time behind us. He has been
one of those who are less down, but still gray and
pretty dark transition, when morning
with a fair wind, the ship was quickly through the
the water with a kind of vengeance of leaping and
speed of melancholy, that as I rode him on the bridge
the call of the morning watch, so little time as I
upgrade my gaze to the taffrail,
feeling chill ran over me. Reality musi
apprehension; Captain Ahab stood at sound
Gaillard. End
-oOo-PL/SQL procedure successfully completed.
SQL >
With the help of simple PL/SQL... for example
declare
v_str varchar2 (32767): = ' the role of trainer to support Oracle is based within the Department of learning & development, development of human resources at the headquarters of the Oracle.The incumbent of the post will have to identify training needs, develop, design, deliver and evaluate programs and technique of Oracle classes. As part of the training process, the incumbent will have to monitor, assess and validate students in accordance with the standards of the Organization and conduct of training evaluation in line with the assessment of the organization model.
The incumbent of the position must also be ready to undertake relevant training and development that may be provided outside.';
v_output varchar2 (32767).
v_line varchar2 (500);
/ * Table to hold the words * /.
type t_array is the table of index varchar2 (500) by pls_integer;
v_array t_array;
number of v_linesize: = 65;
Start
v_str: = replace (v_str, Chr (10), ' ' | 10;)
-Use SQL to split the string into words and store in table
Select regexp_substr (v_str, "[^] +', 1, level")
bulk collect into v_array
of the double
connect regexp_substr (v_str, "[^] +', 1, level") is not null;
-loops through every word in the table
because me in 1... v_array. Count
loop
If v_array (i) = Chr (10) then
v_output: = v_output | v_line | Chr (10);
v_line: = ";
on the other
If length(v_line||) e '|| v_array (i)) > v_linesize then
-added the word exceeed the limit of the line would then add the current line at the exit with a line break and start a new line of text with the word
v_output: = v_output | v_line | Chr (10);
While length (v_array (i)) > v_linesize
loop
-We'll get here if the word is more than 65 characters
v_output: = v_output | substr (v_array (i), 1, v_linesize). Chr (10); -Add the first 65 characters of the word to the output
v_array (i): = substr (v_array (i), v_linesize + 1); -remove the first 65 characters of the word and check again.
end loop;
v_line: = v_array (i); -Add the word, or remaining part of the word (if it exceeded the 65 characters) to the line.
on the other
v_line: = trim(v_line||) e '|| v_array (i)); -cut the space for the first word in the line
end if;
end if;
end loop;
-make sure that the last line, we have implemented get added.
v_output: = v_output | v_line;
-display the result
dbms_output.put_line (v_output);
end;The role of trainer to support Oracle is based in learning &
Development, human resources development department at Oracle
Central Administration.The incumbent will identify training needs,
develop, design, deliver and evaluate techniques course Oracle
and programs. The process of training the position
they will have to monitor, assess and validate students in
compliance with the standards of the Organization and the assessment of the conduct of
training in line with the assessment of the organization model.See the following document:
http://www.Google.co.UK/webhp?hl=en&tab=WW#hl=en&output=search&SC
bind = shrink - ab & q = oracle + support + forum & oq = oracle + support + forum & gs_l =
HP.3... 0j0i5i30j0i8i30l2.887.887.0.1481.1.1.0.0.0.0.112.112.0J1.1.
0.Les%3B... 0.0... 1 c .1j2. Pbx & Q7xkCE4VDHw = 1 & bav = we. 2, or.r_gc.r_pw.r_
QF. & fp = a15916df00f85ecd & biw = 1417 & bih = 964The incumbent of the position must also be ready to undertake the
training and development that may be provided outside. -
Commas in cause of importing CSV values
I'm having a problem with my code only inports and analysis via a CSV fault if there is a comma in the value of a column.
Is there a way to distinguish between a comma between a column and a comma that is in the value of the column?
The code below works fine except if there is a comma within a value (which does not exist in the CHY_NAME value).
DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; BEGIN delete from TEMP_UPDATE where username = :P1_USER_ID; -- Read data from wwv_flow_files</span> select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char</span> WHILE ( v_position <= v_blob_len ) LOOP v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved </span> IF v_char = CHR(10) THEN -- Convert comma to : to use wwv_flow_utilities </span> v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (trim(v_line), '-', NULL); -- Convert each column separated by : into array of data </span> v_data_array := wwv_flow_utilities.string_to_table (v_line); -- Insert data into target table </span> IF(v_first_line_done != true)THEN v_first_line_done := true; IF(v_data_array(1) LIKE '%USERNAME%' AND v_data_array(2) LIKE '%PCFN%' AND v_data_array(3) LIKE '%TCN%') THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN EXECUTE IMMEDIATE 'insert into TEMP_UPDATE ( USERNAME, CHY_ATA_DATE, CHY_ATD_DATE, CHY_NAME, UPDATED_BY) values (:1,:2,:3,:4,:5)' USING v_data_array(1), v_data_array(2), v_data_array(3), v_data_array(4), v_data_array(5); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; IF(v_error_cd = 1) THEN INSERT INTO temp_update (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Spreadsheet column order incorrect.'); END IF; END;
What happens is, for example:
IF:
CHY_NAME = Hello, it
UPDATED_BY = me
When the data are asked in the table:
CHY_NAME = Hello
UPDATED_BY = y
I noticed that when in excel, if you type something in a column that has a column he puts quotes around him ("Hello There")
In the line of code that says:
v_line := REPLACE (v_line, ',', ':');
Is it possible to write it as:
v_line := REPLACE (v_line, ',', ':') where v_line not like '%"%,%"%'
Or is there a better way to ignore commas between quotation marks?
Thank you
Steven
Final working code if there is a collection of quotes, or 5 sets:
DECLARE v_blob_data BLOB; v_blob_len NUMBER; v_position NUMBER; v_raw_chunk RAW(10000); v_char CHAR(1); c_chunk_len number := 1; v_line VARCHAR2 (32767) := NULL; v_data_array wwv_flow_global.vc_arr2; v_rows number; v_sr_no number := 1; v_first_line_done boolean := false; v_error_cd number :=0; v_quote_pos1 NUMBER; v_quote_pos2 NUMBER; v_enclosed_str VARCHAR(200); BEGIN delete from TEMP_UPDATE_one where username = :P1_USER_ID; -- Read data from wwv_flow_files select blob_content into v_blob_data from wwv_flow_files where name = :P2_FILE_UPLOAD; v_blob_len := dbms_lob.getlength(v_blob_data); v_position := 1; -- Read and convert binary to char WHILE ( v_position <= v_blob_len ) LOOP v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position); v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk))); v_line := v_line || v_char; v_position := v_position + c_chunk_len; -- When a whole line is retrieved IF v_char = CHR(10) THEN LOOP --Make sure there's something to replace IF INSTR(v_line, '"', 1, 1) = 0 THEN EXIT; -- If nothing to replace, exit loop and don't try END IF; --Find the position of the first and second quotes in the line of text v_quote_pos1 := INSTR(v_line, '"', 1, 1); v_quote_pos2 := INSTR(v_line, '"', 1, 2); --Extract the inner string v_enclosed_str := SUBSTR(v_line, v_quote_pos1 + 1, v_quote_pos2 - v_quote_pos1 - 1); --perform the replacement v_line := SUBSTR(v_line, 0, v_quote_pos1 - 1) || REPLACE(v_enclosed_str, ',', '<') || SUBSTR(v_line, v_quote_pos2 + 1); end loop; -- Convert comma to : to use wwv_flow_utilities v_line := REPLACE (v_line, ',', ':'); v_line := REPLACE (v_line, '<', ','); v_line := REPLACE (trim(v_line), '-', NULL); --v_line := REPLACE (trim(v_line), '"', NULL); -- Convert each column separated by : into array of data v_data_array := wwv_flow_utilities.string_to_table (v_line); --Check to see if the row of column headers has already been parsed through IF(v_first_line_done != true)THEN v_first_line_done := true; --Check column order in spreadsheet IF(UPPER(v_data_array(1)) LIKE '%USERNAME%' AND v_data_array(2) LIKE '%PCFN%' AND v_data_array(3) LIKE '%TCN%') THEN v_error_cd := 0; v_line := NULL; ELSE v_error_cd := 1; END IF; --If first line is done and the column order is correct then ELSIF(v_first_line_done = true AND v_error_cd = 0) THEN -- Insert data into target table EXECUTE IMMEDIATE 'insert into TEMP_UPDATE_ONE ( USERNAME, PCFN, TCN, BOOKING_NUMBER, UPDATED_BY) values (:1,:2,:3,:4,:5)' USING v_data_array(1), v_data_array(2), v_data_array(3), v_data_array(4), v_data_array(5); -- Clear out v_line := NULL; v_sr_no := v_sr_no + 1; END IF; END IF; END LOOP; DELETE FROM WWV_FLOW_FILES where name = :P2_FILE_UPLOAD; IF(v_error_cd = 1) THEN INSERT INTO temp_update_one (USERNAME, ERROR_DESC) VALUES (:P1_USER_ID, 'Spreadsheet column order incorrect.'); END IF; END;
-
How to sort the list alphabetically using #listgetat? more details in the post
I have pictures in the site, but it seems to pull them from the most recent added, is possible to shoot in alphabetical order by file name?
I'm not too experienced with CF, but I'm good with HTML/CSS, trying to fix some things on a friends because of a rampant backend developer site.
Sorry if this does not have too much sense.
That's what it looks like now
< div >
< img width = "920" height = "300" src = "images / data / < cfoutput > #ListGetAt (pic 1)" # < / cfoutput > "/ >"
< / div >
< div >
< img width = "920" height = "300" src = "images / data / < cfoutput > #ListGetAt (pic 2)" # < / cfoutput > "/ >"
< / div >
...
Before first use of your list, convert it to a table using ListToArray(), then do an ArraySort() on it. I consider also replace your code with a loop makes a loop on your list or a table and adds the
and items. Then, you can host any number of images in a more dynamic way.If the photo names upper and lowercase and you want case insensitive sort, simply change 'text' to 'textnocase' in line 1 above. -Carl V.
Maybe you are looking for
-
computer new laptop will constantly limited wifi connectivity after a few minutes. He has done this since I first started the laptop.
-
What I do with manual update?
I downloaded the update according to the instructions, written all the steps and followed them. However, my Sansa Fuze + always shows the previous (02.03.33A). version I even tried different Zip programs. Still no luck. The player refreshes the media
-
Hard drive has 60% space 'unknown '.
I have a hard drive of 105G. I just use the WINDIRSTAT tool and for SW_Preload (c), it shows that I have more than 60% in the "unknown" category and only 14% free. It's inhibiting my use of the system. Is it possible that I can remove the 'unknown' s
-
Replace hard drive with any of the recovery discs...
I have a Dell inspiron I5 3521 with widows 8.0. My hard drive has failed recently, and I stupidly did not have any backups previously. I tried to make one when I realized my hard drive was damaged, but I think the hard drive froze in the middle to ca
-
New computer cannot find the printer driver
Just got a new computer and now I can't use the printer wireless. Help