Divide the application into manageable chunks?
I have an application using States, and it gets big enough, fast. I still have more to put in it. Management of a file with all these States and more than 1000 lines of code is difficult to read and find what I need. How can I break these States in their own file and then my main application reference them?The only method I know is their import is something like < myComponents.thisComponent / >. This does not work well, because it must be imported outside the States.
Thank you!
Oh.., so the of how its done. Before I tried to take it all in the
Tags: Flex
Similar Questions
-
Divide the line into several columns
Hi all
I have a question where I want to divide the line into multiple columns based on the delimiter ' |'.
Staging of Table structure: People_STG, I have people in it.
Create table People_STG(col1 varchar2(4000));
Insert into People_STG(Emp_id|) User name | FirstName. LastName. JobTitle | hire_date | Location_id)
SELECT REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 1) EMP_ID, REGEXP_SUBSTR ( COL1, '[^|]+', 1, 2) USERNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 3) FIRSTNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 4) LASTNAME, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 5) JOBTITLE, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 6) HIRE_DATE, REGEXP_SUBSTR ( COL1, '[^,|]+', 1, 7) LOCATION_ID FROM PEOPLE_STG WHERE length(regexp_replace(COL1, '[^|]', '')) = 14;
But I am facing a problem here, as in some lines, function is null, but when I run the above query, it is not recognizing the empty element and inserting Hire_date values of function and location_id in Hire_date where function is null.
for example: 1 | akash51 | Akaksh | C | 22/11/14 | 15
Here the function is null, so when I run top to divide query it will insert 11/22/14 in the function column and 15 in Hire_Date.
Please need help on this one.
Oracle Version: 11.2 g
Thanks in advance,
Akash.
There are different techniques to cope with this. Is a simple...
SQL > ed
A written file afiedt.buf1 with t as (select 1 | akash51 |) Akaksh | C | 22/11/14 | 15' as col1 of union double all the
2 Select 2 | akash52 | Akaksh | C | Jobs jobs | 23/11/14 | 15' of the double
3 )
4 --
5. end of test data
6 --
7 select trim (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 1)) EMP_ID,.
8 toppings (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 2)) USERNAME,.
9 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 3)) FIRSTNAME,
10 pads (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 4)) LASTNAME,.
11 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 5)) JOBTITLE,.
12 pads (REGEXP_SUBSTR (COL1, ' [^, |] +', 1, 6)) HIRE_DATE,.
13 garnish (REGEXP_SUBSTR (COL1, ' [^, |] +' 1, 7)) location_id
14 * from (select replace (col1, ' |)) ',' | as col1 of t)
SQL > /.EMP_ID USERNAME FIRSTNAME LASTNAME, JOBTITLE HIRE_DATE LOCATION_I
---------- ---------- ---------- ---------- ---------- ---------- ----------
1 akash51 Akaksh C 22/11/14 15
2 akash52 Akaksh C Job 23/11/14 15 -
I am Brazilian and I use Adobe Acrobat Reader DC a lot. I would suggest an implementation of features present in the PC, I missed a lot of things on Android, which is 'New window' or something like that, like split the screen into two parts in order to see the two different parts of the same file.
For smartphones, its use is restricted, but for tablets, it can be really useful, because it allows the display of two distinct points of the same file,
I have reduced considerably the use of paper using this application, however, I need to navigate the file always pick up a few points seen earlier, which causes a lot of discomfort compared to printed documents.
This is a suggestion, but I would like it to be considered.
Thank you for your request. We have taken note of the same and must try to integrate it into one of our future releases.
Thank you.
-
I use TB 31.7.0, PC Windows 7. Had no problems until now. I divided the 100 addresses in groups of about 20 and sent to 3 groups. The 4th was wrong and I got the message: "too many recipients, TT502. I cut down the number of addresses, but the problem persists. I can't send all messages now, even to a single recipient. So I have a problem that does not reset when tuberculosis is turned off and restarted. Incoming is fine but I can't answer. Any ideas?
Looks like you reach the limit of the sending of your provider. Of course sending for 1 person isn't too unless your provider has a hourly or daily limit and cut you.
Given that the error has an associated server code the error came from your server vendors. Thunderbird would have nothing to do with it. -
Divide the string into rows according to the space
I'm using Oracle 11.2.0.3. I need a faster way to divide the organization names based on space as possible just using SQL.
with org as
(
Select 1 org_pk, org_nm 'ALL american, INC.' of any double union
Select org_pk 2, org_nm "COMPANY A.G" Union double all the
Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double
)
Select * org;
Result, I need is
1. ALL THE
1 american
1, INC.
2 A.G
2 COMPANY
3. THE GROWTH
3 FUND
3 SPONSORS
3 and
3 WIRES,
3 INC.
Thank you very much.
You can use GROUP BY with LISTAGG or XMLAGG. And ordinalite allows to preserve order:
with org as)
Select 1 org_pk, org_nm 'ALL american, INC.' of any double union
Select 2 org_pk, 'A.G COMPANY' org_nm of all the double union
Select org_pk 3, org_nm "GROWTH FUND SPONSORS and SONS, Inc." of the double
)
Select org_pk,
x.org_nm,
x.o
org,.
XMLTable)
"ora: tokenize(.,"").
by the way ' ' | org_nm
columns
path of varchar2 (4000) to org_nm '.'.
o for the ordinalite
) x
where x.org_nm is not null
/
ORG_PK ORG_NM O
---------- ------------------------------ ----------
1 ALL 2
1 American 3
1 ,INC 5
2 A.G 2
2 COMPANY 4
3 GROWTH 2
3 FUND 3
3 4 SPONSORS
3 and 5
3 SONS, 6
3 INC. 711 selected lines.
SQL >
However, I would like to use SUBSTR/INSTR plain + CONNECT BY if the volumes are large or performance is important.
SY.
-
I created an interactive report and a form. By clicking on the button Edit in the report, taking me in a form with all the details of that particular line. Now I want to divide the elements in 2 forms, edit details, and update them at the same time. Pointers or suggestions is appreciated
Published by: user739459 on August 17, 2011 12:59If you want to split because of the logical separation between the elements, you can create a new region and move some items to that. If you want to keep certain items on a single page and some on the other hand, you can copy the page and remove the items is not necessary two pages (except primary key point). Now, create a button on the first page to open the second page, passing the primary key and do the same on page two.
Lavenu
MaxApex accommodation
http://www.maxapex.com -
dividing the dataset into regions using sdo_relate
Hi all
I have difficulties subdivision my dataset in different regions. I have the data space of the city of auckland and found the coordinates of the lower left and limited right of data. What I want to do now is to break this dataset into 9 individual regions and assign a code to each region. I tried to use subsequently issue with not much luck...
Select a.link_id in the nz_testlinks_auck where mdsys.sdo_relate (a.GEOM,
MDSYS. SDO_GEOMETRY (2003, null, null, mdsys.) SDO_ELEM_INFO_ARRAY (1,1003,3),
MDSYS. SDO_ORDINATE_ARRAY(174.7083,-37.0141,174.7910,-36.9544)), "mask = ANYINTERACT querytype = FENΩTRE") = "TRUE";
When I put the output into a table data and display the data, I notice that the rectangle has chosen a lot more data than what was actually defined in the query. I have been using the model of network data and MapBuilder Editor to check the data and contact information.
And when I try to create another rectangle for another region next to each other like that...
Select a.link_id in the nz_testlinks_auck where mdsys.sdo_relate (a.GEOM,
MDSYS. SDO_GEOMETRY (2003, null, null, mdsys.) SDO_ELEM_INFO_ARRAY (1,1003,3),
MDSYS. SDO_ORDINATE_ARRAY(174.7910,-37.0141,174.8736,-36.9544)), "mask = ANYINTERACT querytype = FENΩTRE") = "TRUE";
He again selects a rectangle more great selection of half of the data of the previous selection rectangle as well.
Please help me solve this problem.
Look forward to your responses.
AvinashAvinash,
Do you have geometries that cross your limit of rectangle, as a long line, or a large polygon? What rectangle you plan such a line or polygon to appear in?
Or would you say that the geometries that are completely disjoint from your rectangle are chosen? If you think that this is the case, try the sdo_geom.relate with the mask "determine" in order to verify the relationship between your rectangle and one of the unexpected geometries.
http://download.Oracle.com/docs/HTML/B14255_01/sdo_objgeom.htm#BGHCDIDGIf you want to be sure that nothing is selected twice by your rectangles the ANYINTERACT mask is probably not a good choice. A = INSIDE + DOMMAGESCAUSDSPAR mask mask will be better, but you still have to decide what to do with stuff that crosses.
Matt
-
divide the rectangle into pieces with an inner glow
I have a rounded rectangle that I need to divide it into 3 parts (upper, middle, lower) while applying an inner glow effect to THE ORIGINAL shape. Anyway I tried this the inner glow is applied to all parties to all parties, including the internal limits of the parties.
Any ideas?
- Draw the rounded rectangle.
- Divide at the appropriate places.
- Close the top resulting and substantive way.
- Join the two as a result of the railways; then close them.
- Apply a white fill all three.
- Apply the line wished to all three.
- Select all three. Group them.
- Apply the inner glow effect to the selected group.
JET
-
Difficulty to use indexing to divide the data into five sets of data
Hello
I'm using labview to program a mass spectrometer. I want to conduct surveillance of the multiple ion where I watch the level of five different masses over time. The five different masses correspond to five of the tensions that are sent via the DAC to my instrument. After sending each voltage, a voltage was then read AIN. The help of indexation and a for loop, I can send fill this function.
My problem is to be able to plot these data. I need a field of tension AIN (y) and the time (x) for five tension (mass) and plots to display on a single diagram. I don't know how to correlate data from indexing to separate into five different mass and then repeat the experience by adding data to each mass using all loop. When I tried I just get data tracing as a straight line as a set of data when I need five sets of data.
I enclose my vi. Any help would be great.
Your VI base design is incorrect:
- There is no reason for you to have 2 while loops. One is suffient.
- You should not open the interface in each iteration of the loop. Open outside, do your work and then close when you are finished loop.
Regarding the map, get rid of the inner loop and eliminate this Build table you have outside the loop for. In order to have a graphic draw several lines, you have need of a 2D array. Because you use a loop for to acquire a reading at the same time, you'll need create a 2D out of the loop for. To do this, put a table to build inside the loop, then a function of 2D matrix transposes outdoors. See the attached example.
-
Hello
I have data like this.
Person_wid industry
111 car; Telecom
How to divide as below
Output:
Auto 111
Telecom 111
Thank you
SQL > test as
() 2
3 select person_wid 111, ' car. Telecom' double industry
4)
5. Select person_wid
regexp_substr 6, (industry, ' [^;] +', 1, rn) split
7 test
8 cross
9 join (select rownum rn
10 in (select max (length (regexp_replace (industry, ' [^;] +'))) + 1 mx)
11 test
12 )
13 connect by level<=>=>
14 );
SPLIT PERSON_WID
---------- ------------------
Auto 111
Telecom 111
2 selected lines.
Notes on the Oracle: split delimited by a comma the way of RegExp string, second part
-
Divide the data into separate rows
Hi people,
I have a request, which could be simplified as:
with t as)
"name select 'John', ' 7.3.2014' date_from, ' 13.3.2014 ' date_to, 'SICK DAY' reason for the double
"" the name of Union select 'Mike', ' 28.3.2014 ' date_from, ' 2.4.2014 ' date_to, 'HOLIDAY' because of the double
"" the name of Union select 'Tom', ' 14.3.2014 ' date_from, ' 14.3.2014 ' date_to, 'HOLIDAY' because of the double
)
Select * from t
Each line includes a person's name, reason for his absence, the dates of and to.
I would like to divide these lines in separate registers (for later analysis), so an expected output would look something like:
with t as)
name select 'John', ' 7.3.2014' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 8.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 9.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 10.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 11.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 12.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'John', ' 13.3.2014 ' absence_date, 'SICK DAY' reason for the double
"the name of Union select 'Mike', ' 28.3.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Mike', ' 29.3.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Mike', ' 30.3.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Mike', ' 31.3.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Mike', ' 1.4.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Mike', ' 2.4.2014 ' absence_date, 'HOLIDAY' because of the double
"the name of Union select 'Tom', ' 14.3.2014 ' absence_date, 'HOLIDAY' because of the double
)
Select * from t
Please advice, how for the first example query to obtain a required output?
Thank you
Tomas
SQL > with t as)
2. Select the name of 'John '.
3, to_date ("'07.3.2014', ' dd.mm.yyyy") date_from
4, to_date ("'13.3.2014', ' dd.mm.yyyy") date_to
5, 'SICK DAY' reason
6 double
7 union select name "Mike".
8, to_date ("'28.3.2014', ' dd.mm.yyyy") date_from
9, to_date ("'02.4.2014', ' dd.mm.yyyy") date_to
10 at 'HOLIDAY '.
11 double
12 union select name of "Tom."
13, to_date ("'14.3.2014', ' dd.mm.yyyy") date_from
14, to_date ("'14.3.2014', ' dd.mm.yyyy") date_to
15, because of "HOLIDAY".
16 double
17 )
18 select name
19, date_from + (level 1) leave_date
20, reason
21 t
22 connect
23 by level<= date_to="" -="" date_from="" +="">=>
24 and prior name = name
25 and prior sys_guid() is not null
order 26
27 by name
28, leave_date;NAME LEAVE_DAT REASON
---- --------- --------
John 7 March 14 SICK DAYS
John 8 March 14 SICK DAYS
John 9 March 14 SICK DAYS
John 10 March 14 SICK DAYS
John 11 March 14 SICK DAYS
John 12 March 14 SICK DAYS
John 13 March 14 SICK DAYS
Mike HOLIDAY 28 March 14
Mike HOLIDAY 29 March 14
Mike HOLIDAY 30 March 14
Mike HOLIDAY March 31, 14
Mike HOLIDAY April 1, 14
Mike VACATION April 2, 14
Tom March 14 14 HOLIDAY14 selected lines.
SQL >
-
Simple question: how to divide the string into multiple lines concatenated?
Hi people,
Maybe it's an easy question.
How to split a string that is concatenated into multiple lines by using the SQL query?
ENTRY:
Delimiter = ', '.select 'AAA,BBB,CC,DDDD' as data from dual
Expected results:
I'm looking for something nice to feature "an opposite to «sys_connect_by_path»»data ------------ AAA BBB CCC DDDD
Thank you
Tomaswith t as (select 'aaaa,,bbbb,cccc,dddd,eeee,ffff' as txt from dual) -- end of sample data select REGEXP_SUBSTR (txt, '[^,]+', 1, level) from t connect by level <= length(regexp_replace(txt,'[^,]*'))+1 REGEXP_SUBSTR(TXT,'[^,]+',1,LE ------------------------------ aaaa bbbb cccc dddd eeee ffff
-
Divide the class into several classes (simple fix I think)
Here's the class, images and library for blueJ in a .rar file:
http://www.mediafire.com/file/467dunvcmtfd67f/Ucigame_pong.rar
If you don't use blueJ or want just the code, it's just a class:
and the library: http://ucigame.org/ucigame-source.zipimport ucigame.*; public class Pong extends Ucigame { Sprite ball; Sprite paddle; public void setup() { window.size(250, 250); window.title("Pong"); framerate(30); Image bkg = getImage("images/background.png"); canvas.background(bkg); ball = makeSprite(getImage("images/ball.gif", 255, 0, 0)); paddle = makeSprite(getImage("images/paddle.png")); ball.position(canvas.width()/2 - ball.width()/2, canvas.height()/2 - ball.height()/2); ball.motion(6, 3); paddle.position(canvas.width() - paddle.width() - 10, (canvas.height() - paddle.height()) / 2); } public void draw() { canvas.clear(); ball.move(); ball.bounceIfCollidesWith(paddle); ball.bounceIfCollidesWith(TOPEDGE, BOTTOMEDGE, LEFTEDGE, RIGHTEDGE); paddle.stopIfCollidesWith(TOPEDGE, BOTTOMEDGE, LEFTEDGE, RIGHTEDGE); paddle.draw(); ball.draw(); } public void onKeyPress() { // Arrow keys and WASD keys move the paddle if (keyboard.isDown(keyboard.UP, keyboard.W)) paddle.nextY(paddle.y() - 2); if (keyboard.isDown(keyboard.DOWN, keyboard.S)) paddle.nextY(paddle.y() + 2); if (keyboard.isDown(keyboard.LEFT, keyboard.A)) paddle.nextX(paddle.x() - 2); if (keyboard.isDown(keyboard.RIGHT, keyboard.D)) paddle.nextX(paddle.x() + 2); } }
All I want to do is have the Pong class call setup() and draw() onkeypress() of different classes. Or is it better that way? There is no main() or run() class the way ucigame makes the examples.
Thank you
JoeyThis isn't necessarily the best solution because I don't know all the details of your project, but if you wanted to put methods in a separate class and call them from the main() in the class of Pong method, you might do the following
import ucigame.*; public class Pong extends Ucigame { public static voic main(String args[]){ GameUtil gameUtilClass = New GameUtil(); gameUtilClass.setup(); gameUtilClass.draw(); gameUtilClass.onKeyPress(); } } // new class to hold methods public class GameUtil { Sprite ball; Sprite paddle; public void setup() { window.size(250, 250); window.title("Pong"); framerate(30); Image bkg = getImage("images/background.png"); canvas.background(bkg); ball = makeSprite(getImage("images/ball.gif", 255, 0, 0)); paddle = makeSprite(getImage("images/paddle.png")); ball.position(canvas.width()/2 - ball.width()/2, canvas.height()/2 - ball.height()/2); ball.motion(6, 3); paddle.position(canvas.width() - paddle.width() - 10, (canvas.height() - paddle.height()) / 2); } public void draw() { canvas.clear(); ball.move(); ball.bounceIfCollidesWith(paddle); ball.bounceIfCollidesWith(TOPEDGE, BOTTOMEDGE, LEFTEDGE, RIGHTEDGE); paddle.stopIfCollidesWith(TOPEDGE, BOTTOMEDGE, LEFTEDGE, RIGHTEDGE); paddle.draw(); ball.draw(); } public void onKeyPress() { // Arrow keys and WASD keys move the paddle if (keyboard.isDown(keyboard.UP, keyboard.W)) paddle.nextY(paddle.y() - 2); if (keyboard.isDown(keyboard.DOWN, keyboard.S)) paddle.nextY(paddle.y() + 2); if (keyboard.isDown(keyboard.LEFT, keyboard.A)) paddle.nextX(paddle.x() - 2); if (keyboard.isDown(keyboard.RIGHT, keyboard.D)) paddle.nextX(paddle.x() + 2); } }
Methods should not really have a class for each of them.
Published by: JDScoot on May 23, 2011 15:33
-
Divide the data into several lines in the table
Hello
I use apex of Oracle 10 g 3.2.
I have a requirement like this.
I have a table like TableA
Col1 Col2
90 1
91 1:2:3
92 3
I want the data as
Col1 Col2
90 1
91 1
91 2
91 3
92 3
How to do this?
Thank you
Published by: user13305573 on August 3, 2010 20:16with your_data as ( select 90 as col1, '1' as col2 from dual union all select 91, '1:2:3' from dual union all select 92, '3' from dual ) select y.col1, regexp_substr(y.col2, '[^:]+', 1, t1.column_value) as col2 from your_data y, 13 table(cast(multiset(select level from dual connect by level <= length (regexp_replace(y.col2, '[^:]+')) + 1) as sys.OdciNumberList)) t1 14 / COL1 COL2 ------------------ ----- 90 1 91 1 91 2 91 3 92 3 5 rows selected. Elapsed: 00:00:00.05 ME_XE?select * from v$version; BANNER ---------------------------------------------------------------- Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product PL/SQL Release 10.2.0.1.0 - Production CORE 10.2.0.1.0 Production TNS for Linux: Version 10.2.0.1.0 - Production NLSRTL Version 10.2.0.1.0 - Production 5 rows selected. Elapsed: 00:00:00.03 ME_XE?
-
Divide the lines into different columns
HRCM_RECRUITMENT_NO amount facilities
R000035 MONEY, FOOD, BASIC 0,0,0
I did the result like this
Now, I want to like this
HRCM_RECRUITMENT_NO facilities Facilities_1 Facilities_2 amount Amount_1 Amount_2
R000035. CASH FOOD BASIC 0 0 0
Please help me! Tell me what to do?Hello
This will not work unless you have constant facilities for all HRCM_RECRUITMENT_NO.SQL> with h as 2 (select 'R000035' HRCM_RECRUITMENT_NO ,'CASH,FOOD,BASIC' Facilities ,'0,0,0' Amount from dual) 3 select HRCM_RECRUITMENT_NO,regexp_substr(Facilities,'[^,]+',1,1) f1, 4 regexp_substr(Facilities,'[^,]+',1,2) f2, 5 regexp_substr(Facilities,'[^,]+',1,3) f3, 6 regexp_substr(Amount,'[^,]+',1,1) A1, 7 regexp_substr(Amount,'[^,]+',1,2) A2, 8 regexp_substr(Amount,'[^,]+',1,3) A3 9 from h; HRCM_RE F1 F2 F3 A A A ------- ---- ---- ----- - - - R000035 CASH FOOD BASIC 0 0 0
Twinkle
Maybe you are looking for
-
750-170se CTO envy: ENVY Desktop - 750-170se CTO installation SSD
I just bought this machine (750-170se ENVY). I bought it with a hard drive 3 TB installed and then filled the rest 2-Bay 3,5 '' with more hard drives 3 to 2. I would now like to add an SSD. I have an SSD that I can add, but I don't know if the busine
-
I have a Presario SR5450F. Recently, it is very slow to start. It hangs on the screen Compaq (Installer, boot, System Recovery, Diagnostics Menu). He hangs up on this screen for at least 10 minutes, which is unacceptable. He just started this. C
-
How to back up and restore the system and program files to install new OS
Hey all,. I recently bought a new Toshiba 1 TB HARD drive. My old WD 1 TB HARD drive was giving me the end. occasionally, I get the BSOD. In addition, on occasion, when I restart the computer it automatically runs chkdsk program and reported several
-
CLOUD TO ADOBE? YOU'RE KIDDING!
How well it can be when the update of Adobe Flash Player can not install.Seems more like a grab for money rather than as an improvement. Doug
-
Hello Forum,I'm in software development within a virtual machine. My problem is that the virtual machine does not see the other computers within the same IP (ping or telnet connection) range.At work, we have two networks: Wlan network with IP 192.168