instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I want to replace a particular substring from a file or a NSString with another string. This is like typical 'Replace All' functionality. Can you please suggest any existing routine or function for this. Thanks a lot. Really appreciate your help.
stackexchange/codereview
I can see from man gcc that -W has something to do with warnings, but I cannot work out exactly what -W1 would be doing. I am building using the following my Makefile.am: lib_mysqludf_ssdeep_la_LDFLAGS = -module -avoid-version -no-undefined -rpath @MYSQL_PLUGINDIR@ @SSDEEP_LIBDIR@ @SSDEEP_LIBS@ Just fine on Ubuntu, bu...
stackexchange/codereview
Does anyone have any suggestions for assembly file analysis tools? I'm attempting to analyze ARM/Thumb-2 ASM files generated by LLVM (or alternatively GCC) when passed the -S option. I'm particularly interested in instruction statistics at the basic block level, e.g. memory operation counts, etc. I may wind up rolling ...
stackexchange/codereview
I have a JFrame and two JPanels. When my program starts it adds the first JPanel to the JFrame. The JFrame components (x, minimize, KeyListener, etc) all work. but when I remove the first JPanel and add the second JPanel the JFrame's 'x' button wont work nor will any KeyListener or MouseListener. How can I get the ...
stackexchange/codereview
System.Net.WebException: The remote server returned an error: (500) Internal Server Error. at System.Net.HttpWebRequest.GetResponse() at refill.btnRequestRefill_Click(Object sender, EventArgs e) I get this error when trying to submit a form. Here is my code: Protected Sub btnRequestRefill_Click(ByVal send...
stackexchange/codereview
I've been working with getters and setters to avoid the prospect of using global variables. However, I've run into a problem. The below code, which works fine with integer variables, throws an exception when I try to run an AJAX call instead. Can someone explain to me why this is happening? function Object_XML() { ...
stackexchange/codereview
I am using django-hitcount to tally hits to my database objects. I want to count the hits by object to determine which object has the most hits in a given time range. The app has two models of interest here: class Hit(models.Model): created = models.DateTimeField(editable=False) ip = mode...
stackexchange/codereview
(sorry for bad English) I have a big problem with performance of DataGridView when it re-paints. I'm using a DataGridView to show logs from an external application stream. Messages from the stream come in with a high frequency (less than 1 ms). If I add new row to the DataGridView immediately when each new message come...
stackexchange/codereview
Is there some kind of split() function in XPath? Say I have this XML: <root> <path>C:\folder\filename</path> </root> And I want to retrieve filename, how can I do this? I know I can get the node value like this: //path/text() How can I get only the filename? (I know there is a concat() function, so maybe there is ...
stackexchange/codereview
function get_IfUnsetAlsoSet_SomeGlobalVariable() { if someGlobalVariable is not set { someGlobalVariable = somedata } return someGlobalVariable } Should I give a name like this? -> getSomeGlobalVariable() How do you name these getset functions?
stackexchange/codereview
Is there an OR sqlite statement? I've been trying to google it, but google seems to be filtering out the OR. For example if I wanted to find someone in this table (people) people: +--fname--+--lname--+--has_squirrel--+ |Eric |Schmidt |0 | +---------+---------+----------------+ |Elvis |Presley |1 ...
stackexchange/codereview
screenshot Notice that little tiny gray line that runs underneath the tabs (Except selected tab)? How do I change/alter that? Would that be part of the FrameLayout, tabHost or TabWidget? I just cannot find a way to alter or remove this little gray line. Thanks
stackexchange/codereview
Basically, I have a div that I insert content into with innerHTML. A segment of the HTML inserted is: <p style="text-align:center;"><span class="bold" id="timer">00:00:00:0</span></p> This is a timer that should increment using a setTimeout. Later, I call the following function to modify the timer block: document.get...
stackexchange/codereview
I am creating a page with a scrollable content area that has to have a facebook like button inside it and customized scrolling bars. This was not a problem jscrollpane and the facebook iframe set up for the like button. I tested it on all the browsers i had and sent it to the client for approval my client is using fi...
stackexchange/codereview
I an new to working with SSRS and creating reports. I have created a simple 1 page report from one datasource and 6 datasets. Report takes one parameter: EmployeeId -- and generates 1 page report for that employee. So far all good!! Now, I want to create another report which takes a DepartmentId. This report should gen...
stackexchange/codereview
In the C++ reference on string::compare, there is the following overload: int compare ( size_t pos1, size_t n1, const string& str, size_t pos2, size_t n2 ) const; which has two parameters n1 and n2 which in my eyes should always be equal or the function returns an int equal to true (string::compare return value of 0 (...
stackexchange/codereview
I have a collection of users: users = User.all() I want to pass a subset of the user collection to a method. Each subset should contain 1000 items (or less on the last iteration). some_method(users) So say users has 9500 items in it, I want to call some_method 10 times, 9 times passing 1000 items and the last time 50...
stackexchange/codereview
My this PHP function converts a datetime string into more readable way to represent passed date and time. This is working perfect in PHP version 5.3.0 but on the server side it is PHP version 5.2.17 which lacks this function. Is there a way I can fix this efficiently? This is not only a function which needs this "diff"...
stackexchange/codereview
I'm trying to write some tests with Lettuce, started using lxml but found kinda complicated to integrate it with Django in the same way that Webrat integrates with Rails.
stackexchange/codereview
Currently I have a texture atlas that is 2048 x 2048 pixels set up with three 512 x 512 textures stored, and I am only applying one texture to the object. So I used the following code to position the texture coordinates (from zero to 1) to the correct position on the texture atlas for that texture: color = texture2D(te...
stackexchange/codereview
I'm curious of the best way to detect that an arraycollection contains duplicate objects as determined by an object's property value. For example, var _myArrayCollection:ArrayCollection = new ArrayCollection([{name: "name1", value: "value1"}, {name: "name2", value: "value2"}, {name: "name1", value: "value3"}]); Notic...
stackexchange/codereview
What's the best way to parse a multi line log file that require contextual knowledge from previous lines in php and/or python? ex. Date Time ID Call 1/1/10 00:00:00 1234 Start 1/1/10 00:00:01 1234 ServiceCall A Starts 1/1/10 00:00:05 1234 ServiceCall B Starts 1/1/10 00:00:06 1234 ServiceCall A Finishes 1/1/...
stackexchange/codereview
I have been working on a utility to convert various files to PDF for easy printing/emailing. I'm trying to add support for CGM files but have not been able to find any libraries to help me do so. Is this something that I can possibly do natively within C#? Or are there any .NET based libraries that could help me c...
stackexchange/codereview
I am unable to print/compare the letters æøå with the uppercase letters ÆØÅ. My code is running on Mac OS X 10.6.4 in Eclipse STS 2.5 and I have set Eclipse to use UTF-8 instead of MacRoman. It seems that neither equalsIgnoreCase, toUpperCase and toLowerCase work, and I cannot print the letters correctly to the console...
stackexchange/codereview
The movie plays just fine but there is a quick black flash right before it plays. Is this a quirk resulting from setting the controlstyle to MPMovieControlStyleNone? NSString *url = [[NSBundle mainBundle] pathForResource:@"00" ofType:@"mov"]; MPMoviePlayerController *player = [[MPMoviePlayerController alloc] init...
stackexchange/codereview
I am posting this as a part of my effort in searching the best possible design solution for my requirement. I am currently working on a complex server control(not user control) in asp.net which is going to be rendered into html elements on the client side.And those html elements needs to do a ajax call backs to the ser...
stackexchange/codereview
I'm tryign to get my head around the use of System.Object.operator==(). My Effective C# book, and the page here (http://www.srtsolutions.com/just-what-is-the-default-equals-behavior-in-c-how-does-it-relate-to-gethashcode), says that: "System.Object.operator==() will call a.Equals(b) to determine if a and b are equal". ...
stackexchange/codereview
I am an ubuntu user and gedit is my preferred editor. Eclipse is my preferred editor for java project, but in the specific case of play framework, RAD java oriented, i'll prefer to use a light editor like gedit. So the question is: Is there a plan to provide some gedit plugin/snippets for the playframework ?
stackexchange/codereview
Here's screenshots: Here's the code I'm using to load the pictureBoxes to the Panel: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace WebServiceScanner { public partial...
stackexchange/codereview
I have a link labeled Get D1 which I need to center in the middle of the page. I tried text-align:center, but that works on the text itself and doesn't actually center the link in the middle of the page. Does anyone know the css trick for this? <div id="allds"> <div id="d1"> <a href="http://someurl.com" id=...
stackexchange/codereview
I've written a web application that makes use of exec() in order to run an external program. The program path is configurable and can be expected to have spaces on its name. As we all know, the Windows command prompt accepts spaces in file names or parameteres, you just have to double quote them: C:\>C:\Archivos de pro...
stackexchange/codereview
I have a site that gets deployed to over a dozen clients. The main website has a base template, and each client has a client folder that overrides the colours. The problem is that there are a lot of CSS files, so making a change that forces us to update every client takes a long time. The automated build process takes ...
stackexchange/codereview
.htaccess: Options +FollowSymLinks RewriteEngine On RewriteRule ^/category/([0-9]+)/?$ /category.php?category_id=$1 [NC,L] I put the file in: localhost/.htaccess "category.php" page is in: localhost/website/category.php I tried: localhost/website/category/4/ But it said: The requested URL /website/public/category/5...
stackexchange/codereview
I have a server application that is processing loans that are in different timezones. The server operates using UTC, a scheduled task will start a process on the server @ 08:00 Local time and select the loans in that time zone for processing. The server must check each loan then for certain loans set a timeout that wi...
stackexchange/codereview
I've just started using PHP Unit with Zend Framework and I have a problem with the memory_limit. Currently, the memory limit is set to 32M and when running all tests I get an fatal error: Allowed memory size of 33554432 bytes exhausted. Currently, I have: 7 files, 125 tests, 332 assertions. I only test the controllers....
stackexchange/codereview
I want to search 100,000 and 100000 only by querying 100000 (or only by querying 100,000). Is it possible to search like that. The purpose to perform this is, that user may add a comma at any place or no comma at all but the strings (100,000 or 100000) should be searched anyway...
stackexchange/codereview
I have read a lot of other questions at stackoverflow concerning my problem but I didn’t find a proper solution. I development an OSGI Application (Equinox) and use JPA (EclipseLink). Now I ask for the best way to get the EntityManager in the bundles which require it. When I publish the EntityManagerFactory as service ...
stackexchange/codereview
I'm trying to nest content tags into a custom helper, to create something like this: <div class="field"> <label>A Label</label> <input class="medium new_value" size="20" type="text" name="value_name" /> </div> Note that the input is not associated with a form, it will be saved via javascript. Here is the helper ...
stackexchange/codereview
first of all i will thank to who will help me out this.. my actually question is that , there is two pc in LAN in my house. and i make LAN connection between them, so pc1 is call as server because it has tomcat server and whole project which are made into jsp/servlet. then , how can i open pc1(server) 's jsp page from ...
stackexchange/codereview
I have just added an out bool parameter to a method I've written in order to get a warning in to my UI. I've used an out rather than getting the method itself to return false/true as that would imply the DoSomething failed/succeeded. My thinking was that the warnUser would indicate what the warning actually was without...
stackexchange/codereview
i have 2 text files, file_1: and the other file2 file_1: tango 12 beta 256 alpha 1700 tango 1200 file_2: tango 12 tango 125 hello world beta 256 alpha 1700 i need to remove lines in file_2 which contains file_1 entries. ie. read line by line from file_2, compare with file_1 lines, if match , remove , else append to...
stackexchange/codereview
Like in windows application when some event occurs, message box is appeared, click OK then previous window appears. Is it possible with c, c++ graphics application that display message box when some event occurs? It should show message box(rectangle graphic) and when pressed OK, it will disappear and displays previous ...
stackexchange/codereview
Say I have a complex application that does various things, e.g. brings up a window, loads some assets, processes a virtual world, goes into OpenGL, etc. Can I hibernate it, i.e. save its current memory state and resume it later at will in a safe manner? If to be safe it would have to restrict the user from some functi...
stackexchange/codereview
how to post to twitter using OAuth..?? i have tried the sample applications but they open the twitter site for login.(username/password)... but i want is ..i want to store the twitter details at the settings page.. i just want to post the text written in text field..i dont want to login every time ...i want it to be s...
stackexchange/codereview
I have a ListView that is being populated. I have checked the contents of the datasource and it contains valid data. Unfortunately, the number of rows is correct, but the text I want to display is not appearing. Here is how I am setting up the ListView: private void setupUI() { setContentView(R.layout.streamact...
stackexchange/codereview
Can anybody help get me past this error when I hit "Finish" when I'm in "Install new software" with Android DDMS and Development Tools in Eclipse 3.5.2? What's it trying to uninstall?
stackexchange/codereview
i want to Rails.cache a flickraw response (this is applicable to other un-dumpable structures as well) with memcached as follows: @flickr = Rails.cache.fetch('flickr_sets', :expires_in => 1) { flickr.photos.getRecent } the obvious error is TypeError: singleton can't be dumped i read a good post on that problem by zil...
stackexchange/codereview
I wanted to ask how to change a background image on a button created with Expression Blend 3, I know normal buttons in VS have a BackgroundImage property, but I can't seem to find it on this project, the idea is to change the background image when the button is clicked but I can't seem to find how to do it. The only pr...
stackexchange/codereview
As an example, the code I have to embed has an ID of the form: UA-3235632-1, but to use the data export API I need the ID from the URL of the proper page, in this case: 6270018. How do I get the real ID from the UA type ID?
stackexchange/codereview
I setup a file extension to be ignored, how can I tell if it was added to git? I use git add -A to bulk add files. btw, what popular GUI tools are used for diff's?
stackexchange/codereview
Working on an app that needs to take a large amount of text, paginate it based on user selected font size, etc., and display it with styles. Getting UIWebView to paginate a document has proven extremely troublesome. I have seen a wrapper for Core Text that apparently, takes care of layout, but my understanding is that ...
stackexchange/codereview
how do I add the description to my exe file made with qt the only description that shows is the title of the application the description type I want is the one in the exe's properties
stackexchange/codereview
I'm trying to apply a padding to the top of my TextField instance in my Flash application, much like you would using CSS. I haven't found any way to do this. You'd expect it to be a part of the TextFormat or StyleSheet classes, but it's in neither. I sort of found a workaround by adding htmlText to the top of the Tex...
stackexchange/codereview
I got a list of element displayed with a SimpleAdapter that gets the list of element to display. The element in the list of object (the one that I pass to the SimpleAdapter) have a field that I want to use to differentiate the style of elements (elments are TextView) to display but I don't know how to do it. Thanks in ...
stackexchange/codereview
I am using the python sleekxmpp library to do some work with gchat, my question is: how do I send a presence stanza so that other people see me as invisible (but still be logged on and able to send/receive presencce/messages? So far I have tried self.sendPresence(ppriority = "0", ptype="unavailable") but that seems to ...
stackexchange/codereview
What does the following mean? struct foo { ... char bar[0]; // Zero size??? }; I asked my colleagues and they told me it's the same as writing void* bar. As far as I know a C pointer is just a 4 byte variable (at least on a 32bit machine). How can the compiler know that bar[0] is a pointer (and thus 4 bytes long)?...
stackexchange/codereview
I am writing XSLT Transformation for converting ABAP data to XML and to your kind knowledge I don't know XML or XSLT either but still trying. PROBLEM: I don't know how to write transformation code for below XML string: <INVOICE-PARTICULARS SL-NO="1"> <INVOICE-PARTICULARS> Here "INVOICE-PARTICULARS" is an element, "S...
stackexchange/codereview
for ex : i ahve aliases : testuser sendmail -v testuser@localhost < t.mail , this is working but when i am trying from another host sendmail -v testuser@host.company.com < t.mail .. its not working .. i am not receiveing mail what is the issue how to reslove it
stackexchange/codereview
I have following code, after five tries (wrong words like" dfasfasfb") the application stops. After I say a wrong word, it says, "excuse me, I didn't get it" (in my language). But then there is a default break or something like that - how can I set the default to unlimited or 20? thanks <?xml version="1.0" encoding="UT...
stackexchange/codereview
I know I can validate forms in Spring, but can I apply similar validate to URL parameters? For example, I have a method in my controller as follows: public String edit(@PathVariable("system") String system, @RequestParam(value="group") String group, ModelMap model) throws DAOException { Can I validate the val...
stackexchange/codereview
I am able to see from the following link that, if password change, access_token will get invalidated. http://developers.facebook.com/docs/authentication/ So, how to identify when user change his/her password. I did not see anything about this in the graph api documentation. Please help me regarding this. Thanks, Gop...
stackexchange/codereview
In the code above, what is the meaning of placing "as="footer_links"?
stackexchange/codereview
I have a particular problem implementing my own collection which should support IBindingList. I have a collection class (DataCollection) for a particular data class (DataItem). The collection implements interfaces IBindingList, IList, IList<DataItem> and the DataItem implements INotifyPropertyChanged (and has public pr...
stackexchange/codereview
how do I get the dates even and the odd weeks by using c# must account for the start of month given by user and also accordingly the end of month with resect to the number of days possible in the month
stackexchange/codereview
I have problems with setting up/locating my output files in Xcode4 (beta 5). They are placed somewhere in ~/Library/Developer/ugly_path/.... I can't even select "show in finder" on my products. It is the same for a simple C project, Foundation tool and even Cocoa bundle. A Debugging works fine. Could you please point m...
stackexchange/codereview
I have some custom controls in my Canvas. That controls can be moved by drag and drop, or selected by click. Now, I implemented the Drag and Drop something like this: protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e) { base.OnPreviewMouseLeftButtonDown(e); this.isDragInProgr...
stackexchange/codereview
Need to exclude blocks that are located with a regular expression when preceded with # and any number of spaces. Here is a example file &START A=23 ... more data ... B=24 &END # &START A=34 ... more data ... B=24 &END &START .... block 3 of data across multiple lines ...
stackexchange/codereview
I'm trying to transfer my monotouch license to a new machine, so that I can code on that one instead. How can I go about doing that? I cloned everything from my old mac to my new mac, now when I build in monodevelop I get the error: Error 99: mtouch failed with the following message: Invalid license. Please reactivat...
stackexchange/codereview
I'd like for my URLs to look like this (similar to how Flickr has theirs set up). /photos/username /videos/username /blogs/username /photos/username/12345 /videos/username/12345 /blogs/username/12345 Is there a way to set those up as resources in my routes file instead of having to do a bunch of custom routes? In the ...
stackexchange/codereview
I am working on a Spring MVC web application, that uses a Jetty HTTP server, which contains a WebAppContext <bean id="Server" class="org.mortbay.jetty.Server" init-method="start" destroy-method="stop"> <property name="connectors"> <list> <bean id="Connector" class="org.mortbay.jetty.nio.Sele...
stackexchange/codereview
I've found the following Wicket sample code: package org.apache.wicket.examples.ajax.builtin; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.wicket.ajax.AjaxRequestTarget;...
stackexchange/codereview
I am trying to understand some assembly code and managed to finish most of it except a few lines. I am able to understand most of what is happening inside but am not able to fully understand what (and why it) is happening at the beginning and ending of the code. Can someone shed some light on this? int main() { int...
stackexchange/codereview
We are developing a app .The function of the app is "when we got a call automatically we have to reply through text/voice message .So,can you tell us whether it possible in iPhone.If means guide us to build the app. Thanks in advance , BrightRaj
stackexchange/codereview
In this post the solution to the problem is: list.Where((item, index) => index < list.Count - 1 && list[index + 1] == item) The concept of multi-parameter (ie (item, index)) is a bit puzzling to me and I don't know the correct word to narrow down my google results. So 1) What is that called? And more importantly, 2) Ho...
stackexchange/codereview
This is one I have not had to tackle before. I need to use alt tags on all images in a site including those used by CSS background-image attribute. There is no CSS property like this as far as I know, so what is the best way to do this please?
stackexchange/codereview
nHibernate allows you to sort column names easily, so long as the column name matches the mapping. So, for example: Map(Function(x) x.CreatedOn) criteria = criteria.AddOrder(New Global.NHibernate.Criterion.Order("CreatedOn", True)) Is all above board and cosy. However I'm having trouble getting the right syntax to...
stackexchange/codereview
I'm trying to get ILMerge working with a SL 4 class library (no xaml). I have a post build task: <Target Name="AfterBuild"> <CreateItem Condition="'%(Extension)'=='.dll'" Include="@(ReferenceCopyLocalPaths)"> <Output TaskParameter="Include" ItemName="IlmergeAssemblies" /> </CreateItem> <Exec Command=...
stackexchange/codereview
I know what the definition is of a Final class, but I want to know how and when final is really needed. <?php final class Foo extends Bar { public function() { echo 'John Doe'; } } If I understand it correctly, 'final' enables it to extend 'Foo'. Can anyone explain when and why 'final' should be used? In...
stackexchange/codereview
So I have code like: IplImage* redchannel = cvCreateImage(cvGetSize(destination), 8, 1); IplImage* greenchannel = cvCreateImage(cvGetSize(destination), 8, 1); IplImage* bluechannel = cvCreateImage(cvGetSize(destination), 8, 1); cvSplit(source, bluechannel, greenchannel, redch...
stackexchange/codereview
I am transferring different xml files via ftp and it's working fine. But one specific 90kb xml file getting corrupted during tranfer with ftp. Getting corrupted file with 6kb.
stackexchange/codereview
This Java-Code works: public void executeCommand(ICommand cmd) { // ICommand is an Interface if (cmd.getClass().equals(LoginCommand.class)){ } } But this Objective-C-Code doesn't work: - (void)executeCommand: (id<Command>)cmd { // Command is a Protocol if ([cmd isKindOfClass:[LoginCommand class]]) { // WARNING: ...
stackexchange/codereview
Can you derive from the JPA spec, if @PrimaryKeyJoinColumn(...), which doesn't have the insertable and updatable parameters, is the same as @JoinColumn(..., insertable = false, updatable = false) or @JoinColumn(..., insertable = true, updatable = true) when used on regular (non-inheritance) associations? Should t...
stackexchange/codereview
Is it possible to have views show a query based on the current node (not 1 set node but any node) my situation: A user submits a node with information another user can donate to that node from another content type using 2 fields: node reference (to pick the node) and integer (to enter donation amount) I need a block vi...
stackexchange/codereview
I have files in a directory. I would like to know if it’s possible to create a table with the list of the files (only the name) and the data of creation? But in each line of the table, a button to open the file of this line. Basically, a table with 3 columns (name, date, button), and the number of rows would vary depen...
stackexchange/codereview
I'm using this function to replace some strings from access in a word document. This function works pretty well Sub reemplazar(doc As Word.Document, after As String, before As String, replaceall As Boolean) With doc.Content.Find .Text = after .Replacement.Text = before .Forward = True ...
stackexchange/codereview
Scenario: I have a huge .csv file (million of lines) . With sqlldr (SQL Loader) I have to create a temporary table with all the data in the CSV. After this I have to do some processing on the temporary table (uppercase update some columns, etc.). After processing, I have to take every row from the temporary table, mak...
stackexchange/codereview
Is it possible to combine that stuff? I just need a simple log-in page even without db backend :) Username/pwd should be stored in the securityContext... Can somebody provide me a tutorial or show how the things must be configured? Thank you!
stackexchange/codereview
I have a subclass of QTcpServer: .h-file: #ifndef GEOLISTENER_H #define GEOLISTENER_H #include <QTcpServer> class GeoListener : public QTcpServer { Q_OBJECT public: explicit GeoListener(QObject *parent = 0); bool listen(void); signals: public slots: void handleConnection(void); }; #endif // GEOLIST...
stackexchange/codereview
I would like to use the AS "for each" syntax to loop over a collection of items. Within the loop I sometimes need to remove an item from the collection I am iterating over. Using a "for" loop, I would code this like (note the "--" operator to move the index back): for (var n:int=0; n<ac.length; n++) { var s:String ...
stackexchange/codereview
I've gone through the Apple's Sample Code using UIPageControl and ScrollView togther. I've created the same using viewControllers instead of Views. Now when i change the orientation from Potrait to LandScape, the ScrollView changes its orientation but UIPageControl remain in same position :( and instead of changing pag...
stackexchange/codereview
I have several divs on a page in columns of 2, so every 2 divs needs to be the same height. As far as I can tell the plugins available for to force equal height do all elements the same height, I just need each pair to be the same height. my markup looks like this etc I have the following jquery which works, but I am s...
stackexchange/codereview
I was wondering, when creating new Activity classes and then overriding the onCreate() method, in eclipse I always get auto added: super.onCreate(). How does this happen? Is there a java keyword in the abstract or parent class that forces this? I don't know if it is illegal not to call the super class, but I remember i...
stackexchange/codereview
We are in analysis mode for an embedded Linux system which will use an ARM9 processor around 400 megahertz. It would have multiple sensors and we would need to write logs to a SQLite 3 database. We estimate the maximum load imaginable would be between 100 and 200 database inserts per second. Is this reasonable or shoul...
stackexchange/codereview
Are class methods and methods in the eigenclass (or metaclass) of that class just two ways to define one thing? Otherwise, what are the differences? class X # class method def self.a "a" end # eigenclass method class << self def b "b" end end end Do X.a and X.b behave differently in any...
stackexchange/codereview
I'm looking for a free 3D vector / matrix library that handles canonical operations ala the OpenGL specification and GLU (dot, cross, rotations, translations, inversions, look at, etc). This will be used with ES 2.x+ apps. GLU and GLUT are not available. Platform is iphone OS 4.1 sdk. Seems like a waste of time to wr...
stackexchange/codereview
How to just execute a command in robotlegs without making him listening for an event? Another way, but not this one: "It is not necessary, and should never be done, to call the execute() method directly. This is the framework implementation’s job." http://knowledge.robotlegs.org/faqs/reference-mvcs-implementation/how-a...
stackexchange/codereview
When using Heat to auto generate it seems to create a whole bunch more components than what we want to actually ship. For instance, Have a service that needs to be installed, so we want to do service registration stuff, and it is also a com component so we want to do com registration. This is all in an MSVC# project a...
stackexchange/codereview
The Challenge The shortest program by character count that outputs the n-bit Gray Code. n will be an arbitrary number smaller than 1000100000 (due to user suggestions) that is taken from standard input. The gray code will be printed in standard output, like in the example. Note: I don't expect the program to print the ...
stackexchange/codereview
Can someone show a simple example on how to use fastcgi_finish_request() function? I googled but only found some general mention of it, some people say they use it successfully but I could not find a single example with code. For example, I have a PHP object. To send a response to a browser I generate HTML, then retur...
stackexchange/codereview
I'm trying to install the zip library. wonko:Desktop andrew$ alisp International Allegro CL Free Express Edition 8.2 [Mac OS X (Intel)] (Jan 25, 2010 14:49) Copyright (C) 1985-2010, Franz Inc., Oakland, CA, USA. All Rights Reserved. This development copy of Allegro CL is licensed to: Allegro CL 8.2 Express user ;...
stackexchange/codereview