instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I've created a stored procedure that takes parameters to create a user. If the user already exists it sets the output parameter to 'User already exists' and does nothing more. Now I've mapped this function (InsertNewUser) to my Entity Framework and am calling it like so: context.InsertNewUser(email, name, passwordha...
stackexchange/codereview
I am porting a VB6 application to C#. The VB6 app uses the csXgraph graphing library. I have no clue how to access COM objects using C# and don't know if it is even the best idea to do it this way. Does Visual Studio already have some kind of built-in graphing library that I can use with a SQL server database handling ...
stackexchange/codereview
In Fortran, a clear difference exists between function and subroutine: functions return one value, subroutines return no value. This introduce a cascade of differences between the two. One example is the calling semantics: you can call a function just as in other languages, but in order to call a subroutine you must is...
stackexchange/codereview
I have an application that loads 170 files (let’s say they are text files) from disk in individual objects and kept in memory all the time. The memory is allocated once when I load those files from disk. So, there is no memory fragmentation involved. I also use FastMM to make sure my applications never leaks memory. Th...
stackexchange/codereview
I've run into an issue where the BitmapData.draw() method isn't accurately subtracting image data from a .png that uses transparency. I've put together a test file that shows this behavior, it's located here: http://www.filedropper.com/shield_1 In a nutshell, a sprite drops from the top of the screen and when it inters...
stackexchange/codereview
I have three tables, with the following structure: http://dl.dropbox.com/u/2586403/ORMIssues/TableLayout.png The three objects I'm dealing with are here: http://dl.dropbox.com/u/2586403/ORMIssues/Objects.zip I need to be able to get a PartObject, and then pull all of its Attributes, sorted by the AttributeName in the...
stackexchange/codereview
I have written a shell script with a switch case and takes in options 1-5 and performs operations on the variables accordingly. My code works fine though theres a small change I would like to make in my code. When the code Enters the default case argument,after that it still prompts for "Enter two numbers: " and then p...
stackexchange/codereview
If your response in Sinatra returns an 'eachable' object, Sinatra's event loop will 'each' your result and yield the results in a streaming fashion as the HTTP response. However, if there are concurrent requests to Sinatra, it will iterate through all the elements of one response before handling another request. If w...
stackexchange/codereview
The fun part is, I do have .NET 4.0 installed, as well as all GTK#. I thought maybe I installed it in the wrong order or something ridiculous, so I uninstalled and re-installed everything. I even tried installing plain old mono, and then installing monodevelop, but I still get that same error.
stackexchange/codereview
I'm trying to create an app that will change a setting when the user holds the search button. It seems that the combination of the WRITE_SETTINGS permission and the fact that the activity is launched from another application using the long press makes the parent task crash. For example, if I'm looking at Google Maps an...
stackexchange/codereview
I have a Tomcat running as a Windows Service, and those are known not to work well with jstack. jconsole is working well, on the other hand, and I can see stacks of individual threads (I'm connecting to "localhost:port" to access it). How can I use jconsole or a similar tool to dump all the thread stacks into a file? (...
stackexchange/codereview
My website (developed in PHP) is currently having 2 sub domains and hosted on the same server hardware. Due to heavy traffic, I want to move one sub domain to another hardware. Is this possible? Generally domain Name Servers point out to hosting provider DNS entries. If there are two sub domains hosted on two different...
stackexchange/codereview
I am trying to redirect a 'HTTPrequest' from a JSP page to a servlet (located in a package); passing on variables that are stored in a session object. I had the idea to use: <jsp:forward page"/servletName"> <jsp:param name="var1" value="<%=beanID.getVar1()%>" /> <jsp:param name="var2" value="<%=beanID.getVar2()...
stackexchange/codereview
Hi My software is for 32 bit version , but if I switch to 64 bit version (in VS 2008) , does it make any problem on running ?
stackexchange/codereview
Reservation Problem there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reserve only 5 seat at a time. If person reserving seat , the care is taken that he may get all in row. if seats are not available in row then the arrangement is so that person group ...
stackexchange/codereview
I want to add a field name called UserId datatpe varchar(25) in all the tables.If the table already contains this field I dont want to add.Is it possible by using SQL query.Please give me some Ideas.
stackexchange/codereview
I have an pojo like this: public class LocationPoint { protected double la; protected double lo; public double getLat() { return la; } public void setLat(double value) { this.la = value; } public double getLong() { return lo; } public void setLong(double ...
stackexchange/codereview
what is the difference b/w abstract pathname and pathname string. I came across these two when i was reading about string separator
stackexchange/codereview
My usual hosting environment is a dedicated server, however for one project I am required to deploy Symfony onto a Linux shared hosting account. The project itself works fine, however, when I SSH in to the server the command line does not work as expected. For example, if I navigate to data/symfony/bin then type: php s...
stackexchange/codereview
Lately I have come across Null Object design pattern and my colleagues say it can be used to do away with the null pointer checks that are encountered throughout the code. for e.g suppose a DAO class returns information on Customer (in a value object called CustomerVO). My main class is supposed to extract the firstNa...
stackexchange/codereview
So I am getting an exception thrown that my Test project cannot open the SQLite assembly. However here is the output when I compile: ------ Build started: Project: Budget, Configuration: Debug x86 ------ Budget -> C:\Users\Scott\Desktop\Development\Budget\Budget\Budget\bin\Debug\Budget.exe ------ Build started: Proje...
stackexchange/codereview
http://www.quirksmode.org/dom/domform.html I was reading through the site as mentioned above and tried to implement it in my project. But it just doesn't work when i click on "get me more fields" button. Here is the code: <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4....
stackexchange/codereview
I know try/except can handle errors in my program. But, is there a way of making the error be displayed in the program execution, be ignored and let the execution go on?
stackexchange/codereview
I have a two table in relation with has_many assocation on theirselves. How can i call has_many table with where condition? When i call like "$news -> findNewsComment();" i get Comments. but i want specific comments, like just approved comments. is it possible something like $news -> findNewsComment(array('state_id = ?...
stackexchange/codereview
I've looked at different folds and folding in general as well as a few others and they explain it fairly well. I'm still having trouble on how a lambda would work in this case. foldr (\y ys -> ys ++ [y]) [] [1,2,3] Could someone go through that step-by-step and try to explain that to me? And also how would foldl work...
stackexchange/codereview
I inherited a substantial amount of code, including a visual studio project that is supposed to (as best as I can tell) build a .lib file. Visual studio says "... Generating Code... Creating Library... Creating browse information file...", and at the end, it says the build succeeded. In the release/debug folder, it h...
stackexchange/codereview
i wish to (unsurprisingly) line up the table headers with the columns. Ive tried using: <th><div style='width:30px;'>ID</div> but it doesnt appear to like it Strangely enough, i was able to use a div to set an initial offset like: <th><div style='margin-left:30px;' /></th> so how can i give each table header an actu...
stackexchange/codereview
Indoors on an iPhone 4. WiFi disabled Running the LocateMe SDK sample or my own code for 30-60 seconds produces horizontal accuracy of 2294 meters. Pretty inaccurate but reasonable for cell tower triangulation. Looking at other apps that do reverse geocoding or location stuff like Foursquare shows a similar lack of acc...
stackexchange/codereview
Hey, I have people registering on my website with their e-mail id. What is the best way to automatically send them e-mails as soon as they register?
stackexchange/codereview
Currently I have a url like this domain/index.php?cat=مال_وأعمال I want to set things up so that our Marketing people can publish url's like domain/مال_وأعمال I've tried several solutions including: mod_rewrite - the problem with this approach is that it becomes a huge .htaccess file since we need to write a rule for ...
stackexchange/codereview
Possible Duplicate: What is Context in Android? I think its a very interesting question: What is the "context" meaning/concept in Android ? Almost any things/object need context to working properly. What is the "context" represented? An integer ? a block of memory ?? or .....
stackexchange/codereview
I'm parsing an.ics file that includes time stamps of events like this: 20101008T230000Z This is, as far as I understand, expressed in UTC. Now, I want my app to display this time correctly, depending on the time zone where the iPhone user resides. So, as an example, if the user would be in London, the time would be d...
stackexchange/codereview
I (as some of you know from my other questions :)) am building a cocoa-touch static library, and I have the code [NSException raise:@"This is the name of my exception" format:@"This is my format", nil] scattered throughout my project as a shortcut to subclassing NSException. This is coming back to bite me, as that I ne...
stackexchange/codereview
Sorry if this was asked before or if this is stupid. I am making an application for security staff (night guards) to make his nights more interesting, Ill love to try embed TV Player inside WinForm. Problem is that TV tuner which I have has their own application and I can only reproduce TV Signal using that applicatio...
stackexchange/codereview
It's been a couple of decades since I've done any programming. As a matter of fact the last time I programmed was in an MS-DOS environment before Windows came out. I've had this programming idea that I have wanted to try for a few years now and I thought I would give it a try. The amount of calculations are enormous. C...
stackexchange/codereview
hi people i am new at php and wondering what does int(4) mean in creating this table. thanks for helping. CREATE TABLE mytable( name VARCHAR (50), age INT(4), email VARCHAR (50) );
stackexchange/codereview
I can traverse generic tags easily with BS, but I don't know how to find specific tags. For example, how can I find all occurances of <div style="width=300px;">? Is this possible with BS?
stackexchange/codereview
I put searchlogic in my gemfile... and now my rails server won't start :( this is the errormessage gems/ruby-1.8.7-p299/gems/activesupport-3.0.0/lib/active_support/core_ext/module/aliasing.rb:31:in `alias_method': undefined method `merge_joins' for class `Class' (NameError) from /Users/omiohoro/.rvm/gems/ruby-1.8.7-p2...
stackexchange/codereview
is there anyway to increase the size of the fb like plugin? thanks.
stackexchange/codereview
I'm trying to rename a database to a name with a hyphen (-). ALTER DATABASE one RENAME TO one-two; And psql returns an error: ERROR: syntax error at or near "-" What should I use as an escape sequence for "-" character or what's the way to do the above? Note: I've tried the '\-' and didn't work as well. Thanks....
stackexchange/codereview
I'm designing a database with three tables: user, game and (probably) register. I want to represent that a user can be registered on zero or more games. I use table register to register a user in a game. I also need to store the score of the user in a game. My question is: Can I add a column called score in table regis...
stackexchange/codereview
I am using an eCard program here to send invitations for an event and get the following notice: Notice: Array to string conversion in /nfs/c07/h01/mnt/108712/domains/christmasnativity.org/html/ecard/include/common.inc.php on line 32 Here is the code from lines 29 to 33: /* Clean up request: Remove magic quotes, i...
stackexchange/codereview
I am using YAML to import data into a db4o database and am wondering how I can structure my documents such that when I create an object, I can re-use that same object later on in another object. For instance, I declare a content type, and then a file after it that uses that content type. How do I refer to that content...
stackexchange/codereview
I'm attempting to create python module for getting MAC adresses by IP addresses. def getMACs(addressesList): def _processArp(pkt): spa = _inet_ntoa(pkt.spa) if pkt.op == dpkt.arp.ARP_OP_REPLY and spa in _cache.macTable: lock.acquire() try: _cache.macTable[spa...
stackexchange/codereview
I colour code of different form input fields, according to what their contents should be (mandatory/option/string/integer/float/etc) by using background an dborder. I would like to have a table showing a key to this, with an example of each. However, some of them are only distinguishable by their borders (e.g, red bord...
stackexchange/codereview
I'm using emacs.app 23.1.1 on OsX and trying to use git within a shell. When I use a command like git log-p, I get WARNING: terminal is not fully functional - (press RETURN) I also get something similar with git commit and I'm forced to use git commit -m. How can I configure emacs.app so this works within its shell?
stackexchange/codereview
package com.commonsware.android.threads; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.view.View.OnClickListener; import android.widget.ProgressBar; import android.widget.TextView; import android.widget.Toast; publ...
stackexchange/codereview
Problem: an ItemGroups array isn't correctly build based on the value passed in the exclude attribute. If you run this scrip it creates some sample file then tries to create an array called TheFiles based on the Include/Exclude attributes, problem is when the Exclude is anything other than hardcoded or a very simple pr...
stackexchange/codereview
How can i retrieve OR calculate the coordinates of the NW or SE corners of a Rectangle? I'm using Google Maps API v3 and I know there is the getBounds() method which returns the NE and SW coordinates of the rectangle. I need all four coordinates because KML 2.2 does not have a rectangle schema spec, it only has the po...
stackexchange/codereview
If I click on #parent I want to return the text inside it and not return the text inside nested layers (#child-parent, #child) <div id='parent'> this text is for parent <div id='child-parent'> this text if for child-parent <div id='child'> and this text is for child. </div> ...
stackexchange/codereview
I am having a UserControl with an ItemsSource that allows only objects, that can be enumerated (implement IEnumerable) and where I can add/delete items. How can I test the latter?
stackexchange/codereview
This drives me crazy: i'm using a datagridview (bound to a dataset) and textboxes also bound to the dataset (which means that everything typed into the textboxes is reflected in the datagridview). The datagridview is actually used only to show up the values (user is NOT able to edit anything in the cells). So: when the...
stackexchange/codereview
I have DataTable which feeds a dropdown list. The values of this dropdown persist when I click on the button whereas the datatable which feeds the list is null at next page reload. I need that this dataTable to also persist like its associated control so isn't there anything that asp.net has in its tricks bag to behave...
stackexchange/codereview
Possible Duplicate: The difference between the Runnable and Callable interfaces in Java What are the differences in the applications of Runnable and Callable. Is the difference only with the return parameter present in callable. Can you please provide a simple example which demonstrates the typical use of both. What...
stackexchange/codereview
How to create a gradient background like this
stackexchange/codereview
I'm trying to create a button programmatically and cannot change the origin. Here's the code: UIButton *newButton = [UIButton buttonWithType:UIButtonTypeCustom]; newButton.frame = CGRectMake(100, 200, 150, 50); [newButton setTitle:@"Hi There" forState:UIControlStateNormal]; [self.view addSubview:newButton]; The butto...
stackexchange/codereview
I have a problem where the data is represented in form of a tree (Ex: binary tree). The tree has nodes of different kind. So basically, there is a base class and then different nodes are derived from it. This data also needs to be presented on the screen (to the user) and this involves custom drawing of each nodes. How...
stackexchange/codereview
I have an array of 30 values and I need to extract from this array 3 different random values. How can I do it?
stackexchange/codereview
I just created a "C++ Standard Dynamic" library project using Xcode and compiled using LLVM 2.0. I notice that the PCH file contains the line #include <iostream> but the file Test.cp also includes that #include <iostream> statement. The strange thing is that by removing the statement in Test.cp, the build fails with t...
stackexchange/codereview
I recently restructured some data in a game I'm working on by making the folder structure more logical. I went through my code and made the updates for the new structure. However, everytime I try and build, I'm getting this error: Error 159 File 'Images\Defense Boost Large.png' cannot be found. The problem is, I can't ...
stackexchange/codereview
I have a User model and Posts model. I want to display the posts belonging to each user, via a URL say http://localhost:3000/my_posts/1" but Rails is reporting error saying that no matching route exits for http://localhost:3000/my_posts/1. Rails looks at the complete url : "http://localhost:3000/my_posts/1" as a ro...
stackexchange/codereview
In sql is it possible to script permissions as one can with the stored proc itself? So that I can simply tell somebody to hit execute and the proc and permissions just get created all at once.
stackexchange/codereview
I'm a Java developer and I'm using Ubuntu to develop. The project was created in Windows with Eclipse and it's using the Windows-1252 encoding. To convert to UTF-8 I've used the recode program: find Web -iname \*.java | xargs recode CP1252...UTF-8 This command gives this error: recode: Web/src/br/cits/projeto/geral/pr...
stackexchange/codereview
Is it possible to decipher the hostname given the sockaddr_in strucure? struct sockaddr_in { short sin_family; // e.g. AF_INET, AF_INET6 unsigned short sin_port; // e.g. htons(3490) struct in_addr sin_addr; // see struct in_addr, below char sin_zero[8]; // zero this...
stackexchange/codereview
Yesterday I was perfectly able to debug a rails application using Netbeans 6.9.1 (just clicking on the Debug Main Project). But now, suddenly when I try to debug I see the "Server Startup" at the bottom... but after 30 secs aprox. a message appears in the status bar saying "Cannot connect to web server, cannot show loc...
stackexchange/codereview
Possible Duplicate: Passing a Int value to another class I have been trying to get "getExtra" to work but without success, I have a listview with 4 choices which launch a webpage within a webView class, when the user selects the option lets say option 3 I want to pass the value of 3 to the webView class so that it ...
stackexchange/codereview
I need a random number generator function written in nasm. I'm sorry for asking, but I couldn't find any!
stackexchange/codereview
I would like to handle the paste event in my UIViewController for my attached UITextView, so that if the pasted data is text or html it should paste the data in as normal and as it already does, but if it is something else like a image or pdf or anything, I would like to store the data locally in another way and not pa...
stackexchange/codereview
I have a jsp file in which I have a form. It shows data about an "account" data structure we have. There's a button to remove the data from that data structure. <form action="removeThisData.html" method="post"> ... blah blah blah ... <input type="submit" value="Remove"/> </form> Now, there's a component that I w...
stackexchange/codereview
The existing page has code to work with the old REST API: jQuery(document).ready( function() { FB_RequireFeatures(["Connect", "XFBML"], function() { FB.init('12345678ABCDEF','/xd_receiver.html', {ifUserNotConnected: fb_user_not_connected}); // real key replaced by 12345678ABCDEF which is to support "Login w...
stackexchange/codereview
Coming from the Ruby community I'm looking for a BDD-testing framework for Javascript/Node.js. I was JSpec and thought it would be the right choice because I used RSpec in Ruby. But on their GitHub page http://github.com/visionmedia/jspec it says it's no longer supported. They are abandoning this project? Does this mea...
stackexchange/codereview
I am trying to use HibernateInterceptor as a Advice and I am trying to autowire it. The code is as follows, @Aspect public class InterceptorAdvice{ private HibernateInterceptor hibernateInterceptor; @Autowired public void setHibernateInterceptor(@Qualifier("hibernateInterceptor") HibernateInterceptor...
stackexchange/codereview
How can I get id after an INSERT in SQL Server ? For my insert, I use context.ExecuteStoreCommand() Warning: I have a multi-threaded application which inserts "at the same time" some data in the same table.
stackexchange/codereview
Is there some library or built-in funcionality in J2ME to compress a byte array trough ZIP? I'd like to do something like this: byte[] data; byte[] compressed = ZIPLibrary.compress(data); Thanks.
stackexchange/codereview
Did I miss this information in the documentation? Am I going mad?? I'm debugging some payment issues and have just discovered that the following code is triggering our applicationWillResignActive callback in the app delegate. SKPayment *payment = [SKPayment paymentWithProductIdentifier:productid]; [[SKPaymentQueue def...
stackexchange/codereview
I have to develop a CRUD application, that will be coded in php. I have 3 main actors (Users, Administrators and Doctors -- this is for an hypothetical hospital), each one with different Use Cases already defined. Although I feel the Use Cases are more than enough to successfuly model the Class Diagram, I am being sp...
stackexchange/codereview
im trying to get the index of the annotation when the disclosure button is tapped using the (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { i have been pointed to the control.tag property, but whenever i use NSLog(@"tag value from contro...
stackexchange/codereview
Is there currently a way to disable TestNG test based on a condition I know you can currently disable test as so in TestNG: @Test(enabled=false, group={"blah"}) public void testCurrency(){ ... } I will like to disable the same test based on a condition but dont know how. something Like this: @Test(enabled={isUk() ? fa...
stackexchange/codereview
I'm woking on a PHP app that should show visitors in a world map, base on their ip-addresses. Have you tried/used any geo-information library in PHP? Something that can convert ip-addresses into geo-information? If so, please share your experience and recommendations.
stackexchange/codereview
I have a download page on my site. In order to reach it you have to fill out a form, unfortunately due to legacy coding beyond my control the form is processed via a script on another domain (where our crm lives). I am having trouble passing the session value that is added when you successfully submit the form to the d...
stackexchange/codereview
I installed RVM, then used it to install ruby-1.9.2 and then used rubygems to install rails 3.0. It lets me create a new app but then when I change to the app's root and attempt to generate a scaffold I get this error: Could not find gem 'sqlite3-ruby (>= 0, runtime)' in any of the gem sources. Try running `bundle inst...
stackexchange/codereview
I want to associate some custom data with some HTML nodes. I was going to use the new HTML5 style 'data-*' attributes. e.g.: <tr class="foo" data-typeid="7">…, and then I was going to select this HTML node and show/hide it etc. by reading the value with $(node).attr("data-typeid"). However this web page needs to work w...
stackexchange/codereview
I would like to create a div using css that resizes with the window. Example: #container { margin: 3em; } #header { height: 100px; } #main { } #footer { height: 100px; bottom: 0px; } container header main footer So when I resize the window, I want...
stackexchange/codereview
I have a simple table called "board" that has a column called "sid" - that is just integers. Many of these are duplicates. I want to know only distinct values in this column, so I do this: SELECT sid FROM board GROUP BY sid When I run this query directly in phpMyAdmin, I get the set I was expecting. No problem. However...
stackexchange/codereview
I am using PEAR Mail to send emails, and I found that if the "From:" field is something like From: Dragoş <email@example.com>, PEAR returns an error: Validation failed for: Dragoş <email@example.com> But, if I remove the ş, PEAR returns true and sends email. I tried to search on Google and StackOverflow for valid chara...
stackexchange/codereview
Given these two tables: [dbo].[Task] [Id] [Duration] [ScheduledStart] int int Nullable DateTime [dbo].[TaskDependencies] [Id] [PredecessorTaskId] [TaskId] int FK_Task_Id FK_Task_Id I'm trying to find the latest end date of the Tasks immediate predecessors. For the Task table, Schedul...
stackexchange/codereview
I want execute a command which needs sudo in local machine. So as the documentation suggests, I used the local command, but its asking me to enter the password. How can I avoid this? Is there some place where I can save my local machine password? local('sudo /etc/init.d/tomcat6 start',capture=True)
stackexchange/codereview
I have N number of sets Si of Numbers, each of a different size. Let m1, m2, ... mn be the sizes of respective sets (mi = | Si |), and M be the size of the largest set. I have to find common subsets that have at least two numbers in them. Example: Set Items 1 10,80,22 2 72, 10, 80, 26,50 3 80, 4 10, 22 5 ...
stackexchange/codereview
I'm trying to convert my once fully functional app from using the ancient feed templates to the new publisher stuff. However, when trying to init the new API I got the javascript error a28251737459_FB is not defined. Unable to debug or pinpoint the location of the error, I tried taking out everything on the app's main ...
stackexchange/codereview
please help me with this roll up/down side bar menu. I have made a video clip to demonstrate. http://www.youtube.com/watch?v=Eegqh1w3eJQ Here is html code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtm...
stackexchange/codereview
I've got 3 fields (grader 1, grader 2, grader 3) and I'm coming in with a grader ID and I want to make sure that grader id isn't one of the three (if they're not null). Did I do this right? WHERE @fycuserid <> ISNULL(grader1_fyc,0) AND @fycuserid <> ISNULL(grader2_fyc,0) AND @fycuserid <> ISNULL(grader3_fyc,0)
stackexchange/codereview
How would you make a radial gradient occupy the entire body? At the moment i can make the gradient just fine, but the problem is that the gradient only occupies roughly 100px by 100px. The body background is set to 100%, but still no luck. Any ideas? Below, is the CSS i'm using at the moment. body { background-color:...
stackexchange/codereview
Uisng this code ArrayList myItems = new ArrayList(); UserPrincipal oUserPrincipal = GetUser(sUserName); PrincipalSearchResult<Principal> oPrincipalSearchResult = oUserPrincipal.GetGroups(GetPrincipalContext(sOU)); foreach (Principal oResult in oPrincipalSearchResult) { myItems.Add(oResult.Name); } return myItems;...
stackexchange/codereview
I'm wondering how long it takes (in milliseconds) to read a registry value from the Windows registry through standard C# libraries. In this case, I'm reading in some proxy settings. What order of magnitude value should I expect? Are there any good benchmark data available? I'm running WS2k8 R2 amd64. Bonus points: How...
stackexchange/codereview
I have a need to provide a widget on a webpage that allows a user to enter in a zipcode or suburb to determine if the website's business delivers to their area (basically are they inside of some range/radius). Anyone know of any libraries (commercial or opensource that would help achieve this instead of writing my own ...
stackexchange/codereview
Imagine 3 system components: 1. External ecommerce web service to process credit card transactions 2. Local Database to store processing results 3. Local UI (or win service) to perform payment processing of the customer order document The external web service is obviously not transactional, so how to guarantee: 1. resu...
stackexchange/codereview
Is there any way to put an extra into the intent launched by a shortcut?
stackexchange/codereview
In C, I need to know the size of a struct, which has function pointers in it. Can I be guaranteed that on all platforms and architectures: the size of a void* is the same size as a function pointer? the size of the function pointer does not differ due to its return type? the size of the function pointer does not diffe...
stackexchange/codereview
I've got some HTML that looks like this: <tr class="row-even"> <td align="center">abcde</td> <td align="center"><a href="deluserconfirm.html?user=abcde"><img src="../images/delete_x.gif" alt="Delete User" border="none" /></a></td> </tr> <tr class="row-odd"> <td align="center">efgh</td> <td align="center...
stackexchange/codereview
While debugging one of the program's core dump I came across the scenario where its contained object which is polymorphic loses its VPTr and I can see its pointing to NULL. What could be the scenario when an object loses its VPTr. Thanks in advance, Brijesh
stackexchange/codereview