instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am in the process of upgrading my builds from TFS 2008 to TFS 2010, and in the meanwhile, I am using the Upgrade template to use the TFS 2008 build definitions. I have installed both a build controller and build agent on the machine that used to run previous builds while I was on TFS 2008. The said machine still has ...
stackexchange/codereview
I am having an issue where my @ViewScoped managed bean is behaving like a @RequestScoped managedBean simply because I am using the composite:insertChildren tag. I have read the other posts on the subject and am aware of the limitations of @ViewScoped managedBeans, but I do not have any explicit bindings nor am I using...
stackexchange/codereview
I'm creating a MVC-application which currently uses EditorFor to gennerate a lot of views. The whole view is basically just an EditorForModel, and it works great. However, I've reached one small problem, which I can't seem to find a solution for, and it is important that it works the way I need it to, and that is when ...
stackexchange/codereview
I want to create a contact group, give it a particular name and then add contacts to it. I can make contacts by using RawContacts class but I do not know how to create a contact group and then add contacts to that particular group. Can someone please help me out with some sample code?
stackexchange/codereview
I need to include an offsite javascript file on my page, however I don't want it to be able to affect the performance of my site, in case the server where the javascript is on is down or not responding. What I'd like to know, is if it's posible with javascript to make some sort of wrapper function to ensure that the pa...
stackexchange/codereview
I have an app built using Visual Studio 2005, which can run rpt files. The .rpt files are stored in a particular folder and the db has metadata about the report name, filename, and stored procedure to run for it. When a user runs a report I call the appropriate stored proc to get a DataTable, create a ReportDocument an...
stackexchange/codereview
Let's say I have SalesManagerId, SaleAmount, ProductId I want to sum up the SaleAmount for each (SalesManagerId, ProductId) and grab the ProductId with the maximum sum(SaleAmount). Is this possible in one query? Example: 1, 100, 1 1, 200, 1 1, 600, 1 1, 400, 2 2, 100, 3 3, 100, 4 3, 100, 4 2, 500, 6 3, 100, 5 result:...
stackexchange/codereview
I had a quick Google, and a quick look around StackOverflow, but couldn't find anyone else who'd run into this problem. I want to create a close button with a little X in it. The close button will do things like fade in and out when you're hovering over the item containing it, change colour when you mouse over, and all...
stackexchange/codereview
I can't figure why the django translation (i18n) doesn't work. I use english in the code and I've written translations for french. Strangely, it works when I use django.test.client.Client but not when I use a web browser. I've tried to set the Accept-Language to fr in my browser settings and I've also tried to delete t...
stackexchange/codereview
With Java, how to store around a billion of key-value pairs in a file, with a possibility of dynamically updating and querying the values whenever necessary?
stackexchange/codereview
Should implement the solution with JCE I Have a Public Key String generated using the KeyPairGenerator. How do I load this in openSSL Api call using PEM_read_bio_RSAPublicKey? Or this will have the x509 spec encoded how do we remove and generate the public which is compatible with the openssl api call? try { // Get...
stackexchange/codereview
If I run the query: SELECT board.id, board.name FROM board INNER JOIN group_assoc ON group_id IN ( "4,9,12,15,18,21,22,55,57,83,84,86,89,92,95,98,104,105" ) AND group_assoc.board_id = board.id INNER JOIN category ON category.id = board.category_id AND category.forum_id =2 I get a different result than SELECT board.id...
stackexchange/codereview
For example, I have a trusted client and a server. The client wants to execute arbitrary code on the server. Can this be achieved using RemoteActor (serialize a function and send it across the network, deserialize it and execute it)?
stackexchange/codereview
Question: Is it possible to get a colors luminance value in php? What I'm trying to do is get the most "visually prominent" colors from an image with PHP. I've gone through all of Stack Overflow and I've not been able to find any solution. Currently I've built a color search by images that loops through every pixel of ...
stackexchange/codereview
In this bit of jQuery, you can click and drag in the white area to create boxes. How can I add the boxes programatically? Thanks for reading.
stackexchange/codereview
This code is working fine in VB.Net how i convert it to C#. Dim alpha As String = "./;'[]<>?:""{}\|~!@#$%^&*()_+-=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ " If InStr(alpha, e.KeyChar) Then e.Handled = True
stackexchange/codereview
I have a horizontal scrolling website and I'd like to have the page reset to the far left (original position) when the page is refreshed. As of now I've tried using jQuery .scrollLeft but can only get it to work when the page initially loads. Is there a way to set it to work when the page is refreshed or another way to...
stackexchange/codereview
I created a TCustomComponent and i am having problem on installing it. Error Message "????.dll not found and cannot install package". but it work if you copy it to the system directory. My question is, how to make my component installed like normal component without copying the .dll to the system directory or into the...
stackexchange/codereview
We have an application that includes a voting component. To try and minimise voter fraud we allow N number of votes from the same IP address within a specific period. If this limit is hit we ignore the IP address for a while. The issue with this approach is if a group of people from a school or similar vote they quickl...
stackexchange/codereview
I've done some experiments using Apache Bench to profile my code response times, and it doesn't quite generate the right kind of data for me. I hope the good people here have ideas. Specifically, I need a tool that Does HTTP requests over the network (it doesn't need to do anything very fancy) Records response times a...
stackexchange/codereview
What is the difference between Visual Studio LightSwitch and WinForms? Why we should choose one over the other? Update: I understand that LightSwitch is an application framework. May be the better question is, how a LighSwitch application compares to a windows forms application built with Composite Application Block ...
stackexchange/codereview
Am using MS Access as my back end and I am having a table called "Dept" with 2 columns (dename & cname). In Vb.Net when I click a command button, all the data's of the first column should be displayed in ListBox1 and the Second column in ListBox2. I do not know how to proceed, Can any one help ?
stackexchange/codereview
Does anyone have experience with storing data on disk? What I have is an in-memory modelling application that can do calculations etc. Basically the data is stored as lists of objects, that have nested key-value collections like Dictionary< int, Dictionary< int, T>>. Right now I use SQL-Server as a persistance layer bu...
stackexchange/codereview
I'm developing an add-on for Excel in C# which includes an RTD server. Because we do not have a SQL database yet, I must use an XML file to store the data. The XML file is updated via a C# function used in Excel on one side. On the other side, multiple users must be able to retrieve this data in real time. When I'm run...
stackexchange/codereview
is it possible to use ffmpeg to convert a movie with variable framerate to a sequence of still pics without duplicates? I tried something like: ffmpeg -i vid.avi pic%d.png but each frame generates thousands of pictures. I also tried: ffmpeg -i vid.avi -r 10 pic%d.png but I still have lots of duplicates AND some frame...
stackexchange/codereview
I am developing my first app on the G1, with firmware 2.2, and my code crashes on the emulator and on the phone when I try to run it. I have the following: public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // Prepare recorder source and type recorder = new MediaRecorder(...
stackexchange/codereview
We can restrict the type be the class or struct. Can we strict the type be a delegate?
stackexchange/codereview
I want a regular expression to test that a string meets the following rules: It must not begin with .. It must not end with .. It must not include special characters like !@#$%^&*, but can include .. It must not include two dots . side by side. Sample valid input: na.me (single dot in middle) Sample invalid input: ...
stackexchange/codereview
IQueryable<vwCandList> vwt = from o in this.ObjectContext.vwCandLists where o.ID == ownerID select new vwCandList { noteID = o.noteID, DateMade = o.DateMade.Value.AddMinutes(600), ...
stackexchange/codereview
I need to encrypt an IP address, save it to file, and then be able to retrieve it later. I was wondering if anyone could suggest a good way to do this. Just the name of some encryption algorithms would be fine or links to resources. Ive done my research and have come up with a few solutions. Just wanted to make sure th...
stackexchange/codereview
I'm having trouble with the implementation of SqlDependency in my project. I'm using SqlDependency in a WCF Service. WCF Service then holds in memory cache all results from all tables in order to have a huge speed gain. Everything seems to be working fine, except when I'm doing a table row update. If I add or delete a ...
stackexchange/codereview
I'm writing a game for Android. When the user completes a level, they can restart from the next level if they lose (i.e. I need to store an integer to remember which level they got to). If the app is interrupted during play, I save the world state to disk (this is complex state storing a map and game entities). I'd lik...
stackexchange/codereview
I wrote a quick test with audio in HTML5. It worked on Chrome, Firefox 3.6 and Opera but I haven't tested on Safari. It turns out Safari on Windows and iPod doesn't support this. I know Flash is used as a fallback for older browsers on some sites but that's not an option for the iPod. How do I play sound on webpages? I...
stackexchange/codereview
Excuse the simplicity of this request - but is there a way for me to link onClick commands for buttons through the Layout rather than code. I am trying to create a simple app and I want to be able to make buttons and have clicks go from one "page" to the other. If not, could someone please point me in the direction of ...
stackexchange/codereview
Apologies in advance if this question is malformed or a bit thick but here goes... I have a php form wh reviews data entry One part of it deals w uploaded files. There are 3 checkboxes for three possible files that can be uploaded per table row. There are 3 fields in the db relating to these possible file uploads. Tic...
stackexchange/codereview
Recently I've been studying parsers and grammars and how they work. I was reading over the formal grammar for JSON at http://www.ietf.org/rfc/rfc4627.txt, which uses EBNF. I was pretty confident in my understanding of BNF and EBNF, but apparently I still don't fully understand it. The RFC defines a JSON object like ...
stackexchange/codereview
I've profiled my code and realised, that Zend_Loader::loadClass takes a lot of time (like 100ms of each request). I see the point - being run for every class it's no surprise. We already use opcode caching, but I want more. What I want to do is to merge frequently used classes to one file and require that file in boot...
stackexchange/codereview
Previously, we have a legacy system, which we are using C++ code to generate reports in Text file and Excel file. However, it is a pain to perform manual coding to perform all the raw data processing and report format rendering. Recently, we had success to migrate all the raw data into SQL database. To avoid writing ma...
stackexchange/codereview
What I've been looking for is the function in the title. I could write something in parsec, but before I do, anyone know of anything like this? Thanks for your help!
stackexchange/codereview
My program compiles and runs correctly but after the execution, my program crashes. Below is my code: public class Hi { public static void main (String[]args) { System.out.println("Hi"); } } Can anyone help me regarding this... thanks.
stackexchange/codereview
The thread created by the following is the foreground thread Thread workingThread = new Thread(new ParameterizedThreadStart(DoJob)); Can I make the thread created background?
stackexchange/codereview
I am trying to parse emails with python email.parser. When my email contains multiple Received records, email.parser seems like ignoring those records. Fore example, for input : ... Received: from localhost (jalapeno [127.0.0.1]) by jmason.org (Postfix) with ESMTP id 5C4E816F6D for <jm@localhost>; Sun, 6 Oct 2...
stackexchange/codereview
I'm trying to preload assemblies in a background thread and it seems that when the PreLoadAssemblies function is being called nothing happen and like the thread is dead or something (but I do see the thread in the threads list). When I run the code in single threaded environment, it's works fine. Here is where I create...
stackexchange/codereview
Why is the 1st button "active" when I am not hovering over the button or anything. This seems to happen after I change tabs. I suspect that when I change tabs, it focuses the 1st control. Is that the case? I am developing a MVVM app, so from my view model, how might I focus the text box instead?
stackexchange/codereview
I have a test application in c++ starting several threads in its main() and then sleeping in main() forever. One of the threads is doing something that causes a segfault and a coredump is generated (ulimit -c unlimited was set previously). I'm opening the core with gdb and see with thread apply all bt or info threads t...
stackexchange/codereview
I'm using Umbraco 4.5.2 and I have a node with a number of child nodes. Each child node represents a fragment of HTML that will be rendered in a control. The control loops over all the child nodes and renders them. For the moment I have a bit of a dirty hack going in order to get the thing going (still fairly new to Um...
stackexchange/codereview
I have started using jQuery Validation plugin 1.7. I have a wizard like interface that collect input for several view model classes. I am trying to validate every object showed in a step every time the user click on the NEXT/PREVIOUS button. My jquery code is like this one $w.bind("jwizardchangestep", function (event, ...
stackexchange/codereview
I have a page. The user submits the page and sends it to a PHP results page. It works fine. Now, I want the results page to link to another page, and for the elements on that page to depend on what was on the results page. I know how to pass form variables to another page, but I don't know anything about passing non-fo...
stackexchange/codereview
My PayPal code was working fine on the Sandbox, but when I switched it to live I got errors. function validate_send() { // https://www.paypal.com/us/cgi-bin/webscr?cmd=p/pdn/ipn-codesamples-pop-outside#php // http://stackoverflow.com/questions/3414479 global $system; switch ($system->config['shop/mode']...
stackexchange/codereview
Here is what I'd like to do. I have a function pointer which wants a function like this: void func(int a); so I have a class: class Foo { public: void func(int a); }; Foo *foo = new Foo; something->setFunction(foo->func); or in my case: testWidget[count] = new TestWidget; testWidget[...
stackexchange/codereview
I created a WCF service for logging exceptions (I realize if the network is down, things won't be logged...there are fallbacks in place) Anyhow, it has two methods int LogException(MethodBase methodBase, Exception exception) int LogMessage(MethodBase methodBase, string message, string data) When I try and add the serv...
stackexchange/codereview
i have a XML structure: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <root> <item> <foo1>1</foo1> <foo2>2</foo2> </item> <item> <foo1>3</foo1> <foo2>4</foo2> </item> </root> now i go throw all children with a for loop: for (pCurrentElement...) { } now i want to access throw pCurrentElemen...
stackexchange/codereview
I'm having a hard time trying to figure out a system of naming multi-dimensional PHP arrays, so that by looking at the variable name, you get a hint about the structure of the multi-dimensional array. A fictional example: $task = array('who'=>'John', 'what'=>'wash the dishes', 'priority'=>10); $calendar[$year][$month][...
stackexchange/codereview
I'm currently building a symfony/doctrine app and one model has the following structure: Session: columns: session_id: type: integer(8) primary: true autoincrement: true session_number: type: string(30) This correctly maps to the database as: CREATE TABLE `session` ( `session_id` bi...
stackexchange/codereview
Following on from an SO dicsussion here, I have implemented partial classes so as to create default datetime values for my Created and Modified database fields in a Constructor. Now the problem is that my database has 100+ tables, and 75+ of them have the same basic structure which includes a Created and a Modified col...
stackexchange/codereview
So i'm implementing a heuristic algorithm, and i've come across this function. I have an array of 1 to n (0 to n-1 on C, w/e). I want to choose a number of elements i'll copy to another array. Given a parameter y, (0 < y <= 1), i want to have a distribution of numbers whose average is (y * n). That means that whenever ...
stackexchange/codereview
It worked great before. And now when I'm trying to go to /admin/ I have a mistake: Module "django.contrib.auth.context_processors" does not define a "csrf" callable request processor I read this: http://docs.djangoproject.com/en/dev/ref/contrib/csrf/ Now in my settings are: MIDDLEWARE_CLASSES = ( 'django.middlew...
stackexchange/codereview
I'm trying to declare a function sort : real list -> int list * real list that sorts the list using mergesort and also returns an int list with the original positions of the individual numbers pre-sort. Maybe this example will make it easier to understand: sort [5.4,7.2,1.5,9.6] = ([2,0,1,3], [1.5,5.4,7.2,9.6] Now th...
stackexchange/codereview
I'm trying to build a simple program that will fire off a load of processes, and if the main process is killed, the sub processes will die. My code looks like this: import time def test_proc(name, conn): x = 0 while True: print x x += 1 conn.poll() from multiprocessing import Process,...
stackexchange/codereview
I'm wriging a wrapper for C++ of a function declared in this way: class MyClass { public: template <class T> T& as(); }; My wrapper needs to eliminate the explicit template because I don't want to call myClass.as<int>(); So I tried to implement a new function declared in this way: class MyClass2 : public MyClass {...
stackexchange/codereview
I read this article: https://www.ibm.com/developerworks/java/library/j-javadev2-8/index.html The abstract class Model in Listing 2. have static variable datastore. abstract class Model { static def datastore = DatastoreServiceFactory.datastoreService ... The class Race in Listing 3. extends the abstract class Model...
stackexchange/codereview
Is there a shortcut key in Visual Studio that will minimize all of the regions or + signs so that I don't have to go through and click each one individually?
stackexchange/codereview
I would like to learn OpenGL programming on LINUX. I have found that I learn the quickest if I have a small self contained working project I can study and tweak. I could work with C, C++ or python source code. Where can I find a good starter OpenGL example project that builds without too much hassle on Ubuntu 10.04?
stackexchange/codereview
this string search was provided by Paul.R (much appreciated Paul): ** find dir -type f -print0 | xargs -0 grep -F -f strings.txt ** Note, I am using the above search argument to perform a recursive directory search for hard coded path names within shell scripts. However, due to the limitations of the Unix environ...
stackexchange/codereview
So, my code was using relative paths, but running into some problems with common files which could be include/required from different directory levels. Absolute paths are more efficient anyway, right? So, I changed all include/require to absolute paths, using require_once('http://' . $_SERVER['HTTP_HOST'] . 'file_name....
stackexchange/codereview
I have a string that contains a float value in hexadecimal characters like this: "\\64\\2e\\9b\\38" I want to extract the float, but in order to do that I have to make Python see the string as 4 hex characters, instead of 16 regular characters. First I tried replacing the forward slashes, but I got an error: >>>> hexs...
stackexchange/codereview
I have taken function "functionRemainCount()" in .js page. I want to call inside the .aspx page . I have used code like this but it gives error that function name does not exit in current context that correct because it is used in .js file. So how to call the function? Please tell me. My code is this: protected void Pa...
stackexchange/codereview
I had label in panel in datalist and I added code in item databound for datalist to add cssclass to label if specific condition the code work well and I find label but the cssclass hadnot make any action on label.and I didnot know what is wrong? protected void DataList1_ItemDataBound(object sender, DataListItemE...
stackexchange/codereview
I need a regular expression that will extract complete path to a file from a string that looks like: c:\DevProjects\Web Projects\RD_deploy\obj\Release\Source\App_Code\BusinessLogic\WebMethodTypes\WebCompressionResult.cs(33): error CS0246: The type or namespace name 'CompressionResult' could not be found (are you missin...
stackexchange/codereview
I have two files: file 1 dsf sdfsd dsfsdf file 2 ljljlj lkklk dsf sdfsd dsfsdf I want to display what is in file 2 but not in file 1, so file 3 should look like ljljlj lkklk
stackexchange/codereview
I have a JQuery "collection" of li objects (result of applying .filter())... The collection is named results ... Because of javascript pagination i am trying to find an efficient way to make elements visible from index x up to index y... This test didnt work results.find(":lt(5):gt(0)").show(); Iam just trying to f...
stackexchange/codereview
I've been playing with Objective-C the past couple of weeks and have a working app that performs an async HTTP Request to pull some data from Twitter. I come from a web application background and have become use to how Javascript handles callbacks by passing a function that is called when an XHR request is done loadin...
stackexchange/codereview
I'd like to know if there is a performance difference between those two codes : Open strFile For Output As #fNum For var1 = 1 to UBound(strvar1) For var2 = 1 to UBound(strvar2) For var3 = 1 to UBound(strvar3) For var4 = 1 to UBound(strvar4) Print #fNum texte Next var4 Next var3 ...
stackexchange/codereview
Here is my code: function phpwtf(string $s) { echo "$s\n"; } phpwtf("Type hinting is da bomb"); Which results in this error: Catchable fatal error: Argument 1 passed to phpwtf() must be an instance of string, string given It's more than a little Orwellian to see PHP recognize and reject the desired type in the s...
stackexchange/codereview
I hear this term used quite frequently, but have yet to see it specified (and can't find it by searching). Single starting hands are pretty straight forward. Here, I'm using pokerstove syntax as an example: XX for a pair (e.g.: 77, 99, TT, KK) XYo for an off suit combination (e.g.: 72o, 54o, AQo) XYs for a suited co...
stackexchange/codereview
I'd like to Write-Verbose a lot of data to an out file. Here's how I'm doing it. Start-Transcript -Path $TargetDir\RunUnitTests.log -Width 1000000 Write-Verbose "five million character lines and stuff" This works great, except that the output is auto wrapped to the standard width of a console, this makes the log look ...
stackexchange/codereview
I want to allow users of my site to post urls. These urls would then be rendered on the site in the href attributes of a tags. Basically, user A posts a url, my site displays it on the page as an tag, then user B clicks it to see pictures of kittens. I want to prevent javascript execution and xss attacks, and ensure t...
stackexchange/codereview
Can someone summerize the thread created/used by .net foreground or background? Some cases are: Direct creation by using new thread Use threadpool thread use Async programming model like delegate.beginInvoke etc
stackexchange/codereview
i'm currently working on a asp.mvc application with entity framework as db backend which will be running on ms azure platform. on my development machine i'm running a sqlexpress instance which hosts my development database (like i said may app connects via entity framework to it). deploying the database schema from my ...
stackexchange/codereview
the constructor for my engine constructs audio, video and input objects with a pointer to itself (this). However when I debug, I see all the classes I construct's enginePtr is not the same as the value of this provided by the debugger. When I peek inside, I see for example, the enginePtr of pRender has different values...
stackexchange/codereview
ive ran into some trouble configuring java3D to work with my IDE environment... I have downloaded j3d-1_5_2-linux-i586.zip, and unpacked j3dcore.jar, j3dutils.jar, vecmath.jar, libj3dcore-ogl.so, libj3dcore-ogl-cg.so and added them all as 'Referenced Libraries' within my project folder. this gets rid of any compilation...
stackexchange/codereview
I am trying to make xwchat and xmpppy work together following this blog post , http://codingcromulence.blogspot.com/2009/01/chat-hacking-part-ii.html But unable to get session id and other information from xmpppy connection. Does anyone has prior experience with this ?
stackexchange/codereview
The string contains one or more "@" symbols. One or more of those symbols must have a character after it (not a space).
stackexchange/codereview
My application has a fixed set of SQL queries. These queries are run in polling mode, ever 10 seconds. Because of the size of the database (> 100 GB), and the design (uber normalized), I am running into performance issues. Is it possible to get incremental changes to a given query, whenever a CRUD event happens on the ...
stackexchange/codereview
In the following code I am trying to make a hexagon using points I derived by hand for the unit hex and then I would like to scale it up. However, it does not work. Instead of of a white hex with a green border I get a solid green hex. Am I misunderstanding the effect of the transformation Scale? It seems to start with...
stackexchange/codereview
You can redirect calls to some properties/functions by using __get, __call. Is there a way to do it for classes? I would like to convert all mentions of some_class_name in the code to, MY_VERSION_some_class_name (not only for one class, it's a pattern). This would be easy if methods / properties were the target of ...
stackexchange/codereview
I'm not able to require EventMachine in a simple test program. I'm running Ruby 1.9.2 (x86_64-darwin10.4.0) and Rails 3.0.1. EventMachine is installed (via gem install eventmachine) and gem knows it: gem list --local *** LOCAL GEMS *** abstract (1.0.0) ... erubis (2.6.6) eventmachine (0.12.10) i18n (0.4.2) ... tzi...
stackexchange/codereview
<span class='python'> <a>google</a> <a>chrome</a> </span> I want to get chrome and have it working like this already. q = item.findall('.//span[@class="python"]//a') t = q[1].text # first element = 0 I'd like to combine it into a single XPath expression and just get one item instead of a list.I tried this but it ...
stackexchange/codereview
Is there any possible way from which i can access my friends email using php-sdk? Assuming that I am logged in is it possible to see the same info through a php script .What i want to do is send a gmail invite to all my friends on facebook using graph.facebook.com/$id/ it asks for a access token please help me with it ...
stackexchange/codereview
I want to use nose to test an application that I am writing using twisted and txmongo. I can't even get simple use cases like the following working: from nose.twistedtools import reactor, deferred, threaded_reactor import logging from twisted.internet import defer import txmongo log = logging.getLogger(...
stackexchange/codereview
I thought, one day that I should try out WPF. Turns out I fell at the first hurdle. I inserted code from an Inkscape generated xaml file, then wrapped it in Viewbox tags. I had the error that it didn't exist in the namespace. What am I doing wrong? Do I need some sort of reference? <Viewbox Grid.Row="1" Name="v...
stackexchange/codereview
OK, I'm having trouble looping through these sub-nodes. For this example, I'll show you the code I am using to try to grab the Amenities from a Hotel Info feed. The XML doesn't appear to be formatted great, and unfortunately I don't have control over that. Here's my code. $xml = simplexml_load_file("http://www.2-20....
stackexchange/codereview
i have very simple basic form in HTML and i want to validate the form using jquery.. i tried using bassistance.de validation plugins but did not work <table cellspacing="2" cellpadding="2" border="0"> <tr> <td align="right">First Name</td> <td><input type="text" name="FirstName" class=" text hasCorners"></td> </tr...
stackexchange/codereview
I'm very keen to update a number of our servers to PHP 5.3. This would be in readiness for Zend Framework 2 and also for the apparent performance updates. Unfortunately, i have large amounts of legacy code on these servers which in time will be fixed, but cannot all be fixed before the migration. I'm considering updati...
stackexchange/codereview
On a complex library with lots of delegates and method forwarding. I get a lot of warnings on the main class saying it might not respond to the selector. The object creator returns: - (id<MainProtocol>) foo; Is there a way to indicate to the Obj-C compiler that the protocol responds to any selector, without warnings ?...
stackexchange/codereview
I'm about to develop a web app (PHP/MySQL). I prefer to use the MVC style when developing apps, but I've always struggled writing my own MVC framework in the past so I've started playing with CodeIgniter. After a couple of tutorials I better understand how to properly develop with a MVC framework and I'm totally comfor...
stackexchange/codereview
Im editing my first ColdFusion script .... I have a form which has <input type="hidden" name="name" value="1">. On the processing page i want to take that value and set it as a POST variable so i can send it onto another page. I know how to do it in PHP, like so $_POST['somename'] = $_POST['name'] How would i do that ...
stackexchange/codereview
I want to create/produce XML document from PHP, but not working. I have this code right here: <?php $xml = new SimpleXMLElement("<evalues></evalues>"); while ($row = mysqli_fetch_array($result)){ $evalue = $xml->addChild('evalue', $row[1]); $evalue->addAttribute('id', $row[0]); ...
stackexchange/codereview
I'm running wsgi application on apache mod_wsgi in daemon mode. I have these lines in the configuration WSGIDaemonProcess app processes=2 threads=3 display-name=%{GROUP} WSGIProcessGroup app How do I find the optimal combination/tuning of processes and threads? EDIT: This link [given in answer bellow] was quite usefu...
stackexchange/codereview
I need to customize the normal TCP implementation so that I can implement and test Freeze TCP as described in the following paper: T. Goff, J. Moronski, D. S. Phatak, and V. Gupta, Freeze-TCP: a True End-to-end TCP Enhancement Mechanism for Mobile Environments, In Proceedings of IEEE INFOCOM 2000' Can anybody sugges...
stackexchange/codereview