core

Additions to the Java core since 1.3?

I started a little contract job that requires me to use Java. I was given a Java book by the project manager, but it covers Java 1.3 and I understand that Java is now around 1.6. I would like to know if there are any major core additions to the language that I can read up to after getting the basics down with this book? ...

ConcurrentHashMap vs Synchronized HashMap

What is the difference between using the wrapped class, SynchronizedMap, on a HashMap and ConcurrentHashMap? Is it just being able to modify the hashmap while iterating it (ConcurrentHashMap)? ...

flex adt core technology

i have only one video file , i like to package it with flex sothat dance.air file will be created ,but when i will install that dance.air file then only one video file dance.flv file will installed .no swf,exe,auxiliary file will be created. that is how can i package only one video file in the air? ...

process is failing in ptrgl_64._ptrgl functionon aix

We are trying to port our code from HPX to AIX but getting core dump while running exe. its failing in some unknown function ptrgl_64._ptrgl. > ptrgl_64._ptrgl() at 0x900000084da0e48 > dfile_Proc(o_record = > 0x0000000400000004, fileType = > "^O\377\377\377\377\377TH^O\377\377\377\377\377TQ^O\377\377\377\377\377Ta^O\377\377\377\377\377...

overwrite content of textarea java

Hi, i appending text to text area for every sec i wanted to overwrite or clear the old text and i want write new data for every one sec how to do this in java? Thanks raksha ...

create exe using launc4j java

Hi,i have created exe by luunch4j and build.xml ant file in java but when i click exe i'm get could not find main class program will exit kind of message,even i click on jar file it also giving message as failed to load main class manifest attribute,what is the problem? Thanks in adavance rajani ...

flex core api hidden

is there any way to change file mode to hidden by flex? for example var myFile:File = new File(File.applicationDirectory.nativePath + File.seperator + "a.txt"); myFile.setHidden ...

Bundling the JRE with a Java application

Hi, I have created an exe with a launch4j Ant script and build.xml file. I want to bundle the JRE in my application and have to distribute it to clients. How do I do this? Thanks, Rajani ...

icon flex movie flv core

i saw adobe player this link and downloaded.but all flv players icons are automatically changed.But if i write my own flv player and changed extension to 'AAAA' sothat movie file format will be abc.AAAA then how can i change the default icon of abc.AAAA to customized icon where customized icon must be configured by some mxml file built ...

multiline jlables java

Hi, i want to JLabel text in multiline otherwise text wiill be so long,how can do this in java? Thanks, Rekha ...

flex core ByteArray Image

var myFile:File = new File("./test.jpg"); var myFileStream1:FileStream = new FileStream(); myFileStream1.open(myFile, FileMode.READ); var byte:ByteArray = new ByteArray(); myFileStream1.readBytes(byte,0,byte.bytesAvailable); myFileStream1.close(); now...

CoreAudio Playing Sounds out of Left and Right Channels

Hi All, Is it possible with coreaudio to play a sound out of the left or right channel. For example I want to play one out of the left channel and one out of the right. At the moment I'm successfully using the following code to play a sound out of both channels: NSSound *mySound = [[NSSound alloc] initWithContentsOfFile:@"/media/bell....

flv movie flex core

for example i have a movie flv data in memory in the format of ByteArray using loader.loadBytes(movieBytes); how can i play that movie ? can anybody help me? there is no option but using loader.loadBytes(movieBytes). ...

flex flv core player

Can anybody help me how can i write my own flv player? Is there any specification ? i am now thinking to write my own flv player.Is there any helpful specification,example,tutorial ? ...

In python, is there a "pass" equivalent for a variable assignment

I am using a library function called get_count_and_price which returns a 2-tuple (count,price). In many places I use both time and price. However, in some I only need time or price. So right now, if I only need count, I assign to (count,price) and leave the price unused. This works great and causes no trouble in and of itself. However....

Moving CGPaths by x,y pixels?

Is there a way to move a path on screen by (x,y) pixels using directly a CGPathRef instead of walking through its points and lines again in drawRect method? I want to be reusing my old CGPathRef when I want to move it on screen instead of recreating it with new pixels. ...

air flash comparison core

What are the differences in developing for AIR versus flash? why should i choose one over the other in a given situation? ...

Connection to .mdb file fails on windows 2008 core - 32bit

Hi, I have an application where I am doing connection with .mdb file. Here are the steps we are following : Creating object for database utils inteface Calling the connect() function, to get connected to the database whose extension is .mdb file Above flow is working correct on all windows platform but not on windows server 2008 CO...

iPhone Animation: how to anti-alias?

Hi all, I was looking at some animations in my iPhone app and felt like it was kind of ugly. And then I undertsood it: it just doesn't animate through subpixel states. So, in case I use usual +beginAnimations/+commitAnimations, moving some stuff just a few pixels look "jumpy". How can I avoid it? Are there any flags to make it animate...

Is there a way to force Core Animation to run it's thread?

Core Animation uses a background thread to do it's job. Now the problem is this: I have a heavy calculation going on in the main thread. Core Animation immediately freezes until that calculation is done. And then it continues to finish it's animations. I remember reading in a document that CA has a low priority in processing time, meanin...