instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I'm building a Grails/Groovy/GSP app.
I'm used to seeing errors such as "Cannot get property 'id' on null object", or "no property named ...". But I'm not sure what "null" by itself means!
Error 500: Error processing GroovyPageView: null
Just "null".
Now I understand that the full error stack is going to help, and I'm ... | stackexchange/codereview |
I have built a custom typesystem for usage in C# scripting inside an application. The scripts are compiled on-the-fly and allow interaction with the application internal data. This typesystem is designed in an abstract way using interfaces like IValue. Implementation of IValue can be a RefString, RefInteger, RefDouble ... | stackexchange/codereview |
I am using enum as an input parameter for a RIA Service method.
When the enum value is the first enum value, all is ok, if I choose another value, I receive:
The remote server returned an error: NotFound.
at System.Net.Browser.AsyncHelper.BeginOnUI(SendOrPostCallback beginMethod, Object state)
at System.Net.Browser.... | stackexchange/codereview |
How can I verify my google analytics tracking code without having an actual website?
I'm just going to use it for my app tracking (pageviews/events).
| stackexchange/codereview |
Simple question:
I really like the idea of encapsulation, but I really don't know if it is worth it is a performance critical situation.
For example:
x->var;
is faster than
x->getVar();
because of the function calling overhead. Is there any solution that is both fast AND encapsulated?
| stackexchange/codereview |
I am trying to do something like this. However the WithMetadata method wont let me.
Is this a problem in Autofac and should TScanningActivatorData in the WithMetadata overloads be changed to TActivatorData, or am i approaching this the wrong way?
builder.RegisterType(myType).As<IMyType().AsSelf().WithMetadata("somekey"... | stackexchange/codereview |
I'm new to the WPF styles and how they work exactly. So this is really a beginners question.
I used Expression Blend to create a Template using "Edit a copy...". This gives me a huge amount of XAML statements. I went on to edit those statements but didn't get the effect I wanted.
I want to modify the Expander Up and Do... | stackexchange/codereview |
i have a usercenter/users_controller,in this controller have code like belows
def login
end
def forgot
end
def reset_password
end
each method mapping a view login.html.erb, forgot.html.erb,reset_password.html.erb
now i want make a route for them at /usercenter/login
/usercenter/forgot
/usercenter/reset_password
how co... | stackexchange/codereview |
in this vbscript the second Err.Clear is required or not as a part of optimization.
Set WshShell = CreateObject("WScript.Shell")
strSpoRootKey = "HKLM\SOFTWARE\"
strKey = RootKey & "tcc\Operation\" & Version & "\Location"
strPath = wshShell.RegRead(strKey)
If Err Then
Err.Clear //first Err.clear
... | stackexchange/codereview |
The problem is with validating the following link:
<link href="/WebResource.axd?d=iU6d9QgZtDnsqOJdmY0qJqVXyEU9Bc_DZHppuTGlpxU8YzwGet7OFPf9pflYz5SdwzuL1HVwxtSRZApovmcmRFW9P0ToSD3GFaTiOAqfOKHTYh7U0&t=634254225425826735" type="text/css" rel="stylesheet" />
and this is where w3c finds the error:
…UkrzqUngMzMpJmeFoz3FR... | stackexchange/codereview |
I'm facing a huge problem developing an Android app which use a Webview to display datas. The website i'm using in the webview use localStorage API of HTML 5.
To enable this feature i've set the webview setting like this :
webview.getSettings().setDomStorageEnabled(true);
webview.getSettings().setJavaScriptEnabled(true... | stackexchange/codereview |
I have a SWF file and I am trying to embed it into an HTML.
I used the following code:
<object width="704" height="440">
<param name="movie" value="http://riskgames.ist.psu.edu/CyberLinkIT.swf"></param>
<embed src="http://riskgames.ist.psu.edu/CyberLinkIT.swf" type="application/x-shockwave-flash" menu="fal... | stackexchange/codereview |
I have the following problem to solve, perhaps you could give me some ideas regarding the problem - solving approach:
There are:
8 classrooms
16 teachers
201 students
149 parents
241 appointments (most of the parents need to see multiple teachers, either because the have more than one child or because one child is bei... | stackexchange/codereview |
Is there a way to do a git pull that ignores any local file changes without blowing the directory away and having to perform a git clone?
| stackexchange/codereview |
I'm trying to make a web application with google maps api, that gives directions. Right now, It gives directions fine unless the user types in something wrong, it either doesn't show anything or it tries to figure it out and gives the wrong address. I want to make functionality where if the address is not recognized it... | stackexchange/codereview |
Is there a way to draw a circular gradient mask on a bitmap in Android? Trying to produce something similar to a foggy window. Click the window and a transparent circle shows up revealing whats behind the window. Prefferably using a gradient so the center of the circle is completely transparent and the further out fr... | stackexchange/codereview |
I'm modeling a vector field in flash and spawning a mess of particles to visualize the flow of the field. Using the vector field F(x,y)=yi-xj
This vector field has a curl, the particles are to move in circles which they do. My problem is that the particles diverge from the origin, though this particular vector field ha... | stackexchange/codereview |
I'm dynamically calling web services in my program using the WSProxy class here, and I need to parse the returned object to XML, or at least access the members inside the returned web service result.
For example, if I receive an Array of StateCodes, I need to do:
public object RunService(string webServiceAsmxUrl, stri... | stackexchange/codereview |
I need help on an algorithm. I have randomly generated numbers with 6 digits. Like;
123654
109431
There are approximately 1 million of them saved in a file line by line. I have to filter them according to the rule I try to describe below.
Take a number, compare it to all others digit by digit. If a number comes up with... | stackexchange/codereview |
Why is it that when I view the month of November 2010 it also views the month of 2009? Can anyone help me?
<?php include("db.php");
$query = mysql_query("SELECT distinct YEAR(local_date) as year FROM tbl_localnews order by local_date desc");
while ($row = mysql_fetch_array($query)) {
//$row = array_unique($r);
... | stackexchange/codereview |
I'm having trouble organizing some Crystal Reports into a more manageable structure in a VB.Net winforms project.
The reports were all defaulting to the root namespace (in this case 'Reports') and then having names like 'analysisKS3SubjectSummary.rpt', 'analysisKS4SubjectSummary.rpt' etc.
To tidy this up I set namespac... | stackexchange/codereview |
I am using a single global DataContext object for my entire application. The application should work in a network environment where multiple instances of it work simultaneously with a shared SQL database.
The database changes in one application are not reflected in other instances until I call DataContext.Refresh metho... | stackexchange/codereview |
In Qt, I'm trying to use the system proxy settings. This seems to work well, as long as I do not change them while the application is open.
Once I change the system proxy settings, I've got to close and re-open my application to pick up the new proxy settings.
This is documented in this bug here: https://bugreports.qt.... | stackexchange/codereview |
In this MSO bug report, our very own waffles makes the following observation:
This bug also happens to be a heisenbug, when debugging it if your first breakpoint is too early, stepping through shows that everything is good.
(Ref: Wikipedia's entry on Heisenbugs)
How is it even possible for the location of a breakpoin... | stackexchange/codereview |
I'm getting the following warning:
CA1824 Mark assemblies with NeutralResourcesLanguageAttribute
According to MSDN, the cause of this is:
An assembly contains a ResX-based resource but does not have the System.Resources.NeutralResourcesLanguageAttribute applied to it.
Could anyone please explain what it means?
I d... | stackexchange/codereview |
I am looking for a plugin for Matlab to integrate with subversion. Ideally an equivalent of Ankh for Visual Studio, something that would put icons in Matlab's directory browser indicating the file's status. Is there such a thing? The only solution that I have found so far is this, which does not work on Windows.
| stackexchange/codereview |
How can we add fields to each video in the Video module?
I need to add a title and description to each video.
I see there is a Description field for the thumbnail, maybe I can add a title to that?
It looks like It may need to be added to video_helper.inc?
| stackexchange/codereview |
I'm trying to find the Base DN of the user that can access or controls all the users in Active Directory so I can put it in my LDAP.
Usually someone will give me this, and it looks like DC=domain,DC=company,DC=com
But the admin is not available, so I don't know how to find this in Active Directory.
I'm looking for a st... | stackexchange/codereview |
I followed this guide to implementing build numbers in an XCode iPhone project (guide).
I tried it and I am getting the wrong build number when NSLogging. It's not updating correctly and is always one or two numbers behind the info.plist. I need it to be the same number. Anyone know why this is happening?
i.e "[[[NSBun... | stackexchange/codereview |
I'd like to know how to setup IntelliJ to point to the JDK documentation so the documentation popups that display during code completion will show me what the function I'm looking at is going to do. For some reason IntelliJ isn't able to find the JavaDocs by default.
I'm also not 100% sure that the documentation is ins... | stackexchange/codereview |
Is there any way we can hide the custom list in a sharepoint gallery.
Thank you.
| stackexchange/codereview |
I'm going to implementing an On Screen Keyboard for Window which requires the OSK app to show when an user enter an input area. For example, when a user open notepad.exe and start clicking on it, my OSK app (currently run in system tray) should be showed.
I have no idea how to catch those event (user click on notepad a... | stackexchange/codereview |
I am now applying EHcache to my web application by means of SpringModules EHcache support.
However, it does not work. No exception thrown though.
ehcache.xml:
<ehcache>
<diskStore path="c:\\myapp\\cache"/>
<defaultCache
maxElementsInMemory="500"
eternal="true"
overflowToDisk="false"
memorySt... | stackexchange/codereview |
I have 2 date pickers for Start date and End date... Could someone tell me why this does not POST anything to the DIV...
$(function () {
var start1 = $('#start1');
var end1 = $('#end1');
start1.datepicker({
onClose: clearEndDate
});
end1.datepicker({
beforeShow: setMinDateForEndDate... | stackexchange/codereview |
How should I script my application(a C# console application), to run at the virtual machine start-up?
Should I use shell scripts or something else?
What should the structure of the script file be like?
Thanks, Catalin
| stackexchange/codereview |
im a newbie here and would like some advice on C# programming
i would like to store values from a textbox into a database.
so far, i have the following:
string connectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Customers.mdf;Integrated Security=True;User Instance=True";
SqlConnection connec... | stackexchange/codereview |
Is that true that WP_Query by default returns 10 posts? I have more than 10 posts and didn't set the post_count variable and it returned 10 posts. Then I set post_count to 1000 and it returned all posts (Now I have 27 posts for test purposes). Then I read some documentation and learned from there that I can set post_co... | stackexchange/codereview |
I understand that SetupSet is old way of setting up property in Moq. It's obsolette now but my intellisense shows both with none of them marked Obsolette. Can anyone point me the actual difference between them?
| stackexchange/codereview |
Ok, so I've made one app but know I'm getting all ambitious and want to make a game.
So first I want to start off with a menu. I would rather draw this all myself instead of using the built in classes. So should I then override the button class to change the look or should I use OpenGL or Canvas? Any help?
| stackexchange/codereview |
I am using the setup.py file supplied with hcluster with the following lines added:
sys.path.append("c:\\Program Files\\Python26\\Lib\\site-packages\\hcluster-0.2.0")
sys.path.append("c:\\Program Files\\Python26\\Lib\\site-packages\\hcluster-0.2.0\\hcluster")
Then used setup.py as follows:
"c:\program files\python26\... | stackexchange/codereview |
So I created an app (with lots of help from SO and my friends). It compiles and runs on my machine (I tied to place it into different folders). VS created for me a debug older with my app : HelloVideoStreaming.exe some HelloVideoStreaming.ilk and HelloVideoStreaming.pdb. Problem is - when I try to run my app on another... | stackexchange/codereview |
Greetings,
I'm trying to simply display an image using Appcelerator on Android.
I don't understand why it won't work.
Here is my code:
var back=Titanium.UI.createImageView({
url:'images/back.png'
});
win.add(back);
I've also tried putting the image inside a view:
var view = Titanium.UI.createView({
borderRadius:1... | stackexchange/codereview |
Background:
One of the components of our project operates using spring. Some SQL code is dynamically generated, based on a given XML spring configuration.
At first it was fine to store all the XML configurations in the same package on the classpath, (and then load it as a resource when the service is called) but over ... | stackexchange/codereview |
I have a WCF service, which is using a dll (Class library) to access Appfabric cache.
When I use this dll to access cache from a console app, it works fine.
However, when I access it through WCF using the client, it gives error "ErrorCode:SubStatus:There is a temporary failure. Please retry later. (One or more specifie... | stackexchange/codereview |
I'm using Flex 4. I'm driving myself crazy. Why won't the following work?
// in my Application tag:
creationComplete="replaceMe(event)"
// in my script block:
public function replaceMe(event:Event):void{
var str:String = "She sells seashells by the seashore.";
var pattern:RegExp = /sh/gi;
str.replace(pattern, "sch");
... | stackexchange/codereview |
Building a website. When I order my tags like this, LightCycle works but Lightbox doesn't:
Lightcycle works, Lightbox doesn't:
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="./js/prototype.js"></script>
When I orde... | stackexchange/codereview |
I need some help. I have been searching for days trying to find solution to my problem. I would like to show a progress bar while downloading a file in Android. I found enough to download the file but have struggled to figure out how to display a progress bar.
Here is my download code:
String sURL = getStri... | stackexchange/codereview |
Both Developer Express' CodeRush and Whole Tomato's Visual Assist X are excellent tools. I've found that CodeRush has a prettier UI, and it's "marker" mechanic is extremely useful, and it has a larger palette of refactorings available. On the other hand, CodeRush occasionally makes mistakes with it's refactorings, part... | stackexchange/codereview |
I am new to those two technologies, I sketched their roles in generating an HTML out of raw XML file as I understood in these steps(Please correct me if I was wrong):
XML data source (database, RSS, ...)
XQuery (Data manipulation FLWR)
XSLT (Data representation through templating)
The resulting XHTML document to be de... | stackexchange/codereview |
i need to strip ../something/ from a url
eg. strip ../first/ from ../first/bit/of/the/url.html where first can be anything.
what's the best way to achieve this?
thanks :)
| stackexchange/codereview |
I have the code below and this allows me to click a button and it switches to the next image, how to I make this so that when I click another button it goes to the previous image?
- (IBAction)next {
static int index = 0; // <-- here
index++;
// Set imageCount to as many images as are available
int imageCou... | stackexchange/codereview |
I am hesitated to ask this question because it looks weird.
But anyway.
Just in case someone had encountered the same problem already...
filesystem functions (fopem, file, file_get_contents) behave very strange for http:// wrapper
it seemingly works. no errors raised. fopen() returns resource.
it returns no data for ... | stackexchange/codereview |
I have sliced an image making an HTML file with tables. I centered it with tag and then I put the background image which repeats which I want it to repeat. and now I want to put some text on the field which I had specified for putting text.( I want to put text on an image which is there in table format) I don't know h... | stackexchange/codereview |
I have a (custom) php framework that contains following structure:
app
|-classes
|-settings
core
|-classes
modules
index.php
App folder must contain exclusive
code for the current application. Also contains configuration files.
Core contains the framework files.
This folder is common to all projects
using this fra... | stackexchange/codereview |
I have a set of classes, each of which need to decide at some point which of two or three approaches they should use internally to implement the same functionality externally. Ideally, this should include fallback functionality, where if ApproachA fails, it falls through to try ApproachB (and perhaps approaches C, D, e... | stackexchange/codereview |
I have done this successfully with an UPDATE statement before but not a REPLACE.
I am saving favourite items in a mysql table when a user has checked out.
Table Favs is:
USER (int)
ITEM (int)
COUNT (int default 0)
The SQL I am trying is :
REPLACE INTO favs (user,item,count) VALUES ('1','3', count + 1)
although it doe... | stackexchange/codereview |
I am trying to install some programs on an Ubuntu server (on a virtual machine) by following a tutorial. I am at the part where it says I need to edit a .cfg file. After looking around I found
sudo vi /path/file.cfg
could be used to edit the file in the command line.
After I typed that, I got a row of:
~
~
~
... | stackexchange/codereview |
I find a code about counting online users in Asp.Net. I add it to my MVC project but its not working. There is a custom Httpmodule that has a Init() function and it is being called in every request. where is the problem.
init() must be run one time for all application lifecycle , but it is running on every request.
Thi... | stackexchange/codereview |
How do I expose events to my plugin users?
I know that I should use:
$('#myPluginDiv').trigger('eventName', ["foo", "bar"]);
to trigger the event but I'm looking for best practices describing how to declare and invoke events in plugins.
| stackexchange/codereview |
In one piece of my program I doubt if i use the comparison correctly. i want to make sure that ( u0 <= u < u0+step ) before do something.
if not (u0 <= u) and (u < u0+step):
u0 = u0+ step # change the condition until it is satisfied
else:
do something. # condition is satisfied
| stackexchange/codereview |
I am using PHPUnit to test insertion of objects via my storage object. Each domain object has a added and lastmodified timestamp, that is handled by the storage object automatically. I can using PHPUnits DB extensions method assertDataSetsEqual and passing as XML data set as below shows. The problem is added and lastmo... | stackexchange/codereview |
I've just started playing with Eclipse RCP.
A few things that I would like to accomplish:
How do I maximize the initial size of the application?
I would like to create a sidebar type view on my left and would like to fix the size of that view and remove any title bar, minimize/ maximize/ close from that side-bar.
C... | stackexchange/codereview |
I want to create a class in Java Script. I can use basic functions coupled with prototypes but I want to use Object Literal Notation. Is is possible to create classes using Object Literal Notations?
| stackexchange/codereview |
A few years ago, it seemed to be accepted wisdom to avoid HTML formatting in favor of plain text when sending notification e-mails to users, because a) not all e-mail readers supported HTML and b) HTML-formatted e-mail was more likely to land in the user’s spam folder.
Are these arguments still valid today, or are HTML... | stackexchange/codereview |
How do I create a class in Javacscript from a class in C#?
| stackexchange/codereview |
How to create a xml file and save it in some place in my machine using java..there are attributes also include in the xml file? I have found org.w3c.dom.Document but having problems with creating attributes for elements and save the xml file.
Thank You.
| stackexchange/codereview |
I'm having some issues with namespaces in LINQ. So going off of MSDN's Tutorial we can do the following to add namespaces to an XML document with LINQ:
// Create an XML tree in a namespace.
XNamespace aw = "http://www.adventure-works.com";
XElement root = new XElement(aw + "Root",
new XElement(aw + "Child", "child ... | stackexchange/codereview |
var tz = {"US": [123, 456, 784], "UK": [456, 461, 953]};
An I get country code from web page's form.
e.g.
var countryCode = $('#country option:selected').val(); // Now "countryCode" is UK
Now I want to get the array data of "UK". e.g. [456, 461, 953]
How can I write the code? Thanks.
| stackexchange/codereview |
I’m looking for an AJAX-enabled combo box with the following features:
The combo box accepts entries selected from a drop-down as well as free-form text entered by the user (kind of like the text field used to enter tags for StackOverflow questions)
The drop-down list contains a limited number (less than 10) of sugges... | stackexchange/codereview |
Im developing a windows forms application using C# 4.0 and that application is going to target different database engines like SQL, MySQL and Oracle i was wondering if there is a library that can talk to all the three engines instead of implementing my own layers for every one.
thanks in advance.
| stackexchange/codereview |
Hi, I have a Java application that reads data from the console and prints it.
If I enter a Unicode String in the Console, for example \u06F1, it is printing \u06F1 instead of "?".
What change should I make in the code to display the character as "?".
Thanks
| stackexchange/codereview |
If I am creating a Ruby on Rails app consisting of a public web site and a private administration web site, what is the best practice for doing this in Ruby on Rails?
I want to make sure I am sticking with the DRY principle and avoid duplicating functionality such as CRUD operations. The most logical solution I've c... | stackexchange/codereview |
I'm making a simple iPhone web page that lists around 200 medical terms and their definitions. I'm using JQuery autocomplete to allow the user to dynamically search the terms, and when they tap the term they want I want to display the term's definition right below. I need help setting up a JS array with both the term a... | stackexchange/codereview |
I am trying to find nearby WiFi devices programmatically from my application.
I have the following two questions.
1. Is there any API's to do this? Is there any sample provided to go through?
2. Is it possible to implement it from 3.0 SDK or 4.0 SDK?
The same thing i want to find nearby Bluetooth devices as well and wa... | stackexchange/codereview |
Alright, I have a HTML canvas with a bunch of circles on it. I want mouseclick events on circles to trigger some Javascript function. I already have the basics, but the coordinates are obviously so precise that it takes me like 30 times to hit the exact coordinates of a certain circle.
Is there a way I could implement ... | stackexchange/codereview |
I am getting an ActivityNotFoundException in the following code:
Main.java
Intent intent = new Intent();
intent.setAction("com.test.app.TEST");
startActivity(intent); // ActivityNotFoundException
Manifest.xml
<activity android:name=".MainActivity" android:theme="@android:style/Theme.Dialog">
<intent-... | stackexchange/codereview |
i have tableview.In method 'viewWillAppear',it calls a function and function data is stored in an array named 'list'.Now in the method 'numberOfRowsInSection' method it returns the list count...and in another method 'cellForRowAtInexPath' it displays data in cell...now when the view is pushed to the above view using ... | stackexchange/codereview |
I have a problem with MKPointAnnotation. I want to create my iPhone application like this:
Show a pin in Google Maps
Show a description on each pin, pulling that description from a NSMutableArray.
So, My question is, how do I show a description on each pin?
This is my code:
NSMutableArray *points = [[NSMutableArray ... | stackexchange/codereview |
Hey everyone, I am working on a site in which I do not have control over the HTML. I need to use jQuery to grab some content that is hidden in a div and open it in a new window. Is this possible?
| stackexchange/codereview |
Is there a way to provide a default type for a parameter T of a generic, something like:
class Something<T = string>
{
}
I know there aren't many strong reasons for this, but I would like to hint the code client which type he should be preferably using.
Another thing, can I restrict the generic type to a ValueType? I'... | stackexchange/codereview |
i'm selecting 1 row from a table:
select * from LCTs WHERE LCTGUID = 'B642B9E6-779A-4FD0-8514-294EAF87A9A6'
(1 row(s) affected)
(3 row(s) affected)
How can i get 4 rows affected by a single select (especially since it returns only one row)?
Bonus information:
SQL Server 2000
LCTs is a real table (i.e. not a view o... | stackexchange/codereview |
I am using mcrypt like this
<?php
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$key = "This is a very secret key";
$text = "Meet me at 11 o'clock behind the monument.";
echo strlen($text) . "\n";
$crypttext = mcrypt_encrypt(MCRYPT... | stackexchange/codereview |
I'm trying to output a generated image using Play. I'm not sure if my issue is Play-specific or not. I'm trying to do the same thing this PHP code does:
header("Content-type: Image/png");
$map = imagecreatefrompng("$_SESSION[ROOT]/it/cabling/maps/${building}_$floor.png");
... // add annotations
imagepng($map);
It loo... | stackexchange/codereview |
I am trying to use it this way:
CSS
#sprite2 {
background: url(../images/csg_sprite.png) no-repeat top left;
}
.collapse_down{ background-position: 0 0; width: 16px; height: 16px; }
.collapse_up{ background-position: 0 -66px; width: 16px; height: 16px; }
HTML
<div id="sprite2"><span id="splink1" class="collapse... | stackexchange/codereview |
I am quite a newbie on struts, and here is my problem :
I have a jsp which is accessed from several actions. On this jsp, i have a 'Back' button which has to forward the user to the previous page. The previous page must be called with the originally parameters.
What are the solutions to achieve this ?
I tried to pass a... | stackexchange/codereview |
Good evening fellow stackers, I have a mutex and threaded related question about
// ¦ = Run one or the other per call to routine
|GROUP A| GROUP B |
| A & B GROUP MUTEX |
|=======|============|
|A1 & A2¦ B1 & |B2|B3|
|MUTEX|
|==|==|
|B2¦B3|
Situation
Is this situation... | stackexchange/codereview |
My company recently changed from a dedicated T-1 to a broadband business Comcast connection. Immediately after, this problem began.
Our development machines are local, but our Active Directory server (used for testing and staging the product before deployments) is a public cloud instance located at Rackspace. The dev... | stackexchange/codereview |
I need to train a network to multiply or add 2 inputs, but it doesn't seem to approximate well for all points after 20000
iterations. More specifically, I train it on the whole dataset and it approximates well for the last points, but it seems
like it isn't getting any better for the first endpoints. I normalize the da... | stackexchange/codereview |
I have an application the sets up the logging using:
logging.basicConfig(level=logging_level, format=format_string, filename=log_file, filemode='a')
then call
logging.debug("My Message")
etc. to log messeages. This work fine in most of my application, but then for a particular module I get this error
File "C:\path\to... | stackexchange/codereview |
I have this test code whic is simply mapping about 7500 files to virtual memory and then unmapping it. I have done this to check my RAM usage (my virtual memory usage is just fine). When I run this application my physical avaialble memory goes dangerously low and everything really slows down (I am running on a 4 GB RAM... | stackexchange/codereview |
I'm setting up a website using django-cms and wanted to use philomat's django-form-designer I downloaded it and followed the steps as laid out in the readme, but when I go to the admin, I can see there's a category for the app, but none of the two links go through...they give 404's.
What could I be missing? The app ... | stackexchange/codereview |
Hi i am doing one project,I failed to display two listViews in a SingleActivity,
one list am getting from xml as product catalog other one contains Images(LazyImagelo ader).... here i am not under
standing how i can get
can you help me to display each product catalog and it's related image in a Single row of
List..
| stackexchange/codereview |
I am trying to control android phone touch screen, It's not have keypad available .
Is there any known tool that can send command to Android touch screen as if the user touch the screen ?
Thanks,
Koby
| stackexchange/codereview |
I have my website in /var/www/invent. I have zend-framework in /var/www/invent/library.
Basically what i want is when i access http://localhost/invent to work as if i had a virtual host "invent" defined in apache conf file (like accessing http://invent). How can I achieve this?
I have developed my project under window... | stackexchange/codereview |
TABLE quotation
id clientid
1 25
2 25
3 25
4 25
5 26
How can I query how many different clients exist in TABLE quotation? I don't want duplicate entries to be counted more than once.
I need the answer to be 2, in 1 row, because the only non-duplicated entries are (25, 26).
| stackexchange/codereview |
I am sure everyone knows that Source Control is a core component of responsible software development. Like software development practices most organisations have differing policies and procedures in working with their chosen Source Control Management Tool; Subversion, GIT, TFS, etc.
My question is around how you provi... | stackexchange/codereview |
I have implemented product management system.I want to add one new features in which user can buy product from the iphone so user can do payment for particular products.
But i dont know how it possible.If you have any idea about that then please help me for this query.
Edit:
I have seen amazon.com and eBay application ... | stackexchange/codereview |
Can any one tell the difference between:
NSString* myStr = @"Some value";
and
NSString* myStr = [[NSString alloc] initWithString:@""];
why i should alloc a string even i can give some value directly..?
| stackexchange/codereview |
This baffles me and I can't seem to make Visual Studio 2010 to recognise System.Linq extension methods in view code. Intellisense doesn't work and Visual Studio red underlines unrecognised extension methods.
These are web.config's most relevant parts, that I think are related to Visual Studio to recognize System.Linq e... | stackexchange/codereview |
can someone explain what the the contextmenu attribute does and if it can be used with all the HTML elements and can someone point me to some online demos/examples?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.