Quantcast
Channel: BlogoSfera » DATA
Browsing all 64 articles
Browse latest View live

warning: return makes integer from pointer without a cast

I am trying to read and write a text document and then perform operations on it. #include<stdio.h> #include<string.h> int WRITE(char *FILENAME, char *DATA) { FILE *ptr_file; ptr_file...

View Article



Tell the Camera Intent to save the taken image

I’m doing this: intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); final File storage = Environment.getExternalStorageDirectory(); final Uri uri = Uri.fromFile(new File(storage,...

View Article

Get the table from cell data

So this should be pretty simple, but it seems to be making me stumble. I have a drop down in a cell in a table. When that value is changed, I call a javascript function and pass that drop down in the...

View Article

Get Thumbnail of an Image stored in an sdCard

According to some questions in overflow. I have following code to show a thumbnail in an ImageView. final File sdImageMainDirectory = new File(mainImagePaths.get(position)); Uri selectedImageUri =...

View Article

Memory leaks during decoding to Bitmap and compressing

I’ve been studying the following code which opens a stored image on an android tablet, decodes it into a Bitmap and then turns it into a base64 String so that it can be stored inside an SQLite DB. To...

View Article


how to call NdisOpenAdapterEx or the alternative outside the...

I am porting the famous packet capture software — WinPcap from NDIS 5.0 to NDIS 6.x. I tried to translate every NDIS 5.0 function to its 6.0 version. In WinPcap sourcecode function NdisOpenAdapter is...

View Article

SQLiteConstraintException: error code 19: constraint failed when set ringtones

Here is my code. ContentValues values = new ContentValues(); values.put(MediaStore.MediaColumns.DATA, newSoundFile.getAbsolutePath()); values.put(MediaStore.MediaColumns.TITLE, "my ringtone");...

View Article

stopPropagation not working with nested href tag

I have multiple divs listed like so: <div class="msg-list clearfix" id="27705"> <div class="thumbnail_image"> <a href="some_path">AnchorText</a> </div> <div...

View Article


create drop down list from json

I have a json in this form: {"COLUMNS":["ID", "Name"],"DATA": [ ["1","Joe"], ["2", "Sam"], ["3", "Doug"], ] } and I was looking for an example of how to create a drop down list from this data in...

View Article


migrating twitter api1.0 to 1.1 json data access issue

TWITTER changing api create problem in my mobile app contain twitter feed , My issue is: responseData is not parsing properly by EXT JS. here www.jsfiddle.net/9kSBz old code(working) it is my code for...

View Article

How to add context menu for the item of custom gridview?

I create a custom gridview filled with imageAdapter which include two controls both imageview and checkbox. At present I have added a setOnClickListener for imageview, it works well. I hope to add a...

View Article

How to make client talk to server in same node proccess?

I have an application written in SSJS (Node) … This application needs to serve data to the php script that will request by fsockopen .. All right here … This server needs to collect data from a second...

View Article

Using custom simpleCursorAdapter

I am trying to access a list-activity using custom adapter.I have tried it directly without using any custom adapter it was working good but because I want to add more functions in list-view I want to...

View Article


Opening a file in both write and append mode

I am trying to append some data to a file like below..however this fails when the file doesnt exist.. I tried the following..can anyone provide inputs on opening a file in both write mode so that it...

View Article

NullPointerException in onActivityResult after calling camera intent

Here’s my problem: I need to save photo to default camera location, than copy it to my private location, add GPS tags to copy, and delete original photo. Why so around? Because on some devices, when...

View Article


Phantomjs / Download binary file

How to correctly download binary file via Phantomjs (without casperjs) ? Downloaded file has expected size, but it is corrupted. Here is some kind of code. Thanks. OFFTOP: i am so tired of this fckn...

View Article

How do you get a Windows Environment Variable in assembly language?

I have an assembly language program that attempts to print out the value of a Window Environment Variable, namely “%AppData%”. Unfortunately, my program only crashes. I suspect the problem is caused by...

View Article


Can I make an instance of inner static class?

If I use the code 1 Utility.DetailsInfo myInfo=new Utility.DetailsInfo() causes an error, why? No enclosing instance of type Utility is accessible. Must qualify the allocation with an enclosing...

View Article

C++: shared_ptr not playing nicely with templated function

I’m having some trouble getting shared pointers to work with a templated data-managing function. I have some simple structs that contain loaded data for various objects, as such: struct...

View Article

How to decode JSON data and show list using PHP

I have some JSON data as follows: { "TABLE": [{ "ROW": [{ "COL": [{ "DATA": "Buff momo" }, { "DATA": "60.00" }, { "DATA": "1;#" }, { "DATA": "0" }, { "DATA": "1" }, { "DATA": "1" }, { "DATA": "118" },...

View Article
Browsing all 64 articles
Browse latest View live




Latest Images