instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I need help on keeping the precision of a double. If I assign a literal to a double, the actual value was truncated. int main() { double x = 7.40200133400; std::cout << x << "\n"; } For the above code snippet, the output was 7.402 Is there a way to prevent this type of truncation? Or is there a way to calculat...
stackexchange/codereview
I have an ASP .NET Web Forms application that makes use of the 'WebMethod' attribute for making AJAX calls from jQuery. I'm dealing with trying to localize the application so I recently created a web method that looks something like this for testing purposes: [WebMethod] public static string HandleDate(DateTime dateVal...
stackexchange/codereview
I am trying to let the user update quantities in the textfields on the page, then update existing items in their cart in the database with the new values of the textfields on the page. The quantities are not being updated, but no errors are being generated either. I can't see any problems with my code, and I'm just at ...
stackexchange/codereview
I am living in the Netherlands, when I run this code: boost::local_time::local_date_time t = boost::local_time::local_sec_clock::local_time(boost::local_time::time_zone_ptr()); std::cout << "\nDate Time: " << t.to_string() ; The "Date Time" returned is one hour behind. It is UTC but it should be GMT+1 or UTC+1 for my...
stackexchange/codereview
I am dealing with this problem. I need to attach files from my desktop and store a copy of it in server and the url of the file location should be stored in a database. Can this be done using C#? please suggest me how to do it. Thank you
stackexchange/codereview
I need to know if there exists any module for joomla where every registered user is able to load articles for a shopping site, just like ebay.
stackexchange/codereview
I am developing an application where I pass enum values to buttons which are on the homescreen. I have four buttons on the homescreen, and when clicked, a button-specific screen should appear. For that I have to check with the enum values -- and as enum is not supported in java-me, I have them as final static int cons...
stackexchange/codereview
I am switching a project from Ant to Maven. I have my unit tests in the correct location, but for whatever reason the maven surefire plugin only sees about 136 (out of 1136 total) of the tests. When using Ant, we used the older test suite technique of: public class GatherTests{ public static Test suite(){ ... ad...
stackexchange/codereview
I would like to have logic in the Meta Description (located in Banner Header) tag that has the following effect: if rendering an Entry: <meta name="description" content="<$mt:EntryBody words="25"$>..." /> else: <meta name="description" content="<$mt:BlogDescription$>" /> Thanks for your help!
stackexchange/codereview
I've got the following when building a graph. #include <vector> using namespace std; template<class T> class Node { private: T data; Node<T> *link; vector<T> neighbors; public: Node(){neighbors = new vector<T>();}; }; int main() { Node<int> n; return 0; } ... which returns the error C2679: binary '=': ...
stackexchange/codereview
I am interesting: whether Windows Phone 7 will support HTML5 web sites or not? As I know IE on PC supports it only with Google's plugin :D What do you know about Windows Phone 7 internet browser "features"? Thank you!;)
stackexchange/codereview
I'm using the touchesEnded: method to do some work when I lift a finger off my UIScrollView, but my problem (and i've confirmed using NSLog) is that the touchesEnded: method seems to only get called when I tap on my scroll view and not when I touch and hold/slide my finger and then let go? Is there another method I nee...
stackexchange/codereview
I have the following file named test.rb encoding in UTF-16LE # encoding: UTF-16LE test = "test!" p test Running it with the following command produces no results ruby ./test.rb What am I missing here? In case anyone is wondering, the reason I'm trying to set my source to UTF-16LE encoding is that I'm working with U...
stackexchange/codereview
A quick question, is it ok for the controller to contain a pointer to a model object so that it can use an instance method to alloc and then call the model as needed. Or is it best to set the model up as a singleton and then use a static pointer / class method to access the model as needed. Or either, it simply does no...
stackexchange/codereview
My Form.. <%= form_for @wysiwyg, :url => admin_wysiwyg_path do |f| %> <%= f.ckeditor_textarea(:content, :width => '100%', :height => '200px') %> <%= f.submit%> <% end %> Right? Makes sense, I'm not going crazy, right? Error: compile error default/app/views/admin/wysiwygs/new.html.erb:3: syntax error, unexpected ')' .....
stackexchange/codereview
<Results> <ResultSet>"nothing special" Description="More of nothing" <Results> <Result> <Body>Four in this group</Body> <Body2>this is more stuff I want</Body2> <Body3>This is interesting stuff I want</Body3> <Body4>this is more stuff I want</Body4> </Result> <Res...
stackexchange/codereview
I know 2D array can be weird in C, and with malloc, i would do something like this: /* This is your 2D array. */ double** matrix; /* The size dimensions of your 2D array. */ int numRows, numCols; /* Used as indexes as in matrix[x][y]; */ int x, y; /* * Get values into numRows and numCols somehow. */ /* Allocate po...
stackexchange/codereview
I've been searching a lot but I haven't found anything about this question. I'm making a log of my app and I'm printing types of variables and their values. I want to do the same for every object I receive as parameter, and for every object I return too. So I'm returning a typed dataset (MyDataSet that's defined as MyD...
stackexchange/codereview
I'm trying to understand Android's View structure and I'm a little confused on how to position child views Let's say I have a FrameLayout that will contain my custom view. My custom view only draws a rectangle 50x50 px. So I set my View.setMeasureDimension(50, 50); Now how should I move this view? I found a couple o...
stackexchange/codereview
The task name starts with a hyphen "-". <?xml version="1.0" encoding="UTF-8"?> <project name="proj"> <target name="-task1"> <echo>Done!</echo> </target> </project> How can I specify this task when running ant script from command line? This would not work: ant -task1 -f test.xml
stackexchange/codereview
Is it possible to access an inner variable from an external function like this example? function a(f) { var c = 'test'; f(); } a(function() { alert(c); //at this point, c should = "test" });
stackexchange/codereview
In Objective-C, I am setting up an NSMetaDataQuery and setting the setSearchScope: for the query to search a specific users Documents folder. The search works but doesn't recurse down the directory tree, only searching in the Documents folder. I've tried wildcards but no joy. Here is basically what I've attempted, and...
stackexchange/codereview
This is my 3rd post about this, but I keep making changes, because none of the answers work in full (if the validation works, the submission doesn't, etc.) $("#order").validate({ submitHandler: function(form) { $(form).ajaxSubmit(); $("#aciu").show(1000); $("#duomenysdiv...
stackexchange/codereview
I have an Nx1 array that corresponds to a probability distribution, i.e. the sum of the elements sums to 1. This is represented as a regular numpy array. Since N might be relatively large, e.g. 10 or 20, many of the individual elements are pretty close to 0. I find that when I take log(my_array), I get the error "Fl...
stackexchange/codereview
I attempted to generate a Sine Wave using AudioTrack initially. The result was not satisfactory. I then moved to the Soundpool class. I used Audacity to create audiofiles of 1 second and then modified the playback speed (.5 - 2.0) to get the desired frequencies. (Arrays, as there are also saw and triangle wavefiles) ...
stackexchange/codereview
I have a 2-dimensional matrix of cells. Usually only invisible algorithms work with these cells. But sometimes I want to visualize each cell so I added a pointer to a graphical object class Cell { ... QAbstractGraphicsItem* representation_; ... } The constructor of Cell sets representation_ to 0. Sometimes an...
stackexchange/codereview
I'm using the following code to show a box when you mouseover a certain div and have set the delay on the fade out but is there some way of cancelling the fadeOut effect if the user goes back on to the div? jQuery("#cart-box").hover(function() { jQuery("#cart-container").fadeIn('fast'); }, function( ) { jQuery...
stackexchange/codereview
When working with the DOM, I tend cache an item, detect if it is present, then perform some work. Like so: var $fooModules = $j('.foo-modules'); if ($fooModules .length > 0) { //do something. } But, how do I tackle using a jQuery select like nth-child with my cached selector? I know I cannot do this: $j($...
stackexchange/codereview
Here are my models: class Groups(models.Model): group_id = models.AutoField(primary_key=True) group_name = models.CharField(max_length=20,db_index=True) #Some other fields admins = models.ManyToManyField(Users, through='GroupAdmin') class Users(models.Model): user_id = models.AutoField(primary_...
stackexchange/codereview
I'm using db4o to store different objects in an android application. I get json contents from a sever then them into Objects (contacts here) that I store in a db4o file. ObjectContainer mainDB = Db4oEmbedded.openFile(dbConfig(), DB_MAIN); mainDB.store(aContact); Now if I directly make a query to get them back from the...
stackexchange/codereview
Are there any lightweight C# IDEs/compilers? Visual Studio is great but I find it annoying to create an extra project for every single file. Isn't there something like SciTE where you can simply type in the code, compile and run it in the console?
stackexchange/codereview
I am interesting in Google AdSense bot's algorithm and behavior with web site. I did not work with AdSense and i do not have account. So i need your help to understand: 1) Gbot from time to time downloads all pages from web site. Am i right? 2) Gbot do not understand dynamic content (loaded by ajax). So i must generate...
stackexchange/codereview
unable to install devise on windows using jruby =============================================== C:>jruby -S gem install devise Building native extensions. This could take a while... ERROR: Error installing devise: ERROR: Failed to build gem native extension. c:/jruby-1.5.3/bin/jruby.exe extconf.rb make 'make' ...
stackexchange/codereview
I want to store latitude-longitude in XML file, when user clicked on google map. and also create XML file dynamically (if file not exist, create and add tags, OR if exist then append the tag). <root> <point> <latitude> 27.4324 </latitude> <longitude> 73.4422 </longitude> </point> ...
stackexchange/codereview
What is the best way to manage resources for a C program. Should I use a nested if structure or should I use goto statements? I am aware there is a lot of taboo about goto statements. However, I think it is justified for local resource clean up. I have supplied two samples. One compares a nested if structure and anoth...
stackexchange/codereview
I have a simple WCF WebService running on IIS 6. It returns "hello" when I call the getData function. I have java stubs for the client that I generated using axis 2. My request gets time out every time. I have increased the timeout to 5 minutes but to no effect. Here are the logs. The client waits for 30 seconds and t...
stackexchange/codereview
In my website project, I need to upload the end-user's pdf files and save them. every 3 months I guess to receive around 2000 pdf files with 2MB size for each pdf. What is the best solution? saving the files in hard-disk (in a folder) and save file-address in the DB < or > saving the files directly in a blob-field...
stackexchange/codereview
What should be the RGB colour composition of the skin surface scaled between 0 and 1?
stackexchange/codereview
I want to read all the user feed entered by the user in the last 2 days. Table - user_feed Column - date_n_time What i'm looking for - $result = "SELECT content FROM user_feed WHERE date_n_time >= (now() - 2 days)"
stackexchange/codereview
I'm failing at translating the following PHP/ImageMagick code into Ruby RMagick (to make it more manageable for future users and to understand what it's really doing): $output = array(); $returnValue = 0; $pngFiles = $myDir->find("/.png$/i"); foreach($pngFiles as $pngFile) { $cmd = 'convert '.$pngFile->path.' -resiz...
stackexchange/codereview
Source: http://jquerymobile.com/demos/1.0a2/#docs/content/content-collapsible.html When I add an element like this manually to my code, it is displayed properly. But when I try to add it with jQuery like this: $('body').append('<div data-role="collapsible"><h3>Title</h3><p>Content</p></div>'); It just displays title i...
stackexchange/codereview
i'm trying to make a powerpoint, and I have lots of text that I want to be displayed, is there a way to use a macro to read a document into powerpoint? for example the document contains: this is the first line this is the second line this is the third line and I want the first line to be displayed, wait 10 secs...
stackexchange/codereview
I have a download-component and want the categories to display the subcats and item count in advance. 1 of both works, but when trying to get both, the result is the multiply of both. The code I use: SELECT a.*, count(b.parentid) AS catscount, count(c.id) AS itemscount FROM (jos_foc_downl_categories AS a LEFT J...
stackexchange/codereview
This is my first question here, i hope i'm doing it right. Sorry for my bad English in advance :) I am using JSF 2.0 (Eclipse IDE) and i'm trying to generate some PDF files using Apache FOP 1.0. I was able to make simple PDF files using instructions on Apache Fop site , but i can't insert any image from my application ...
stackexchange/codereview
Not sure what to make of this and fairly new to web serivces. I've got a Java webserive that returns a string representation of an XML. That works fine. I'm trying to call that webservice from a php script using curl_exec, store the string in a variable and then use simplexml_load_string to start rendering the informa...
stackexchange/codereview
This is an issue I seem to keep coming across. If for example I have a drop down navigation menu using a jQuery hover() function and I quickly move my mouse cursor over then off the <li> about 10 times, the subnavigation will appear, then disappear 10 times. Is there any way to prevent this issue from occuring? Thanks
stackexchange/codereview
I need to allocate memory for a very large array which represents triangular matrix. I wrote the following code: const int max_number_of_particles=20000; float **dis_vec; dis_vec = new float **[max_number_of_particles]; for (i = 0; i<max_number_of_particles; i++) dis_vec[i] = new float *[i]; for (i = 0; i<max_numb...
stackexchange/codereview
I have a form in Magento that is displayed over the insecure URL (http) but I need it to submit to the secure URL (https). I display the URL I currently use the following code: Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB) I am assuming I need to change the URL_TYPE_WEB to something else. Does anyone know what...
stackexchange/codereview
I totally did google this. But everything I found is about the next step past where I am. I am returning to programming after a long time away, and learning Java (& OO) for the first time. I asked about reading a file, and someone suggested I not try to learn Java's contortions for this, but instead use Guava. After go...
stackexchange/codereview
I have a DateTime variable: DateTime date = DateTime.Now; I want to change the time part of a DateTime variable. But when I tried to access time part (hh:mm:ss) these fields are readonly. Can't I set these properties?
stackexchange/codereview
What is the difference between OpenWrap and NuGet. And what you prefer ?
stackexchange/codereview
I've got a web page that displays some content. The query itself is pretty slow (4000 ms). I don't want my users to have to wait for the query to run before the rest of the page loads though. Is there a way I can stick some code before and after the tag in my HTML template that will "delay" that function from executi...
stackexchange/codereview
We have an Android application that throws out of memory error on Android 1.6. It is working fine on 2.0 onwards. We are trying to cut down on the runtime memory usage at this point. We were thinking of reusing images – such as the background image of each screen. Is it possible to load the background image once in th...
stackexchange/codereview
I do some i/o intensive programming in C on GNU/Linux and I would like to be able to trace all the i/o calls and to know the timings the application spends sleeping, waiting for IO for each call Appart from the DIY method using gettimeoftheday everywhere, is there some tool to do that ? I want to be able to distinguish...
stackexchange/codereview
According to what I have read about makefiles, a phony target is any target that does not correspond to an actual filename. My intuition says that a directory as a target would be treated the same as a file. Why is this important? I have a directory as a target in my makefile. when I have it as a prerequisite to m...
stackexchange/codereview
Msg 2714, Level 16, State 1, Procedure QOTD, Line 12 There is already an object named '#tmpID3' in the database. ALTER PROCEDURE QOTD (@source INT) AS BEGIN IF @source = 1 SELECT ID INTO #tmpID3 FROM tbl1 ELSE SELECT ID INTO #tmpID3 FROM tbl2 SELECT ID FROM #tmpID3 DROP TABLE #tmpID3 END Msg...
stackexchange/codereview
I am trying to update a table in Access from the values in excel, however every time i run the code it creates new rows instead of updating the already existing ones, any ideas why? I am new to ADO, so any advised is well appreciated Private Sub SelectMaster() Dim db As New ADODB.Connection Dim connectionstring As Str...
stackexchange/codereview
I'm looking for some advise on the following: You have an app live with customers and real data While developing new features, you need to add a column to lets say the projects table This new column is a UID of some type which is generating by the model using a before_save This all works fine for new projects moving ...
stackexchange/codereview
Follow-up of question packet fragmentation for raw sockets If I have a raw socket implemented as such: if ((sip_socket = socket(AF_INET, SOCK_RAW, IPPROTO_RAW)) < 0) { cout << "Unable to create the SIP sockets."<< sip_socket<<" \n"; return -3; } if ( setsockopt(sip_socket, IPPROTO_IP, IP_HDRI...
stackexchange/codereview
Does anyone know a programmatic way of dimming secondary monitors while keeping the primary display screen fully bright? I have investigated some existing software, but most will only dim all monitors (or only the primary one). I feel like this might be a windows registry modification perhaps. (This would be for the Wi...
stackexchange/codereview
I'm looking for a way to draw a grid (i.e. http://www.artlex.com/ArtLex/g/images/grid.gif) inside of a div, using CSS (and JS if necessary). It feels like it should be relatively straight forward, but I haven't been able to figure it out. Any advice would be greatly appreciated. Thank you in advance, Lenny
stackexchange/codereview
I want to set header column width for grid view. I tried HeaderStyle-Width="30px". But it is depending on Item columns. The column width is setting based on item value. But I want fixed width even if it has value or empty.
stackexchange/codereview
Suppose there is a jdbc code running some CRUD operations. Now, in a particular scenario there happened to be a row lock and the session became blocking to other database sessions. In this case if the blocking session was killed at the database side what would happen to the corresponding java Connection object? Would t...
stackexchange/codereview
Two temp tables are created and then loaded...Here's the schema. Create table #SH ([date] datetime, sched_id int, agent_id int) Create table #SD (sched_id int, start_minute int, length int, exception_code int) (Schema and design is something I can't change unfortunately, both t...
stackexchange/codereview
I'm currently developing an asp.net mvc 2 application which uses the default SqlMembershipProvider for authentication. I've implemented a controller method that reads the ProviderUserKey of the current user by calling Membership.GetUser().ProviderUserKey. Now I'm trying to write some test methods for this controller. T...
stackexchange/codereview
Old version of app was installed in /program files/xxx/ (1) or custom location when installing the new version need to check if old version installed in default location (1) if so create /program files/yyy/ (2) and copy the files from old location and continue installation with location (2) if old version installed in...
stackexchange/codereview
I would like to make a column uniformed by adding a "~" if the number in the field is not ten digits. For example: 123456789~, 2343456~~~, and 543645~~~~. Does anyone know how to write this custom code?
stackexchange/codereview
I've opened winnt.h header file and found there this two lines: typedef wchar_t WCHAR; and typedef WCHAR TCHAR, *PTCHAR; but there was comment in one of my posts that there is some difference between them. Then what is the difference?
stackexchange/codereview
I have several fields on an Orbeon xform that are populated by a database service and action. There are constraints on these fields (example field must be equal to zero). When the action is triggered by activation of a button, data is populated in these fields from the database service. I get the constraint error m...
stackexchange/codereview
just want repaint the background, not any part of the client area.
stackexchange/codereview
Is there any API or web service to create statistical world maps where the values are different shades of a colour? Something like http://www.visualizingeconomics.com/wp-content/uploads/sachs-gdpdensity.png
stackexchange/codereview
Hello How do EnableCustomBinding in Telerik MVC, I know how to do it in c# but I am new to vb.net please let me know C# code For EnableCustomBinding [GridAction(EnableCustomBinding = true)] How to convert above code in VB.net Thanks
stackexchange/codereview
I need to know the output of the following c function bool GC_search_memaddr (void* high_add, void* low_add, void* search_add) { void ** gc_ptr_to_ptr; void * gc_temp; gc_temp = high_add; while( gc_temp > low_add ) { gc_temp = gc_temp - 1; gc_ptr_to_ptr = (void**)gc_temp; if...
stackexchange/codereview
I am using VS 10. I have a DLL that I created locally. I want to add the DLL as a reference (to a website that I am creating) so I can edit the DL (also it helps for when I am steping through from the site to the DLL) from the website without having another instance of VS open. I know there are similar questions, but ...
stackexchange/codereview
The question says it all - I want to take a list object full of data.frames and write each data.frame to a separate .csv file where the name of the .csv file corresponds to the name of the list object. Here's a reproducible example and the code I've written thus far. df <- data.frame( var1 = sample(1:10, 6, replace...
stackexchange/codereview
i'm trying to use dynamic typing in Obj-C, i've got following code and errors: For me it seems good, but it don't want to work, any ideas?
stackexchange/codereview
In Spring 3.0.2, I am trying to inject the property of Bean A into another Bean B, but the Spring EL isn't working. Bean A is being created manually in Java. Bean B is created through XML. In this case Bean A is Potato and Bean B is Baby (both in package springinit). Bean A (Potato): public class Potato { String pot...
stackexchange/codereview
I have a tableview based app that downloads rss feeds from the web. So i have view1, i click a row in the table and the results show on view2. This works great but if i change back to view1 while the data is being downloaded. It crashes! Any ideas what i need to change (its nsxmlparser by the way)? Thanks
stackexchange/codereview
I am looking for the best way to set the validation group for all of the controls contained in a user control. Most of the controls in the control are created dynamically when the control is loaded. It has quite a few input fields and validators. I would like to save time by setting the validation for all the control...
stackexchange/codereview
Some time ago, in my work I needed to protect some classes against other people to read the code. For that purpose, I created a EncryptedClassLoader, that loaded previously encrypted classes, and can load normal (not encrypted) classes as well. Working in that way was a little complicated, and testing too (compile, the...
stackexchange/codereview
In a project of mine I have two packages full of DTOs, POJOs with just getters and setters. While it's important that they are simple java beans (e.g. because Apache CXF uses them to create Web Service XSDs etc.), it's also awful and error-prone to program like that. Foo foo = new Foo(); foo.setBar("baz"); foo.setPhlee...
stackexchange/codereview
Im trying JSF framework. Im a beginner. So i start with a easy tutorial. This is the code : <h:form id="form1" prependId="false"> <h:outputScript name="jsf.js" library="javax.faces" target="head" /> <h:inputText value="#{user.name}" id="name"/> <h:inputSecret value="#{user.password}" id="password"/> <h...
stackexchange/codereview
What is the data type that will fire an event when an object is added or removed from a list? ObservableCollection<T> almost suits my need, but the problem is in addition to CollectionChanged event ( which is all that I need), it also fires PropertyChanged, which is something I don't need at all. The fact that the obje...
stackexchange/codereview
This is a pretty frustrating newb question, but I can't seem to get iteration of objects to work at all in my rails project. I have two models, "Photo" and "LandUse" which both have a has_and_belongs_to_many association. Everything works as expected in the console. However, in the photo show action I cannot seem to dec...
stackexchange/codereview
I have a file that has a name/value pair on each line, I want to open the file, read each line and initialize a hash. file: john, 234 joe, 2222 And load a hash so I can loop through the key value pairs.
stackexchange/codereview
Where can I find Spring 3 IoC JavaConfig (annotations) tutorial? If possible, please provide tutorials with source code example in SpringSource Tool Suite/maven project. Thanks. Update: I would like to have working examples with source code that I can immediately compile and run. There a number of old working examples ...
stackexchange/codereview
Can you programmatically begin a storyboard that is within a datatemplate?
stackexchange/codereview
I've written a plug-in that constructs a rich UI control. I'm hoping that there's a way for me to somehow change how jQuery operate when I query for this element. I'd like jQuery to be oblivious to the internal structure of this control, but it's not really a hard requirement. What I'd like to do, is to change the mean...
stackexchange/codereview
I'm using NSArray/NSMutable array to store different objects. Once all the objects are added, I want to re-arrange them in random order. How can I do it?
stackexchange/codereview
Since layered rendering with a geometry shader in OpenGL seems a bit dodgy on some drivers/hardware, I would like to substitute the functionality with my own solution. This by using a big texture as rendertarget, with for example a resolution of 300². Then simulating layered rendering by rendering to 100² chunks in the...
stackexchange/codereview
there are a lot of flash games that ask u to do repetitive actions. an example would be FarmVille or getting statistics on on-line poker game. What is the best way to create an interface between what you see on the screen, a bot's algorithm and clicking of the mouse. so basically, when i'm playing a texas hold'em on ...
stackexchange/codereview
We have a Rest API that requires client certificate authentication. The API is used by this collection of python scripts that a user can run. To make it so that the user doesn't have to enter their password for their client certificate every time they run one of the scripts, we've created this broker process in java ...
stackexchange/codereview
I did something wrong or there's an issue with accepts_nested_attributes_for or fields_for I use rails 3.0.3. I've 2 models class Customer < ActiveRecord::Base belongs_to :address accepts_nested_attributes_for :address end class Address < ActiveRecord::Base has_many :customers end In my _form.html.haml = f.fiel...
stackexchange/codereview
I am developing an application for enterprise which can be installed on employee phones to track usage of phones and enforce certain security policies on phone. My application needs to be hidden. It should not be shown in: Running Programs in Task Manager Program Files How to do above using .NETCF 2.0 and C#?
stackexchange/codereview
I have a problem with my web app. Its UI is window based, so there can be many windows opened at the same time. These windows are DIVs which are loaded with AJAX call. Everything works fine when the content of all the windows is unique. However, sometimes its needed to have 2 or more same windows opened at the same ti...
stackexchange/codereview
I want to create a CGImageRef and draw points to it. What context to use to create an empty CGImageRef and be able to draw onto it. CGContextRef or CGBitmapContextRef? If you can provide code to create an empty CGImageRef image and draw to it I would appreciate.
stackexchange/codereview
how can I register my application so that when I receive a sms my app appears in dialog Complete action using. I have put in an intent code <intent-filter> <action android:name="android.intent.action.VIEW"/> <action android:name="android.intent.action.SENDTO"/> <category android:name...
stackexchange/codereview
I installed UBUNTU with Vmware Player on my Windows 7 system. For some reason Vmware Player cannot get the Vmware Tools files from internet, possibly a connection problem due to firewall limitations. I want to get the Vmware Tools files in compressed format if there is any, and then manually install it. Two questions: ...
stackexchange/codereview
I have a realtively complicated listview in my application, with data fetched from the internet and so on. What is the best practice to do to preload as much as possible of the ListView, such that it appears immediately on the screen? For example, the standard SMS/MMS app of android shows a white screen with a spinning...
stackexchange/codereview
I need to evaluate XPath query in GWT. I haven't a server-side so I have to evaluate them in my GWT client-side application. Which is the best XPath library for GWT?
stackexchange/codereview