instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a need where i must pass some values from an Activity to another file which extends View class (instead of Activity) .... Its not the normal passing of values from one activity to another... In my Activity,i will pass some co-ordinate values to the class that extends View... In this class,i will draw an image an...
stackexchange/codereview
Check the test page here http://rickchristie.com/testfocus.html Correct me if I'm wrong: onfocus happens when the element gains focus. onblur happens when the element loses the focus. In Firefox 3.6.12 (tested on mac and windows), using onblur without onfocus works fine. However when an input element has both onfocus...
stackexchange/codereview
Does anyone know what the default jQuery ajax timeout value is?
stackexchange/codereview
I'm trying to create a "parrallel" bezier curve. In my attempts I've gotten close but no cigar. I'm trying to keep a solid 1px offset between the 2 curves (red,blue). My main goal is use a edge offseting algorythm to expand/shrink a svg path. Solution For anyone else who is looking for a solution, I've create a AS3 v...
stackexchange/codereview
I have a div with several nested divs. All the child div's are float:left so they are all on the same line. The parent div "newDistractor" has a width of 100% so as it's parent grows it does as well. All of the child nodes have fixed widths of 20px. I want the div "distractorText" to grow at the same rate as it's p...
stackexchange/codereview
i want to show a grid view' header even if the data source that bound to the grid is empty? Is there any way to achieve the same without adding a BLANK row?
stackexchange/codereview
I can't figure out why my QTextEdit is so big despite my having inserted it without stretch. I just want it to be one line. self.widget = QWidget() vbox = QVBoxLayout() vbox.addWidget(self.ppd_widget, 1) # this widget is big, and I'm pretty sure it stretches. hbox = QHBoxLayout() vbox.addLayout(...
stackexchange/codereview
From hours I'm trying to add bulk data in my locally setup MongoDB collection, all is set except unique index for a key or keys :( I've used this: ensureIndex({appid:1, userid:1}, {unique:true, dropDups:true, background:true}) then this (coz I guess for whatever reason, multiple keys index is not working) ensureIndex(...
stackexchange/codereview
How do I convert the following wsHttpBinding to a customBinding? I need to so this so I can increase the clock skew. This is for http. <wsHttpBinding> <binding name="wsHttpSecurityOptions" maxReceivedMessageSize="10485760" maxBufferPoolSize="524288"> <security mode="Message"> <message clientCredentia...
stackexchange/codereview
I'm trying to build a war file to be deployed to a tomcat server using Maven, but have noticed some strange behaviour when building my war file: When running the command from project folder: mvn clean compile package -DskipTests Maven version 3.0 produces a war file 12.079MB (49 jar files in WEB-INF/lib folder) Maven ...
stackexchange/codereview
Can anyone give me an example for recv from epolled, nonblocking socket in edge-triggered mode? I ask because I have some troubles.
stackexchange/codereview
Regarding my previous question, suppose the following scenario: I have a ASP.Net Webforms site (www.example.com) with 2 pages: default.aspx and result.aspx. In result.aspx I have a label: "Result page" In default.aspx I have a text box and a button The user types in his custom phrase (Custom_User_Input_Text) in the...
stackexchange/codereview
In Actionscript 3.0, how do I check if var myObject:Object is functionally identical to {}? I take it I can't do ... if (myObject == {}) { // etc } ... because Objects are reference types, right?
stackexchange/codereview
Is this even possible: I would like to write a script that could connect to my PC and read files from a folder, and serv them up. So I could be on a random computer but access my personal files through a php website thats not hosted on the same computer. Sorry if this is a dumb question. -_- Thanks
stackexchange/codereview
I have a DataView which has two columns: ContactID, and Name How can I check if a particular ContactID is already existing in the DataView?
stackexchange/codereview
I wrote a little PyGTK app: Workcycler Now I have the problem that I need to hit the quit button twice for it to quit and I don't know why. I´ve tested it extensively and it allways calls all quit functions but the program simply doesn't close after the first time. It's a pretty short script so could someone please hav...
stackexchange/codereview
Is this safe: int main() { boost::int16_t t1 = 50000; // overflow here. boost::uint16_t t2 = (boost::uint16_t)t1; std::cout << t1 << " " << t2 << std::endl; } To be even more specific: I'm storing this data in a table which is using signed types in its schema, is it safe to store, and retrieve this data ...
stackexchange/codereview
I have been using Moq and initially Rhino Mocks over the last year together with TDD. I have really enjoyed developing in this way however I have come to a point in my project where I feel maybe this is not what I need to be doing. I have tested and drove out my design and all works fine. Now I have a layer above my ob...
stackexchange/codereview
I have a dataset dsvalue that has columns Id and views. An other dataset has quite a number of columns including Id. So for each id in dataset ds, i should add a new column "Views" and merge it with views from dsvalue. How is it possible. Thanks in advance!!
stackexchange/codereview
I'm making a ruby server with a cache of info about the online clients. This info should be preserved when I turn off the server. I can store it in a simple array and save it with Marshal or I can use a SQL database (MySQL, probably). Which is better to use? I think the Array method is easly, but the SQL is faster than...
stackexchange/codereview
I am trying to configure JTA Transactions with Atomkios in Tomcat 5.5 for jndi support I am using spring,jpa+hybernate when i m trying to access my database, i am getting the error like this org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.to...
stackexchange/codereview
Situation: Before deleting an entity from a list through notifyTopics it asks for confirmation. <script type="text/javascript"> (function($) { $.subscribe("/confirmDeleteArticle",function(event,data) { if ( confirm('<s:text name="article.msg.confirm.delete" />') ) { return t...
stackexchange/codereview
Can anyone explain what is happening here, at first glance I would consider this to be bad practice. My question is: in the example below am I creating a new getter for model with -(id)model (i.e. overwriting the original from the @property), or am I just masking the @property getter with this new same named method? @i...
stackexchange/codereview
I am trying to create a Pivot List Application with Panorama view using Silverlight for Windows Phone. On some demo website and in some online tutorial, I was able to see an Installed Template by name Windows Phone Pivot List Application in VS2010. But When I open my VS2010 Express for Windows Phone, I could see only 3...
stackexchange/codereview
So I have a UITabView Controller that was created in interface builder. The title and image properties of UITabBarItem were set in IB. A Tab Bar Controller object is present in the xib and all necessary connections are made. I am able to call simple commands such as [tabBarController setSelectedIndex:1]; Everything w...
stackexchange/codereview
I'm considering this issue largely a C++/C# programmer, which might help put things into perspective. I haven't been able to find a simple answer to my question, so I apologize if there's one readily available out there. This seems like it'd be a very common issue. Suppose I have class A, which is a container for insta...
stackexchange/codereview
I want if checkbox1 is checked then textbox45 will be visible and textbox1 will be disabled.. but i want textbox45 will take place of textbox1. again if i check checkbox1 and checkbox 2 then textbox1 and textbox 2 will be visible in 1 and second row of the asp.net table ... how to do this ?
stackexchange/codereview
I am trying to integrate new contact control in my app. Here is my code: - (BOOL) personViewController:(ABPersonViewController*)personView shouldPerformDefaultActionForPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifierForValue { return YES; } -(IBAction)addc...
stackexchange/codereview
I found some jquery scripts to deal with tracking outbound links in Google Analytics. But they all seem to have some flaws: http://iso-100.com/blog/post/updated-script-for-tracking-outbound-links-in-google-analytics-with-jquery/ Disadvantages: Uses trackPageView and does not contain a "setTimeOut"-function as suggest...
stackexchange/codereview
Howdy, ya'll! First question on StackOverflow! :-) So here's the scenario: We're working on a web app with Silverlight 4 and using WCF RIA Services 1.0 SP1 Beta for the web service. I have my entities in the Entity Framework Designer, but I'm using a slightly-modified ADO.NET C# POCO Entity Generator template to genera...
stackexchange/codereview
I have an application which uses an asp .net chartarea to create a chart on a report. The chart displays perfectly in the browser window when it is run. When I try to print preview it or print it outright, sometimes the chart is just showing as an x, seeming that it cannot locate the chart. For some users, it works ...
stackexchange/codereview
How to prevent paint client area in wm_ncpaint.
stackexchange/codereview
I am working on extending an ASP.NET 2.0 application using an InterBase database. My experience is in PHP/MySQL, so my familiarity with ASP is currently in the 2-week range, and is pieced together from examining a co-worker's code, the first 90 pages of my ASP book, and Google. In the application, I have an SqlDataSo...
stackexchange/codereview
I am using Hibernate to map objects to entities and I have started to use an Entity Manager. This might be a silly question but what actually is the reason for using the entity manager? Previously I would have used a HibernateSessionFactory to get a session and then use that session to pull/push data.
stackexchange/codereview
Is there an extension of jquery to obtain from a set of params: categories[]=Shop+Mac&categories[]=Software&price_max=2799&price_min=24&sort=&page=1 a JSON object like: { 'categories': ["Shop Mac", "Software"], 'price_max': "2799", 'price_min': "24", 'page': '1' } ...?
stackexchange/codereview
i'm working on a website for my uni work, and it has to allow login access for different users. My tutor has told me I should be using a session variable/array to store all the users data such as first name, address etc. In my design I just have the userID and Email address (email is used to login) and then functions t...
stackexchange/codereview
I have an MSI created using installshield. When I install that MSI on Windows XP, device is deteced. .sys file is created in C:\Windows\system32\drivers directory and C:\Windows\system32\driverstore also has the related device folders. But the same MSI fails to install drivers on Window7. In other words, neither device...
stackexchange/codereview
Is there anyway that I can exclude an ID field from the generated URL, but still be able to use the ID value? If you take a StackOverflow URL: http://stackoverflow.com/questions/3409196/asp-net-mvc-routing-question Can that URL be rendered without the Question ID?
stackexchange/codereview
I searched the web and didn't find the answer, so I thought I give it one last shot here. In my app the user has the possibility to choose images from the photo library. I don't want the user to be able to choose the same picture twice, so I am searching for a way to identify an image and to compare it to the already c...
stackexchange/codereview
I've been trying to use the UnderC library (gives c++ scripting functionality) in a program in Borland C++ Builder (in Windows XP), but it's giving me difficulties that I'm not sure how to fix. Other problems that've come up, I found solutions to them online, but this one is hard to describe with easily searchable wor...
stackexchange/codereview
Alright, so I have the following output: <p style="margin-top: 0"> </p> that I want to be replaced with <br />. I have the following code: string.replaceAll("<p([^>]*)></p>","<br/>"); What would I need to put between the > and < tags in order to replace only paragraph tags that have white space? That is, no characte...
stackexchange/codereview
How to you make it so if a user does something, it asks them how they want to do it and it brings them to that application? Like if you go "Share" a photo or video it pops up a list with all apps that can do that for you like facebook or text or email , ect.? I am asking how to have my app use other apps, not them use ...
stackexchange/codereview
I want to add pdb—the Python debugger—to my toolbox. What's the best way to get started?
stackexchange/codereview
I would really like to be able to see my code in action because it is failing, but i don't know where.
stackexchange/codereview
The 2nd code branch below outputs all images found in the directory ($dir). I'd just like to exclude any images from the output that appear in the $excludeImages array below: /* collect attached images into an array to test against */ global $wpdb; $excludeImages = array(); $excludeImagesFiles = $wpdb->...
stackexchange/codereview
can anybody tell me if there is a way to insert a conditional block to Makefile.am so that it will be passed further to a Makfile created by autotools? Here is an example: ifeq "$(SOMEVAR)" "" SOMEVAR="default_value" endif This seems to be a usual Makefile way of doing conditional things. Automake cuts endif line off ...
stackexchange/codereview
Well I am back again, stuck on another seemingly simple routine. I need to figure out how to do this with Perl. 1- I open a directory full of files named 1.txt, 2.txt ~ 100.txt. (But sometimes the lowest numbered filename could in fact be any number (27.txt) due to 0-26.txt already removed from directory.) (I found out...
stackexchange/codereview
Environment: We use TFS automated testing. We have several test suites containing test cases with linked automation. I create build definition that start testing on lab environment via LabDefaultTemplate.xaml workflow. Target: We need to test our product on several Windows versions (on XP x86, XP x64, Seven x86, Seven...
stackexchange/codereview
I have a problem with jQuery Drag&Drop. I have a draggable element and lots of dropTarget so I just want to know when I am dragging, my dragging element is over which element? Btw, Firefox provides event.originalTarget that points an DOM Element but it is equal to "undefined" in Google Chrome. Any suggestion? Thanks.
stackexchange/codereview
I'm a total noob at Android programming, and wanted to learn how to debug my apps. I can't seem to have my Log.i|d|v calls displayed in the LogCat. Here's the code that I'm using. As you can see I have defined a LOG_TAG constant, but can't seem to find it in the LogCat. I have also imported android.util.Log AND I ...
stackexchange/codereview
We are learning higher-order functions in our class and our professor mentioned that they can be useful for web programming. I'm unsure as to what cases in which that would be true and was wondering if anyone had any experiences with higher-order functions in some common web programming tasks, and in what situations th...
stackexchange/codereview
How do I use custom TTF fonts in my Cocos2d iPhone apps?
stackexchange/codereview
At a point in my program, it opens a JDialog that displays information about what is going on as the program runs. It has several labels and a progress bar, but when the dialog window opens, it doesn't display anything. Here's the custom dialog and its constructor: public class DataMiner implements ActionListener { ...
stackexchange/codereview
As the title says have you got any available resource to start developing for iPhones? Books, Online resources, tools, development environment, pre-requisites and everything is related to iPhone programming will be good! Thanks
stackexchange/codereview
In SWT you can give any button a shortcut key simply by adding & in front of the letter in the button label. For example, if my button label is &Play, I can activate the button by hitting letter p on the keyboard. In Swing, you can add a shortcut key using the mnemonic property. However, you need to hit alt+p to acti...
stackexchange/codereview
Ho can I combine multiple pdfs(using url path) into one using tool like iText. I am able to combine pdfsfrom my c# code using iText when the files are stored on my hard disk(local path). But unable to combine when I am given the url to pdfs. Thanks in advance -Naresh
stackexchange/codereview
I am trying to build an app for a photographer. These are his requirements: Photographer can upload photos or files (files up to 20-30mb). Photographer can categorize photos and files by client. Photographer can create client username and passwords. Photographer can send email from web interface to link to download. ...
stackexchange/codereview
I am having a problem mapping a many-to-one relationship from an abstract base class mapping to a concrete union-subclass. Example: public abstract class Entity { public virtual Guid ID {get; set;} public virtual string Name {get;set;} public virtual User OwnerUser {get; set;} } public class User : Entity...
stackexchange/codereview
I'm trying to store a few values in a struct object and I want to repeat the prompt until the user types in "yes". I want to use a do-while loop for that. I'm already failing with the read-in of the first "last name". When I type in something, the program just stops (no error). I don't even use the do-while, since I'm ...
stackexchange/codereview
Sorry, bit of a long one... I'm having trouble inserting a unique HTML <title></title> into a PHP page on my website. I'm a novice when it comes to PHP so would greatly appreciate any help or pointers you can give :). Basically, I use a PHP script to display lots of "widgets" on my site. A visitor uses a drop-down menu...
stackexchange/codereview
Can you please help me, my application worked well, but when i did a modification on it, (i don't remember what kind of modification) i got this message in the console: [Session started at 2010-11-21 17:15:36 -0500.] 2010-11-21 17:15:37.472 ITMFR[3942:207] *** Terminating app due to uncaught exception 'NSUnknownKeyExce...
stackexchange/codereview
I have a database table with a column name as 'long'. It is a keyword of MySQL and not sure whether it is a keyword conflict or something, I cannot run some of the simple SQL script using this keyword-column name. I try to run the SQL to alter the column name, using: alter table mytable change column long lng double bu...
stackexchange/codereview
I'm using the Gravatar helper class from Microsoft.Web.Helpers like so <%: Gravatar.GetHtml("me@domain.com", 80, "identicon") %> which produces in the source <img src="http://www.gravatar.com/avatar/0ff2e377be7d73b15f0b48022a755717?s=80&amp;d=identicon" alt="gravatar" /> The image URL does work but shouldn't it be &d...
stackexchange/codereview
I'm porting my very simple Rails2 application using RGraph to Rails3. I've just copied script function from RGraph's example page. <script> window.onload = function() { var line9 = new RGraph.Line('line9', [56,45,43,52,56,65,21,23,34,15,21,-12,-13,-31,-25]); line9.Set('chart.background.barcolor1', 'white');...
stackexchange/codereview
I think according to W3 spec, you're supposed to do <input type="checkbox" checked="checked" /> And selected="selected" But, most browsers will accept it you just write "CHECKED" and don't give it a value. So, what if you do include the attribute, are there any values that would be (consistently) considered false?
stackexchange/codereview
I have already put nusoap folder in cakephp vendor folder ../vendor/nusoap/lib/nusoap.php (it has more than one files) I'm trying to include it as following but not working. What are the other alternatives? App::import('vendor','nusoap');
stackexchange/codereview
I'm currently investigating a windows crash dump and the Visual Studio debugger shows me an "illegal instruction 0xC000001D" when opening the dump file. The code position it shows this error shows a disassembly along the following example: void g(int x) { 00401E80 push ebp 00401E81 mov ebp,esp ...
stackexchange/codereview
I want signed integers to overflow when they become too big. How do I achieve that without using the next biggest datatype (or when I am already at int128_t)? For example using 8bit integers 19*12 is commonly 260, but I want the result 1 11 10 01 00 with the 9th bit cut off, thus -27.
stackexchange/codereview
I am trying a lot but it is not wroking. Here's my code: public class SchofferStr extends Activity { String summary = "<html><body>You scored <b>192</b> points.</body></html>"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView...
stackexchange/codereview
I'm using Spring 3.0.x with my project. My current practice with @Autowired is exemplified as follows: @Autowired private SomeType someMemberVariable; Is the use of a setter method better and/or preferred? By setter, I mean the following: private SomeType someMemberVariable; @Autowired private void setSome...
stackexchange/codereview
I have always worked in environments where developers had to go through a process of working with Network Operations (server guys) to deploy stuff from development/test to production. I recently started a job where developers can go directly from their machines to production with no middle man. Are there reasons tha...
stackexchange/codereview
I have a service (Service1) that uses another serice (Service2). I am using Dependency injection for both services and need to inject the proxy for Service2 into Service1. I am unsure how to deal with the fact that the proxy is not a simple class of type IService2 but a proxy inheriting from ClientBase as well. Obvious...
stackexchange/codereview
I have a small tray application which registers a system-wide hotkey. When the user selects a text anywhere in any application and presses this hotkey I want to be able to capture the selected text. I'm currently doing this using AutomationElements: //Using FocusedElement (since the focused element should be the contro...
stackexchange/codereview
how to cache all page before user visit my website. You can suggest i how to make that. Please more specify because i dont know much about cache, i only know use it in cakephp.
stackexchange/codereview
I am creating function (for example) to validate content, then if it is valid, close the view, if it is not, present further instructions to the user. (Or other such actions.) When I go to name it, I find myself wondering, should I call it -doneButtonPressed or -validateViewRepairAndClose? Would it be better to name th...
stackexchange/codereview
Hi I am now working on changing font size of a row. There seem to be no such settings in inspector. And I dont know which delegate method to override. Thx for your help :)
stackexchange/codereview
I'm attempting to create a grid style view (similar to NSCollectionView), except using Core Animation. I'm pretty far through it, and the last major thing left to do is implement scrolling. My setup so far is that I have an NSView subclass (layer backed), and upon initialization it creates and adds the grid layer as a ...
stackexchange/codereview
I have a few buttons in a tab layout for which the OnClickListener works fine. The purpose of these buttons is to start a new activity when clicked upon. I want my code to work for the touch mode of the phone as well. In other words I wanted to know how to implement the OnTouchListener for the code. Currently I have so...
stackexchange/codereview
Can i make unit testing using cxxtest with visual studio 2010 professional?
stackexchange/codereview
Here's my model, what it does is pulls a particular post from a user. Each post may also have comments, which are stored in an array called comments. I have everything working and I'm able to display the post along w/ the comments. The issue is, each comment has a post_date that displays when the comment was made. I n...
stackexchange/codereview
In C, consider the following "inline" string arrays: char *string1 = "I'm a literal!"; char *string2 = malloc((strlen(string1) + 1) * sizeof(char)); //Do some string copying ... char string3[] = {'a','b','c','\0'}; char *stringArray[] = {string1, string2, string3}; Would stringArray simply contain a copy of each of th...
stackexchange/codereview
I'm looking for an editor or an IDE for my Clojure coding and I found this thread: Clojure editor/IDE recommendations on Mac OS X However I have a couple of questions: Which IDE offers the best Clojure environment (right now): IntelliJ, Eclipse or NetBeans? What are the advantages of Aquamacs (I read Rick is using it) ...
stackexchange/codereview
I am fresh guy in iPhone SDK. I am learning on building a socket communication application between iPhone and Mac. Since I have not used Objective-C before, the work is quite difficult to me. Could anybody post a sample code of socket communication application please? Thanks!
stackexchange/codereview
My ImageView for some odd reason is always displaying a picture in the middle, left of my screen despite the xml code insisting it to be in the center. I force portrait orientation in my app and here is my xml code for my layout: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orien...
stackexchange/codereview
I currently have a pretty huge string. I NEED to convert it into a C-string (char*), because the function I want to use only take C-string in parameter. My problem here is that any thing I tried made the final C-string wayyy smaller then the original string, because my string contains many \0. Those \0 are essential, s...
stackexchange/codereview
I have a classifieds website... Each classified is displayed in a php page called show_ad.php I am working on a "tip a friend" function, where users enter their own name, the friends email and a short message to the friend. The above is no problem, however, I need to make sure bots don't use this form for "spam" etc......
stackexchange/codereview
HI, How to do Bitwise AND(&) on CString values in MFC(VC++)? Example : CString NASServerIP = "172.24.15.25"; CString SystemIP = " 142.25.24.85"; CString strSubnetMask = "255.255.255.0"; int result1 = NASServerIP & strSubnetMask; int result2 = SystemIP & strSubnetMask; if(result1==result2) { cout << "Both in Same...
stackexchange/codereview
Here's my scenario: the company I work has applications deployed to a 32bit Windows 2003 server and they want to move to a Windows 2008 Server that is 64 bit. It has been noted that these 32bit custom developed applications will not run on a 64 bit machine. I was not aware of this. I have always thought that 32bit so...
stackexchange/codereview
I have code something like this. ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "Submit", "Confirm()", true); Confirm is the JavaScript function in .aspx page. I want to catch the "true" or "False" value returned based on the Click performed on the Confirm window to my code behind(aspx.cs) page. Do we h...
stackexchange/codereview
I have a "a pain in the a$$" task to extract/parse all standard C functions that were called in the main() function. Ex: printf, fseek, etc... Currently, my only plan is to read each line inside the main() and search if a standard C functions exists by checking the list of standard C functions that I will also be defi...
stackexchange/codereview
In our application we have links to dynamically generated PDF documents. The links look something like this host/22-5/file_3136.pdf so to the browser it seems like a static pdf document. When link is clicked it opens a new window. That window receives PDF document only (no HTML) with headers like: Content-Disposition: ...
stackexchange/codereview
I am trying to make my Ajax-enabled table pagination 508-compliant (accessible using JAWS version 9). I have a table header cell with a link which executes a jQuery ajax request onclick with a callback to update the table. I've had success using a "spacer" image inside the link body with alt text conveying sort informa...
stackexchange/codereview
I'm using the datetimepicker from this site: http://trentrichardson.com/examples/timepicker/ It works nice, but not perfect. I need to make the "Today" button set the field to "2010-11-21 23:24" instead of "2010-11-21". Important is, that when I don't use the timepicker (because it's the jQuery UI datepicker extension)...
stackexchange/codereview
I'm working on a simple programming language for kids, based on Karel. For controlling program flow, I currently provide these facilities (in pseudocode): defining parameterless procedures if [not] EXPRESSION STATEMENT while [not] EXPRESSION STATEMENT I don't have any means to return from a procedure, and I don't pr...
stackexchange/codereview
I am a new user to mysqldumpslow and I am trying to understand the following: a) What is the difference between Query time and average query time ? b) For a query like this : Count: 12 Time=363.73s (4364s) Lock=0.00s (0s) Rows=0.0 (0), ekb[ekb]@localhost delete from sys_temp_random What does this time value repres...
stackexchange/codereview
This is C# related, but actually the question is quite generic. Let's say that I have a base class abstract class Base { protected List<string> MyList = new List<string>(); protected abstract void FillMyList(); } class Derived : Base { protected void FillMyList() { MyList.Add("test"); MyLis...
stackexchange/codereview
Is there a way to point Ruby FFI to a header file instead of writing attach_function calls? A header file basically has the same exact information. temp_convert.rb: attach_function :temp_convert, [:float], :float temp_convert.h: float temp_convert(float temp);
stackexchange/codereview
I have a working example of a service that gets notified form an alarm manager object, the interval changes according to the user's preferences, this works fine when the interval is 5-10-20-30 minutes but when I schedule an alarm for one hour my service is never notified,is there any known bug about that? shouldn't the...
stackexchange/codereview
I am relatively new to Java (well, might as well be new, it's been about 10 years) and Android programming. I have built an app with a main activity and two "sub" activities that are activated using two buttons on the main activity window. Everything is working fine. However, when I install the application on my phon...
stackexchange/codereview
I use a autoloader to include classes. What i'm doing right now is using "glob" to read different dir's and push them in an array. Is there a better solution to this? $path = './'; $files = array_merge( glob($path.'includes/classes/system/*.class.php'), glob($path.'includes/classes/system/baseclasses/*.class.php'), g...
stackexchange/codereview