instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have done a "svn co" for a repository that contains a symfony app.
Then i went to the root of the project and when i write a task "php
symfony .." I only get the first lines of config/
ProjectConfiguration.class.php
ini_set('display_errors', 1);
ini_set('session.save_handler','files');
ini_set('safe_mode','Off');
ini... | stackexchange/codereview |
I have this basic example:
<!doctype HTML>
<html>
<head>
<script src="jquery-1.4.2.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
$("#showAction").click(function(){
alert($("#myForm").attr("action"));
});
});
</script>
... | stackexchange/codereview |
Consider following piece of code:
JSONObject json = new JSONObject();
json.put("one", 1);
json.put("two", 2);
json.put("three", 3);
If i print the jsonobject it prints like this
{"three":"1","two":"2","one":"1"}
But i want like this.
{"one":"1","two":"2","three":"3"}
Please help. Thanks in advance.
| stackexchange/codereview |
I have a .NET function that does some complex calculation. Depending on the parameters that are passed in, the function:
Takes anywhere from several minutes to several hours to run
Uses 100% of a single core during the computation
Requires anywhere from 100s of MB to several GB of memory
Writes anywhere from several M... | stackexchange/codereview |
This is my php code:
if (isset($_POST['data']) && is_array($_POST['data'])) {
foreach ($_POST['data'] as $row => $data) {
$result = mysql_query("UPDATE orders SET project_ref='".$data['project_ref']."' where order_id = '".$data['order_id']."'") or die(mysql_error());
... | stackexchange/codereview |
I created UDF functions and chm help for them, hooked up chm help with functions through VBA like this:
Application.MacroOptions macro:="MyMacroName", _
Description:="Description", _
Category:="Company", HelpContextID:=100, _
HelpFile:=ThisWorkbook.Path & "\MyUDFs.chm"
When I look through my UDF in function wiza... | stackexchange/codereview |
I'm introducing Ninject into a large mess of a existing project. I want to write a diagnostic test to make sure that all of the classes Ninject will end up creating can actually BE resolved by Ninject...without actually creating any of them.
The reason I want to avoid the actual construction is that many of these class... | stackexchange/codereview |
Hello i just deployed my web site to the remote server. I noticed that the menu (navigation) bar is doesn't display as on my local server. I am using visual studio 2010.
The stylesheet was also deployed to my remote server. I am using the new asp.net 4 already designed navigation. It works find on my local machine but ... | stackexchange/codereview |
I am attempting to use the FileDialog construct in VBA to display a list of available files the user may want to open. I would like to also steer the user towards some common folders in which they typically will find the type of content they are looking for. So far I have come short on locating a method to place a link... | stackexchange/codereview |
Im I'm using VS2008 Addin and im trying to write and event handler for a workbook inside the addin but unfortuantly it isn't getting fired can you help
public partial class ThisAddIn
{
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
FinalWorkbook = ExcelApplication.Workbooks.Add(mi... | stackexchange/codereview |
I have a Visual Studio 2010 project targeting .NET Framework 4.0. When I add the Primary Interop Assembly for Microsoft.Office.Interop.Outlook (version 10) from the .NET tab of the Add Reference dialog, the .NET Runtime version is listed for the interop assembly as V1.1.4322? Why such an old runtime version? I'm not... | stackexchange/codereview |
Is there an open source, reference implementation of a simple, correctly designed, best practiced, GWT + GAE open source application? I would like to see the best practices on the following:
Recommended GWT Page navigation, session handling
GWT best practice UI (validation, controls etc)
Work with detached objects, co... | stackexchange/codereview |
I am new to Drupal and I am working on creating my own theme for our custom module. Can any one please help me understand how to register our theme functions or share any ideas or links that explains the process from scratch.
| stackexchange/codereview |
I tried to create a list of maps. In the following code, I'm expecting to get
[{start=1,text=ye}, {start=2,text=no}]
however, I only got
[{start=2,text=no}, {start=2,text=no}]
How to avoid overriding the first map? Here is my code:
HashMap mMap = new HashMap();
ArrayList list = new ArrayList();
list.add(new HashM... | stackexchange/codereview |
Is it possible to use a numeric string like "123" as a key in a PHP array, without it being converted to an integer?
$blah = array('123' => 1);
var_dump($blah);
prints
array(1) {
[123]=>
int(1)
}
I want
array(1) {
["123"]=>
int(1)
}
| stackexchange/codereview |
I write app with SL4A on Android. I want to send midi signals to Ableton Live. Tell me, HOW :> What library will be good for that ?
| stackexchange/codereview |
I primarily work in Java, but I've recently started using ActionScript 3.0 for a multi-player Flash game that I am helping to develop. The project is in it's early stages, so I'm still working on the class structure. I keep running into limitations with the ActionScript language when I try to use many of the OOP featur... | stackexchange/codereview |
We have a .NET 1.1 application (please spare the why don't you upgrade, we can't right now). We have references to the 2007 PIA's for development and if a client has 2007 installed our application works fine. However if the client has 2010 installed when the run our export they get file not found Microsoft.Office.Int... | stackexchange/codereview |
What aspects of Objective-C do you like and why (specially comparing with C#)? Has C# lost something on the way comparing to older languages as C, C++ and Objective-C
| stackexchange/codereview |
I have a locked down "kiosk" terminal server.
This terminal server has a perl script as its .Xsession, and launches a Tk interface. When that Tk interface is done, the perl script launches "process2" and lets the user interact with "process2" (which is a graphical application).
If a user tampers with "process2", and ma... | stackexchange/codereview |
I am getting a NullPointerException while creating a TreeMap.
Here is my code:
public TreeMap<AccountGroupBean,List<AccountBean>> getAccountsAndGroups() throws SessionExpiredException {
TreeMap<AccountGroupBean,List<AccountBean>> map = new TreeMap<AccountGroupBean,List<AccountBean>>();
List<AccountGroupBean> g... | stackexchange/codereview |
I have a Silverlight app that I hand off to the IT people you are supposed to publish it. This does not always happen correctly, they might forget, put in the wrong loc, or get the wrong version.
So I want to add something to the app itself to easily tell the latest version. This is for SL 3 and 4 so context menu pro... | stackexchange/codereview |
I've been working on a custom panel for WPF and have run into a problem with some design-time code. To boil the issue down, if I have some code running at design time, and that code modifies a property on some object (either the panel or a child of the panel), in the designer, I see the appropriate change, but the XAM... | stackexchange/codereview |
I've searched all over the web for an answer and I can't see anybody with the same or similar problem (which surprises me certainly, so I certainly suspect it's me somehow).
When I do a
Request.Querystring("key1")
Request.Querystring("key2")
the system doesn't seem to parse the second ?/value out but treats it as if ke... | stackexchange/codereview |
Why does PHP output two subdirectories that has: . and .. when reading a directory.
From PHP.net:
<?php
$dir = "/etc/php5/";
// Open a known directory, and proceed to read its contents
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
echo "filename: $fil... | stackexchange/codereview |
I have an add-on for a commercial ASP.NET website. My add-on requires people to merge entries into their web.config, add/overwrite existing files, and add some DLL files to the bin folder.
Is there a good and safe way to create an installer than can do this with a wizard type of installation? It would really help non-t... | stackexchange/codereview |
I have a small C# app that references the Microsoft Excel 12.0 Object Library. Among other things, it reads a value from an Excel cell. It reads this value from some older Excel (.xls) files and some 2007 files (.xlsx). The value comes back properly for all .xls files but I only get the following value for .xlsx files:... | stackexchange/codereview |
I am having an issue with mysql where an inner select statement is always being evaluated with the first row of the outer table. In the following code, "WHERE otherTable.someID = myTable1.table1_id" should (in my mind) match the outer myTable1.table1_id that is initially selected. That is, each row of table1 is proce... | stackexchange/codereview |
I've got a list of items. Users can occasionally select them. Now I want to order the items by their popularity. What's a good weighting function for that?
Constraints:
The weight should be in [0,1)
Recursive calculation is prefered (not required)
Newer events must have more influence than old ones.
I'd favor approved... | stackexchange/codereview |
Carbon had a useful function called DebugPrintControlHierarchy.
Is there something similar for NSView or NSWindow?
| stackexchange/codereview |
Hey all,
I'm making a booking calendar for a rental house and I'm trying to make a selectable calendar update two form fields after selection. I want users to be able to drag across available days and populate the start and end date of my form. This is what I have so far:
<script type='text/javascript'>
$(documen... | stackexchange/codereview |
I'm learning SpringMVC framework and checked out a copy of their code:
https://src.springframework.org/svn/spring-samples/mvc-basic/trunk/
I can do maven build, install and everything. But on Eclipse, run on server option never appeared. I have tomcat server up and running, also got plugin for eclipse. Why run on serve... | stackexchange/codereview |
I'm struggling a bit, trying to properly setup my maven projects in an IDE.
I don't particularly care between Eclipse and IntelliJ, but it seems that IntelliJ handles much better when it comes to import my projects, so I think I will stick with this one.
I'm having other problems now when trying to run the install goa... | stackexchange/codereview |
I have a JPanel (A_Panel) and another JPanel (B_Panel) on top on A_Panel.
I want to resize A_Panel dynamically based on the size of the tooltip of a textfield on the B_Panel.
setSize() in propertychange/focusgained events, repaint() , revalidate() didn't work.
Please help, Thanks!!
| stackexchange/codereview |
Everytime I restart my application, I have a MissingMethodException on dynamic methods of Grails domain class.
I have 3 classes :
Manager.groovy : That class contains a Java ScheduledThreadPoolExecutor and an init method that creates Worker and submits those Workers to the executor.
Worker.groovy : implements Runnable ... | stackexchange/codereview |
This is an extension of the "dual" table concept (temporary table created on the fly for one query and discarded straight after)
I am trying to join a multi row dual table with another one, so as to avoid to have to run the same query several times with different parameters, using 1 statement.
One of the issue I am hav... | stackexchange/codereview |
I am writing a WCF client for a service (not WCF). Getting an error that Unprocessed 'mustUnderstand' header element: {http://www.w3.org/2005/08/addressing}Action, because request SOAP contains header with mustunderstand='true'. I have to either set it false or remove the whole header. can you show the way to do that?... | stackexchange/codereview |
How do we reverse a number with leading zeroes in number ?
For ex: If input is 004,
output should be 400.
I wrote below program but it works only when no leading zeroes in input.
int num;
cout<<"Enter number "<<endl;
cin>>num;
int rev = 0;
int reminder;
while(num != 0)
{
reminder = num % 10;
rev =... | stackexchange/codereview |
Obviously, first priority is disabling and not using Viewstate as much as possible, but if you have to, is this worthwhile? Also considering that IIS is gzipping everything for you as well. ViewState is smaller however is the trade off of CPU worth it?
http://www.dotnetcurry.com/ShowArticle.aspx?ID=67
Trying to give ... | stackexchange/codereview |
I am just getting into PHP classes (OK it took me years ...... ) but n the past I have alsways relied on "hard multiple php/sql" coding and the odd function. Now I see the "wisdom etc. of classes. but a bit of help please. A lot of my functions would use a common repeat function for extracting function $args.
OK ther... | stackexchange/codereview |
I'm trying to modify Magento's AdvancedSearch but I haven't found a way to search for all the "text" fields using a single input. I can show inputs to allow searching for something inside Name or Description or ShortDescription, but is there a way to show the customer a "Text" input and make it search inside all the fi... | stackexchange/codereview |
We're using the MVP pattern and GWT and I'm wondering how and when dependency injection should be used.
We have an App Controller, Presenters, Views and Model code. From reading the GIN tutorial at http://code.google.com/p/google-gin/wiki/GinTutorial#whb it would seem that you should use it at the highest level possib... | stackexchange/codereview |
I'm diving into iOS programming and am using Core Data in my app to persist the game data, however, I'm wondering if my approach is the wrong way to use Core Data. I have three tables in my DB, with the first two having a one-to-many relationship with the another table (i.e. UserProfile -->> Puzzle Packs -->> Puzzles)... | stackexchange/codereview |
Possible Duplicate:
Template member function virtual?
Why are templated virtual member functions not allowed?
I was just playing around a bit with some sample code and the following code snippet gives me the error
"member function templates cannot be virtual"
#include<iostream.h>
#include<stdio.h>
class Base
{
... | stackexchange/codereview |
How can I trim a string(6) " page", where the first whitespace is a 0xc2a0 non-breaking space?
I've tried trim() and preg_match('/^\s*(.*)\s*$/u', $key, $m);.
Another question: How can I reliably copy these characters? They seem to be converted to "normal" spaces, which makes it hard to debug.
| stackexchange/codereview |
I have 2 action methods:
[HttpGet]
public ActionResult Customize()
{
return View(new CustomizeViewModel { Thing1 = "test", Thing2 = "test" });
}
[HttpPost]
public ActionResult Customize(CustomizeViewModel customizeViewModel)
{
_someService.DoSomething(customizeViewModel);
...
}
My ViewModel looks like:
public ... | stackexchange/codereview |
I have a server which use one thread to receive UDP DatagramPackets from a remote data source; and a TCP ServerSocket to listen to remote clients request and spawn a dedicated thread for each client.
I want to transfer each DatagramPackets through the ServerSocket to the multiple clients. And now i encountered signifi... | stackexchange/codereview |
class1.java has creates a float[] array that is need to have in class2.java. How do you do this? The float[] is points. Here is an example code:
class1.java
import android.app.Activity;
import android.content.Context;
import android.app.ListActivity;
import android.content.Intent;
import android.gr... | stackexchange/codereview |
create table employee(emp_id int primary key ,emp_name char(9),
spouse_id int,foreign key(spouse_id)references employee (emp_id)
on delete cascade set null on update cascade);
hi friends
when i delete an data it give impact on related data.
but when i tried to update it, it give error cant change parent data.
please... | stackexchange/codereview |
I was told by a colleague that executing an SQL statement always puts the data into RAM/swap by the database server. Thus it is not practical to select large result sets.
I thought that such code
my $sth = $dbh->prepare('SELECT million_rows FROM table');
while (my @data = $sth->fetchrow) {
# process the row
}
retr... | stackexchange/codereview |
I want to have something like:
let COMP_NAME = %some_type_of_flag%
So that at compile time, this is changed to
let COMP_NAME = "MyComputerName"
Edit: I see that my question was incomplete. This is a silverlight application. It appears Environment does not have MachineName. I'm using f#.
Edit: I'm using Visual Studio ... | stackexchange/codereview |
What are peoples opinions on jira studio? i.e. using the hosted product for a large company. Especially with hosted source control and reliability of the service?
Is this product up to large scale implementations yet?
| stackexchange/codereview |
I've just been caught out when using someone else's API in conjunction with the default variable $_
foreach (@rps_server_details) {
@server_data = ();
@server_data = split(/,/);
@$esp_hosts = ();
$filters{server_name} = $server_data[0];
print "--->$_<--\n";
$esp_hosts = $esp->get_hosts(fields =>... | stackexchange/codereview |
I want to use Vector graphics in an OpenGL game. I want to use vector graphics because they can be scaled cheaply without loss of quality.
Of course, the drawing should be hardware accelerated, so I do not want to draw in software to a texture.
Now I am wondering if a library doing this already exists. Is there a libra... | stackexchange/codereview |
In Java when casting from an Object to other types, why does the second line produce a warning related to the cast, but the first one doesn't?
void a(Object o) {
Integer i = (Integer) o;
List<Integer> list = (List<Integer>) o;
}
/*Type safety: Unchecked cast from Object to List<Integer>*/
| stackexchange/codereview |
Say I have a WCF service that has access to some data that is shared between multiple clients. What is the difference between these two setups:
1) Instancing: Single, Concurrency: Multiple, with the shared data stored in instance variables.
2) Instancing: Per-Call, Concurrency: Multiple, with the shared data stored in ... | stackexchange/codereview |
I have a project with a transparent PNG file under my resources, available at runtime. I'd like to load it up when my view is created and project it, while keeping its transparency onto the NSView instance I have.
Any pointers?
Thanks.
| stackexchange/codereview |
I have been learning opengl for about 4-5 months now.
I am ready to stop using glut(a helper library that obfuscates many difficult / tedious aspects of opengl programming )
Problem is, I feel I have removed all refrences to glut.h, as well as all function calls within glut, but when I run my application it is still t... | stackexchange/codereview |
I'm trying to Create a new Article, which looks like:
Article:
ArticleID - int (primary key, auto-incr)
Title - nvarchar(100)
Text - text
LastModified - Datetime
Controller code is:
[HttpPost]
public ActionResult CreateArticle(Article article)
{
try
{
article.Las... | stackexchange/codereview |
Thanks all for providing suggestion on the question processing of hospital admission data using R, I have addition question on this issue, actually, it should be the task before that question.
Now I have a dataset like this:
Patient_ID Date Ward
P001 1 A
P001 2 A
P001 3 A
P001 4 A
P0... | stackexchange/codereview |
I have an instance of AVPlayer in my application. I use the time boundary observing feature:
[self setTimeObserver:[player addBoundaryTimeObserverForTimes:watchedTimes
queue:NULL usingBlock:^{
NSLog(@"A: %i", [timeObserver retainCount]);
[player removeTimeObserver:timeObserver];
NSLog(@"B: %... | stackexchange/codereview |
Hallo experts,
i'm newbie to TFS, but responsible for SW Test in my group. I'm trying to create a couple of test cases thru MS Visual Studio. I don't know how to change the Test Case IDs, which seem to be automatically assigned by the system. However we want to adapt the IDs to the conventions in our SW specifications.... | stackexchange/codereview |
i would like to know how can i create a custom popup in blakcberry in order to set the Fields in this way:
------Text---------
Button1 Button2
| stackexchange/codereview |
Alright, first off I'm not quite sure how to phrase my problem. This could be lack of sleep, or being pretty new to Python and GTK, or a combination. To aid me, I have written a complete bare-bones example with the help of zetcode.com's tutorials.
The problem, as well as I can put it, is a menu item - with no sub-menus... | stackexchange/codereview |
I've been looking for over a day for a solution to this problem but nothing helps, even the answers here. Documentation doesn't explain anything too.
I am simply trying to get a rotation in the direction of another object. The problem is that the bitmap is not rotated around a fixed point, but rather around the bitmaps... | stackexchange/codereview |
I have a program (in Java) that needs to use another program multiple times, with different arguments, during it's execution. It is multi-threaded, and also needs to do other things besides calling that program during it's execution, so I need to use Java to do that.
The problem is, all Runtime.exec() calls seem to be ... | stackexchange/codereview |
My web application has two build configurations, Dev and Prod. There is a custom build step that will copy some extra config files to the bin folder, and the files are different depending on the build configuration.
This all works well when I do a build, but when I Publish to a FileSystem, these files are not copied ov... | stackexchange/codereview |
<property name="Registration" column="vrn" type="String" length="16" />
<property name="Vin" column="vin" type="String" length="32" />
<property name="EngineCapacity" column="engineCapacityCC" type="Int32" />
<property name="Make" column="make" type="String" length="128" />
<property name="ModelDescript... | stackexchange/codereview |
Hi I have a question regarding $this.
class foo {
function __construct(){
$this->foo = 'bar';
}
}
class bar extends foo {
function __construct() {
$this->bar = $this->foo;
}
}
would
$ob = new foo();
$ob = new bar();
echo $ob->bar;
result in bar??
I only ask due to I thought it... | stackexchange/codereview |
In the following code:
ismaxl :: (Ord a) => [a] -> a -> Bool
ismaxl l x = x == maxel
where maxel = maximum l
main = do
let mylist = [1, 2, 3, 5]
let ismax = ismaxl mylist
--Is each call O(1)? Does each call remember maxel?
let c1 = ismax 1
let c2 = ismax 2
let c3 = ismax 3
let c5 = ismax 5
... | stackexchange/codereview |
I want to migrate from Flex 3.1 to Flex 3.5, but I can't find any useful release notes on the differences between the two. I found the official Adobe website but it is more focused on the difference between 2 and 3, and not different versions of 3. Can someone help me out?
Thanks
| stackexchange/codereview |
I put it into a plist and got this in plain text view:
2010-11-03T16:37:09Z
So my "guess" is:
2010-11-03 => 3rd Nov 2010
T => time(?)
16:37:09 => 4.37:09PM
Z => ? no idea
I want to recreate this in a php file that outputs a time and date? Just want to make sure if I just copy the same as above but leave the T and Z it ... | stackexchange/codereview |
Hai,
I have a simple smile face program in c# which stored login time in d:\time.txt file.But when I add the program at"gpedit.msc" then
Computer Configuration->Windows Settings->Scripts(Start up/Shutdown)->stratup->DOUBLE CLICK then Add the "my.exe", for every single login. I found that Its worked... | stackexchange/codereview |
I'm almost done coding a website that i had started a few months ago. I have the foundation done but, i wanna add some new features to it to make it quicker and add some bling to it.
Currently, I have system whereby php queries the db to see if there are any unread messages every time the page a new page request is mad... | stackexchange/codereview |
There are reams of info out there about things causing InProc session to drop session objects, but that's not what's happening here. We're missing individual variables within stable InProc session objects, and are not sure whether they're not being written or being lost after a successful write. I've confirmed with Win... | stackexchange/codereview |
I have been going nuts trying to figure out why my PHP pages load twice. A lot of people have experienced it, and although some people find out a solution, many havn't. I have a clue that may help more people unravel this.
I only noticed it when MySQL insert statements inserted 2 entries. When I first discovered it, I... | stackexchange/codereview |
I posting a doubt that I came across reading Effective Java. I apologize if its a real simple and straight forward doubt. So in Item 74 - Implement Serializable judiciously, He is saying that even after implementing a good Information Hiding on your class using private and package private fields, it is prone to lose ef... | stackexchange/codereview |
I am getting an exception when I try to start a modified version of the PubSub sample. I am trying to do a few things like making subscription not automatic, and injecting my own ISubscriptionStorage implementation. Here is what I did to MyPublisher\EndpointConfig.cs:
using NServiceBus;
using NServiceBus.Grid.Message... | stackexchange/codereview |
Here are two programs that naively calculate the number of prime numbers <= n.
One is in Python and the other is in Java.
public class prime{
public static void main(String args[]){
int n = Integer.parseInt(args[0]);
int nps = 0;
boolean isp;
for(int i = 1; i <= n; i++){
isp =... | stackexchange/codereview |
I have the following hql:
Select q FROM GeneralQuestion q
Left Join q.QuestionResponses as qr with qr.ContactUid = :contactuid
WHERE q.ParentUid = :audituid
Obviously GeneralQuestion contains a collection of QuestionResponse objects. I have used the with keyword which I thought would limit the QuestionResponse obj... | stackexchange/codereview |
I am often making changes to some large sql script files containing hundreds of stored procs, and navigating through those is not an easy task. Is there an (free or cheap) addin for Management Studio that would allow me to easily navigate between statements in a script? Something like a list of CREATE TABLE/CREATE PROC... | stackexchange/codereview |
I have forked out a Parent: project to Child: this. Now, I want to update my child with parents current updates. Can I do that, if yes how?
When I update my github repo, then I can do a "git pull" to update my local repo.
| stackexchange/codereview |
I've been following a tutorial from a book on html and css.
I tried doing a plain header design like youtube's but I can't seem to get the search box and the button to display properly.The button is rendered about 10px lower than the search box as if it had the top padding set.
Can be seen here http://www.wourm.com/ind... | stackexchange/codereview |
<?php query_posts(array('showposts' => 1000, 'post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => 'title', 'order' => 'ASC', 'meta_key' => featured_product, 'meta_value' => 1)); ?>
<?php query_posts(array('showposts' => 1000, 'post_parent' => $post->ID, 'post_type' => 'page', 'orderby' => 'title', 'order' ... | stackexchange/codereview |
Perhaps I am attempting to do something I ought not.
I'm running a block of code in the emulator. It looks (more or less)
like this: http://pastie.org/1291380
This is to construct a live wallpaper background. I pass in a bitmap,
color palette, and tile array.The size of my bitmap is 256 x 256.
getRedPal / getGreen... | stackexchange/codereview |
When creating an XDocument I get an XmlException with the following message:
system does not support 'iso-8859-1' encoding line 1, position 31
The first line of the Xml document looks like this:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
Here is the code I use to create the document:
xDoc = XDocume... | stackexchange/codereview |
I am creating a windows service and I would like to be able to debug my code easier. So my plan is to create a web app that will allow me to write and test code and then copy it over to the service.
Is there anyway to set up a virtual or test server similar to XAMPP or WAMP in visual studio?
| stackexchange/codereview |
I have a project with hundreds of usercontrols but many of them are old and no longer used. Is there are quick way to find out which ones can be deleted?
| stackexchange/codereview |
So I was searching the web looking for best practices when implementing the repository pattern with multiple data stores when I found my entire way of looking at the problem turned upside down. Here's what I have...
My application is a BI tool pulling data from (as of now) four different databases. Due to internal co... | stackexchange/codereview |
The diamond operator in java 7 allows code like the following:
List<String> list = new LinkedList<>();
However in Java 5/6, I can simply write:
List<String> list = new LinkedList();
My understanding of type erasure is that these are exactly the same. (The generic gets removed at runtime anyway).
Why bother with the ... | stackexchange/codereview |
I use Django with Apache via FastCGI. When I throw 404 error from django (for example, get_or_404 method) there is a correct page displayed, but server return code is 200, not 404.
How can I fix it? Thanks.
| stackexchange/codereview |
Please tell me,
Is Jetty non-blocking web server by default or not?
For example, this code below runs Jetty as non-blocking web server?
Server server = new Server(8080);
ServletContextHandler context = new ServletContextHandler(ServletContextHandler.SESSIONS);
context.setContextPath("/");
server.setHandler(context)... | stackexchange/codereview |
i'd like to know any resources or any starting point to start developing addons/plugins for Google earth. i am not talking about application development using Google earth API. instead i want to create addons/plugins for GE such as flight simulator tour guides etc..
Thank you very much !!
| stackexchange/codereview |
How can I add an Image type to an EF4 Code First Entity? I need to add a column for thumbnail images.
public Image Thumbnail { get; set; }
Thanks!
| stackexchange/codereview |
I'd like to get a stronger idea of how websites like http://www.msn.com/ can detect where you are. I know that you can do this by IP, but that can be extremely inaccurate depending on your ISP.
What is the most accurate method of doing this on the web?
| stackexchange/codereview |
I have some editor pages in my CMS that use the WMD control for inputting and displaying content written in Markdown.
We have now switched to Markdown Extra (because we needed tables) but WMD can't handle the new syntax to support tables. Is there a way of h4cking WMD to make it work with ME or should I give this up as... | stackexchange/codereview |
I have a small to medium sized project to work on and I wanted to use the new MVC 3 and Razor but unfortunately I will need to hit a mssql 2000 as well as an ms FoxPro 8 database.
Maybe I am stuck using ADO.Net typed data sets and webforms? Whats the best/easiest way to get type data sets into List or even just make th... | stackexchange/codereview |
Using a Visual Studio 2010 ASP.net web application, I have several projects that share some JavaScript/css files. The most logical way for them to share these files is to place the files in a single folder and each project has them included with the "Add as Link" option. However, if I add the files this way when I'm de... | stackexchange/codereview |
I need my server to act as a proxy between a 3rd party server (where the file is originally located) and the end user. That is, my server downloads the file from the 3rd party server, and sequentially, the user downloads it from my server. This should result in an incurred bandwidth of twice the file size. How can this... | stackexchange/codereview |
Local Variable
begin
transaction #Code inside transaction
object = Class.new attributes
raise unless object.save!
end
rescue
puts object.error.full_messages # Why can't we use local varible inside rescue ?
end
Instance Variable
begin
transaction #Code inside transaction
@object = Class.new att... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.