How do you start programming in a new language or technology?
Do you take time to unlearn some of the specific things you've learnt, read up documentation and then dive into coding or do you start off coding and then pick up specifics as you go?
In my iPhone app, I am using the UIImagePickerController with source type UIImagePickerControllerSourceTypeCamera. When the user takes a picture, the phone plays the familiar camera shutter sound. How can I replace this with my own custom sound? I know it's possible because I've seen other apps from the App Store do it (e.g. Red Laser).
Thanks in…
Is there a way to find out the derived class's name from a base class object?
ex:
class A{
....
}
class B extends A{
...
}
class c extends A{
...
}
now if a method returns an object of A, can I find out if it is of type B or C?
Hi Guys the following code throws me an error i have an insert statement created once and in the while loop i am dynamically setting parameter , and at the end i says ps2.addBatch() again
while ( (eachLine = in.readLine()) != null))
{
for (int k=stat; k <=45;k++)
{
ps2.setString (k,main[(k-2)]);
}
stat=45;
for (int l=1;l<= 2;…
I start IE as a process and then i would like to change the following properties of a process.
remove title bar, toolbar of a process (if IE)
set top,left location and size through c#
prevent process from minimizing , i have used the following code but had no luck(find the handle of the process and then pass it to below function)
…
Guys is there any better way to list all the months other than this
select to_char(add_months(to_date('01/01/1000', 'DD/MM/RRRR'), ind.l-1),
'MONTH') as
month_descr
, ind.l as month_ind
from dual descr
, (
select l
from (select level l from dual connect by level <=
…
I'm writing a J2ME application that periodically updates server. how do i implement the functionality using J2ME? how do i run application on phone at startup and how do i keep it running?. I am planning to deploy the application it on symbian platform
I am developing an application where i need to charge the user based on the number of pages. Can anyone tell me how can i derive number of pages if the data is entered as multiline in textView.
Thanx in advance
I know there are plenty of C++ GUI libraries out there. Here is an incomplete but significant list:
MFC
Qt
wxWidgets
Ultimate++
WTL
Win32
Win32Gui
WinForms
Here is what i want
Well documented
Modern (and well designed) interface
Easy to use
Widely used
GUI editor (RAD tool)
Free
Hello friends,
Is it possible to play the video from youtube channel through iphone sdk code?
If yes please pass on the link or tutorial for the same.
Thanks in advance
Hi,
I am trying to implement GZIP compression for my website. I copied the below code in my .htaccess file:
ExpiresActive On
ExpiresDefault A604800
Header append Cache-Control "public"
<IfModule mod_deflate.c>
<FilesMatch "\.(js|css)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
what…
Why do we use reverse domain name like com.something. or org.something. structure for java packages?
I understand this brings in some sort of uniqueness, but why do we need this uniqueness?
i tried the following code for cloning the object. while compiling it shows clone is protected and cannot be accessed, but i had extended Object class, hence the clone method will be public to my class . please explain me the reason.
class storeDate extends Object {
public static void main(String[] args)
{
storeDate d =…
Guys i have a requirement to list all the dates of the previous month like below
20101201
20101202
20101203
20101204
20101205
..
..
..
..
..
..
..
..
20101231
kindly let me know if any better way to do than this query.
select TO_CHAR(TRUNC(SYSDATE,'MM')-1,'YYYYMMDD')-(level-1) as
EACH_DATE from dual A connect by level
<…
Write a function, called constrainedMatchPair which takes three arguments: a tuple representing starting points for the first substring, a tuple representing starting points for the second substring, and the length of the first substring. The function should return a tuple of all members (call it n) of the first tuple for which…
Is it correct practice to add Javadoc comments in Interface and add non Javadoc comments in the implementation?
Most IDEs generate non JavaDoc comments for implementations when you auto generate comments. Shouldn't the concrete method have the description?
guys, i have a html page where onclick of a button a ajax request is sent to server , the request calls a jsp page which runs an oracle procedure.The procedure runs the logic and places it in a temp table . once procedure is completed , the values are returned to the client by selecting values from tmp table. as the response…
guys the following code does not wiat for the thread t to complete and join with the main thread, also the "created object" trace is called one more time after join is called please let me know the solution
<%
AProc empList = new AProc();
System.out.println("** Created Object ****");
…