instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I am trying to move from Netbeans to Eclipse. Minor thing bothering me is that Eclipse dosen't seem to have the kinda edit highlighting that Netbeans does. For example, a new line is automatically highlighted as green. An edit is highlighted as blue. And this happens in an unobtrusive way on the left along with the l...
stackexchange/codereview
I want to show a window with no buttons after every game is finished, to inform the user about the number of points he has earned after the game. I want it to look like the GameCenter's welcome back window. Transparent, non modal, with no buttons. What is the best way to do that? Thanks
stackexchange/codereview
I need to be able to hide or disable a multitude of items (detailsviews, gridviews) when an SqlDataSource returns no rows. So if the page is reposted and no rows are selected, all the controls would be disabled. How would I do this? Thanks
stackexchange/codereview
I'm looking in open source implementations on top of the In App Purchase, maybe with the server-side implementation. I know about http://urbanairship.com, but I prefer do it in-house.
stackexchange/codereview
After several hours of searching I'm finally giving in and asking for help. I've found something that gets me close, but doesn't seem to be working properly. Basically looking for users who uses us between 3-6 months ago, but haven't in the last 3 months. For the sake of the example lets say I have two tables named eve...
stackexchange/codereview
What yaml2xml and xml2yaml tools are available? I googled this, but it's not working correctly.
stackexchange/codereview
I am very new to NAudio and I need to convert the buffer of input samples from an input device to an array of doubles that range from -1 to 1. I create the input device as follows: WaveIn inputDevice = new WaveIn(); //change the input device to the one i want to receive audio from inputDevice.DeviceNumber = 1; //ch...
stackexchange/codereview
I have a directory structure setup like: root/ js/ css/ libs/ index.html From Tornado, I want to serve js, css, and libs as static directories, but I can only find out how to serve one of them. Can this be done?
stackexchange/codereview
hey i am writing a simple java swing program. but when i draw the frame with polygons drawn from a for loop an exception occurs. the for loop: for (int i=0;i<k;i++) { x= 100; y= 100; for(int j=0;j<k;j++) { if (cell[i][j]==0) break; if(i % 2 !=0) { p = new Polygon(); for (int h = 0; h < 6; i++) ...
stackexchange/codereview
I'm having a weird problem, hoping someone knows what the issue is... Using distance_of_time_in_words (and consequently time_ago_in_words) is not returning the actual time distance. Instead it is returning things like "en, about_x_hours" or "en, x_minutes". The pattern is correct, as in: time_ago_in_words(50.minutes.ag...
stackexchange/codereview
I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. An...
stackexchange/codereview
I am trying to use PHP and MySQL's Create Table Select between two different MySQL servers. I am not sure this can be done like this with SQL. I get no errors but I get nothing done either: <?php $dbname = 'cms'; $dbmaster = 'cmsms'; $db1 = mysql_connect('localhost', 'root', 'secret'); if (!$db1) { echo 'Could n...
stackexchange/codereview
I have a WebService reference (.NET CF 3.5) based on SoapHttpClientProtocol. My question is - is there a way to determine whether a connection to WebService is established other than calling a web method? Can I check at any time that the underlying connection is established and get its status? Regards
stackexchange/codereview
I have the following code: If Not Application("ServicesQueueActiveDict").Exists( nID ) Then 'we are good to process, this item is not Active....add it now Application("ServicesQueueActiveDict").Add nID, Now Else 'do whatever The "ServicesQueueActiveDict is a caprock.dictionary. I get the error referenced in ...
stackexchange/codereview
I have two machines in different domains. The domains are not known to each other (no trust between them). I wish to use the net.msmq binding to communicate data from one endpoint to another. So, let A and S be two machines, where A must be able to send messages to S. Then, in the config file of A, there is this bindi...
stackexchange/codereview
Say I have a website www.example.com. Under the website directory there is a page secret.html. It can be accessed directly like www.example.com/secret.html, but there are no pages that link to it. Is it possible to discover this page, or will it remain hidden from outside world?
stackexchange/codereview
In any iphone template UIViewController class you will see this: - (void)viewDidUnload { // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } But if I set self.myOutlet = nil in viewDidUnload, and I also have [self.myOutlet release] in the dealloc method, isn't that over-releasing...
stackexchange/codereview
I'm running JUnit via Ant using a target something like this: <target name="junit" depends="compile"> <mkdir dir="${report.dir}"/> <junit printsummary="yes" haltonfailure="yes" showoutput="yes" > <classpath> <path refid="classpath"/> <path location="${classes.dir}"/> </cl...
stackexchange/codereview
I've been reading through stuff on html5 but have a very basic question: what do I need for html5? Do I need to download anything (from where?)? I have LAMP...does HTML5 support mysql databases?
stackexchange/codereview
I currently have a UI built in Interface Builder-- it is basically consisted of a background image and a few labels. I need to animate some elements (images) underneath the labels but over the background, but I also need to draw them in a specific z-order. I was looking around and came across CATransformLayer-- I'm sti...
stackexchange/codereview
When I execute toggleEdit, a red button with a white line in the middle shows up on the left (to enable delete) and a blue button with a white arrow shows up on the right of each cell in my UITable: -(IBAction)toggleEdit:(id)sender { [self.table setEditing:!self.table.editing animated:YES]; } The blue button on...
stackexchange/codereview
This probably sounds crazy, but it's a real problem: I have an ISV-provided Windows service that I cannot change. There's a bug in the service where it doesn't "clean up" some data that it should upon startup. As a workaround, until the vendor can fix the bug, I would like to cause another process or script to always r...
stackexchange/codereview
I'm using this script to set my site has home page on IE (I know it is not possible on FF and CH): if (document.all) { document.body.style.behavior='url(#default#homepage)'; document.body.setHomePage('myurl'); } But this function shows always a confirmation prompt. Is possible to setHomePage without showing ...
stackexchange/codereview
In my webapp, all my message converters are in place, and if I change getContent below to return a bean/pojo, it returns as " application/json;charset=UTF-8", which is expected, but I now want to serve JSON "as is". E.g. I have a simple stub web service with which users can PUT a blob of JSON content which is persisted...
stackexchange/codereview
i have in my C# (WinForms) program TextBox control if i have this text in: abcd efg hijklmnop and i stand with my cursor between c and d = position 3 or i stand with my cursor between h and i = position 10 how to get this position ? thank's in advance
stackexchange/codereview
I am making a grid (table) showing dynamic data in Windows Phone 7. I need to different sections of grids like a sectioned UITableView in iPhone. How to make sectioned listbox in Windows Phone 7 ? Any idea ? Thanks
stackexchange/codereview
I would like to have a mysql query like this: select <second word in text> word, count(*) from table group by word; All the regex examples in mysql are used to query if the text matches the expression, but not to extract text out of an expression. Is there such a syntax?
stackexchange/codereview
Does anyone know an up to date regular expression for validating URLs? I found a few on Google but they all allowed junk URL's i.e (www.google_com) when testing. My regular expression knowledge is not so vast, so I would hate to put something together that would fail under pressure. Thanks.
stackexchange/codereview
Possible Duplicate: javascript test for existence of nested object key Consider this: typeof(object.prop1.prop2) == "undefined" where object.prop1 is undefined This will output a javascript error, how to handle this situation beautifully? ie: no multiple if
stackexchange/codereview
I have all the necessary code to move and click the mouse via C# code, but I don't want to just set the mouse position to X and Y; that will look jerky. Instead, I want to have a smooth transition from point X1, Y1 to point X2, Y2 over Z seconds. Similar to keyframing. I'm looking for a method similar to this: public v...
stackexchange/codereview
I'm writing some code to help facilitate C# method patterns in expression trees. In the case of the using block, there are three ways to use it:: using(var something=IDisposible_value) //1 using(something = IDisposible_value) //2 using(something) //3 Right now my code looks like this: public static...
stackexchange/codereview
I want to save my downloaded ListView items so that for example next time the app starts, it should not start my download dialog, instead my previous ListView items should turn up. Some useful code snippets would be appreciated. Thanks in advance and please tell me if I need to clarify!
stackexchange/codereview
What is the purpose of datasync project in weblogic project? What is *.evt, *.req, *.usr files?
stackexchange/codereview
As per the title, is it possible to output the XML that a new SoapClient has created before trying to run a __soapCall() to ensure it's correct before actually sending it to the SOAP server?
stackexchange/codereview
I have some negative integer values which are an offset from the default 1-1-1900 date. I have to get the datetime values from these. How can I do this. Example: If I do: SELECT convert(datetime, 53691) as Calc OR SELECT cast(53691 as datetime) I get: 2047-01-01 00:00:00.000 What I need is that If I do: SELECT conve...
stackexchange/codereview
I am looking for a javascript library which renders an arbitrary (but acyclic) JSON data blob into some sort of semi-interactive HTML view. James Padolsey's Prettyprint library comes close, but its output is very verbose ("object" and "array" headers on everything, for instance), is only marginally interactive (the ab...
stackexchange/codereview
Here is the basic code <ul> <li> <input type="radio" name="r" value="a" id="a" checked="checked" /> <label for="a">A</label> </li> <li> <input type="radio" name="r" value="b" id="b" /> <label for="b">B</label> </li> </ul> So I need to have it work as: 1 Click on the <label> and check if the sibling <radio>...
stackexchange/codereview
I have 3 tables as following: User has userId UserProductEntitlement has userId and productId and a boolean Product has productId This is my class representation : @Table(name="User") class User { @OneToMany(fetch=FetchType.EAGER, targetEntity = ProductEntitlement.class, cascade=CascadeType.ALL) @JoinCo...
stackexchange/codereview
In the Lynda.com title "ActionScript 3.0 in Flash CS3 Professional - Beyond the Basics" Todd Perkins shows how one way of typecasting var xml: XML; xml = event.target.data as XML doesn't work, while var xml: XML; xml = XML(event.target.data) does. Shouldn't both forms act the same way? How are they different?...
stackexchange/codereview
I am attempting to set the content-type of an asp.net .ashx file to text/plain. When I run this through the ASP.NET Development Server, the content-type is properly set. When I serve it through IIS7, however, the content-type (and any other header values I set) don't come through (it came through as text/html). The o...
stackexchange/codereview
I just finished my App and is now in the market, so far so good, in fact the name is DopeWars Underground (just in case you wanted to see it) my question is, there is another place to promote that App outside of the Android Market to advertise this App ?
stackexchange/codereview
I have a large C/C++ library that I need to use as part of an Android NDK project. This library needs to be able to intelligently process UTF8 strings (for example, conversion to lowercase/uppercase). The library has conditional compilation to punt to an OS API to do the conversion, but there don't seem to be any Andr...
stackexchange/codereview
I currently have a visual studio add-in and have created a new output window pane which I can write text to successfully. However, when the output window is not open or it is minimised then it doesn't open (popup) when I call the Activate() method on the pane. Any ideas how I can achieve this?
stackexchange/codereview
I know I can use sharepoint designer to convert list to data view wp and then i can do this easily. but I wanted to if there was a way to do this with list view wp without intervention of sp designer. I have a order table orderid orderdate 1 1/1/2011 2 2/2/2012 3 3/3/2013 I like to establish h...
stackexchange/codereview
I have a ScriptControl that uses an image as an embedded resource and GetWebResourceUrl to generate the WebResource.axd URL. I am currently using GetScriptDescriptors() to send the URL to the JavaScript object. The ScriptControl can be in a Repeater, so you may have 20+ instances. They all use the same images (not cu...
stackexchange/codereview
I would like to start a upload and download website for huge files (up to 1gb). I thought that it would be better to download the files using FTP (with PHP), because this protocol is especially used for these types of transfers. The cliënt gets an email, including a download link to download the file (like yousendit.c...
stackexchange/codereview
I'm trying to write script that'll crop and resize large photos into HD Wallpapers. #! /bin/bash for i in `ls *.jpg` do width=`identify -format '%w' $i` height=`identify -format '%h' $i` if [ `echo "$width/$height > 16/9" | bc -l` ] then exec `convert $i -resize 1920 -gravity Center -crop '1...
stackexchange/codereview
Does anyone know where I can find Google API Request Limits for their different services? On simulating 500+ concurrent users it seems to fail silently fairly often (maybe 1 in 10 loads) Any ideas?
stackexchange/codereview
I've created a sorted linked list and now I'm trying to figure out how to remove duplicates. I wanted to add code that would do this in the Add method I created but I can't seem to figure it out. I feel like this should be relatively easy but I'm a bit brain dead right now. In my add method I check the index to see whe...
stackexchange/codereview
I was wondering if there was a way to create a local webserver on your own computer which uses ASP.Net? Sort of like WAMP for Microsoft technologies.
stackexchange/codereview
how do i trim using this $('#type_of_station').text() the result is >>> $('#type_of_station').text() "pizza delivery system " As you can see there is a space after the last word
stackexchange/codereview
I can't seem to figure this out...a little help please, thank you vm! I have a generic collection of Features. Each Feature has a FeatureId and FeatureName. I need to pass the featureids into an IEnumerable<string>. I thought I was close with this: Listing.Features.ToArray().Cast<string>().AsEnumerable(); and even ...
stackexchange/codereview
I am new to developing a website using Perl CGI scripts. What are the prerequisites for Perl? Please give me some basic ideas or some good tutorials.
stackexchange/codereview
I have two tables in my application. The first one, Sections, stores content for a specific section of an online publication. This contains (among other things) the section title and a field CurrentRevisionId (FK). A second table, Revisions, stores different revisions of that content. It has PK RevisionId field (the...
stackexchange/codereview
Is there a way to create a hyperlink in an email that refers to another location within that same email? All intended recipients are all Outlook users, so if there is a solution for only that case, even that will be great!
stackexchange/codereview
I've heard some conflicting things about the acceptability of scripting languages (e.g., Lua) in apps for the App Store. I'd like to hear from anyone who understands the policy regarding apps which contain some level of programmability, or someone who has had experience submitting such an app for approval. For instanc...
stackexchange/codereview
I've got a problem with performance of my reporting database (tables have millions of records, 50+), when I want to calculate distinct on column that indicates a visitor uniqueness, let's say some hashkey. For example: I have these columns: hashkey, name, surname, visit_datetime, site, gender, etc... I need to get dis...
stackexchange/codereview
i have created two classes. One for input reading (through an istream object) and parsing and the other one for processing the output of the parser. There is one instance of each of those. I have the parser running in a loop calling istream::get() and then creating commands for the second object based upon the input. T...
stackexchange/codereview
I'm sure there is a simple solution, but I just seem to be missing it. I need a regex to do the following: asdf.txt;qwer should match asdf.txt "as;df.txt";qwer should match as;df.txt As you can see, I need to match up to the semi-colon, but if quotes exist(when there is a semi-colon in the value), I need to match insid...
stackexchange/codereview
I am hoping someone can help me this this problem. I know how to password protect a page in wordpress admin area, in the edit page area, edit the visibility and set it to password protected. I want to know if there are wordpress php functions to check if the user typed in the correct password in the layout php file. ...
stackexchange/codereview
This is sort of a statistics question. I am looking for a website analyser, not quite like google analytics. I want the analyser to crawl the website itself and record all the data on a page. Images, size of image and so on. Even if it is just a library then its a start for me. Thanks
stackexchange/codereview
public class TestCamera extends Activity implements SurfaceHolder.Callback, View.OnClickListener { ... Camera.PictureCallback mPictureCallback = new Camera.PictureCallback() { @Override public void onPictureTaken(byte[] data, Camera camera) { // TODO Auto-generated method stub picture = data; ...
stackexchange/codereview
I'm using jquery's qtip plugin to draw a tooltip, and it works fine on FF but not on my versions of IE. It looks like for IE, the plugin uses vml tags instead of canvas tags. Is there something extra I need to include in my page to get the little arrow tip to show? Here's my simple html page; note that when you mous...
stackexchange/codereview
I have a StandardAnalyzer working which retrieves words and frequencies from a single document using a TermVectorMapper which is populating a HashMap. But if I use the following text as a field in my document, i.e. addDoc(w, "lucene Lawton-Browne Lucene"); The word frequencies returned in the HashMap are: browne 1 lu...
stackexchange/codereview
I have an application that will play a series of radio stations by choosing them from a drop down menu. Ideally I'd like to add some code, so that a spotlight search that would return any of the items in the dropdown and open the application as if you did this from within the application itself. The spotlight documenta...
stackexchange/codereview
This is a test engine application with 5 papers set by me..as 5 php pages Flow of the application Login.html check.php // to check whether credentials r right if correct then main.php //user clicks on "take test" in this page which displays him 1 of the 5 papers... but once i am logged in i can just change the url...
stackexchange/codereview
java.util.date = org.apache.commons.lang.time.DateUtils.parseDate(value, new String[] { "mm/dd/yyyy" }); If you give an invalid date string (e.g. value = 13/02/2000 or value = "12/35/2000"), this didn't result in an error (e.g. 13 as a month is invalid and 35 as a date is invalid). But the above function just moved the...
stackexchange/codereview
This is mainly about the understanding of the concept, which confuses me. Mutex means that one thread takes the control of the access of shared resource, performs operations and unlocks it, then only other thread can gain access to lock while binary semaphore is like a thread can gain access to the shared resource ...
stackexchange/codereview
I'm working on a 2D physics engine for a game. I have gravity and masses working, using a simple iterative approach (that I know I'll have to upgrade eventually); I can push the masses around manually and watch them move and it all works as I'd expect. Right now I'm trying to set up the game world in advance with a sat...
stackexchange/codereview
I'm working on someone else's code and found something very interesting and hoping someone might know how this is happening. In the markup file, I place a TextBox control and a DropDownList control, and assigned both of them the CssClass of InputField which changes the background color and other cool stuff. To avoi...
stackexchange/codereview
I'm trying to get the maximum size of any possible instance of my template as a compile time constant. The first thing that came to mind was something like this... union TestUnion { template<typename T> class MyClass { public: MyClass() { }; MyClass(T& t) : _t(t) { } private: T _t; }; }; But sizeof(TestUni...
stackexchange/codereview
I am stumped. I've got a collection of items that I'm binding to an ItemsControl and would like them arranged as a grid rather than strictly vertically or horizontally. All of the examples I've used in WPF are not supported in Silverlight like using the ItemContainerStyle or SharedSizeGroup and the Silverlight toolkit ...
stackexchange/codereview
Is it possible to save an inkpresenter's content as a .png image? If not is there an alternative to inkpresenter that can be drawn on, and saved?
stackexchange/codereview
I'm trying to use .NET 4's SortedSet<T> collection. It seems to have everything I need minus a couple things. Q: I want to be able to fetch all elements lower or higher in comparison to a given value. In Java's TreeSet, there are methods named tailSet and headSet, which perform these operations. I'd like to be abl...
stackexchange/codereview
I need a selector that basically starts at the element that I have clicked and finds the next item with a certain class on the page. See my example below: <table> <tr> <td>Blah blah blah</td> <td><p class="click">Fire jquery</p></td> </tr> </table> <table class="hidden"> <tr> <td>blah blah blah</td> <td>blah blah blah...
stackexchange/codereview
I need to create System.Encoding for 1251 codepage. On my russian Windows I use Encoding encoding = Encoding.Default I am afraid this will produce different results depending on Windows
stackexchange/codereview
private int FindNumber(string sPar) { // Get the last number int len = sPar.Length; string s = sPar.Substring(len-1); return new (int)Decimal(s); } In this I am getting the error ; required . Can any ine help me on this. Thank You!
stackexchange/codereview
I am trying to do some image processing and I would like to apply the LoG kernel. I know the formula, which is : But I didn't understand how to obtain the kernel matrix with this formula. From what I have read, I have a matrix of n x n and I apply this formula to every cell in that matrix, but what should be the start...
stackexchange/codereview
I read about 2 JavaScript testable patterns, but I am not sure how they differ and which one should I use. Pattern 1: function class () { this.propertyA = null; this.methodA = function() { alert(''); } } var object = new class(); object.methodA(); Pattern 2: var object = (function() { var prop...
stackexchange/codereview
I am trying to draw 4 boxes at each corner of the MovieClips but can not figure out how to detect the top right corner, bottom left and bottom right corner. Is there any easier solutions that I could use to replace this technique or get it to works? Thanks The below code is a rectangle with a 135 degrees rotation. ...
stackexchange/codereview
In python, I've got a string like ABC(a =2,bc=2, asdf_3 = None) By using regular expression, I want to make it like ABC(a =2,bc=2) I want to remove the parameter that named 'asdf_3', that's it! Update: The parameters can be a lot, only the asdf_3 is same in all cases, the order is usually the last one.
stackexchange/codereview
I've tried using directshowlib-2005 by installing k-lite mega codec pack. It can't find the duration of an mp4 file or f4v file (avi, wmv and flv has no problem). I use ImediaSeeking interface of directshowlib-2005 to find duration. But in case of mp4 and f4v the GetDuration method returns zero. I know it is a codec p...
stackexchange/codereview
We're rewriting a site using Rails, and the old site makes extensive use of jQuery v1.4 in its templates. We'd like the old scripts to keep working, but we'd also like to use rails' javascript helpers for our own new scripts. jRails sounds like what we want, but it only seems to support jQuery 1.3. Is there a more u...
stackexchange/codereview
I'm a beginner to 3D graphics in general and I'm trying to make a 3D game for the iPhone, and more specifically, to use textures that contain transparency. I am able to load a texture (an 8 bit .png file) into OpenGL and map it to a square (made from a triangle strip) but the transparent parts of the image are not tran...
stackexchange/codereview
Recently, I've been digging into various types of DBs. I need to store & query “relational, hierarchical, graph, document” hybrid data. I'm looking for the best DB solution. I can't find much data about Berkeley DB. Most of the stuff on their website is written by the marketing dept. One of the PDFs makes it sound like...
stackexchange/codereview
i have recently run into a strange problem. i have a table in db named Task. A Task may have a parent task and more than one child tasks (self join). i have written a stored procedure that returns me all the tasks in the project their children and sub children upto n level using CTE (common table expression). my requir...
stackexchange/codereview
I am working on a project where a field name from XML is loaded and the field with that name is returned and added to the current object. The problem is that FieldInfo.GetValue seems to return the current value of the field, not a reference. Is there any way to get around this?
stackexchange/codereview
Where in the flow of execution does the initialize() function need to appear in the code to allow a Google Map v3 API map to be loaded through a JQuery .load() call. The code I have at the moment looks like this $('#maplink').click(function(){ $('.fades').fadeOut('slow'); $('#googleMap').show(); $('#googleM...
stackexchange/codereview
<LinearGradientBrush x:Key="BrushPrincipalBorderBlue" EndPoint="1.3,1" StartPoint="-0.2,0"> <GradientStop Color="#FF030637" Offset="1"/> <GradientStop Color="#FF0E0F31" Offset="0.166"/> <GradientStop Color="#FF2E2F70" Offset="0.629"/> <GradientStop Color="#FF030637" Offset="0.63"/> ...
stackexchange/codereview
I'm implementing AdWhirl for the first time, and it is using iAds, AdMob, and MillennialMedia. AdMob and MillenialMedia seem to work perfectly fine. iAds load, display, and refresh just fine in my PlayViewController, but when I click the back button to go out to the main menu, the simulator crashes, with no error prin...
stackexchange/codereview
We are running nginx as a reverse proxy that forwards requests to a Clojure application running Compojure, a library that wraps around Jetty and provides our application with the ability to service web requests. We currently capture logs generated by both nginx and the Clojure application (via log4j to syslog). We are ...
stackexchange/codereview
FireBug always shows warning messages from jQuery eg reference to undefined property o.cache[H][E] (function(){var l=this,g,y=l.jQuery,p=...ch(function(){o.dequeue(this,E)})}}); jquery.min.js (string 12) Can I set up FireBug not to show certain warnings for certain scripts?
stackexchange/codereview
I am experiencing issues with session where if i put the following code on a page the counter will increment by one every time i reload the page. session_start(); if(isset($_SESSION['views'])) $_SESSION['views'] = $_SESSION['views']+ 1; else $_SESSION['views'] = 1; if i put the above code in an if statemen...
stackexchange/codereview
Any one has recommendation, links to how to migrate workflow 3.5 to 4.0? Any issues to look for, does MS provide some tool to facilitate migration? Or the only was is to re-write the whole thing ....
stackexchange/codereview
Consider this code (Yes its ugly but it should also work): try { // Test the connection to a database that does not exist yet... using (SqlConnection c = new SqlConnection("Data Source=localhost;Initial Catalog=test;Integrated Security=True")) { c.Open(); } // Dispose calls Close() } catch { ...
stackexchange/codereview
I have an HTML form that submits an email with PHP, and when it submits, it redirects to that PHP page. Is there a way to prevent this redirect from happening? I built an animation with jQuery that I want to occur instead of redirecting. I tried return false;, but it wouldn't work. Here's my function: $(function() { ...
stackexchange/codereview
I found these three jQuery Flash plugin: 1) http://plugins.jquery.com/project/jquery_flash 2) http://jquery.lukelutman.com/plugins/flash/ 3) http://jquery.thewikies.com/swfobject/ so, which one is the best to use?
stackexchange/codereview
I have a git repo, where I replaced a lot of files locally. git status now shows many many modified files. Some are "really modified", others only differ by line endings. I want the ones that differ only by line endings to go away (git reset them), but I cannot seem to find the linux-piping-foo to make it happen. Bonus...
stackexchange/codereview
I wonder if it is bad manner to skip return None, when it is not needed. Example: def foo1(x): if [some condition]: return Baz(x) else: return None def foo2(x): if [some condition]: return Baz(x) bar1 = foo1(x) bar2 = foo2(x) In both cases, when condition is false, function will r...
stackexchange/codereview
I have an application where all queries are created dynamically based on a simple data message received by a WCF service. A data message is, put simply, a collection of columnname/column value pairs, with the addition of an operator, e.g. Equals, Less Than, etc. Simple Data Message of ColumnName-Value-Operator Name, J...
stackexchange/codereview