instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I'm working on the program just needed in the following to understand it better. What is the worst case running time for Quicksort and what may cause this worse case performance? How can we modify quicksort program to mitigate this problem? I know that it has worst case O(n^2) and I know it occurs when the pivot unique...
stackexchange/codereview
I am doing ordered expectations in rhino mocks as described by ayende in this post. My code looks something like this: using (_mocks.Ordered()) { Expect.Call(() => _myMock.CallA()); Expect.Call(() => _myMock.CallB(40)); Expect.Call(() => _myMock.CallA()); } _mocks.ReplayAll(); _myObjectUnderTest.DoS...
stackexchange/codereview
I would like to embed Google Map into my website, and I'm passing over 2 parameters, "longtitude" and "latitude". Any possible way the map will change according to the longitude and latitude I sent in? For example, I put in 3.1019924,101.4804983 and click on "Search map" on maps.google.com I will get the location and...
stackexchange/codereview
I am just starting out learning some HTML and javascript (read: I know practically nothing about this stuff) and would like to have my index.html page open a rotating image gallery using FancyBox. I've got it all set up, to the point that the first image comes up in a modal dialog when the page loads, but I'd like th...
stackexchange/codereview
I need to plot two data vectors with errorbars on one figure. errorbar() function does it, but only for one data set. Is there a way to plot second graph on the same figure?
stackexchange/codereview
I have a problem with the PATH variable on Debian Linux when executing commands via SSH. This happens for example when I use GIT or Mercurial and I have them installed in /opt instead of /usr/local. But I can also reproduce this easily like this: When I login to the server via SSH in a normal way and then do echo $PATH...
stackexchange/codereview
i am trying to add some images to my facebook tab-app via FBJS. The Problem: I can't see the images and I don't know why. The FBJS code url = "http://www.domain.de/image.gif"; myImg = document.createElement('img'); myImg.setStyle( {backgroundImage: 'url('+url+')' }); document.getElementById('wrapper').appendChild(myI...
stackexchange/codereview
I have a doubly linked list that's storing a bufferedimage in each node. I can easily retrieve all the buffered images by creating an iterator and iterating through list. I want to display each node horizontally one after the other in some sort of a panel. This would be similar to a film reel where frames are linked on...
stackexchange/codereview
I am facing this very weird problem, I have created a custom UITableViewCell on which I have a UIImageView on the left and on the right I have two UILabel. When I run the program, I see all the image and the label appears on the table. I have total of 5 rows that needs to be displayed The only problem is the image st...
stackexchange/codereview
I'm trying to parse a JSON response using jquery from last.fm and getting longitude and latitude values. The part of the JSON that holds those values looks like this: "location":{"geo:point":{"geo:lat":"58.409901","geo:long":"15.563306"} The code I got is this: $.getJSON("http://ws.audioscrobbler.com/2.0/?method=artis...
stackexchange/codereview
I have an overloaded query method on the server side. I wanted to know if I can overload the async callback, depending upon the method signature? Or is it advised to define two different asyncallbacks? These are my two methods o the server. public String fetchInADay(String startTime, String endTime) {} public String fe...
stackexchange/codereview
I have a wpf4 that I am referenced the enterprise library 5. I want to encrypt my connectionstrings and appsettings but I am not 100% sure how to do this. Can anyone point me in the right direction for encrypting using the entlib5. There seems only to be useful information out there for the version 3.1 & 4. Any help wo...
stackexchange/codereview
I have four checkboxes in my form. I have string variable called "CheckedString". If i check the first checkbox "A" must be assigned to "CheckedString". If i select both first and second checkbox at a time. "AB" must be assigned to "CheckedString". If i select third and fourth checkbox "CD" must be assigned to "Checked...
stackexchange/codereview
Our application runs on JBOSS and its front end on Apache. When accessign the URL externally, the JSESSIONID displays the servername within the Content property of the cookie. Any ideas how this can be removed??? Thanks,
stackexchange/codereview
I have the following class: public class ExternalClass { public string Name {get;set;} public class InternalClass { public int SomeNumber {get;set} } } How do I insert data, for example the number 123, into the property SomeNumber of InternalClass? Do I need to pass things through the const...
stackexchange/codereview
what is the difference between these two codes type Foo real, allocatable :: bar(:) end type and type Foo real, pointer :: bar(:) end type in particular when it comes to the following code: type(Foo) :: myfoo allocate(myfoo%bar(10))
stackexchange/codereview
Where filename is the midi file. I want to load a full path (from local harddisk) into the getSequence but it doesn't accept except the filename itself. Sorry that I not good in Java and wish there is a solution for my need. song = MidiSystem.getSequence(getClass().getResourceAsStream(filename)); and the Stackoverflow'...
stackexchange/codereview
I have a domain and CPanel account with a host from which I can create email accounts. I want to write a PHP script to connect to any of the created email accounts provided the username and password and view all the emails sent to this email inbox. If this is possible I would like to have a guide in creating this kind ...
stackexchange/codereview
I'm using following code to open a gallery inside of my app Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); startActivityForResult(intent, FIND_RESULT); Is it possible to limit a list of images to only show images taken by camera? Viewing Gallery on my 2.1 system, images are grouped s...
stackexchange/codereview
I know about creating my own taglibs in JSF eg. but is there a way to use JSF to parse differently native HTML elements? I am thinking of adding my own parameters for forms, divs, that would be then parsed differently on the server before rendering the final markup.
stackexchange/codereview
I have a LinkedIn API class that I've written for PHP that makes use of a third-party stand-alone OAuth class, not the possibly installed PECL PHP OAuth extension. I've designed it this way to allow the many users don't have the ability/access to install the PECL extension to make the needed OAuth calls. So, for PHP i...
stackexchange/codereview
I have the following schema: <parent> <child id="1" name="Child 1 Version 1" /> </parent> <parent> <child id="2" name="Child 2 Version 1" /> </parent> <parent> <child id="1" name="Child 1 Version 2" /> </parent> I want to handle only the last node for each id. Below is what I have tried based on some reading: ...
stackexchange/codereview
Is it possible to take an array of say 100 chars and turn it into a 2d array of 10*10?
stackexchange/codereview
C# unfortunately does not allow for extra user-defined syntax. But I was wondering whether it was possible to surpass this limitation by tapping into the visual studio onbuild-event. Suppose I have some syntactic sugar which could be easily translated into actual C# code. If I were to automatically translate a cs docum...
stackexchange/codereview
does someone might know how to search for a value in the locals in visual studio 2010 or at least how can I expand all nodes, subnodes?
stackexchange/codereview
I have a site running with ASP.NET MVC 1 and have encountered a bug where a bool in my model is being reset to default because the value is not used in the view. The code for the Controller: public ActionResult Edit(Guid id) { Service service = GetService(id); if (service == null) return View("NotFoun...
stackexchange/codereview
I try to make an intro animation inside a website, and when the animation is done or when you push the Skip button, it navigates to the index.html file from the site root. So I have in my site root the folder Flash, where the intro.swf is, and within the intro.swf I called the navigateToURL(new URLRequest("..\index.htm...
stackexchange/codereview
i´d like to assign factors representing quantiles. Thus I need them to be numeric. That´s why I wrote the following function, which is basically the answer to my problem: qdum <- function(v,q){ qd = quantile(v,1:(q)/q) v = as.data.frame(v) v$b = 0 names(v) <- c("a","b") i=1 for (i in 1:q){ if(i == 1) v$b...
stackexchange/codereview
I have a large Group which contains two rulers and labels for distances, and a varied amount of smaller groups consisting of images and labels. Now my task is to print the large group on a page with a header and a footer. The large group extends outside the edge of the page and pushes the footer off the page. If I was ...
stackexchange/codereview
I'm having trouble printing a web page of information, which should span onto about 3 pages. Currently, only 1 page is printed, and the rest of the data is not visible anywhere? Is there some JS or HTML I can use to break the page, and allow the information to continue being printed on the next pages.
stackexchange/codereview
Ok so I have a ship which moves up and down based on the axis regardless of where the ship is facing. How do I make the ship move in the direction it's facing? i.e. if my ship is facing east, key up makes it go north rather than east.
stackexchange/codereview
I defined a DataTemplate the following way: <s:SurfaceWindow.Resources> <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/> <DataTemplate x:Key="ContainerItemTemplate"> <Grid> <Border BorderThick...
stackexchange/codereview
I want to use this javascript but being able to hard code 3 users, so that those 3 are able to Login. I'm a newbie with javascript so yea. The below is the code i use for a single user login. function validate(loginForm) { var booValid = true; var strErrorMessage = ""; var minLength=5; var maxLength=10; if(login...
stackexchange/codereview
I need to clear all other checkboxes when a user clicks a checkbox. Pretty much the same behavior as a radio button. User clicks checkbox 'A' and checkboxes 'B' and 'C' are both unchecked. I am using jquery but I can't figure out how to accomplish this. Any ideas? Here are how the checkboxes are set u: <div class="...
stackexchange/codereview
I have three forms 1 is Mdiparent and the other two is simple form (Form1 and Form2). Parent: var frmForm1 = new Form1{ MdiParent = this}; frmForm1.Show(); Form1 : var MParent = new Parent(); var frmForm2 = new Form2{ MdiParent = MParent}; frmForm2.Show(); My Problem is if i Show Form2 from Form1 it goes o...
stackexchange/codereview
I create some backend menu in joomla administrator like (Manager, admin, Super admin, agent). First three are inbuilt and agent is custom. I want to give some particular menu permission to agent. so please tell me in database which tables having menu permission to particular user. so i can set the permission. Provide m...
stackexchange/codereview
In the Compact Framework 3.5, I am attempting to call an ActiveX object that has an IDL function signature: HRESULT MyFunc([out] SAFEARRAY(float) *var) The Interop generation creates the msil [out] class [mscorlib]System.Array& marshal( safearray float32) Which seems reasonable enough, but I keep getting a "NotSupp...
stackexchange/codereview
If I create a gui for windows using python 2.6 and Qt, and then want to running in solaris or linux world. What do I need on both systems, I'm guessing 2.6 and Qt for both platforms. Is this correct or would there be a better solution. If wxpython, the same right?
stackexchange/codereview
Is there a Linq way of knowing what the next element in the sequence is while iterating? As a concrete example, say I have a list of ints, and I want to calculate the difference between each element and its successor, so for example I would like to be able to write var myList = new List<int>() { 1,3,8,2,10 }; var diffe...
stackexchange/codereview
I wrote a remote service that the clients can log on with the usual mechanisms of IPC provided by Android and the binding seems to work. The problem arises when I go to call a method in which I have to pass an object as a parameter because I get this "curious" exception: 10-19 15:09:04.601: ERROR/AndroidRuntime(2985): ...
stackexchange/codereview
How do you get started with MATLAB? Hints/Links to some must read/watch tutorials/screen-casts would be great!
stackexchange/codereview
Possible Duplicate: Deny ajax file access using htaccess I have a directory "AJAX" that has all my well AJAX content it is unformatted and ugly if you hit the pages directly. How do I stop someone from hitting http://www.site.com/AJAX/page1.php with the .htaccess file?
stackexchange/codereview
I've come across some problems using Hibernate 3.4 on JBoss 5.1. Hibernate 3.4 is a JPA 1.0 implementation so it should be fine to be used in JBoss 5.1. The thing is JBoss has its own version of Hibernate, which is located at /common/lib whereas I don't want to use the version provided by JBoss. What I did was that I r...
stackexchange/codereview
I'm getting insane with this one... I made a RESTful.NET webservice with C# and is running as a standalone service. When I make a XMLHttpRequest to retrieve JSON data, all browsers fail, except IE, because the status flag of the instance of XMLHttpRequest is always 0 -- it should be 200, that it's what's happening with...
stackexchange/codereview
How do I get a particular GET variable in JavaScript or jQuery? I want to pass it on in ajax script in this sort of way: $.ajax({ url: 'foo/bar.php', data: { search: $(this).val(), page: something //$_GET['page'] only in js }, ...
stackexchange/codereview
Looking in the ASP.NET MVC 2 source code there are several files in the System.Web.Mvc project that have an almost identically named file except for the `1 on the end of the file name. For example, there is HtmlHelper.cs and HtmlHelper`1.cs. Another example is AjaxHelper.cs and AjaxHelper`1cs. At first glance, the ob...
stackexchange/codereview
i have simply form request in my Obj-c code, which calls a PHP code from my server ASIFormDataRequest *req = [[ASIHTTPRequest alloc] initWithURL:url]; [req setPostValue:[NSString stringWithFormat:@"%f",slat] forKey:@"mylat"]; [req setPostValue:[NSString stringWithFormat:@"%f",slng] forKey:@"mylng"]; [req start]; NSLog...
stackexchange/codereview
What's the best way to include the WebSphere runtimes when building a ear file using Maven? Using ant, I just added the absolute path to the lib directory in the classpath. What I've read on the subject, it seems like people say to use system scoped dependencies. For this, however, I need to include each jar indepen...
stackexchange/codereview
I have a list that I would like to have fade in and out through each of the LI with a delay between showing the next li. I feel like I should be able to just iterate through the List, but am not getting it to loop. Something with index? $('#content li').hide(); $('#content li').each(function(n){ $(this).delay().fadeIn...
stackexchange/codereview
I downloaded SWFObject & it came with several files it has one swfobject.js file in the root dir & another in the "src" directory. The file size differs so I'm wondering which one I have to include in my header?
stackexchange/codereview
Someone gave me this code that works great. But I would really like to understand what is happening inside it. Could somebody explain please? What is the meaning of each part of the code? The code is inside a custom control which has two labels inside a panel. Also I've seen some custom control events that use add/rem...
stackexchange/codereview
How do I wrap if-else statement in a content_tag? def entry_template content_tag(:div, :class => "item_title") do "<h3> if x == 'garage' #{entry.garage.name} else 'Not garage' end </h3>" end end Thanks!
stackexchange/codereview
I want to parse the text from a pdf file in perl without converting the pdf into any other format . Is it possible ?
stackexchange/codereview
I have used ZipArchive library to zip and unzip files, but it doesn't give a clue about how to check if the zip file is password-protected. I need to be able to check whether a .zip file is password-protected. If it is, I will prompt the user for a password; otherwise just unzip it. Anyone have an idea of how to check...
stackexchange/codereview
Couldn't find better title but i need a Regex to extract link from sample below. snip... flashvars.image_url = 'http://domain.com/test.jpg' ..snip assuming regex is the best way. thanks
stackexchange/codereview
I need to create a web page (using asp.net MVC2 and possibly WCF) showing exceptions that occur when csv type files are being reconciled with another data source. Any records (exceptions) that do not match the data source will be sent to a table in Oracle. To manually update the exceptions there will be x number of use...
stackexchange/codereview
How do I do this in mako: <% import cherrypy %> ... <link rel="stylesheet" href="${cherrypy.url('/media/layout.css')}" type="text/css" /> AttributeError: 'Undefined' object has no attribute 'url'
stackexchange/codereview
#data-wrapper { background:url("../images/repeat-bg.png") repeat-y 0 46px transparent;} I want to start repeat-bg.png as a repeat-y but after 46px area from top of #data-wrapper. Is it possible to do like this?
stackexchange/codereview
I'm creating what should be a very simple Win32 C++ app whose sole purpose it to ONLY display a semi-transparent PNG. The window shouldn't have any chrome, and all the opacity should be controlled in the PNG itself. My problem is that the window doesn't repaint when the content under the window changes, so the transpar...
stackexchange/codereview
I have a UIView and I want to get its VISIBLE bounds. For example sometimes there's a tabbar; sometimes there's not. I would like to get different values for these two cases. UIView.bounds always just returns the bounds of the entire screen of the phone (available to apps) which is not what I want.
stackexchange/codereview
Can anyone suggest typical scenarios where Partitioner class introduced in .NET 4.0 can/should be used?
stackexchange/codereview
Hello i often develop JTableModels in which some cells must contain the result of apliying a certain simple mathematical formula. This formulas can have: Operators (+,-,*,/) Number constants Other cell references (which contains numbers) Parameters (numbers with a reference name like "INTEREST_RATE") I often resolve ...
stackexchange/codereview
My problem: I have a pdf with lots of roman characters with complex diacritical marks (e.g., ṣ, ś, ṝ, ǎ, etc.). To make it easier to search within the pdf, I would like to add an additional layer, much as one does with hocr, where the same text is present without the diacritics. When using full-text search engines I c...
stackexchange/codereview
I want to pass an XML object from code behind file of an aspx to an class library.for that how can i create a XML Object. please its urgent.
stackexchange/codereview
I am moving all my websites to one server, and I was wondering if it is okay to leave out the information_schema because I have multiple different ones from different servers.
stackexchange/codereview
When I run the command haizea -c simulated.conf > result.txt, the program (haizea) still prints its output to the screen. But when I try haizea -c simulated.conf 1>& result.txt, the output is now on the file result.txt. I'm quite confused about this situation. What is the difference between > and 1>&, then?
stackexchange/codereview
I am trying to find an AJAX File uploader to use, I think i may go with this on below: http://valums.com/ajax-upload/ The issue i am having is that i cannot figure out how to make a jQuery AJAX call when the uploader has finished uploading the file. Is this possible? I don't have to necessarily use this specific upload...
stackexchange/codereview
Once upon a time, I had a DropDownList with Options built using this code: <%= Html.DropDownList("SomeName", someSelectList)%> which produced HTML like this: <select id="SomeName" name="SomeName"> <option>ABC</option> <option>DEF</option> <option>GHI</option> <option>JKL</option> </select> Form Submission would alway...
stackexchange/codereview
Possible Duplicate: android: how do i open another app from my app? Is there an Intent to view files such as word document (.doc), excel sheet, powerpoint (.ppt), pdf, etc. in Android?
stackexchange/codereview
I have created a Python Program that converts strings into images at run time , using PIL's Image Draw module. I want to run this program interfaced with a simple web form that should display a text field to input the string and on pressing a button , it should display the string converted as an image. Would be a grea...
stackexchange/codereview
Does any one know where Microsoft.Practices.ServiceLocation comes from? This is a namespace and a dll used in MS EnterpriseLibrary. Admittedly it's a very simple dll with just a handful of classes (using reflector), but I can't find published source code for it. It's not in Enterprise Library project and not in Unity p...
stackexchange/codereview
I've been trying to get jquery mobile alpha to work on my blackberry widgets. http://jquerymobile.com/ Some of the styling works, but none of the functionality does. Has anyone successfully implemented this?
stackexchange/codereview
Say I am in a bash terminal and have a large history of commands. I pressed the up arrow a whole bunch of times and am in the "middle" of the history. I want to now navigate to the first or the last command in my history quickly (without holding down the up or the down arrow for a long time). Is this possible? If so, w...
stackexchange/codereview
I have a piece of code that is working fine in IE, but it doesn’t run in Firefox. I think the problem is that I have not been able to implement $('document').ready(function). The structure of my json is like [{"options":"smart_exp"},{"options":"user_intf"},{"options":"blahblah"}]. I will be very thankful if someone can...
stackexchange/codereview
I want to get the length of integer values for validation in PHP. Example: Mobile numbers should be only 10 integer values. It should not be more than 10 or less than 10 and also it should not be included of alphabetic characters. How can I validate this?
stackexchange/codereview
My project has a UIImage category function that I want to call from another class. I properly import the header file for the image category and I get the project to compile with no warning. The problem is that when I call the UIImage category function I seen an unrecognized selector error with a NSInvalidArgumentExcept...
stackexchange/codereview
I've got a Silverlight4 app that I'm running on https, deployed to Azure. Everything's working except for one small glitch. I've got content in the form of jpg thumbnails and associated zip files with a .gld extension. My app is supposed to display the thumbnails, and allow the users to download the associated .gld/...
stackexchange/codereview
Running the code on my local box is running just fine. As soon as I load the code on my server it is having issues. I can't see the issues because my UI code is calling a webservice via jquery and the webservice is calling into the .cs file that is having an issues. The webservice just returns a failure to the jquery. ...
stackexchange/codereview
I am running a simple statment below which gives the output as follow: select '''' + name + '''' + ',' as Emp_Names from dbo.employee Emp_Names 'Jason', 'Robert', 'Celia', 'Linda', 'David', 'James', 'Alison', 'Chris', 'Mary', Is there a way in SQL that can show my desired output as: Emp_Names 'Jason', 'Rober...
stackexchange/codereview
I have the following: <html:select property="myMap(abc)"> What I really need to do, however, is pull the string abc from a static member of a java class. I thought something like <html:select property="myMap(<%=MyClass.FIELD%>)"> , but that didn't work. What's the correct syntax here?
stackexchange/codereview
I'm trying to install a default Umbraco installation on IIS7, and I'm getting the following error on my (unmodified) web.config file, any ideas? Config Error The configuration section 'system.web.extensions' cannot be read because it is missing a section declaration Thanks,
stackexchange/codereview
I am a new user to the python & matplotlib, this might be a simple question but I searched the internet for hours and couldn't find a solution for this. I am plotting precipitation data from which is in the NetCDF format. What I find weird is that, the data doesn't have any negative values in it.(I checked that many ti...
stackexchange/codereview
Just because functions are first class objects, there are closures, and higher order functions, does Javascript deserve to be called a Functional Programming language? The main thing I think it lacks is Pure Functions, and it doesn't 'feel' like other functional languages, like lisp (although thats not really a good r...
stackexchange/codereview
I am loading in a JSON feed from Facebook (snippet below). { "data": [ { "id": "115972604762", "from": { "name": "Title Here", "category": "Musicians", "id": "20274769762" }, "name": "It was an amazing gig!!", "picture": "http://p...
stackexchange/codereview
We're trying to validate if a URL fires upon loading a web page. Is there a way to do this programmatically using Selenium RC? The event does not appear within the page HTML or DOM. Thanks.
stackexchange/codereview
I have a MVC 2 web application that will have a high volume of users. One page in particular will be rendered based on XML from a database table. I was hoping to use de-serialization to parse the XML into an object tree for easier access to the data. However I'm not so sure that this will perform well enough for my use...
stackexchange/codereview
I use declare error and declare warning to enforce some policies; but in some specific cases I would like to get rid of the warning. Is there a way I can name the declared warning so that I can use @SuppressWarning ? Else I see a solution but it doesn't satisfy me: define a custom @SuppressXxxPolicyWarning annotation a...
stackexchange/codereview
i want to send a json string from a html webpage using javascript to a WCF.. is there any good tutorial for that? this is the code i am using <head> <title>Test</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascrip...
stackexchange/codereview
I've got a signup/login system on my site, and I've made it so that if someone tries to sign up with a username that is already in use, it posts an error underneath the form. However, instead of posting the error message that I created, it returns a MySQL error "Error: Query was empty". Here is the code that I am tryin...
stackexchange/codereview
A similar question was asked here, but as the answers didn't answer my question, I'm asking: I've almost never used trigger_error, always thrown exceptions instead, since in my mind errors are legacy. But I've changed my mind, I think they can co-exist. There are cases when triggering errors make more sense. I'm updati...
stackexchange/codereview
I need to convert a string to a float. These is is my example string: 1 MW +00000.00 mm 2 MW +0000.000 mm 3 MW -00000.01 mm 4 MW +00000.00 mm 5 MW +00002.92 mm 6 MW +00002.69 mm And this is what i'm doing: text = text.Substring(pos + 5, 9).Trim(); float val = 0.0F; float.TryParse(texto, out val); this...
stackexchange/codereview
I have a report with a Tablix. The purpose of this report is to output an Excel friendly report so that users can work and manipulate columns and cells and sort on data. My Tablix contains 2 subreports. One of the subreports may return multiple rows and when it does, it causes data in my Tablix to merge multiple row...
stackexchange/codereview
When running test/unit using the rake test command from the terminal within a rails 3 project directory, the test result output is not coloured. Hence, it cannot be interpreted at a glance. Is there a way of getting colourised output for the results, as you can get in rspec? >rspec --colour
stackexchange/codereview
I wrote two matrix classes in Java just to compare the performance of their matrix multiplications. One class (Mat1) stores a double[][] A member where row i of the matrix is A[i]. The other class (Mat2) stores A and T where T is the transpose of A. Let's say we have a square matrix M and we want the product of M.mult(...
stackexchange/codereview
I'm new to PowerShell and I can't seem to find how to fix this after countless Google searches. I know it's probably easy, but here's basically what I want to do and the error that shows: PS C:\Windows\system32> $path = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}" Get-Childitem...
stackexchange/codereview
How can we enabled SQL query logging in production environment? Thanks, Imran
stackexchange/codereview
$('#add-asset-form').submit(function(){ //if (validate_asset_form()) { $.ajax({ type: 'POST', url: 'wp-content/themes/tvmarketing/assetform/ajax-req.php', cache: false, data: $('#add-asset-form').serialize(), error: function(){ alert('error'...
stackexchange/codereview
I am building search app using django & sphinx. I got the setup working but when I search I get irrelevant results. Here is what I do - # this is in my trial_data Model search = SphinxSearch( index = 'trial_data trial_datastemmed', weights = {'name': 100,}, mode ...
stackexchange/codereview
I have two inputs, and I have attached jQuery UI Datepickers to both of them. Problem is that when I change the date on the first one, it changes on the second one and vise-versa. Suggestions? <label for="datestart">Start Date:</label> <input id="datestart" name="datestart" type="text"> <label for="dateend">End Date:<...
stackexchange/codereview
I'd like to load key-value pairs from multiple locations. My first guess was: <util:properties id="requestProcessorRepository" location="classpath*:*requestProcessors.properties"/> but it is not valid Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [classpath*...
stackexchange/codereview