instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm looking for the best .NET C# framework for building a REST Http client. My requirements are as follows: Unit testable (mockable) Supports multi-part form and file uploads I have looked at Hammock, but it is lacking in documentation and seems to be troublesome when attempting to mock file uploads. Any suggestions,...
stackexchange/codereview
We know that in 64bit computers pointers will be 8bytes, that will allow us to address a huge memory. But on the other hand, memories that are available to usual people now are up to 16G, that means that at the moment we do not need 8 bytes for addressig, but 5 or at most 6 bytes. I am a Delphi user. The question (pro...
stackexchange/codereview
I can't seem to find any documentation on how to do the following: I need to provide a config variable for any applications using my engine so that they can easily pass settings to my engine. Does anyone have any links to a proper or accepted way to do this? EDIT: As an update, I figured out a decent way to do this. Co...
stackexchange/codereview
With the WebForms view engine, I'll commonly use the ternary operator for very simple conditionals, especially within HTML attributes. For example: <a class="<%=User.Identity.IsAuthenticated ? "auth" : "anon" %>">My link here</a> The above code will give the <a> tag a class of auth or anon depending on whether the use...
stackexchange/codereview
I have a chart control in XAML, and datapoints that are bind to the control. The problem is when my ModelView changes the Collection of points the Chart control doesn’t get any notifications. I have tried dp, with ObservableCollection and INotifyPropertyChanged without any luck. I know that there is a difference betwe...
stackexchange/codereview
I have html file with javascript code the contents of the file are as under: I tried this code on Safari and it was working fine. But when I tried this on Firefox, it’s not working. Can any one suggest how to make it working on firefox. <html><head></head><body><button type="button" onClick="handleButtonClick();">und...
stackexchange/codereview
I am building a Drupal 6 site, with event managing feature, in particular: Selling events participation Recording events attendances: once the event is concluded, administrator can review attendances indicating which users have really participated I have searched a lot, already seen different similar posts and consi...
stackexchange/codereview
I m using session in my project and i wrote Session.Clear(); Response.Redirect("Login.aspx"); under the logout button. And i m cheking Session["user"] in all pages's page load event. if it is null i am sending user to Login.aspx. But pages are coming without go to page load event when i write a page to url however i...
stackexchange/codereview
this is my simple try-it application that create a grid with 2 rows. The 1st row's height is bound to a properties. The value I assigned to it only works at run-time. I tried to make it also work when design-time but I failed to do that (I used this thread to write my app). Please help me to see what I miss. Thank you!...
stackexchange/codereview
I think I misunderstand something about MVC. I'm trying to do the following: public class ControllerA : Controller { public ActionResult Index() { // do code // perform action on ControllerB - something like: // RedirectToAction("Action", "ControllerB"); // CARRY ON with more c...
stackexchange/codereview
#include <stdio.h> int my_array[] = {1,23,17,4,-5,100}; int *ptr; int main(void) { int i; ptr = &my_array[0]; /* point our pointer to the first element of the array */ printf("\n\n"); for (i = 0; i < 6; i++) { printf("my_array[%d] = %d ",i,my_array...
stackexchange/codereview
I am able to write to a text file then I use getline and I can no longer write to the file. #include <iostream> #include <fstream> #include <string> using namespace std; int main(){ ifstream infile; fstream crypto; ofstream hacker; string tempString; string tempString2; string plaintext; string line; string de...
stackexchange/codereview
I think the documentation of IHTMLChangeLog in MSDN is not complete. Could any one tell me how to use the IHTMLChangeLog? and how could I use and parse the change record(pbBuffer) get in IHTMLChangeLog::GetNextChange() ?
stackexchange/codereview
I'm using only integer keys in column family and it pointless to convert them to string every time. So, how can I make them integers?
stackexchange/codereview
Im trying to create a script that will grab the users clipboard data on pageload, and show up in a textbox where they can press Submit. Ive looked all over google and can not find the solution. I was wondering if this is possible?
stackexchange/codereview
I have a subclass of UILabel (MYLabel), and I'm adding instances of MYLabel to my Main ViewController's View and then animating them (using [UIView beginAnimations:] and [UIView commitAnimations]. If I have a static instance of my MYLabel, it has no problem being touched and calling touchesBegan: but while they are ani...
stackexchange/codereview
I'm a beginning programmer who needs to write a simple program in C# for use on a Windows CE 5.0 device. Specifically, I'm working with Visual Studio 2008 and an SDK for Psion Teklogix devices. I've not been able to find a relevant introduction or tutorial for this sort of programming, and as I'm not familiar with C# o...
stackexchange/codereview
I'm fairly familiar with the whole concept of IoC/DI, but I've never implemented a solution before. This is my first time, so please feel free to give me a push in the right direction if you deem it necessary. I've got multiple classes that implement the same Interface(IMyCustomFileReader). I need to use one of these i...
stackexchange/codereview
I’m looking for recommendations for what people are using to get access to development hardware for developing and testing Android Apps. I see three choices that make sense: Buy Nexus One devices off contract from Google’s developer program (http://www.google.com/phone/detail/nexus-one) Buy used or new off contract de...
stackexchange/codereview
I have written my code on my desktop machine in VB.net I then transferred this code on to a local server in my university, and then tried debugging it. It gave me the output web application But then, when I changed my code and then debugged it again, it is not taking the changes I have made. For ex: I have removed th...
stackexchange/codereview
There are two viewControllers in my project, and one is the main controller. Another is its subview controller used for inserting into the main controller. I set the controller translate animation with UIViewAnimationTransitionCurlUp, the subView is 'autorotate' left or right, and both the nib filess direction is horiz...
stackexchange/codereview
I have some problem with error logging in Kohana v2.3.4. In the index.php I have kept the default settings: error_reporting(E_ALL); ini_set('display_errors', TRUE); In config.php I have set $config['log_threshold'] = 3; $config['display_errors'] = FALSE; The problem is kohana is not handling php syntax errors. Instea...
stackexchange/codereview
C++03 $4.10- "The conversion of a null pointer constant to a pointer to cv-qualified type is a single conversion, and not the sequence of a pointer conversion followed by a qualification conversion (4.4)." Here is my understanding int main(){ char buf[] = "Hello"; char const *p1 = buf; // 2 step co...
stackexchange/codereview
What is the best way to get alerts of some kind (email, HTTP callback, etc) about failed jobs in DelayedJob? I'm running in Heroku, so keeping the workers alive (god, monit, etc) is taken care of. NewRelic's error tracking functionality apparently doesn't register fatal errors in Delayed::PerformableMethod, but I do ge...
stackexchange/codereview
I'm trying to play multiple video streams simultaneously. However, I cannot synchronize these videos to play at the same rate. ---- details -------- I have three 45-second videos in FLV format and I use flash.net.NetStream to play these videos. I call netstream.play() of these netstream at the same time (by using a for...
stackexchange/codereview
We're using Caliburn.Micro/Silverlight 4 and life is good. I'm trying to bind a combobox's itemsSource to a viewModel, but this doesn't seem possible since the combobox is already bound to its own row's dataItem. The logic which fills the combo changes with other data on the screen so I can't really use a static list ...
stackexchange/codereview
Is there a way to detect running services on a client machine using Java? I need to detect a specific running application and it's status (enabled or disabled) and execute something on my application once the running service is detected and enabled. A little research on my part has come to extent that I have 2 options...
stackexchange/codereview
$counter = $sWall + $sWC + $sOther; if (!empty($counter)) { echo '(' . $counter . ')'; $counter = 0; } And js: $(window).blur(function() { tracktime = new Date(); setInterval(function() { $.ajax({ type: "POST", url: "imback.php", data: { mode: 'ajax', ...
stackexchange/codereview
I have 3 dimensional hash and a 2 dimensional hash, and I want to merge the 2 dimensional hash with one of the inner hashes of the 3 dimensional hash, something like this, which is similar to what I do to merge a pair of 2d hashes: my %3dhash; my %2dhash; my $key = "some string"; %3dhash{$key} = ($3dhash{$key}, %2dhash...
stackexchange/codereview
I would like to send quite large chunks of data in a binary format over HTTP, also called HTTP Tunneling. I would like to use this technique using Java for a few Java Swing applications and maybe an Android application. Is there any good Java libraries for HTTP Tunneling?
stackexchange/codereview
I am new to xcode, interface builder, and the iphone simulator. I am trying to play a movie/video in xcode on the click of a button (which is very straightforward). I am using xcode 3.2.4 and iphone simulator 4.1. When I launch the iPhone simulator and click the button to launch the video, the audio plays, but the vide...
stackexchange/codereview
I have a backbone.js app (www.github.com/juggy/job-board) where I want to bind my form inputs directly to my model (a la Sproutcore). Is it possible with Backbone.js (or other tools) without actually tracking each blur events on the inputs and updating the model manually? This seems like a lot of glue code. Thanks, Jul...
stackexchange/codereview
I need a javascript function that can get me all the CSS classes applied to an element. We have function like getComputedStyle(element,"") and currentStyle(), FF and IE respectively. But, these function only give me the CSS properties applied to the element, not the classes. To make things more clear please see the fo...
stackexchange/codereview
I've got following php code: $match = array(); if (preg_match("%^(/\d+)(/test)(/\w+)*$%", "/25/test/t1/t2/t3/t4", $match)) print_r($match); I'm getting this result: Array ( [0] => /25/test/t1/t2/t3/t4 [1] => /25 [2] => /test [3] => /t4 ) What do i need to change in my regexp to get this result: Array ( [0] => /2...
stackexchange/codereview
I have UIButton that I set the background image for three states, normal, highlighted, and disabled, all with the following format: [button setBackgroundImage:buttonBGD forState:UIControlStateDisabled]; My problem is, that when the button is disabled, the iPhone chooses to lighten the image for me. Which isn't desired...
stackexchange/codereview
I saw in SO there is a lot of DIV which is surrounded by dotted lines, how to do it in CSS & HTML? Thanks. Bin
stackexchange/codereview
I have used %span><= and it can eat up the white space between this line and the next, and also outside of the span tag, but it seems like an element needs to be used. The form ><= or <= or >= can't be used to eat the space. Or is there some ways to make them work? some docs at: http://haml-lang.com/docs/yard...
stackexchange/codereview
On every page of my app I want to show a user's projects... So which controller do I use to make sure that @projects from the projects controller is being made available in the view? Thanks
stackexchange/codereview
It is said here http://msdn.microsoft.com/en-us/library/ee817669.aspx#observerpattern_topic3a This permits a subject to notify a potentially infinite number of observers of state changes, rather than just one. Why can't I just use list<Observer> in the subject class instead of delegating to a container ?
stackexchange/codereview
I found a function that will help me load a disk SQLite database to a memory database, but have found that the module I need, apsw, doesn't support it, while pysqlite does. I need apsw because it has most of the functions I need that pysqlite does not. Is there any work around to completely copying to a database?
stackexchange/codereview
MacPorts installs something called g++-mp-4.3? Does the "mp" mean MacPorts, or is it something else? I can't find any documentation anywhere... Thanks!
stackexchange/codereview
So I did a bad thing. Somewhere during the course of making a bunch of changes, I realized that a unintended file had snuck into a commit or two. Because I didn't realize this until later, the commits that included the file have now been pushed to the remote. I want & need the commits, I just want to remove this specif...
stackexchange/codereview
I am trying to build a query that does the following: The goal: to show the total number of visits to all the company's products on each day this month. First: We find all users that belong to any @company.product (each user has a product_id). Sum all visit counts among these users, grouping by day, for each of the la...
stackexchange/codereview
I have li already styled in a stylesheet. I need it to stay a specific style. It is styled without using a class, so for example .selectors{width:50px;} li{ padding:10px; } Now i have run into a problem. I am trying to style the li again, without any classes like what i have in the example code. For...
stackexchange/codereview
I've got problem: When I use Request.Url.AbsoluteUri to detect page url at runtime, I always get url with IP, although my site is deployed at adress: http://site.domain.com. How can I get url with http://site.domain.com instead of server ip. Thanks.
stackexchange/codereview
so i have a motion sensor connected to an avr micro that is communicating with my python app via usb. im using pyserial to do the comm. during my script i have an infinate loop checking for data from the avr micro. before this loop i start a timer with signal.alarm() that will call a function to end a subprocess. when ...
stackexchange/codereview
I'm trying to improve a legacy database. One problem is that it's missing a lot of foreign key relationships. In some of the columns involved, the associated application is setting fields to an empty string when it should be setting them to null. What I'd like to do is to intercept any attempt to set that column and re...
stackexchange/codereview
I have a number of nested lists and some jQuery that shows hides them when a parent header is clicked. IT works fine but the behaviour is slightly wrong. If a nested list is visible and the parent header is clicked i would like that nested list to be hidden. At the moment it does this but then shows the nested list d...
stackexchange/codereview
I am doing visualization analysis on a trace file I generate from ns-2 that traces out the packets sent/received/dropped at various times of the simulation here is a sample trace output - http://pastebin.com/aPm3EFax I want to filter out the column1 after grouping it into S/D/R separately, so that I can sum it over to ...
stackexchange/codereview
i have a form which has two textboxes and a submit button. on entering data and submitting data gets stored in the database.but if i again refresh the page the same data again gets stored. How should this be prevented?
stackexchange/codereview
Given the following example (departments - projects): A department has the following properties (composite primary key): @Entity @IdClass(DeptId.class) public class Department { @Id @Column(name="number") private Integer number; @Id @Column(name="country") private String country; @Column(n...
stackexchange/codereview
I'm looking to learn how to build something that detects key-presses in order to throttle a function. Something like: var LastKeyPress; function hitTheServer() { if LastKeyPress > 2 seconds ago { hit the server and do stuff LastKeyPress = now(); } } What do you think? Maybe this is built into jQuery? Also, it...
stackexchange/codereview
It is my understanding that documents are found based on a query, and then that result is then filtered by the filter. The Query is the only that that will effect the score/relevance of a document. Would there be any performance (caching) improvements if I query results that have relevance towards relevancy, and filter...
stackexchange/codereview
Im trying to optimize my exercise application in VS2010. Basically I have several sqrt, pow and memset in the core loop. More specifically, this is what I do: // in a cpp file ... #include <cmath> #pragma intrinsic(sqrt, pow, memset) void Simulator::calculate() { for( int i=0; i<NUM; i++ ) { ... float len...
stackexchange/codereview
I am working on a project where I want to have the ability to specify that certain nodes of the replica set can never be primary nodes ie in case of a failure where all primary capable nodes die the system should be reduced to a read-only state till some primary capable node comes up. Is this possible? If yes how? If n...
stackexchange/codereview
I'm loading a List<Image> from a folder of about 250 images. I did a DateTime comparison and it takes a full 11 second to load those 250 images. That's slow as hell, and I'd very much like to speed that up. The images are on my local harddrive, not even an external one. The code: DialogResult dr = imageFolderBrowser.Sh...
stackexchange/codereview
I've recently downloaded the Eclipse IDE for Java EE developers (for web apps development). Does it make sense to delete my "regular" Eclipse IDE for Java developers? I mean, is there a feature in the regular IDE which isn't included in the EE IDE? (I also use eclipse for Python programming with the Pydev plugin)
stackexchange/codereview
I'm curious how i, with the following jQuery plugin code im writing at the bottom of this question, could implement key combos. How it's working so far is it allows a user to create key commands simply by doing a normal jQuery like syntax and provide an event for the key command, like so: $(window).jkey('a',function(){...
stackexchange/codereview
var count:uint = 0; var textInputs:Array /* of TextInputs */ = []; for(var i:String in columnsData){ textInputs[count] = new TextInput(); addChild(textInputs[count]); count++; } here how can i access the first, second of Array of textinputs in the form of string or any thing to further proceed
stackexchange/codereview
If the server doesn't respond during a set or get operation, will memcache remove the server from the pool automatically?
stackexchange/codereview
I have a problem with POST and I hope someone can help me. I have two pages, A and B. I need to send some data through POST from A to B, and B can't be modified in any way. How can I send my POST data from A to B, using PHP? The thing is: I don't need to just send the data, I need to go to the page as well, while sendi...
stackexchange/codereview
Greetings! I am running iOS 4.1 on my iPhone 3GS. I have a small test app that has a five segment segmented controller that is connected to a UIView (?). When one of the five segments is clicked, the picture changed in the IUView. I am trying to automate this using UIAutomation using the following js script: UIALogger....
stackexchange/codereview
Apologies if I should know better, but I've been struggling for quite a while with this one. I have a mysql db with 300 rows. It contains 4 columns, "eventid", "player1", "player2", "score". In the game, player1 gives various others (player2) a score out of 100. What I'm trying to do is show the logged in user (player1...
stackexchange/codereview
We have been using struts 1 since long time. I don't know much about struts 2. Our company is going with component based arch. Core UI components are using struts 1. Core components will be used by old struts 1 components as well as new struts 2 components. I am not really sure if struts 1 action request can be redirec...
stackexchange/codereview
Something I don't get about the classical algorithm for the Producer-Consumer problem (from Wikipedia:) semaphore mutex = 1 semaphore fillCount = 0 semaphore emptyCount = BUFFER_SIZE procedure producer() { while (true) { item = produceItem() down(emptyCount) down(mutex) ...
stackexchange/codereview
I am looking for this simplest, plainest way to get a Java web service up in the air. I used to use Axis-1-on-Tomcat, but with Axis 2 its getting too thick. Some preferences for what I'm looking for: Low memory footprint - A small library with minimal binaries. Axis2.war is 17 MB - I need something lighter. Embedded...
stackexchange/codereview
I have a Single Sign-on solution which is working great in our test environment. It uses Cross-Sub-Domain cookies to share the authentication ticket between 2 web applications. Sign-on is done only on one of the applications and on the second site the user is authenticated by the cookie created by the first site. The ...
stackexchange/codereview
I have a datagrid which contains a Spark dropdownlist that needs to obtain dynamic data. The datagrid uses a separate dataProvider. When I use a static ArrayCollection within my ItemRenderer, it works (please see listing 1). However, when I use Swiz to mediate a 'list complete' event to load the ArrayCollection, the dr...
stackexchange/codereview
Is "new" an equivalent of "alloc init" or "alloc init autorelease"? I cannot seem to find it in any tutorial or article that deals with Cocoa memory management. Thanks for advise.
stackexchange/codereview
I'm trying to get PHPUnit working on my development environment but I've hit a bit of a roadblock when it comes to including PHPUnit in my scripts. I know that I need to set the include path on PHP but every combination I've tried fails without the compiler seeing the PHPUnit_Framework_TestCase class. I just ran update...
stackexchange/codereview
I am doing something in C which requires use of the strings (as most programs do). Looking in the manpages, I found, at string(3): SYNOPSIS #include <strings.h> char * index(const char *s, int c) (...) #include <string.h> char * strchr(const char *s, int c) So I curiously looked at both strchr(3) and index(3)......
stackexchange/codereview
I've built an HTML form that sends an email via PHP, but it's giving me some errors that look like this: Notice: Undefined variable: selected_radio in /webdocs/com-interplay2010-www-1i/webroot/holiday2010/submit.php on line 8 Notice: Undefined index: gender in /webdocs/com-interplay2010-www-1i/webroot/holiday2010/submi...
stackexchange/codereview
I'm choosing between these two languages, in contrast to another question here. My program going to be set of scripts checking files, free space, checking that apps are running etc. and writing information to database. Then PHP web page will show results. Python have more examples of winapi calls (at least at StackOver...
stackexchange/codereview
Is it possible to cast a List<Subclass> to List<Superclass> in C# 4.0? Something along these lines: class joe : human {} List<joe> joes = GetJoes(); List<human> humanJoes = joes; Isn't this what covariance is for? if you can do: human h = joe1 as human; why shouldn't you be able to do List<human> humans = joes as...
stackexchange/codereview
I'm getting an error with what should be a simple query to insert data. I've done searching, but for the life of me, I cant figure out whats happening. Here's my SQL: IF OBJECT_ID('settings') IS NOT NULL DROP TABLE [settings] CREATE TABLE [settings] ( [id] [bigint] IDENTITY(1,1) NOT NULL PRIMARY KEY, [tenant...
stackexchange/codereview
This post is really helpful: How can I efficiently calculate the binomial cumulative distribution function? (Title = How can I efficiently calculate the binomial cumulative distribution function?) However, I need the negative binomial cumulative distribution function. Is there a way to tweek the code to get a negative ...
stackexchange/codereview
I ran into an unexpected result in round-tripping Int32.MaxValue into a System.Single: Int32 i = Int32.MaxValue; Single s = i; Int32 c = (Int32)s; Debug.WriteLine(i); // 2147483647 Debug.WriteLine(c); // -2147483648 I realized that it must be overflowing, since Single doesn't have enough bits in the significand to ho...
stackexchange/codereview
private static final String DESTINATION_DIR_PATH ="/files"; private File destinationDir; public void init(ServletConfig config) throws ServletException { super.init(config); String realPath = getServletContext().getRealPath(DESTINATION_DIR_PATH); destinationDir = new File(realPath); if(...
stackexchange/codereview
I am using the dataTable object of primefaces to display some data and I am having some problems to realize something : I display first a table with only 1 column and I want to display another table filled with data depending on what the user selected on the first one. For that, when the user selects a row in the firs...
stackexchange/codereview
I have read that catching the particular exception separately enhanced the performance so I just wanted to know what are the most common exception that might generate while executing any sql query
stackexchange/codereview
I ve tried to implemented filtering data (list base on selected category) using dropdown with observefield and ajax pagination. I use session to remember selected category in order to keep pagination. Here is my code (Cakephp 1.2) In view : echo $form->select('Category.id', $categories, null, array('id' => 'categorie...
stackexchange/codereview
I'm porting one of my C++ libraries to a somewhat wonky compiler -- it doesn't support stringstreams, or C99 features like snprintf(). I need to format int, float, etc values as char*, and the only options available seem to be 1) use sprintf() 2) hand-roll formatting procedures. Given this, how do I determine (at eithe...
stackexchange/codereview
I'm working on creating a development database for my boss. I have the SQL script that creates all the tables, but now I have loads of data to import. There are 5 tables total in the database, and their ID's are related to eachother like so: Note: I'm not allowed to share info like database/table names Table1 +-- Table...
stackexchange/codereview
I am creating an xml file with LINQ as follows... Public Sub CreateXml() Dim db As New MDataContext Dim Customers = <gallery columns="3" rows="3"> <%= From customer In db.Customers _ Select <customer> ...
stackexchange/codereview
I'm using SugarCRM CE 6.0.3. When I make REST API calls like get_entry_list(), I always get this error: {'description': 'The session ID is invalid', 'name': 'Invalid Session ID', 'number': 11} I am very sure that I am logged in and using the correct session ID. In fact, when I can successfully call get_user_id() and...
stackexchange/codereview
i have the following code: var doc = new XmlDocument(); XmlDeclaration xmlDeclaration = doc.CreateXmlDeclaration("1.0", "UTF-8", null); doc.AppendChild(xmlDeclaration); XmlElement root = doc.CreateElement("myRoot"); doc.AppendChild(root); root.InnerText = "myInnerText"; StringWriter sw = new StringWriter(); doc.Save...
stackexchange/codereview
I have written a simple jquery response in my rails 3 controller, I just want to test to see the result this returns (not automated testing). My code looks like this: class AppointmentsController < ApplicationController def jsonlist @appointments = Appointment.find(:all) render :json => @appointments end Can I acc...
stackexchange/codereview
C++ 0x draft 9.5.6 Anonymous unions declared in a named namespace or in the global namespace shall be declared static. Why is this?
stackexchange/codereview
This should be simple, it is just three div tags inside of another div tag. The three div tags should just line up in a row. Instead they are lined up vertically. Nothing I do seems to fix it. <head> <link href="css.css" rel="stylesheet" type="text/css" /> </head> <body> <?php function NameChange($num) { $card =...
stackexchange/codereview
I need a regex to match strings that do not end in certain terms. Input is a bunch of Class names, like Foo, FooImpl, FooTest, FooTestSuite, etc. I want to match anything that does not end in Test, Tests, or TestSuite. Should Match: FooImpl FooTestImpl Foo Should not match: FooTest FooTestSuite FooTests I...
stackexchange/codereview
I have a case where I want to allow a form variable to be set to one of a set of value (in my current case true/false) or left unset (in which case no value is returned rather than some 'none' value or a blank). A check box can give the unset bit but only one set value. A radio element could work, sort of. But once a v...
stackexchange/codereview
I have a number of UIImageView which have buttons on top of them. I would like to enable user interaction on the UIImageView behind these buttons. I see the option in IB, but would like to know how to trigger some code when the UIImageView is actually touched. How does one do this and how is it set to enabled and disab...
stackexchange/codereview
I'm creating som custom templates in Wordpress and I'm passing some data in the URL's. Currently my URL looks like this: http://www.mysite.com/designers/?id=43&name=designer+name The URL contains designer ID and designer name. I would really like to use this: http://www.mysite.com/designers/designer+name/ My permalink ...
stackexchange/codereview
I can't understand why the code below doesn't work. The client sends a message to the server, and the server prints the message to standard output. Code for the server: import java.net.*; import java.io.*; import java.math.BigInteger; public class server { public static void main(String args[]) { try ...
stackexchange/codereview
I was reading the Android SQLite NotePad tutorial that referenced creating a DB Adapter class to create and access a DB table. When dealing with a multi-table SQLite Database, is it best practice to create a different Adapter Class for each table or create a single DB Adapter class for the entire Android Application? ...
stackexchange/codereview
Is there any Google Reader API that I can plug in to? I building a clean RSS/Atom reader in PHP and would love to get all the goodies from Google Reader like the history of a feed, able to add comments to each feed item, etc.
stackexchange/codereview
I am writing a template for my first django website. I am passing a list of dictionaries to the template in a variable. I also need to pass a few other lists which hold boolean flags. (Note: all lists have the same length) The template looks something like this: <html> <head><title>First page</title></head><body> ...
stackexchange/codereview
According to this, some members (specifically the one I am interested in is the initial directory member lpstrInitialDir is not supported on Vista. It is important for me to know if it is supported on 2008 and Windows7 - the docs are silent on that. One can either assume since those are not mentioned that it will wo...
stackexchange/codereview
Now i have a table with 4 columns as below seq col1 col2 col3 1 1 2 3 1 1 2 4 2 1 2 3 3 1 2 4 result should be as below number of seq1 s which have ( col1 col2 col3) same for the above example the output is expected as count(seq) col1 col2 ...
stackexchange/codereview
I have a question about sharing queues between processes in Python. Below, I have three queues, one main process, and three inner processes. Each inner process will be adding and getting values from the various queues (they need easy access to the queues). I think it works as it is right now, but this code is the fou...
stackexchange/codereview