Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!

swapna nyathani

Greenhorn
+ Follow
since Mar 16, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by swapna nyathani

Hi
I am working on a desktop application which uses netty.
i need to create api and plugins for this app for example like,share,comment plugins for facebook which can be accessed from any website
Looking for design ideas . i have planned to create another API server and client (here i am not sure which one works ..i think javascript ),which supports netty.
so when user clicks like button a connection has to be established to my app server and message(like) has to be updated in his profile.
Please refer any links and share your ideas ...

Thanks
Hi,


I cam across some already built with NDK (.so) files i use in my project
and i think very rarely you need to write your own c code and build with NDK.
ASAIK, NDK is not related to obj c.



5 years ago
Hi,

01-10 06:36:21.008: E/dalvikvm-heap(1386): Out of memory on a 25133072-byte allocation.





5 years ago
Hi,

Image details:

Dimensions: 250*158
Horizontal resolution: 72 dpi
Horizontal resolution: 72 dpi

size on disk: 24 kb


Exception occurs at this line
"out.write(actual_bytes,0,actual_bytes.length); "


Swapna.

5 years ago
Hi,


I am trying to load a png image file from a byte array(from stream) and got this error :

01-09 12:01:24.664: E/AndroidRuntime(14031): java.lang.OutOfMemoryError
01-09 12:01:24.664: E/AndroidRuntime(14031): at java.io.ByteArrayOutputStream.expand(ByteArrayOutputStream.java:91)
01-09 12:01:24.664: E/AndroidRuntime(14031): at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:201)


My code is :
ByteArrayOutputStream out = new ByteArrayOutputStream(ByteWritten);
byte[] actual_bytes = new byte[1024];
long count = 1024;
long off = 0;

while((actual_bytes = solstream.readWithSeek(off,count))!=null) // this is virtual space stream where the image file is stored
{
off=off+actual_bytes.length;
out.write(actual_bytes,0,actual_bytes.length);
}

out.flush();
out.close();

byte[] final_ba = out.toByteArray();

bitmap = BitmapFactory.decodeByteArray(final_ba,0,final_ba.length);


image = (ImageView) findViewById(R.id.rtimageView);
image.setImageBitmap(bitmap);



Thanks in advance.
Swapna.
5 years ago

Thanks for your reply Peter.

As you said ' To set PATH, open the ~/.bashrc file '
i want to know where is 'bashrc' located.

And i can see that java is installed in 'root/bin/java'.

I have ' KDevelop' an IDE used for multiple languages installed in linux.
how can i run java in it.
please help.

Thanks,
Swapna.






8 years ago
Hi,
I am new to linux and i want to run java code in linux.
Am using Redhat Enterprise linux 5.
I think java is installed (i mean built in)


When i write a java code in vi editor, its syntax is recognized, example keywords are highlighted.
i know how to run.For example, if 'sample' is java file name,
> javac sample.java
> java sample
will give output.
but the error i am getting is : \bash ' javac' is not a command
i think the problem might be that path is not set.
Can anyone tell me how to set path.

Thanks,
swapna.
8 years ago
Please suggest some good books and also humour books.
Please give book with author name.
Also share your thoughts about reading it.

Thanks in advance.
11 years ago
Hi

Thanks for correcting me.
First I thought 'search' is a big task.
And I immediately posted question.
But when i thougt again I got how to do it.
so next time i will be careful in posting a question.
11 years ago
JSP
Hi Everyone!
I have a question.
can anyone tell how to implement search in jsp.
ie, i have to search for some words in database(records)and
i need to display that record infomation as search result.
please help!
if anyone can explain with an example it will be great.

help! Its Urgent!
11 years ago
JSP
hi!
i have a problem in jsp form which uses html.
when i input a single feild say userid,
i need go to database and retrive the record with that userid and
that record details should appear immediatly in other fields.
That is it should be done just when userid is typed.
let me explain where i have problem..

Am able to retrive record for particular userid,(asuming that
a table with many records is having data)
but they should be displayed just after userid is entered.
before any action such as button click ...or anything is done.
please help me here.i am told it can be done in java script.
can anyone give how coding should be done.


eg:

userid: e001
address: ........
phone no: ........
help!!!
hi! am happy that someone understood my problem.
Am able to retrive record for particular userid,(asuming that
a table with many records is having data)
but they should be displayed just after userid is entered.
before any action such as button click ...or anything is done.
please help me here.is it possible in jsp or not..

eg:

userid: e001
address: ........
phone no: ........
11 years ago
JSP
hi!
i have a problem in jsp form which uses html.
when i input a single feild say userid,
i need go to database and retrive the record with that userid and
that record details should appear immediatly in other fields.
That is it should be done just when userid is typed.
help!!!
11 years ago
JSP
hi ranchers!
I am new to concept of connection pooling.
can anyone help me out.
Also I need a an example.
swapna.