instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Although it looks terrible, I am not finding a nicer/more efficient way of doing this: ae = np.arange(0.0,1,0.05) aee = np.arange(0.3,1.01,0.345) aef = np.arange(0.3,1.01,0.345) random.shuffle(ae) random.shuffle(aee) random.shuffle(aef) for item_a in aee: for item_b in ae: for item_c in aef: ...
stackexchange/codereview
I used the built-in performance tuning tool and built indexes for my database. Since then I changed some of the queries from "select top 10..." to "select top 50". My question is do I need to rebuild my SQL server database indexes?
stackexchange/codereview
I am trying to inegerate Google Toolbox for mac for unit testing purposes on this page http://code.google.com/p/google-toolbox-for-mac/wiki/iPhoneUnitTesting is says add blahblah.m file to your target & add blahblah.m file to your project. What is the difference, how should I add to target...
stackexchange/codereview
I have an application that uses a UITableView to present data that I have stored in an NSArray. I would like to switch over to using Core Data to host this information to be presented to the table view, but I'm not that familiar with Core Data. I've created a new Core Data database within my project, but I'm lost as t...
stackexchange/codereview
I'm using a web service in my asp.net 3.5 application.The web-service is hosted in my live server and it is working fine. My web application is also hosted in the same server.But when i try to access the webservice from my asp.net web application hosted online,I'm getting the following error. [SocketException (0x274c)...
stackexchange/codereview
How can I extend an embedded interpreter with C++ code? I have embedded the interpreter and I can use boost.python to make a loadable module (as in a shared library) but I don't want the library floating around because I want to directly interface with my C++ application. Sorry if my writing is a bit incoherent.
stackexchange/codereview
I am trying to use 'gethostbyname'. If I hardcode a host name directly into the function call it works great. However, I am trying to pass user input into this function. I believe my problem may because the array I am passing to the function has many trailing whitespaces. void connectHost(char *hostname) { i...
stackexchange/codereview
I am using the LeavesView Class available on GitHub by Tom Brow. On the iPad, I have 23 images at 1024x768 ranging from 200-500KB (JPG's). I have compressed the images as much as I could without losing quality. For some reason, when I init with the list of images, the memory drops significantly, and ultimately crashes...
stackexchange/codereview
for(int i=N; i>0; i=i/2) irrelevant statement; I am asked to find the complexity class and I am unsure of whether I am supposed to use Big-Omega notation or Big-O? But I am assuming that it is O(N/2) and then O(N) if I drop the constants. for (int i=0; i<N; i++) for (int j = i+1; j<N; j++) irrele...
stackexchange/codereview
I have a problem with image processing. I have set up a web cam on top of my laptop facing the keyboard so when i touch the LCD the image which get from the web cam bisects by the finger so my idea is to get the positions of the finger when it bisects the image. any help is appreciated (OpenCV, openframework or any oth...
stackexchange/codereview
That shows: page execution time duration query string and form parameters SQL activity For a behind the scenes look at page execution?
stackexchange/codereview
I am tracking changes made to a levels in a game. The way I currently track changes is in a sqlite database. Each level is supposed to have its own database, as just one database for all the levels would provide complications when adding and deleting levels. So for each level, I want a database that has the same name a...
stackexchange/codereview
I've been working on writing a script which automatically logs me into my school's network, checks if the classes I'm trying to get into are no longer completely full, and if a spot has opened up, registers the class for me. However, I've hit a big snag in just the logging-in process. Basically, I've been looking at th...
stackexchange/codereview
I was wondering if it is possible to interface with GPIB Instruments by using C++ and Qt. If it is possible, can anyone tell me how easy it would be and/or point me in a direction for a tutorial or examples? Thanks a lot.
stackexchange/codereview
I am using mysqldump to create a canonical installation script for a MySQL database. I would like to dump the data for able half of the tables in the database, but exclude the data from the other tables. I am aware of the following two commands: --no-data --ignore-table But the first applies to all tables, and I believ...
stackexchange/codereview
My site is set to en-GB in the web.config. I have a calendar extended textbox control on a page which lets the user select date, in GB format as string (DD/MM/YYYY). I need to convert this to a US datetime before inserting into db. solution: (MM/dd/yyyy hh:mm:ss) I do hate mondays. Overthinking as usual.
stackexchange/codereview
I have the following source layout: . ├── pom.xml ├── modules (has pom) │ ├── module1 (has pom) │ └── module2 (has pom) │ └── moduleN (has pom) └── webapp1 (has pom) └── webapp2 (has pom) webapp1 and webapp2 depends on all of the modules (the modules being DAO, services, etc). At the moment, I build everything ...
stackexchange/codereview
i'm not sure, but didn't asp.net mvc 2 provide a way to create strong typed tags? Michel
stackexchange/codereview
I'm using a dateField component (with editable = true) as an itemEditor in a dataGrid. Interestingly, when editing the textInput part of the dateField it doesn't seem to react to an ESC keydown as I would expect, i.e. reload old dateField value and give up focus. This seems to be standard for most other components, but...
stackexchange/codereview
I need to change the server paths that were stored in my database (Wordpress), so I am searching for the string "/home/". Is there some kind of command such as str_replace($search, $replace, $subject) equivalent in SQL? Edit: What if I don't know what the field name is? Well, I do, but there is more than one field nam...
stackexchange/codereview
my project was buied in os 3.0 but now i want to do some changes with os 4. so when i run my project in xcode 3.2.4. i get those errors...... ld: warning: in /Users/abc/SystemConfiguration.framework/SystemConfiguration, missing required architecture i386 in file ld: warning: in /Users/abc/libz.1.2.3.dylib, missing re...
stackexchange/codereview
So, I've built-up a little gallery using a few plug-ins and some custom code. This is for a few photography website portfolios. So far, I've got the thumbnails in a UL on the left, and the larger image on the right. I've got some hover effects on the thumbnails, and onClick they fadeOut the larger image, swap SRC, load...
stackexchange/codereview
I'm getting these analyzer warnings, are they due to goto statements ? --- snip ---
stackexchange/codereview
I have this question on and of for a year or two, but it is so nonspecific, and my native language is not English, so I don't know how to ask to be precise and everybody will understand what is my dilemma. It is even more valid if using objects but for the sake of simplicity I'll make a simple example (theoretical) wit...
stackexchange/codereview
Is there a way to change the timz zone of the appengine admin logs? My problem is that when I read the admin log, I always have to compute the time of the error in my local time zone. I'd like the logs to display either my local time or to say "X hours ago". How can I do? Thanks.
stackexchange/codereview
Under windows server 2008 64bit, IIS 7.0 and .NET 4.0 if an ASP.NET application (using ASP.NET thread pool, synchronous request processing) is long running (> 30 minutes). Web application has no page and main purpose is reading huge files ( > 1 GB) in chunks (~5 MB) and transfer them to the clients. Code: while (readin...
stackexchange/codereview
I have to design a RESTful client and service in Java. For a GET request, i need to send a regEx pattern as a query parameter. in the client i'm sending the pattern as http://localhost:6520/restservice/foo?pattern=^BP$ i'm getting Illegal Endpoint address exception. I even tried http://localhost:6520/restservice/foo?p...
stackexchange/codereview
which allows me to load URLs like /photos /photos/2 /photos/2/edit Edit allows the user to change the image, but I want a different kind of edit for permission type stuff specific to the app I'm building, which would look like: /photos/2/updatesettings So in the photos controller I added "def updatesettings ...." A...
stackexchange/codereview
I'm working on a 3D tile based game and I'm using AABB collision detection. For every cube that the player is intersecting, I find the axis along which the player is intersecting the cube the least, and push the player out of the cube along that axis. Depending on the order that the cubes are checked in, this can cause...
stackexchange/codereview
I want to set the HTTP Request header "Authorization" when sending a POST request to a server. How do I do it in Java? Does HttpClient have any support for it? http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z9 The server requires me to set some specific value for the authorization field: of the form ID:signature wh...
stackexchange/codereview
This is a completely theoretical question. Suppose the following code: >>> class C: ... a = 10 ... def f(self): self.a = 999 ... >>> >>> C.a 10 >>> c = C() >>> c.a 10 >>> c.f() >>> c.a 999 At this point, is class variable C.a still accessible through the object c?
stackexchange/codereview
Is it possible to use shader for calculating some values and then return them back for further use? For example I send mesh down to GPU, with some parameters about how it should be modified(change position of vertices), and take back resulting mesh? I see that rather impossible because I haven't seen any variable for ...
stackexchange/codereview
I have images in a row , I want to popout image a alit from the div as it moving and coming out. When we mouseover it should move a little bit. May I know how to do this?
stackexchange/codereview
For example, is it possible to bind a Textblock's Text property to an element Name[2] of type String?
stackexchange/codereview
The title maybe a little vague, let me give you an example: if we change a colorful image into black and white, we still can recognize the objects in it. My question is, can I change the color to RED or GREEN or other color rather than black and white in programs (I prefer Java). What I want to do is just like this que...
stackexchange/codereview
I currently use this to play AVC (H.264 or MPEG-4 Part 10) videos. <video controls preload> <source src="xyz.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> </video> However, that doesn't work for MP4V (MPEG-4 Visual or MPEG-4 Part 2) videos. I tried codecs="mp4v.20.8, mp4a.40.2" but that doesn't seem to wor...
stackexchange/codereview
What I am implementing is a (simpler) version of bash. One of the tasks is to accept the command : $ bg <command> <arguments> This will then fork a new process and then run execvp() in the new process using <command> and <arguments> as parameters. The problem is that when I capture the output from the child process,...
stackexchange/codereview
First off, I am not looking for a way to force the compiler to inline the implementation of every function. To reduce the level of misguided answers make sure you understand what the inline keyword actually means. Here is good description, inline vs static vs extern. So my question, why not mark every function definit...
stackexchange/codereview
I have a WordPress install and I'm trying to use jQuery to create a Load More effect. I'm having some trouble using the basic .load feature for page fragments. I don't mind using .get as I saw some threads here regarding that as a better solution. Here's my page URL structure and the contents: First Page: http://exampl...
stackexchange/codereview
I have used jQuery to invoke an AJAX webmethod in c#. This webmethod runs a query and stores the resulting information in a session variable. I have a gridview that has an objectdatasource that uses the session variable with the selectmethod to then populate the gridview with data from a query. I need the final piece t...
stackexchange/codereview
Installed python-qt4 and pyqt4-dev-tools packages on ubuntu Python 2.6.6 (r266:84292, Sep 15 2010, 15:52:39) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from PyQt4 import QtGui Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: th...
stackexchange/codereview
I'm trying to create an ADT layout configuration to match an EVO 4G screen, with its 800x480 resolution and 4.3" screen. The emulator I created by just specifying WVGA800 in the SDK Manager seems to match my physical EVO device perfectly. However, when I try to create a Layout device config (the one you select when you...
stackexchange/codereview
class CustomClass<T> where T: bool { public CustomClass(T defaultValue) { init(defaultValue); // why can't the compiler just use void init(bool) here? } public void init(bool defaultValue) { } // public void init(int defaultValue) will be implemented later } Hello. This seems to be...
stackexchange/codereview
I have been searching far and wide for a solution on how to offer slow motion and fast motion options for users that upload video to my webstie. There is an implementation on Google Video that has exactly what I am looking for: the option to speed up or slow down the video and continue to play the audio. The screenshot...
stackexchange/codereview
I have created a simple animation using jQuery and the mouseenter / mouseleave. It works fine in IE7, FF, Opera, Chrome and safari. however, something is wrong in IE7 - nothing happens at all - I can't even get alert boxes to pop up. Could somebody please take a look at my code and tell me what I am doing wrong before...
stackexchange/codereview
I have various interrelated projects in my Eclipse Helios workspace. Some projects use the Java standard coding style with no license header. Some others use similar coding style with 3-space indentation with LGPL 2.1 license header. Some others use tab indentation with Apache License 2 header. They all do not stor...
stackexchange/codereview
I am making a game with 3d gamestudio a8 free edition. The free edition doesn't support shader, it only supports fixed pipeline shaders. There are some samples in the wiki of 3d gamestudio (click here) but I want to know of there are more samples or tutorials.
stackexchange/codereview
In uploadify I have a problem passing variable into the php script. Here's the code: $(document).ready(function() { var counter = 0; $("#uploadify").uploadify({ 'uploader' : 'scripts/uploadify.swf', 'script' : 'scripts/uploadify.php?upload', 'scriptData' : {'PHPSESSID...
stackexchange/codereview
I'm planing an app where i need to edit a system file. I can only edit that file with root rights. I have a rooted dev phone with Superuser.apk installed. Other apps that require root do request root access on first start. I want to do the same but I can't find any hints on how to request superuser rights for my app. I...
stackexchange/codereview
I have some map files consisting of 'polylines' (each line is just a list of vertices) representing tunnels, and I want to try and find the tunnel 'center line' (shown, roughly, in red below). I've had some success in the past using Delaunay triangulation but I'd like to avoid that method as it does not (in general) ...
stackexchange/codereview
I have a website where the public can upload JPEGs. Someone from the public was uploading an invalid JPEG that was causing the site to crash for them. PHP said... imagecreatefromjpeg() [function.imagecreatefromjpeg]: gd-jpeg, libjpeg: recoverable error: Premature end of JPEG file I wasn't sure how to get around this,...
stackexchange/codereview
Given the following code: var myList = new List<string> { "red", "blue", "green" }; Regex r = new Regex("\\b(" + string.Join("|", myList.ToArray()) + ")\\b"); MatchCollection m = r.Matches("Alfred has a red and blue tie and blue pants."); Is there a way to derive a List<string> of the "found" items ("red", "blue", "bl...
stackexchange/codereview
In a partially mutable class, is it better to mix mutable fields with its immutable ones, or create a new class (or classes) that encapsulate them? Here's an example in C# of what I'm talking about: interface IBedroom { int Volume { get; } string Color { get; } void Paint(string newColor); } Here's an i...
stackexchange/codereview
I would like to simulate packets reordering for UDP packets on Linux to measure the performance and fault tolerance of my application. Is there a simple way to do this?
stackexchange/codereview
I am trying to remove all spaces from a text field when a form is submitted so that the contents of the post code field match those in a database... If drSet5c.Tables(0).Rows(0).Item("post_code") = UCase(Replace(tbPostcode.Text, " ","")) Then response.write("Postcodes match") Else response.write("Postcodes DON'...
stackexchange/codereview
I'm constructing a file sharing system which needs to transmit a single file to many peers. One single root peer has the entire file and needs to transfer it to all other peers. How can I best construct a tree of file transfers such that total waiting time is minimised? For example: In this tree, we need to wait 4 tim...
stackexchange/codereview
I need to get Windows XP printer information like printer port and driver name using command line. I tried using Windows Server 2003 Resource Kit Tools that give you such information but it needs administrative privileges. In our production scenario too we cannot rely on some external toolkits to be deployed just to ge...
stackexchange/codereview
I am Developing a online test(Multiple choice) in C# asp.net. I have to show only one Question per page. I am using radiobuttons to select one of the options. When i click the next button, options respective to the next Question bind to the radiobuttons. The origin of Problem: I select a radiobutton for one Question...
stackexchange/codereview
We have a requirement to cache web pages as accurately as possible, so that we can go back and view a version of a page at any previous point in time. We'd like to be able to view the page as it really was - with the right css, javascript, images etc. Are there any OS libraries (any language) that will fetch a page, do...
stackexchange/codereview
I'm trying to get MySQL to run under launchd so I set up a launchd item including a "UserName" key with "mysql" as value. I did this because when I start mysql I usually go: mysqld_safe --user=mysql. When I load it, I get: 10/22/10 11:13:02 AM com.apple.launchd[1] (com.mysql.mysqld463) Suspicious setup: User "mys...
stackexchange/codereview
I found a sat solver in http://code.google.com/p/aima-java/ I tried the following code to solve an expression using dpllsolver the input is (A <=> B) AND (C => D) AND (A AND C) AND (NOT (B AND D)) AND (NOT (B AND D AND E)) CNF transformer transforms it to ( ( ( NOT A ) OR B ) AND ( ( NOT B ) OR A ) ) it doesn'...
stackexchange/codereview
I'm coding this in Java for an Android device. I'd just like to read all of the data in the RSS feed and then I have a parser ready to act on the data. The trouble I'm getting is that only a small portion of the data is ever being read by my code. It then says the end of the reader has been reached and proceeds to retu...
stackexchange/codereview
I have an MVC2 app that utilizes MySql.Web ver. 6.2.2.0, on my dev machine locally it works fine! However, once I upload it to my http://www.winhost.com account I get the following error: Parser Error Message: Unable to initialize provider. Missing or incorrect schema. Line 32: <clear/> Line 33: <add n...
stackexchange/codereview
$('#container').prepend("<ul><li>Stuff</li></ul>').hide().slideDown(); I want the NEW UL to slide Down. but the above is sliding down the entire #container.. How can I prepend an item to the top, and then slide it down.. Kinda like how Twitter used to show you your new tweet. Thank you.
stackexchange/codereview
I have a shared hosting plan with HostGator and multiple CI installations. For each installation, I've been able to successfully remove the "index.php" from the URL, but on my addon domain, none of my CSS, or JS, or image files load correctly. Here is what I have for mod rewrite on the main domain: RewriteEngine on Re...
stackexchange/codereview
I have my json data here : I cant call data from my own website to my local site. When I copy the same file to local root, it works. I changed the chmod of the remote file and added some headers but no change. Any ideas?
stackexchange/codereview
At first I thought that hash hack is a requirement, however judging from the recent updates from facebook, I am thinking otherwise. The original hash hack (I am not sure if this is the correct term) is that by changing location.hash, one may save a state in the URL without refreshing the page. That is extensively used ...
stackexchange/codereview
I am writing code that pulls data from database tables and writes them to an XML file (to be picked up by another process). There are bout 60,000 records, and each record can have multiple entites, i.e. a member can have several contacts, each contact can have several phone numbers, etc. The entire process takes severa...
stackexchange/codereview
I've been thinking about doing this: <button class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only">Blah</button> Is there a way you can define a single class in CSS that comprises all these classes and then define the button to have the single class? Like: .myclass {ui-button ui-widget ui-stat...
stackexchange/codereview
Here is the code I have came up for this problem. $link = mysql_connect($host, $user, $pass) or die("Can not connect to the host." . mysql_error()); mysql_select_db($db) or die("Can not connect to the particular database."); $result = mysql_query("SHOW COLUMNS FROM ".$table.""); $i = 0; if (mysql_num_rows($resul...
stackexchange/codereview
Nant is complaining about a duplicate target, and as far as I can tell there is no duplicate. Is there some way to get nant to tell me which buildfiles it has open or is trying to open and where these tasks are so I can debug this?
stackexchange/codereview
I recently changed a couple of my .xml files from docbook to dita. The conversion went ok, but there are some unwanted artifacts. The one I'm stumped on is that .dita does not recongnize the <para> tag from docbook, and replaces it with <p>. Which you'd think would be fine, but this causes the XML to show items in a...
stackexchange/codereview
I meet a weired problem when I use maven. I execute the following code using "maven exec:java". Obviously, it should throw a RuntimeException, but I did not see anything in console. But if I execute it in eclipse, I can see the error message. So where does the exception gone ? Thanks public class HelloWorld { pub...
stackexchange/codereview
How does eBay end their auctions and mark the winner? Assume there is an auction end date in the database, once that time has passed the current time, the auction needs to be closed, mark the winner, etc. How is something like this handled in sql 2005? Do they query the db every second to find the expired auctions? Obv...
stackexchange/codereview
What I would like to accomplish is to, at runtime, place a button in the middle of the screen, as the very top layer, overlaying anything below it. (It's not big, so it will not completely cover the screen, just whatever happens to be below it.) I looked at creating a custom dialog, however that blocks all other user ...
stackexchange/codereview
I have a rails app I am trying to run under passenger 3 standalone: passenger start -a 127.0.0.1 -p 3001 -d Ive installed this with rvm cd myapp rvm use 1.9.2 gem install passenger --pre I want to set environment variables for my app but can't figure out how and where to set them. I just need to source my .profile wh...
stackexchange/codereview
Is there someone that can suggest me a programming language that allows you to write quickly GUI programs (on windows platform)? P.S. I am interested on only languages that do not rely on virtual machines and then have a compiler that produces executable code directly on the machine
stackexchange/codereview
What's the largest number of bytes textarea can hold? Thanks EDIT I need it in the context of pasting to textarea from the clipboard. So, what's the max of the clipboard object?
stackexchange/codereview
I wouldn't call myself programmer, but I've started learning Python recently and really enjoy it. I mainly use it for small tasks so far - scripting, text processing, KML generation and ArcGIS. From my experience with R (working with excellent Notepad++ and NppToR combo) I usually try to work with my scripts line by li...
stackexchange/codereview
I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few: 1) State-Server session 2) SQL Server session 3) Custom database session 4) Cookie What have you used and what our your success or...
stackexchange/codereview
UPDATE3 and FINAL: SOLVED thanks to Evan and meder! UPDATE2: I should clarify, I need function updateFilters (a,b) to be called, not created. The function exists elsewhere. Sorry for confusion. The code below does not work as expected - udpateFilters(a,b) is being called before for loop ends. Changing async to false so...
stackexchange/codereview
I'm used to reference the current control in access vba, how to do so in C# winform ?
stackexchange/codereview
I asked this a while ago on comp.std.c++ and got no reply. I'm just going to quote my post there with little modification. Is the last requirement of standard-layout classes, 9/6, necessary or useful? A footnote explanation is provided: This ensures that two subobjects that have the same class type and that belong to...
stackexchange/codereview
I'm wondering if theres a method to determine whether a certain range of array elements is empty or not. for example, if the array was initialized with 10 elements having the values "", then if data was later assigned to elements 5, 7, 9; could i test if elements 0-3 were empty, or rather contained an empty string ""?
stackexchange/codereview
As you people know that you can easily identify systems in your network that are running SQL SERVER INSTANCE but is this possible that I can force DHCP to recognize my application? example: I have many clients and a single server. but in secure networks out-bond traffic and port listeners are blocked. so I am trying to...
stackexchange/codereview
We have an application which is created in asp.net/flex front end, ms sql/ssas as data source. We are in phase of creating a new reporting module. so for consistency of graphs and ui we want to use flex as front end and SSAS as backend for reporting module. My understanding is: *Flex based UI (reports/parameters) SSRS ...
stackexchange/codereview
I found a strange behavior in the component TwebBrowser, when I load certain pages they are shown with larger fonts. different from what is used in internet explorer. see these sample images Here in this link http://docwiki.embarcadero.com/RADStudio/en/Main_Page is loaded with larger fonts in TWebBrowser and with small...
stackexchange/codereview
//Using Small Business Code from PO Record in Subreport Accumulate Associated $ numbervar BC1; WhilePrintingRecords; shared stringvar BC; // added following 2 statements to prevent doubling value on last record 10/23/06 (WET) if shared stringvar BC = " BC1" and not onlastrecord then BC1 := BC1+{@PTEXT$}; if shared st...
stackexchange/codereview
My question is related to the following three questions. iPhone What happens to previous data when app is upgraded to new version How the application upgrade works in iPhone Preventing erasure of user data while upgrading iOS application via iTunes Here are my 2 questions. Am I supposed to create a "Documents" direc...
stackexchange/codereview
I'd like to check if a URL is protected by a Http Basic Authentication using javascript. Here is what I have so far : function showFailure(){ alert("FAILED ") } function showSuccess(){ alert("SUCCESS") } var myRequest = new Request({ url: 'http://localhost/access_protected_HTTP_BASIC', method: 'get', ...
stackexchange/codereview
I want to insert an image in textarea with jquery. (I know that img tag could not to inserted in textarea). Im using tinymce <img src="image.jpg" class="po"/> <form> <input type="text" name="yassi" class="infobox"/> <br /> <textarea class="me"></textarea> <input type="submit" value="click" class="submit"/> </...
stackexchange/codereview
Is there a way to specify the package name for a module for the :browse, :load or :module commands in ghci (version 6.12.1) ? Some module names are ambiguous: Prelude> :module Control.Monad.Cont <no location info>: Ambiguous module name `Control.Monad.Cont': it was found in multiple packages: mtl-1.1.0.2 mo...
stackexchange/codereview
I am trying to retrieve user email via facebook after user authentication on my website. I ran the query below, but the email and birthday fields are empty ; and they are very vital for registration on my website. #*** run fql *** $fql = "select uid, first_name, last_name, name, sex, email, current_location, we...
stackexchange/codereview
What is happening? Can somebody explain me what happens here, I changed in tight loop: ## j=i ## while j < ls - 1 and len(wordlist[j]) > lc: j+=1 j = next(j for j in range(i,ls) if len(wordlist[j]) <= lc) The commented while version ran the whole program: 625 ms, the next generator v...
stackexchange/codereview
I am keep getting this error while uploading..I have no idea what this error are and how to resolve them...my build was successful(there are some warnings) my application is tested on iOS 4.1...any help is highly appreciated. Thanks
stackexchange/codereview
I am trying to create a base class where I can inherit from it (to add properties to the derived classes) and the utilized the Load and Save methods from the base class. I find myself writing the Load and Save over and over and I'd like to apply some DRY to it... namespace Common { using System; using System.IO; ...
stackexchange/codereview
I have a Uitableview that loads data from a parsed xml feed. when the feed is first parsed all the text data is stored in an entity NewsItems in core data. after the table is loaded the images asociated with each object are fetched asynchronously and stored in a separate entity NewsImages, after the feeds/images are st...
stackexchange/codereview
I am using an SQL query to extract web statistics from my website. This is done with the MySQL comand line tool and outputted as a HTML table. The table is currently formatted like this: <TABLE> <TR><TH>Keyword</TH><TH>Date</TH><TH>IP/WHOIS</TH></TR> <TR><TD>random phrase</TD><TD>2010-10-11</TD><TD>1.2.3.4</TD></TR> </...
stackexchange/codereview
I am a beginner in java swing. I have just created my first login screen using netbean. I like to ask after my actionPerformed if say login successfully. How do i actually go to the next screen? As in coding wise how should i code or netbeans got something build in for this
stackexchange/codereview
I wonder if it's a good idea letting local applications (in the same server) communicate with each other entirely through Restful API? I know this is not an uncommon thing, cause we already have applications like CouchDB that is using HTTP REST for communication, even with local applications. But I want to take it to a...
stackexchange/codereview