instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm familiar with how to return json from my @Controller methods using the @ResponseBody annotation. Now I'm trying to read some json arguments into my controller, but haven't had luck so far. Here's my controller's signature: @RequestMapping(value = "/ajax/search/sync") public ModelAndView sync(@RequestParam("json") @...
stackexchange/codereview
i have a command line executable program that accepts a configuration file as it's one argument for launch. the configuration file contains only 2 lines of code: #ConfigFile.cfg name=geoffrey city=montreal currently, the wrapper program that i'm building for this command line executable program writes the configurati...
stackexchange/codereview
In order to steer visitors to the right tab, I put ?tab=1 at the end of a url. Then used JavaScript to open that tab when visitors clicked that URL. Put it in other way. One page has two "URL"(I am not sure if they are). One is www.domain.com/foo.html, the other, www.domain.com/foo.html?tab=2. Only click the last one,...
stackexchange/codereview
In the example below, the Jquery code changes the src of the images on the page to start with "test", and end with ".jpg", but what tells it what i is? if i'm correct, i could also be number, or e, or z, or n, or whatever word or letter i want, so, by placing that i in there, is it saying that i is the current object? ...
stackexchange/codereview
How can I copy text from emacs-w3m when the content is placed in a table? Currently, it copies the table-formatting and boundaries as well. Is there a export as text for w3m?
stackexchange/codereview
I call a page with ajax in a div. when the page opens, there is a "close "button to hide the div. After clicking the close button, I need to refresh the page to reopen the div. What should I do to open and close the div as much as I like without refreshing the page? code: <script> $(document).ready(function(){ $('#...
stackexchange/codereview
I am using RPostgreSQL to connect to a local database. The setup works just fine on my Linux machine. R 2.11.1, Postgres 8.4. I was playing with the 'foreach' with the multicore (doMC) parallel backend to wrap some repetitive queries (numbering a few thousand) and appending the results into a data structure. Curiously ...
stackexchange/codereview
Is it possible to have different set of colors for folds and subfolds, eg: blue foreground on grey background for fold level 1 (default) black foreground on dark yellow background for fold level 2 etc... (although going further down would seem a bit excessive)
stackexchange/codereview
Objective: To pass data from incoming UDP datagrams to 4 threads waiting on their respective queues. The application is supposed to work non-stop for pumping traffic to a DUT and process the incoming messages. This is what I am doing: 1. Public byte[] receiveData = new byte[512] 2. receivePacket = new DatagramPacket(...
stackexchange/codereview
When you establish a shared preference such as below... public static final String PREFS_HI = "MyPrefsFile"; Can you access it from other activities just like you would normally do? SharedPreferences settings = getSharedPreferences(PREFS_HI, 0); Or is there something unique that you must do to access the preferences?...
stackexchange/codereview
I want to add a button at my webpage, when I click the button it will try to locate goo.gl and input the current url. How could I use goo.gl service by javascript? FYI: I found somthing at here http://www.labnol.org/internet/create-google-short-url/11748/ but how to import this function? var auth_token = getUrlShorteni...
stackexchange/codereview
After stopping my web app, a significant amount of PermGen is not being released. The culprit seems to be the WebappClassLoader (in Tomcat, but it happens in Jetty too), which is kept in memory by references from a bunch of other objects. The following image shows that objects that refer to WebappClassLoader, and the t...
stackexchange/codereview
Consider this blob of text: @" I want to match the word 'highlight' in a string. But I don't want to match highlight when it is contained in an HTML anchor element. The expression should not match highlight in the following text: <a href='#'>highlight</a> " Here's what the output should look like (matches are in bold...
stackexchange/codereview
A couple of questions for the real Quartz gurus out there! I am a Quartz.net beginner and hoping for some advice before I get burnt: 1) I schedule a bunch of jobs/triggers to go off at specific times in the future. After those tasks are finished I have no more use for the job/trigger information in the database. Is the...
stackexchange/codereview
What I'm looking for is this kind of command line interaction at the Windows command line: C:\temp1>clj some_script.clj C:\temp2> Where some_script.clj contains something like: (cd "c:\\temp2") So the question is - how do I implement the function cd? Have experimented with clojure.java.shell, but it does not look lik...
stackexchange/codereview
http://www.dreamincode.net/forums/user/335389-sergio-tapia/ I'm the Helper group, currently there are other groups. I want to write all possible groups to a C# class or something and then in the future when other groups are created I'd just modify that "collection of groups". My question is, what C# structure should I ...
stackexchange/codereview
I am creating trees of s-expressions for a genetic programming problem, and need to alter parts of the trees during the evolution process. I came across the Clojure zipper function that seems like it should be perfect, but for the life of me I can't figure out how to use it. For example, say I create a zipper with (def...
stackexchange/codereview
I'm trying to convert the following T-SQL query to linq2sql one. Whatever I do, it translates it to some nasty stuff with cross joins. Any suggestion? Given tables A, B, C SELECT A.Id, A.Name, Pool.Total FROM A INNER JOIN B ON A.Id = B.AId LEFT JOIN ( SELECT AId, SUM(Quantity) as Total FROM C GROUP BY AId) AS Pool ON ...
stackexchange/codereview
Aloha, I just recently started programming in PHP and have a basic naming convention question. I've read a lot of PHP coding standards after reading this post. It made perfect sense to me, since I already prefer to use camelCase when naming variables. Since I'm going to be working with MySQL, I also read up on Datab...
stackexchange/codereview
It's possible to use following method for content's setting of a web-view loadData(String data, String mimeType, String encoding) How to handle the problem with unknown encoding of html data?! Is there a list of encodings?! I know from my college that in my case html comes from DB and is encoded with latin-1. I try to ...
stackexchange/codereview
How do I clear/reset the BackColor of a windows application form? For instance, I have a set of radio buttons, each one changes the color of the background form color, when I reset the radio buttons I would also like to reset the color of the form back to it's original state?
stackexchange/codereview
I have this script <input type="Button" class="button-calendar" value="add"> <ol class="ol-calendar"> <li><input type="Text" class="text-calendar" name="calendar_1" id="calendar_1"></li> </ol> <script type="text/javascript" src="../js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="../js/jquery-...
stackexchange/codereview
I like to use the "Del" key when I type, but often miss and hit the "Help" key by mistake, which can be costly (another window opens, sometimes steals the focus, etc.). I'd like a software solution such that hitting the Help key does nothing. Yes, I've tried remapping it. There are a ton of resources around on how to ...
stackexchange/codereview
i saw a javascript implementation of sha-256. i waana ask if it is safe (pros/cons wathever) to use sha-256 (using javascript implementation or maybe python standard modules) alogrithm as a password generator: i remember one password, put it in followed(etc) by the website address and use the generated text as the pass...
stackexchange/codereview
I'm trying to add a blur event to some form elements which will run some code for me. After the initial blur, I'm trying to remove the listener from that element so that it doesn't fire again. The onblur event works fine, but for some reason the eventListener.remove never seems to fire, so blur doesn't get removed. Any...
stackexchange/codereview
Is it possible to modify the commented part of the default git commit message? I want to add a bit more 'context' information for my users. # Please enter the commit message for your changes. # (Comment lines starting with '#' will not be included) # Explicit paths specified without -i nor -o; assuming --only paths... ...
stackexchange/codereview
dear all, i have two buttons inside my page. i want for the 1st time the 2nd button cant click(inactive), but we can click it after we click at the 1st button. And of course after 1st button clicked, it become inactive. this the sequence: button 1 ---> active button 2 ---> inactive then click "button 1" button 1 --->i...
stackexchange/codereview
I'm trying to implement "PageAsyncTask" in asp.net 4.0.When i tried to declare "AsyncTaskDelegate" it showed a design time error.I checked the library reference.System.Web and Remoting are referenced but im still not able to figure out why it's missing. And AsyncMethodCaller caller = new AsyncMethodCaller(someMethod);...
stackexchange/codereview
I have a project to create a high traffic search engine similar to altavista.com. The windows .NET C# will be used for the project. I am looking for a good search engine database that can handle a very high load. I have taken a look at lucene and sql server 2008. I have read that lucene tends to get corrupt when the lo...
stackexchange/codereview
We have a custom attribute that our previous developer (recently disappeared) has created in the magento admin area. This is a getIn_stock attribute which is reading from the point of sale system to check stock levels. It is returning either a 1 (in stock) or a 0 (out of stock). I have been digging around to see how I ...
stackexchange/codereview
I tried to make a portable(small sized) Ruby(1.9.2) that I can save in my repository, so whenever developer checked out the source code, they can build the code with Rake without having Ruby installed. AllInOneRuby works with Ruby version 1.8.7, but doesn't work with ver 1.9.2. from the comment at running-ruby-and-rake...
stackexchange/codereview
So this is sort of an exceptional case situation - I have a plugin that I can't modify for contractual reasons. It displays a set of drop downs and I need it to display a set of radio buttons instead. Is there a js/jquery method for converting dropdowns to radio buttons w/o changing the HTML. Remember, I can add stuff ...
stackexchange/codereview
I have two master-detail datawindow which are linked through pfc's linkage service. Now I have read in the documentation that when using FILTER style retrieval code must be placed inside the detail window's pfc_retrieve event. What code/function call should I place there so that when the master windows's retrieval has...
stackexchange/codereview
I have a technical question for the experts in here: I am developing an OpenGL application for iPhone using openGL 1.x . When i render a big item on the device it become obviously slower and that's seem quite normal to me. But i would have expected an increase of framerate when the object is highly zoomed in as the maj...
stackexchange/codereview
HI all I have problem when trying to convert list collection string to one line string. But for each item i must edit with specific format. Example List<string> items = new List<string>(); string result = string.Empty; items.Add("First"); items.Add("Second"); items.Add("Last"); result = string.Join(",", items.ToArray...
stackexchange/codereview
i am working on crystal reports 11. Just added a stored proc with 2 parameters. but refreshing the report does not prompt for new parameters. Any suggestions. Thanks Amrita
stackexchange/codereview
What is the correct way of showing a new View with more detailed information from a ListView in Android? It's a topic that I can't find a solid answer for in either of these Android books. For example a list of contact names, one is selected and a view shows their full details. Do I launch a new activity for this or us...
stackexchange/codereview
I’m using iText to generate a PDF document in my Java EE application. Coding for the PDF file is reside in a JSP. I want to achieve the following page formatting in my each page footer, REF: XXXXXXX                                                           Page X of Y How can I get Page X of Y
stackexchange/codereview
I have a variable of XDocument, and I want to display its structure in a TreeView. I tried TreeView1.DataSource = doc; but I got this error HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.
stackexchange/codereview
How can I add more "custom" symbols in the Insert Special Character panel please? Thank you.
stackexchange/codereview
When I try to run the following: ​<div id="container"> //This is a 200x200 image <img src="http://dummyimage.com/200x200/CCC/000" /> </div>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​ with CSS: ​#container { background:#000; } ​I get a DIV with a black background container like I want. ...
stackexchange/codereview
As I'm rolling out my Flex app to Beta I realized that I need to know about any exception that happens in Flex Side. But as it runs on users machines I don't get to see them. Is there a way to make Flex send email every time an exception happens?
stackexchange/codereview
I have a small program. #include "mpi.h" #include <stdio.h> int main(int argc, char *argv[]) { int rank, size; int buf; int err; MPI_Status status; err = MPI_Init(&argc, &argv); if(err == MPI_SUCCESS) { MPI_Comm_size(MPI_COMM_WORLD, &size); MPI_Comm_rank(MPI_COMM_WORLD, &rank); if(rank == 0) { printf("Buffer size is...
stackexchange/codereview
What is the best module or approach to serialize data into a database? Currently I am looking into Storable functions freeze and thaw, example: use Storable qw(freeze thaw); use strict; my %array_test = ('Year Average' => 0.1, 'Color Average' => 0.8, 'Humans' => 0, 'Units' => 1); my $serialized_data = freeze(\%array_t...
stackexchange/codereview
We are a .NET component vendor, our product needs to connect to the internet to be activated. In Visual Studio 2010, as soon as you create a new WinForms project the .NET Framework 4.0 Client Profile is selected not providing the necessary support for internet connections. Despite this arguable Default chioce, is there...
stackexchange/codereview
I want to create a client/server web application. The client and server can exchange data back and forth. When i say data i mean like a number, for example (0,8,7...), so everytime a client presses a button it sends a number to the server and the server send an acknowledgement back to client. The cleint side i want ...
stackexchange/codereview
When I have 2 objects to save inside a transaction a = A.new(...) b = B.new(...) Does it matter on which model class I invoke the transaction method? A.transaction do a.save b.save end or B.transaction do a.save b.save end IMNO both use the same db transaction, because ActiveRecord can only handle one co...
stackexchange/codereview
I'm looking at feeding dojo charts with data from google analytics, within a Zend Framework app. Has anyone done this or have any overview as to how I would go about it? I see there is a dojox.data.GoogleSearchStore. Does it make sense to have a dojox.data.GoogleAnalyticsStore and is anyone working on something like th...
stackexchange/codereview
Assuming the class public class Foo { public List<Bar> Bar = new List<Bar>(); public string Something; public TStatus Status; } Bar is a class defined as public class Bar { public string Code; public string Message; public TStatus Status; } I need to iterate the list Bar but I cant use a for...
stackexchange/codereview
I'm defining a create() method in django-piston. I need to be able to receive and image with its description enconded in JSON. How to do it? Shall they be processed in two separate HTTP requests?
stackexchange/codereview
I already know how XSS works, but finding out all the many different ways to inject malicious input is not an option. I saw a couple libraries out there, but most of them are very incomplete, ineficient, or GPL licensed (when will you guys learn that GPL is not good to share little libraries! Use MIT)
stackexchange/codereview
I am using VS2010 and having an issue where upon opening my solution the Workflow.xamlx does not appear to render correctly. The activities on the design surface only get drawn for the area that is initially visible when the xamlx loads. To demonstrate the problem, I see the following. (I apologize for the blur) The f...
stackexchange/codereview
Is there any way to make TextMate indent an entire line when only part of it is selected? Currently, when I select several lines by dragging my mouse over them, or holding shift and pressing up/down, pressing the indent key (Opt-TAB) only shifts the selected portion of the line by one indent level. That is worse than...
stackexchange/codereview
I've just set up a new Ubuntu 10.4 slice on Slicehost, and have installed apache, mysql and php. I've uploaded my CakePHP app and everything is running fine, except for the webroot being inaccessible. I have tried adding AllowOverride to all in /etc/apache2/sites-available/default and followed the Cake instructions to...
stackexchange/codereview
in my application I am doing conversion from, xml to Json object with this method; JSONObject result = org.json.XML.toJSONObject(postData); But, I have problems with turkish characters. It is not converting turkish characters from xml to json. How can I do this? Thank you.
stackexchange/codereview
My app plays a movie and I must keep track of, and interact with the playback time. I use the currentPlaybackTime property to grab a double value of the movie's playback time. I want to use this to trigger some if statements at certain points, But first it would be really helpful if I could convert the value into a val...
stackexchange/codereview
I'm working on a joomla component that includes building a schedule. On any given day it needs to look at a set of rules (day of the week, date of the year, type of event) and return all of the possible start times. It would make sense to have a class that calculates these things, but I'm not sure it fits in the model ...
stackexchange/codereview
I have many ImageViews set with OnClickListeners. They extend beyond the screen, contained in a ScrollView. When scrolling down and clicking an ImageView that was previously beyond the screen, onClick(View view) does not seem to execute until the second click. It behaves normally otherwise. My Activity implements OnCli...
stackexchange/codereview
$doc = new DOMDocument(); if ($doc->load('http://foo.com/bar.xml')) { // good } else { // wtf happened? } I can wget http://foo.com/bar.xml from the location where the PHP code is running, so I know the URL is accessible. I'm thinking it must be something other than an HTTP error. I'm not sure what else could be ...
stackexchange/codereview
Is there a language specification for clojure? Something that precisely defines the lexical syntax and grammar in EBNF or something similar? The closest thing that I could find is the clojure website, but that doesn't really quite meet the requirements of a language spec (despite being an absolutely wonderful resource...
stackexchange/codereview
New code.... #include <cstdlib> #include <iostream> #include <fstream> #include <iomanip> using namespace std; void gradeg (double & average, string & grade) { if (average >= 90) { grade = "A"; } else if ((average < 90) & (average >= 80)) { grade = "B"; ...
stackexchange/codereview
I am facing a problem while displaying the image in iphone. I used the below code but it work only for .png files. UIImageView* imageView=[[UIImageView alloc] initWithFrame:CGRectMake(6,10, 80, 80)]; imageView.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:customerListObject.custo...
stackexchange/codereview
Suppose I have few model classes like Person.cs, Car.cs, Manufacturer.cs each of which has 30-40 properties of varying datatypes. These models have to be populated using a Linq based framework called 'XrmContext' based on a Guid (primary key) match. Ordinary way of doing this to populated each column one by one manual...
stackexchange/codereview
Possible Duplicates: Overriding vs Virtual How am i overriding this C++ inherited member function without the virtual keyword being used? I am learning C++ at this moment, but I'm not completely in the dark when it comes to programming languages. Something makes no sense to me. My understanding is that a VIRTUAL fun...
stackexchange/codereview
I have several images: <img class="photo" src="{{ img.url_small }} /> <img class="photo" src="{{ img.url_small }} /> <img class="photo" src="{{ img.url_small }} /> I'm trying to change the border color when the user hovers over the image or clicks on it: $(".photo").click(function() { $(".photo").css({"background":...
stackexchange/codereview
Please can any body provide me suggestions for standards that you feel are necessary or are areas where effciency/maintenance would improve through standardization. Like GUI,Controller,Repository. Any ideas reagrding ViewModels can be specified under the Controller section? if we place any good results? Thanks
stackexchange/codereview
I am upper level CS major, and I have no idea how to do debugging. No where in my courses they are teaching/showing debugging, and all my course works goes like this - here is the project, write a program in C that does XYZ, and by the way use GDB debugger. Currently, I am taking Assembly language course, and instruct...
stackexchange/codereview
I have few questions based on following scenario: I have a LoginController with following methods: public ActionResult Login() { return View(); } [HttpPost] public ActionResult Login(UserObject user) { Calling Besiness Service to Validate User againts DB (Using Repository)... if (success) { ...
stackexchange/codereview
I am developing a Java Android application that displays web content from the assets folder in a web view. I had no problem getting this content to display in the application but I am confused as to why my images are not displaying properly. I'm working with a Motorola Droid that is supposed to be 480x854 resolution. W...
stackexchange/codereview
Is there a way in any of the three major Windows Browsers (Firefox 3.6, Chrome, Internet Explorer 8 and soon 9) and ideally for Safari on Mac to 'record' my interactions with the Website? By that I mean recording something like Clicked Button 'btnSubmit' Entered 'bla' in input 'txtSubject' DOM Interactions that is. I...
stackexchange/codereview
G'Day, I want to use the Windows API Postmessage() call from inside a MySQL UDF on MySQL 5.1.51 (XP SP3). I know the UDF (Written in Delphi 2006) is working by setting a bogus result for the UDF. The syntax of the UDF takes two integer params, one for a window handle and the other for a message number. However a call ...
stackexchange/codereview
ok i have this jquery $('.make_request').ajaxForm(function() { // $('.band_notice').show(); $(this).parents('.accordionContent').find('.band_notice').show(); }); I am using this plugin I need to find the class element .band_notice that is in the form clicked here is my html <div class="accordionCon...
stackexchange/codereview
This is the code that I'm currently working with, and I'm getting this problem. I'm novice at Excel and I can't figure out what's wrong. Private Sub cmdRecord_Click() Sheets("BxWsn Simulation").Range("Result").Select //This is the line with the problem, as excel told me. Selection.Copy Sheets("Reslt Record").Se...
stackexchange/codereview
I am trying to build a survey app in rails 3. Basically I need to make a wa yi to accept responses from a set of questions. (surveys have many questions and responses.) I got it to render but when I submit it it sends as a put instead of a post. So is there any way I can add a custom put route to my response controller...
stackexchange/codereview
So from my understanding (one of) the biggest allures of Obj-C is the dynamic, message-passing runtime. How's this and other features overall beneficial to Cocoa development? Why was Obj-C used for Cocoa dev and not C++/C? Basically I'm trying to understand how such language features are actually beneficial in terms...
stackexchange/codereview
Is there a way to detect this in Flash?
stackexchange/codereview
How do I determine the host key of the keyboard of my system ?
stackexchange/codereview
Ive searched everywhere for this but cant find the answer. I have used the following code before to change repeated items properties in an asp.net repeater as after they have been bound to do things i couldnt do prior to binding them. protected void rowRepeater_ItemBound(object sender, RepeaterItemEventArgs e) ...
stackexchange/codereview
I have a need to create a couple of classes that will serve as base classes for some data functionality I want to implement. The first, we'll call SessionObjectDataItem looks like this ... public class ObjectSessionDataItem { public int ID { get; set; } public bool IsDirty { get; set; } public bool IsNew { get;...
stackexchange/codereview
My problem is, that I have simple Pojos or simply objects that contain data. These can vary and new types of these can be added during runtime. So I need a Swing GUI to input text to them. Is there a framework that dynamically creates a Swing GUI from a POJO during runtime? Technically, it should be possible using ref...
stackexchange/codereview
Hi all I need to declare a variable in Node to keep position of that node so I declare it in node.h like: std::vector<double> exPosition;(public) then I defined a simple function for getting this variable like:virtual Vector GetmyPosition (void) const=0; then in node.cc I wrote this simple function: node::GetmyPositi...
stackexchange/codereview
I am creating a web application .. Through the application I will send mails to my clients(From e-mail address:admin@domain.com)... If any client reply for my mail(To e-mail address:admin@domain.com) I want to read that details from admin@domain.com and insert into sql server database.. Please share your ideas to fix m...
stackexchange/codereview
I am doing deepcopy on a class I designed, which has multiple lists as attributes to it. With a single list, this is solvable by overriding getstate to return that list, and setstate to set that list, but setstate seems unable to take multiple parameters. How is this accomplished?
stackexchange/codereview
If I have an entity called Foo that looks a little like this: @Entity public final class Foo { private int id; private String name; ... } I want to retrieve the names of the Foo objects that have an id greater than 10. If I already have a collection of Foo objects, I could do something like this: List<Foo...
stackexchange/codereview
I'm trying to position a little down arrow beside a textbox. jsFiddle example How can I make the box fit snuggly against the input, such that their tops and bottoms align? Must be a way to grab the position info was JS/jQuery and then... what, should I absolute-position it? Edit: Got it pretty darn close to how I want...
stackexchange/codereview
Basically this is what I'd like to do: struct A { enum E { X, Y, Z }; }; template <class T> struct B { using T::E; }; // basically "import" the A::E enum into B. std::cout << B<A>::X << std::endl; The reason why is that I want to basically inject the implementation details into my template class....
stackexchange/codereview
I am new to AJAX and have this issue. I am creating a photogallery page and on it I created a Javascript class which manager the whole thing. Here is a method from the class which calls XMLHTTPRequest object which was initialized successfully earlier: this.AJAX_update = function(id) { //initialize AJAX - this is do...
stackexchange/codereview
I'm having trouble deserializing a JSON array of mixed types using the DataContractJsonSerializer class. I've spent a bunch of time looking for a solution to no avail, so I thought I'd go ahead and ask here. Basically, I am getting a JSON string like the one below. I'd like to get the array to deserialize into an List ...
stackexchange/codereview
I have a mystery 1px bottom border showing up in Safari and Chrome (I guess a WebKit thing). Firefox displays it fine. The button below should sit flush with the tealy bar beneath. There should not be that 1px line separating them. I've played around with height, border, position, padding and margin but haven't been a...
stackexchange/codereview
I've released an app about a month ago now, and it works as it should on my Desire and presumably on a lot of other phones. However it is also receiving it's fair share of 1 star ratings with comments that say that the sound simply doesn't work. Given that this is an app to play sounds and alarms that's a pretty major ...
stackexchange/codereview
Is there a way to open an attachment for a TFS work item by double clicking on it (or rather just opening it from the IDE) in your computer's default image viewer, rather than opening it in a web browser? I'd love to be able to change this setting (if it is a setting). Edit: after reviewing Kate Gregory's response, I l...
stackexchange/codereview
This is someting weird... I have a Flash-file that loads external SWFs. There I use LoadVars to get external data from a server. When the data has arrived, I'm using setInterval to call a function that fades-in the content. So far so good. But when I switch menus (a.k.a. unload one movie to load another) before all th...
stackexchange/codereview
I am coding a website using the Codeigniter PHP framework. I am using mercurial for version control. I have 3 systems I work with. I do my coding on a Windows 7 machine using Netbeans 6.9.1. I am occasionally making commits, and pushing to a repository at Bitbucket.org, purely for the purposes of backup and version co...
stackexchange/codereview
Have a client who wants to move their Wordpress.com blog over to their main domain that has a Drupal installation. If I add Wordpress to a "/blog/" directory on the server, will there be any conflicts with the htaccess ie Mod Rewrites etc? Thanks.
stackexchange/codereview
I'm trying to do a Javascript application that needs this particular feature: Whenever the user presses one of the arrow keys, it must act according to the key direction. And if the user press a key, hold it down, and press a second one, then, only the action of the second one must be executed until released. And if t...
stackexchange/codereview
I have added a HTML Content webpart to my discussion thread view item page . In the discussion thread list, I have added a new column called VideoName. Now, when a user clicks on a discussion list item, on the details page, I want to dynamically lookup the VideoName(in a HTML content webpart) field and display the corr...
stackexchange/codereview
StateListDrawables and <selector> are great for setting different drawables for each state of a view, but is there a way to tie in what text style that view should use for each of those states? For example, if you had a button that was white with black text, and when clicked, the button color became black, you would wa...
stackexchange/codereview
I have stored procedure that I created in MySQL and want PHP to call that stored procedure. What is the best way to do this? -MySQL client version: 4.1.11 -MySQL Server version: 5.0.45 Here is my stored procedure: DELIMITER $$ DROP FUNCTION IF EXISTS `getNodeName` $$ CREATE FUNCTION `getTreeNodeName`(`nid` int) RET...
stackexchange/codereview
I have an application that mass-updated a load of entities based on external data. Some of them will have not changed. NHibernate is clever enough to know whether the entity has changed and whether or not to send an update when I call DbContext.CommitChanges(). But I want to be able to output to screen/log when an enti...
stackexchange/codereview
I have an ASP.NET page which contains a large number of gridviews, which contain masses amount of data which take a fair while to rebind. I currently have it set so the gridviews are only bound when the account number is changed (on the page, the user searches for an account which then displays their information). I'd ...
stackexchange/codereview