instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a process that continuously needs to write information. Furthermore, there is a second process which sometimes connects to the "information channel" of the writing process and should read the information that are written since it's connected. This process might also deconnect and reconnect several times again. I...
stackexchange/codereview
I have some vars live: int foo1; int foo2; .. and I want to reach them from: for (int i = 1;i<=2;i++) { // howto get foo1 and foo2? } how to get them? EDIT, end what when it will be no int but a Opject *pointer;?
stackexchange/codereview
I commented out the line of code that enables lazy loading from all the ctor overloads for my ObjectContext class, yet when I iterate over a navigational property, the iteration is successful. Why? Here's the relevant bits of code. public MyExpensesEntities() : base("name=MyExpensesEntities", "MyE...
stackexchange/codereview
I'm trying to use Microsoft.Office.Interop.Excel. It seems to load fine but when I try to use it, all the defaults parameters are not working. Here is a screenshot that shows all those bad values Whenever I try to ommit them, the compiler tells me that the function needs more than 1 parameter. This function is Open as...
stackexchange/codereview
I'm trying to checkout a external repository to my current working copy. This is my setup: Current Working Copy D:\working_copy\ External Path D:\external_working_copy\uploads Then I setup the svn:external property to D:\working_copy\: uploads file:///D:/SVN/external_working_copy/trunk/uploads then if I run updat...
stackexchange/codereview
I am working over a small component for a web portal that show polygons over a map, using OpenLayers, Google Maps, and another proprietary source . The user has the points in PSAD56 (UTM) datum and I need to change it to WGS84 in order to use with Google Maps. I have at hand both Oracle 9i without spatial extension...
stackexchange/codereview
I have a searchBar (with scopeBar) where I want to dismiss the keyboard when the server returns relevant results. I have the following code: - (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView{ [search resignFirstResponder]; //height - navBar - searchBar - carrierBar - uitabbar CGRect newFrame ...
stackexchange/codereview
I am using gwt-visualisation chart But is there any way to add click handler to x-label Thanks
stackexchange/codereview
I want to get currently logged in active directory user name/details. Here, User does log in to machine with its AD username and password. How can i get this user name and other details in Global.asax file for Application_AuthenticateRequest() Event. I have used System.Security.Principal.WindowsIdentity.GetCurrent()...
stackexchange/codereview
I have following task: In the program we should draw lines on a bit mapped display. An array of n pairs of reals (ai,bi) defined the n lines yi = ai*x + bi. The lines were ordered in the x-interval [0, 1] in the sense that yi < yi+1 for all values of i between 0 and n-2 and for all values of x in [0, 1] Less formall...
stackexchange/codereview
I have a gridview with an enormous viewstate that I am attempting to shrink. I have turned the viewstate off in the control(which the gridview is in) but this seems to have done next to nothing in terms of the page size. Now the gridview has buttons and dropdowns in it, which I know add to the size. But cannot be help...
stackexchange/codereview
just to know, is it possible to send password through an Ajax request safely? I've a login box that calls an ajax request to try the login/pass and retrieve a JSON Object with errors (if any). Should I use a form redirection instead? [EDIT] Store the encrypted password in the database isn't the solution because the log...
stackexchange/codereview
I have successfully implemented touchesMoved and it is drawing line properly now I am facing problem in implementing erase method, please assist me where I am lacking. - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { mouseSwiped = YES; UITouch *touch = [touches anyObject]; CGPoint currentPoint = [...
stackexchange/codereview
I have bees searching for a good solution for Tree Data Structure in Rails 3. I'm trying to build a Tree menu. What do you use and what would you recommend?
stackexchange/codereview
I am trying to get to grips with the basics of authentication in Rails. To start with I have used the nifty_authentication generator by Ryan Bates. It's helping me learn the basic options for user logins etc. I have a simple application the has a person and gift table in the database. The idea is, each user creates a l...
stackexchange/codereview
I have made a major refactoring of some code, and in the process I have commited several times. This has not been pushed to any public repo yet. Before pushing, I would like now reorganize the commits into logical units. The problem is that I want not only to squash commits but to reorganze the hunks into other commits...
stackexchange/codereview
I have a data module that includes Vendor objects and VendorCategory objects. Each vendor has multiple categories, and each category can have multiple vendors. I need to list all vendors under a given category, and all categories under a given vendor. The primary operations are on vendors, so I'm writing code to update...
stackexchange/codereview
Is it possible to force an error state to return to an ajax request from a PHP script? I am handling the success and error states in an ajax request and I want a way to force the error. The error only seems to be triggered by xhttp error and I want to trigger this when a condition is not met at the server. Its seems ...
stackexchange/codereview
In Eclipse Java EE perspective, how does one add a thridparty Jar to a Utility Project? To elaborate: In a "normal" Java (Not Java EE) project, there's Referenced Libraries where you can put jars. In a Dynamic Web Project, there's Web App Libraries. In a Utility Project, there's only EAR Libraries, which don't appear r...
stackexchange/codereview
Hy! I need to upload a group of images using flex with robotlegs. I need a progress bar to work when image is uploading. It might upload 1 image or more at the time. I want to know if uploading byteArray to server and then save the image is too heavy for the server. In the server side I have a method that is made by...
stackexchange/codereview
I'm trying to get some basic information about a user in a PHP script (id and name). I have tried the following methods: $retrieve = curl_init("https://graph.facebook.com/me?access_token=$accesstoken"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($retrieve, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONN...
stackexchange/codereview
I need to darken a UIImageView when it gets touched, almost exactly like icons on the springboard (home screen). Should I be added UIView with a 0.5 alpha and black background. This seems clumsy. Should I be using Layers or something (CALayers).
stackexchange/codereview
When I set a maximum scale and when I rotates orientations back and forth, the web page isn't centered on the phone. So using this code <meta name="viewport" content="width=device-width; initial-scale=0; maximum-scale=2;"> How can I mimic the CSS effect of margin: 0 auto;.
stackexchange/codereview
I have one Windows Service/Application running silently on the PC, when user starts any program , i need to count the time and close it down (program) in 15 Minutes. Even when the user close down the particular program ( say winword.exe) with in 15 min, and reopen it... the program should automatically close on 15 th m...
stackexchange/codereview
I wanted to get some help on this. I need to take the link that is being pulled in from a feed and extract a portion of the url and then populate it in an img tags src. html += '<'+ options.titletag +' class="rssRow '+row+'"><a href="'+ entry.link +'" title="View this feed at '+ feeds.title +'">'+ entry.title +'</a></'...
stackexchange/codereview
I am trying to use static fields in QT class MyLabel:public QLabel{ Q_OBJECT public: static QPixmap pix1; static QPixmap *pix2; static int WasInited; ... }; int MyLabel::WasInited = 0; MyLabel::MyLabel(){ . . . if (WasInited==0) pix1.load("pic.png"); // Error if (WasInited==0) pix2->load("pic.p...
stackexchange/codereview
I keep getting the first entry appended 4 times instead of one time.. when I append my first entry to the Queue it appends it 4 times..I thought this might be the problem..but it looks like it isn't. I can't find where the problem is.. I also created a print function for the nodes, and it showes that there are 4 of the...
stackexchange/codereview
I have a sizable legacy MS SQL database where foreign key relationships were never implemented. Is it possible to implement "logical" foreign keys between entities in Entity Framework 4 without there being actual foreign key relationships present in the database?
stackexchange/codereview
I am a college student trying to create a website for my professor. Since I have no background in computer science, I opted for iWeb, and I have run into some problems. While iWeb is sufficient for most of our purposes, we would like to integrate a drop down navigation bar that requires an external code. I found a pro...
stackexchange/codereview
My model User contains only field hashed_password but not password and confirmed_password, which are requested to provide when registering. How should I write the view in this case? Following code will generate error Model User does not respond to password. 17: </div> 18: <div class="field"> 19: <%= f.label :pa...
stackexchange/codereview
I have this working regex (tested on regex coach): \n[\s]*[0-9]*[\s]*[0-9]*(\.)?[0-9]*(e\+)?[0-9]* that is supposed to pick up the first 2 columns of this file http://wwwhomes.uni-bielefeld.de/achim/highly.txt I read through the man pages, and it says that ^ will match at the beggining of the line so I replaced \n wit...
stackexchange/codereview
How do you print onto seperate lines like in Java with println? <script language = "javascript"> document.write("Your name is:" + fullName); document.write("You were born in:" + birthYear); document.write("You already had your birthday this year"); ...
stackexchange/codereview
For my web app i need to handle access requests. Requests are entered for a monday-sunday schedule specifying hours for each day. This week schedule can repeat up to 52 times. A user can have multiple schedules during a week (mon 8-9 and mon 10-11) There are the following requirements: Searchable/filterable Detect ove...
stackexchange/codereview
In 1987, I wrote the code I'm going to paste in a moment. The mechanism used here to capture the initial function binding of switch-to-buffer doesn't work any more, resulting in infinite recursion. I guess that there's a right way to do this sort of thing now, could someone please fill me in? (defvar *real-buffer-switc...
stackexchange/codereview
I,m getting the following error:- ERROR: Error installing rails: i18n requires RubyGems version >= 1.3.6 These the gems and ruby version installed in my system. :~$ ruby -v ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux] :~$ gem -v 1.3.7 :~$ rails -v Rails 3.0.1 :~$
stackexchange/codereview
Im writing an install and update-server for an intranet-application and I want the user to be able to install the app directly from a url such as: http://domain.local/myapp/install.exe where this request is handled by my service. I also would like to be able to serve some basic HTML on for instance http://domain.local/...
stackexchange/codereview
I want to get device phone number through JavaScript for validating user. I am sending sms to client when he clicks on a URL I need to perform some operation. For that, I want to get device phone number on smartphones.
stackexchange/codereview
I need some help with asp.net mvc Controller: <HandleError()> _ Public Class HomeController Inherits System.Web.Mvc.Controller Function Index() As ActionResult ViewData("Message") = "Welcome to ASP.NET MVC!" Return View() End Function Public Function GetMovieData() As ActionResult ...
stackexchange/codereview
In most cases whenan sql update query is posted my php script, it works without problem. However, in some cases I get an error from mysql. I'm using a encryption function to send data over the net, so it arrives as sent. If I post the same query into phpmyadmin, it always works. Do I need to add $sql = addslashes($sql)...
stackexchange/codereview
I'm using djapian as my search backend, and I'm looking to search for a range of values. For example: query = 'comments:(0..10)' Post.indexer.search(query) would search for Posts with between 0 and 10 comments. I cannot find a way to do this in djapian, though I have found this issue, and patch to implement some kind ...
stackexchange/codereview
I want to use something like: <body onLoad="init('A sentence with "quoted text" as parameter')"> Unfortunately, this does work, as the quotes in the parameter are not treated properly. Escaping the quotes also does not work <body onLoad="init('A sentence with \"quoted text\" as parameter')"> (Above also does not wor...
stackexchange/codereview
I am using the following hashing function provided in the K&R book. #define HASHSIZE 101 unsigned hash(char *s) { unsigned hashval; for (hashval = 0; *s != '\0'; s++) hashval = *s + 31 * hashval; return hashval % HASHSIZE; } In my project, I have more warnings turned on (warnings are treated as er...
stackexchange/codereview
I am using a FileSystemWatcher which uses the Created event to listen for when I copy files into this directory. this method is below: private void fileSystemWatcher1_Created(object sender, System.IO.FileSystemEventArgs e) { System.IO.Directory.Move(fileSystemWatcher1.Path+@"\"+e.Name, fileSystemWatcher1.Path + @"\P...
stackexchange/codereview
If I have a 2D array, arr[][], and let say I do this: arr[0]=10; What does this do? I only assigned 10 in the first dimension, but I didnt mention the second dimension. What happens in this case? Edit: Ok what about this: public static int[][] mystery(int[][] srcA, int[][] srcB) { 2 int width= srcA.length, height ...
stackexchange/codereview
I'm building an installation/upgrade package with WiX. I'm using the WixUI_InstallDir dialog set. What I want to do is to have a fully automated installation (no wizard) when performing a major upgrade of the installed product. Is it possible to: conditionally change the value of UILevel during the installation? (INST...
stackexchange/codereview
How do you make a context free grammar that analyzes mostly literal text (spaces, characters, symbols, etc.) while also looking for expressions of the form ${...} or $someCommand{...}? Note if it finds "I got $10 today", it should not do anything special with it. Is it possible?
stackexchange/codereview
I am trying to learn to use Expression Blend to build SilverLight UI. I am currently working with the ListBox and have managed to add it to my page. In addition, the list box is data-bound to a sample data source defined in Blend. But I am unable to figure out how to wire up the selectedItem event in Blend. Is this not...
stackexchange/codereview
I'm looking to have a slide down animation (popular on a lot of forms these days) with jquery. I have text injecting into a div. The text is fetched from a database. success: function(text, textS, xhr){ if(xhr.status){ if (text == "") { $("#resultsDiv").html(" "); } else { $("#resultsD...
stackexchange/codereview
Using PHP mysql_num_rows() returns "1" when running the query below on the table below when there are no matching rows present. Upon testing I found out that the problem happens when I use the SUM() function in the query. If I take SUM() out of the query mysql_num_rows() returns "0" like it should. Is there something e...
stackexchange/codereview
Not really sure how to do this but i can cache the dictionary like this: Cache.Insert("CacheName", Dictionary) need some direction. the dictionary is two string values taken from a database. The user will input a string and i need to compare it against the values in the cached dictionary.
stackexchange/codereview
I am trying to create a drop-down effect same as that shown in GMail. When u click a label a drop-down should open and the user should be able to select values. I think it can be possible by aligning a label / div over the select such that only the allow of the select is visible and when a user clicks on the label or a...
stackexchange/codereview
I have a for loop which gives a given integer sequence, for fixed parameters N and D : int i = 0, j = 0; for (int k=0; k<N; k++) { sequence[k] = i; if ((i += D) >= N) i = ++j; } I'd like to find a simple formula which reproduces this sequence, depending only on N and D (and the ind...
stackexchange/codereview
I need to let the user to download a file created on the fly from some data contained in the extension, but I don't want to do this server-side. As a real-world example : There is a variable containing the text "hello world". I want the user to be able to download/create a .TXT file containing such text. Is it possibl...
stackexchange/codereview
I'm trying to use MurmurHash (returning 64 bit hashes on a 64bit comoputer) and have sent it the simple 3 letter string 'yes' as follows char* charptr = "yes"; cout << MurmurHash64A(charptr, 3, 10); (where 3 is the length and 10 is the seed) This gives a 64bit hashed response as expected, I can set up more pointers to...
stackexchange/codereview
Basically as above. Gson gson = new Gson(); ErrorsDocument er = ErrorsDocument.Factory.newInstance(); er.setError("monkey escaped"); System.out.println(gson.toJson(er)); craps out with: Exception in thread "main" java.lang.IllegalStateException: How can the type variable not be present in the class declaration!...
stackexchange/codereview
I want to check page validation on client side, like Page.Validate() but it's a server side method. Is there any client side function which can work like Page.Validate() with JavaScript?
stackexchange/codereview
How can I add a class or ID to a Google Maps API V3 marker? I want to be able to access the markers using jQuery. EDIT: Hi clarkf, thanks for the response. Using Firebug I'm not able to see those classes when inspecting my map but I did notice there are two divs. One for the icon and one for the button. What I am tryin...
stackexchange/codereview
I would like to bind a complex object to a view. I create a custom ModelBinder inherited from DefaultModelBinder so if I post the form I can reach proper data in Controller. But if I want to send data to the view the data will not be binded. Which method of DefaultModelBinder should I override? Or anybody knows the sol...
stackexchange/codereview
I'm looking through the MooTools source to try and understand its .implement() and .extend() utilities. The definition of each refers to a function defined like this: var enumerables = true; for (var i in {toString: 1}) enumerables = null; if (enumerables) enumerables = ['hasOwnProperty', 'valueOf', 'isPrototypeOf', 'p...
stackexchange/codereview
I'm trying to make a little project for adding friends. When you click the add friend button you are sending an Ajax call with the friend id & username (they are the id and name attributes of each add button) to the add.php file. (The mysql structure is: 1 users table + X tables named the user's name(columns: friendid,...
stackexchange/codereview
Just wanted to know if it is possible to switch to an aliased directory using shell script. To switch to a directory there is cd command. But i have aliased the directory and wanted to know as how to switch to the aliased directory. Could someone please help me?
stackexchange/codereview
I'm trying to get my rails3 app & gem taps & heroku to play nicely together. One googled solution is to use an earlier version of sequel. So I'd like to try to have bundler use sequel v3.13.0 instead of sequel v3.15.0, but bundler says: You have requested: sequel = 3.13.0 The bundle currently has sequel locked at 3.15...
stackexchange/codereview
Looking at the python doc http://docs.python.org/library/urllib2.html urllib2.urlopen(url[, data][, timeout]) So, I pass in a url, then optional data and timeout variables (from how I read it). So if I want to pass a timeout, but not the data... whats the default variable for data? Do you just do, urlopen('http://www.e...
stackexchange/codereview
I am making a jQuery autocomplete and I have something between 10~20k registers. The data is static (i'll run a update script when i need) and I can choose to get the file from a JSON or embed in the page in a single line like: var title = ["example title 1","example title 2"]; Which one should I choose performance wi...
stackexchange/codereview
This might seem a simple question but I've been trying for a couple of hours now (without having to implement hashCode comparison) to make containsKey working. To simplify things I'll post a simple code example that i'm having issues with: public class myPair { private int a; private int b; myPair(int x, int y) { ...
stackexchange/codereview
Hai Friends, I want to know what is the best alternative to J2ME. When i referred Net i found the following, but i am still confusing that, which one is best alternative to J2ME. 1. Android 2. SuperWABA 3. JBed
stackexchange/codereview
static void llist_dtor(void *user, void *element) { (void)user; (void)element; /* Do nothing */ } Is it no-operation function? Then why is casting done? Is it ok to pass NULL as one of its parameters?
stackexchange/codereview
I have implemented an addressbook, I don't know what I do wrong, but whenever I select an address my whole app crashes and i receive the error > 2010-10-21 11:57:13.922 ANWB[2989:207] > *** Terminating app due to uncaught exception 'NSRangeException', reason: > '*** -[NSCFArray objectAtIndex:]: > index (0) beyond bound...
stackexchange/codereview
I get a date back from rails that looks like: "2010-10-29T00:00:00+00:00" And I'd like to convert a javascript date created by 'new Date()' to that format. Is there an easy way?
stackexchange/codereview
I coded a monitoring program in RPG that checks if the fax/400 is operational. And now I want this program to check every 15 minutes. Instead of placing a job every 15 minutes in the job scheduler (which would be ugly to manage), I made the program wait between checks using DLYJOB. Now how can I make this program "plac...
stackexchange/codereview
I would like to start a new project which will make extensive use of plugins. I know that both Eclipse and Netbeans have their respective Rich Client Platforms, both with their respective strengths and weaknesses. I would like some comments on which the Stack Overflow community prefers. Also, and most importantly, how ...
stackexchange/codereview
I am using LocationManger class to get user's current location. When i install application from App store and run application first time application ask me that " APP would like to use your current location." followed by "Don't Allow" and "Ok" button. At this point of time application works fine. Now I uninstall applic...
stackexchange/codereview
How do you get the UNION of these two queries: SELECT dom,sub FROM table WHERE table.dom = X OR table.sub = X SELECT dom,sub FROM table WHERE table.dom = Y OR table.sub = Y dom and sub are integers, both queries return a set of integers, how do you then get the union of these two sets?? Any assistance appreciated.....
stackexchange/codereview
Hello there I am using the following code for display the requested content.It is not the main page and here in this time only I need a css.But this CSS is not working.I dont know what is the reason.Please help me on this. echo ' <html> <head> <title>My site</title> <link href="css/main.css"/> </head> <body...
stackexchange/codereview
Ok this might be a bit confusing, but here goes. Let's say I have a a few select dropdowns on a page. <select id="filter" name="filter[]"> <option value="">-- Select Filter --</option> </select> <select id="load_choice" name="load_choice[]"> <option value="">-- Select Load_choice --</option> ...
stackexchange/codereview
# I have this class: class Test(webapp.RequestHandler): myList = [] def get(self): s = [self.request.get('sentence')] self.myList.append(s) htmlcode1 = HTML.table(self.myList) myListLen = len(self.myList) lastItem = self.myList[myListLen-2] # I want to add the following...
stackexchange/codereview
My app crashes after playing for more than 30 min on some screen due to low memory will my app get reject due to this? actually i tried a lot to solve but it shows no trace in instrument i even did all permutation combination of code by commenting checking what causing the problem but i was not successful to solve it y...
stackexchange/codereview
I don't know if this is the right place for this question, but here it comes: I have a db function that I tested and can handle about 3000 requests/minute. The problem is that this calculation just gives me the optimal performance of the function (~18ms/request). How do I calculate the performance when the requests are...
stackexchange/codereview
The code below is the ad that is being served. Since the ad is at the very top of the page, we want to make sure that it doesn't stop the site from loading if their server happens to go down. We are looking for either a javascript or C# ASP.NET solution. We have tried rewriting it to work on DOM Ready, but it does n...
stackexchange/codereview
A php variable contains the following string: <p>text</p> <p>text2</p> <ul> <li>item1</li> <li>item2</li> </ul> I want to remove all the new line characters in this string so the string will look like this: <p>text</p><p>text2><ul><li>item1</li><li>item2</li></ul> I've tried the following without success: str_replace...
stackexchange/codereview
I have a bunch of insert, update, and delete operations I need to execute via Ajax. Which of the following would be a better approach? Individual methods for each function (e.g. delete_foo, insert_foo, update_foo, delete_bar, insert_bar, update_bar, etc.) A "master" method and just pass a parameter to distinguish betw...
stackexchange/codereview
I'm interested in an operator, "swap-arg", that takes as input 1) a function f of n variables, and 2) index k, and then returns a the same function except with the first and kth input variables swapped. eg (in mathematical notation): (swap-arg(f,2))(x,y,z,w) = f(z,y,x,w) Now my first idea is to implement this using rot...
stackexchange/codereview
I was debugging an application and somewhere in the code, a thread tries to reach a listbox that was created by another thread. On attempt to access the listbox, the application throws a "Cross-thread operation not valid: Control 'listbox' accessed from a thread other than the thread it was created on" exception while ...
stackexchange/codereview
I have a web.config file which is quite large in my current solution running on IIS7. It's working perfect on my dev server however I encounter the error 0x80070032 "Config Error Cannot read configuration file because it exceeds the maximum file size" My current solution uses a very large web.config file. The architec...
stackexchange/codereview
i'm looking for a larger example of dependency injection and how it can be implemented. If class A depends on class B and passes a reference of class C to B's constructor, must not class A also take a reference to class C in it's constructor? This means that the main method in the application should create all classes ...
stackexchange/codereview
I use this code: <?php if(isset($_GET["hub_challenge"])) { echo $_GET["hub_challenge"]; } else { } $ch = curl_init("http://pubsubhubbub.appspot.com"); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch,CURLOPT_POSTFIELDS,"hub.mode=subscribe&hub.verify=sync&hub.callback=http://rssreaderbg.net/pubsubbub/example/index...
stackexchange/codereview
I am trying to create a custom look for the seekbar, and I created images for normal/filled and the thumb states. But the problem is that the images are not being scaled by android, instead are just tiled/clipped. How can I ask Android to scale the given images instead of tiling/clipping?
stackexchange/codereview
I do have a little expierence with database tables, but I can't read a db_query I believe to have a query which should enable a product as a bestseller and place it in scroller. I want to fake a bestseller because it looks a little dump when opening a webshop with having a empty bestseller list. I have manually altered...
stackexchange/codereview
I am a designer/front-end developer but I have to move the div with a class of "span-4" before the div with a class of "span-20." The developer who wrote the php is not available to ask how to not mess up his php markup. Thank you in advance for any help! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:/...
stackexchange/codereview
I've been using DevExpress and CrystalReports for previous .NET versions. I'm wondering if there are any native reporting controls for .NET 4.0, so I could do away with the 3rd party ones.
stackexchange/codereview
I am trying to create a php script that inputs the HTTP links pasted into a textarea into a separated row in a database. More exactly: First page is where the textarea (name=textarea-linkfield) is, links are going to be pasted here http://www.stackoverflow.com http://www.yahoo.com .... http://google.com The links are ...
stackexchange/codereview
What is the equivalent of the following command in C#? comm.Settings = "2400,N,8,1"
stackexchange/codereview
How can I import initial table data to a .mwb file? I know that there is an inserts tab for each table, but I would like to import around 200 records and I don't want to do this by hand.
stackexchange/codereview
I am attempting to port a small data analysis program from a 64 bit UNIX to a 32 bit Windows XP system (don't ask :)). But now I am having problems with the 2GB file size limit (long not being 64 bit on this platform). I have searched this website and others for possible sollutions but cannot find any that are directly...
stackexchange/codereview
I'm creating a WYSIWYG editor that saves the page via AJAX. How it works is you add your elements (text, images, etc) to a DIV via the editor, and when you click "save", it sends that DIV's HTML through AJAX to a script that takes this HTML and writes it into "index.html", so it'll update the front page. My problem: if...
stackexchange/codereview
I have some code int main(int argc, char* key[] ) { cout << strlen(key[1]) << endl; cout show 4. now using gdb (gdb)print strlen(key[1]) shows -147660784 What is the reason for this difference?
stackexchange/codereview
I have a UIButton defined within a tableviewCellWithReuseIdentifier. The button works but it's very touchy. If I just tap the button it works. Pressing it any long fails to trigger the action, even though it does flash showing that it knows it was pressed. Why is this happening? More importantly, how can I fix it. Here...
stackexchange/codereview
I wonder if and how it is possible to write a custom "protocol handler" (listening at a custom port) for Apache 2 in PHP? In C and mod_perl you can write so-called "protocol handlers", which intercept the early Apache stage (after a client socket connection has been accept()ed, but before any content has been written t...
stackexchange/codereview
I'm having a really hard time when trying to cancel requests in an NSOperationQueue. Before deallocating my 'engine' object, I call a cancelOperations method to cancel everything in the queue, so this will include in flight ASIHTTPRequests and queued ones... e.g. Engine.m -(void)getContent { if (![self queue]) { ...
stackexchange/codereview
Is there any fun, educational game (maybe a flash game, etc.) that help learning the concept of programming and training your brain to think like a programmer? Actually, I am not the one who will be playing it; it'd be my friend instead. I tried to help out my best friend through the university Java course (at my univ...
stackexchange/codereview