instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
In my tab SelectionChanged event (is this the correct event, I can't find a tab changed event?), how do I access the new tab?
Also from outside this event in normal code, how do I access the currently selected tab?
TabControl.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(TabControl_Sel... | stackexchange/codereview |
I am trying to implement a PostProcessing manager in my 3D engine, but I'm failing. I keep getting the first texture just slapped over the top of everything else. I'm just creating a new RenderTarget2D using the GraphicsDevice's Viewport in order to set the Width, Height etc. but it just overwrites everything.
Does a... | stackexchange/codereview |
How do I read a large CSV file (> 1 Gb) with a Scala Stream? Do you have a code example? Or would you use a different way to read a large CSV file without loading it into memory first?
| stackexchange/codereview |
Hay, I've made a simple application where users upload content to a MySQL database, however some entities are not being encoded. Things like this appear
ââ¬Å
instead of quotes and what not. I know is should had encoded these values into HTML entities when they were being inserted into the database, however there is n... | stackexchange/codereview |
I am trying to build a Payment gateway where other institutions will post transaction messages. I will have to process them. Processing is not a issue. Now what protocols standard should I use for keeping the gateway standard, to have a smooth integrations with other Financial Institutions.
I did a little research and ... | stackexchange/codereview |
I have to save data into different C# objects based on the input.
Based on the value of "productChoice" my program should save data to the corresponding class.
For example :
if productChoice = "auto" then the data shoud be set to AutoDataprefill object.
if productChoice = "vehicle" then the data shoud be set to Veh... | stackexchange/codereview |
I'm developing on an older Mac. I don't have access to newer Macs running Xcode 3.1, but I want to make sure my sourcecode will work on them. It's been pretty easy so far, all I have to do is ignore anything with "deprecated" next to its name, but the change from NIBs to XIBs has me kind of tripped up. The things I've ... | stackexchange/codereview |
I want position a DIV with the content of an addsense script on top of a img that I use as a banner.
I have the img tag inside a div. then I put the google script inside a following div and set this style to it
style="float:right;left:250;z-index:2"
The add is shown below the img and not on top of it. Any ideas??
| stackexchange/codereview |
I'm looking to take a string containing html character entities such as etc and replace them with the literal string characters. I'm getting data via twitter's api and the text contains those entities. Anyone know of an existing library which does this?
Thanks for your help!
| stackexchange/codereview |
I had a question on the diffrence of running two commands related to jython. I'm having issues with classpath and db drivers.
What works for me is doing the following:
jython -J-classpath ../lib/mysql-connector-java-5.1.7.jar test.py /home/test/data
Running that command everything runs as expected so I wanted to combin... | stackexchange/codereview |
i've found a bug in jQueryUI draggable.... check it out on their demo page here
if you drag the object down far enough so that the page scrolls downwards, the draggable object loses it's position relative to the cursor.
any ideas what's causing the bug, and how to remedy it?
thanks :)
| stackexchange/codereview |
For many years, I have been distributing my Python application using py2exe and py2app. I no longer have access to a windows computer, and I am now looking for network access to a windows computer solely to use py2exe to build my app.
Could I use an Amazon EC2 instance to do this? Or is there another, better solution... | stackexchange/codereview |
As part of my college project I'm developing a customized mobile navigation application. I'm using J2ME.
By customized I mean the application can be used in places only where the user wishes to use them. Now, the 'customized' area is my college premises. So if any student needs directions to reach his classroom or bloc... | stackexchange/codereview |
I am sure this has been asked before, but in this example I am curious as to what usefulness others can see in separating constants to this degree:
public class CoreStringConstants
{
// Common strings
public const string SPACE = " ";
public const string PERIOD = ".";
public const string COMMA = ",";
public c... | stackexchange/codereview |
I've got a SOAP (powered by Java) service I'm trying to hook up to WP7.
Using Add -> Service Reference generates the proxy client, but unfortunately drops all the parameters to the methods on both WP7 and "full" .NET 4. Same result using slsvcutil.exe. ie, service.Login(string, string) becomes service.Login() (or Begi... | stackexchange/codereview |
I'd like to have ⌘ + W close a window/JFrame in a program I am writing in Clojure. How might this be accomplished? Pure Java solutions are also welcome.
| stackexchange/codereview |
If the host machine has antivirus, antimalware, etc. then I would think the virtual machine accesses the Internet through the host, and doesn't need its own protection. Is that correct?
| stackexchange/codereview |
I have created a program, with a service - the service is "START_STICKY". So when I close the program (I am using Advanced Task Killer, to kill programs) the service is restarted automatically, but this presents a problem because I get an error when trying to call:
ContextWrapper.openOrCreateDatabase(ContextWrapper.jav... | stackexchange/codereview |
I have a very strange problem that I have managed to narrow down, but cannot understand.
I have two identical pages, both pulling data from a SQL server database. The code for this is identical on both pages. On one page, the data all display correctly, on the other, one of the fields does not display - the only diffe... | stackexchange/codereview |
I have the following issue:
Using Spring, I would like to propagate the value referenced by the property 'password' to a class variable:
@Value("${password}")
private String password;
That works as long as spring can find the property called 'password'. Since it will not be defined for all different executions, I wo... | stackexchange/codereview |
I'm get a Capistrano recipe to work with Bundler and a Rails (3.0.3) app but having trouble with some basic functionality.
Following the Bundler docs for "Automatic deployment with Capistrano", I'm trying to get more info on a task but for some reason it "doesn't exist"...
$ cap -e bundle:install
The task `bundle:inst... | stackexchange/codereview |
I have some hierarchical that I'd like to display in a TreeView, but formatted to look like a ListBox.
The data I have looks like this (with the possibility of any number of sub levels):
Item 1
Child 1
Child 2
Item 2
Child 3
Child 4
I'd like the data to be displayed like this (and wrap when need):
Item 1 Child... | stackexchange/codereview |
I need for a div tag to slide out on the right side of the screen, how do I get this effect with jQuery? I've been looking here: http://api.jquery.com/category/effects/sliding/ and it doesn't seem to be what I'm looking for...
| stackexchange/codereview |
I need to store a "POCO" class in the Session object. Which pattern would you recommend in terms of storage and performance? (I understand that pattern 2 requires serialization). Thank you.
Pattern 1 (simplified):
class Location {
string Country { get { return Session["Country"]; } set { Session["Country]" = value ... | stackexchange/codereview |
I am confused about the terms "DBMS" and "RDBMS". What exactly is the difference between them and more specifically, can oracle be called a DBMS or an RDBMS? If it is an example of an RDBMS, then what are examples of a DBMS?
| stackexchange/codereview |
When I open some certificates in Certificates MMC console, it shows "You have a private key that corresponds to this certificate." string on "general" tab. How does Windows determine which certificates have private keys, and which don't? I think it should be some registry entry, but which?
| stackexchange/codereview |
I'm having problems writing an If statement because it's asking for the value of a cookie, but it's possible that the cookie could be null which breaks the page.
Here's the code:
If Request.Cookies("myCookie").Value = "1234" then
'do stuff
End If
I think i need an elegant way of say "If myCookie is not null and has a ... | stackexchange/codereview |
I use this api with DataTables : http://www.sprymedia.co.uk/dataTables/example_multi_filter.html
But How I can put seach inputs above the table, next to "Search all columns"??
| stackexchange/codereview |
I have created custom build and compile actions for our dbml files. The "Build Action" is set to "dbml" and I was wondering if it is possible to inside the project somehow also embed the dbml file as a resource. The reason for this is that I want to run smoke tests at application startup where the dbml file is validate... | stackexchange/codereview |
I have created an array:
CString* pstrArray = new CString[nMySize];
Now how can I pass it to a function to be filled up? What is the actual parameter?
void FillThisArray(what goes here?)
{
}
| stackexchange/codereview |
I currently have PHP code that runs a single complex query, with subqueries, in hopes of finding 12 matching records. If less than 12 records are returned, the code runs a second version of the same query, with a slightly modified WHERE clause, to add to the records previously retrieved by the first query. It continues... | stackexchange/codereview |
the Django docs say:
class CommonInfo(models.Model):
...
class Meta:
abstract = True
ordering = ['name']
class Student(CommonInfo):
...
class Meta(CommonInfo.Meta):
db_table = 'student_info'
But how do I handle this if CommonInfo and Student are in different files? At the mome... | stackexchange/codereview |
I have the following Django Model -
class M(models.Model):
...
disp_name = models.CharField(max_length=256, db_index=True)
...
class XX(models.Model):
x = models.ForeignKey(User)
y = models.ForeignKey(M, unique=True)
Now in my views.py, I want to do a partial string match on all items in XX with ... | stackexchange/codereview |
How use jQuery load css file via ajax from another domain?
And after downloading call my callback - so I could continue working.
| stackexchange/codereview |
Hi all
I am new to iPhone programming..I am currently trying to build a folder application iPhone. this application provides user the option to create folders and upload file items in those folders.The application also provides file management operations such as add new folder,delete file items and folder,renaming fold... | stackexchange/codereview |
I've got a code like this to enable or disable som text inputs when a checkbox is marked.
$(document).ready(function(){
$(":checkbox").change(function(){
if(this.checked){
$("input:text").attr('disabled', true);
} else {
$("input:text").attr('disabled', false);
}
... | stackexchange/codereview |
I have the following structure:
//Unmanaged(.h)
class myInterface
{
public:
virtual bool Send(char* myChar);
}
//Managed (.h)
class myClass;
public ref class Parser
{
bool Transmit(String^ mString);
}
class myClass : public myInterface
{
public:
virtual bool Send(char* myChar);
private:
gcroot<Parser^> p... | stackexchange/codereview |
I'm trying to implement a custom configuration solution for an asp.net project I'm currently involved in.
Here is the configuration declaration
<sectionGroup name="WebsiteConfig" type="{namespace}.{class}, {assembly}">
<section name="Languages" type="{namespace}.{class}, {assembly}"/>
<section name=... | stackexchange/codereview |
I am wondering if there are any good options to implement a rich text editor in Android. Please note I am talking about a rich text editor that can be used in an Android application, not the one embedded in a web page using HTML and Javascript.
My requirements are:
Basic formatting (color, fonts, highlight, bold, ital... | stackexchange/codereview |
Here is the exact situation that got me thinking about this.
I have function that automatically
generates the next logical item
number. Part of that item number
includes the year that the item number
was created. We are now in the year
2010 so the most significant portion
of the date (for the purposes of m... | stackexchange/codereview |
I haven't Note-book, but sometimes I must change my computer for University's ones. University's computers are braking, I haven't admin's access.
There are MS VS 2008 but it work so slow, that I can't program at all.
I use MS VS 2010 at home. And because of there's not project's compatibility, I think to use portable a... | stackexchange/codereview |
I'm implementing a simple session cart for unauthenticated users in ASP.NET MVC and I want to do it right.
In the past I have always stored the cart ID in the persistent Session["CartID"] store and as a cookie. Whenever I need to display the cart, I'll look up the user's cart items from my Carts and CartItems tables. B... | stackexchange/codereview |
I am relatively new to JPA and I would like to solve the following problem using jpql exclusively (note that the implementation I am using is Datanucleus): I have a table of versioned entities, and I would like to get the latest version for all entities in the table (i.e. I have an entity class which has an id (which u... | stackexchange/codereview |
Is there a way to add more than one ControlToValidate to my RegularExpressionValidator?
I have two textboxes for postcode and I want to add the same RegularExpressionValidator to both.
Currently I have one for each box but if they are both wrong it shows up two error messages but I only want the user to see one.
Here's... | stackexchange/codereview |
I want a table to have fixed width but dynamic height because content may be of various length. Here is an example:
I have fixed width but the content is overlapping. What I am doing wrong? Here is my code:
<table width="60%" align='center' cellpadding='2'
cellspacing='2' border='2' style='table-layout:fixed'... | stackexchange/codereview |
Hello Friends
I am facing some problem or can say not figure out any help regard this so please help me
There is button having name Add Text when I click that button it display a text box when i enter some text in this text box it display the entered text below.when I click again Add Text button then previous one text... | stackexchange/codereview |
<form>
<input type="checkbox" id="01" name="01" />
<input type="checkbox" id="02" name="02" />
<input type="checkbox" id="03" name="03" />
<input type="hidden" value="03,01," />
</form>
I have the form above; checkboxes 01 and 03 are ticked when the page has finished loading using the code below.
... | stackexchange/codereview |
I'm not a UI expert, so I am looking for advice as to how to solve the problem from a UI perspective and possible technical solutions to following problem.
I have an application that has 200-300 student objects. Users can make study groups that contain 5 or 15 or 30 students. What I'd like to do is offer an easy way to... | stackexchange/codereview |
I want to be able to display data from a database grouped under categories. The application is an attempt at a timesheet application. The database schema looks like this:
(table) TimeSegments
TimeSegmentID
Hours
Date
ConsultantID (FK)
TaskID (FK)
ProjectID (FK)
(table) Projects
ProjectID
ProjectName
(table) Tasks
Tas... | stackexchange/codereview |
The following code works when called from C#, but it seems inefficient because I take the data
from the managed world, make local native copies of it, call the Win32 function, and then copy
the data back into managed parameters, which are returned to the caller.
Is there a way to accomplish the following?
1) Pass the b... | stackexchange/codereview |
This code will create an array of 100 elements and set the value of each to false.
bool boolArray[100] = false;
How can I set the default value of a dynamic array?
void Foo(int size)
{
bool boolArray = new bool[size];
//Now what?
}
| stackexchange/codereview |
Unfortunately I'm working in an obscure platform called uniPaaS so I'm probably after some platform-agnostic advice.
I've got a Web Service request where the XML document contains those irritating smart quotes. The byte data for the character is E2 80 99 (which is a 00002019 RIGHT SINGLE QUOTATION MARK)
When I write t... | stackexchange/codereview |
foreach (ParameterGroup paramGroup in ParamGroups)
{
foreach (Parameter parameter in paramGroup.ParameterList)
{
if (parameter.ParameterId == parameterId)
return paramGroup.GroupId;
}
}
What would be LINQ eqiavalent?
| stackexchange/codereview |
I am working on a tiny piece of software to check if there are >0 UNread emails on my mail account (any free mail, imap).
I am coding in C, but I'm not an expert...
How can C's imap4-api (or just sth comparable) be used to check if there are any unread emails (without fetching them)?
Thanks in advance
| stackexchange/codereview |
Pardon me if there's a similar question somewhere on here already, but I couldn't find one.
Anyway, I have an ASP.NET MVC 2 application using Ninject 2 for the DI. I'm setting up the constructors on my controller to have no parameters, meaning they'll have to instantiate the the needed Providers. The problem comes when... | stackexchange/codereview |
I have two tables Orders and Order_Details
Order_Details tables's order_id field acts as foreign key to Orders table's id_order table.
I want to update the price_total field of Orders table with summation of prices from Order_Details table.
I tried with the following query but failed:-
Update Orders, Order_Details
SE... | stackexchange/codereview |
I have the below html:
<div id="popups">
<div id="createform">
<div id="createformInside">
<input type="text" id="testTitle" size="20">
<input type="text" id="testSubj">
<span id="testOptions">More Options</span>
<br/>
<textarea id="testContent" ><... | stackexchange/codereview |
Let's say I have $('mySelector:first'); and $('mySelector').first();. Which way is the most efficient? I looked in the source, but still couldn't figure it out.
It looks like in the first case jQuery goes through every item until gets the first one:
CHILD: function( elem, match ) {
var type = match[1],
... | stackexchange/codereview |
I have an issue where my tests pass most of the time but occasionally fail. I think it might be a threading issue, but I've experimented with locks and sleeps etc to try and find where the problems lies with no luck. Am I using the correct syntax? I'm getting back into using Rhino after a while away.
Here's a sanitis... | stackexchange/codereview |
I want to have this query:
SELECT DATE(DATE_SUB(DATE('2010-09-10'), (CASE DATETYPE WHEN 'H' THEN INTERVAL 1 WEEK ELSE INTERVAL 1 YEAR END CASE))) AS wdt
MySQL says it's invalid
also I have tried
SELECT _DATE AS wdt
UNION ALL
CASE DATETYPE
WHEN 'H' THEN SELECT DATE(DATE_SUB(_DATE, INTERVAL 1 YEAR)) AS wdt... | stackexchange/codereview |
I have a Perl script that reads in a CSV file, changes the columns names of the original, adds new ones (output CSV column names are stored in the array, header_line), adds new field values for each row read, and then writes out a new CSV file.
Thanks to a comment by @harleypig on my last question, I'd like to use: ... | stackexchange/codereview |
We have a measurement data processing application and currently all data is held as C++ float which means 32bit/4byte on our x86/Windows platform. (32bit Windows Application).
Since precision is becoming an issue, there have been discussions to move to another datatype. The options currently discussed are switching to ... | stackexchange/codereview |
I have two pages (AllUsersList.xhtml, ActiveUserList.xhtml) which shares the same code. The body of the page contains links that navigate to different page that in turn contains links to all Users. If I start from AllUsersList.xhtml, after viewing all the inner pages it should return back to AllUsersList.xhtml. The sam... | stackexchange/codereview |
I am new to Firefox extension development.
I have started to work on an extension that triggers when the page has been loaded. The problem I have is that the event is triggered twice. Its almost as if two threads are created when the users navigates or browses web sites.
Why does this happen and how could this be chan... | stackexchange/codereview |
I created UITextField. I need only 4 numeric characters only allowed that textfield.
I used the following code and get result.
-(BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
NSNumberFormatter *numberFormatter = [[NSNumberFormatter alloc... | stackexchange/codereview |
What happens if I don't call Dispose on the pen object in this code snippet?
private void panel_Paint(object sender, PaintEventArgs e)
{
var pen = Pen(Color.White, 1);
//Do some drawing
}
| stackexchange/codereview |
I'm trying to create a method that will take in two arbitrary lists of nodes, for a subject and a clipping polygon, and output either:
a) the area of the overlap
b) a list of nodes for the resulting (clipped) polygon so that I can calculate the area
I've found lots of examples which clip an arbitrary polygon usin... | stackexchange/codereview |
I am tracking some keywords on Twitter using the command below. I want to print just the "screen_name" property of the tweet author. I could get the command below working but want to remove "quotes" from the author screen_name. How could I do this?
curl -N -d @tracking http://stream.twitter.com/1/statuses/filter.json... | stackexchange/codereview |
I am binding the session values in one page -
$_SESSION['order'] = $order;
$_SESSION['total'] = $gtot;
and fetching on next page-
$order = $_SESSION['order'];
$gtot = $_SESSION['total'];
...but in next next page I am getting blank session.
I have started session with session_start();
When I check session values in p... | stackexchange/codereview |
When doing auto-complete/instant search in a text box, you often don't want to fire your lookup event after every keypress, but instead, only X milliseconds after the last keypress. I'm completely down with how to do this and make it work, but I was wondering whether there was any proper research or recommendations abo... | stackexchange/codereview |
Possible Duplicate:
Static linking vs dynamic linking
Hi ,
please become free me in this confusion
1 ) what is the *static and dynamic linking ? * and static and dynamic library ?
2) is there any kind of interaction these two things ?
3) static library linking as static and dynamic library linking dynamically... | stackexchange/codereview |
Can i release an object (created in a method) in another method (without retaining) in objective C ?
My code is as follows
-(NSMutableDictionary *)returnningMyMutableDictionary{
NSMutableDictionary *myDict = [[NSMutableDictionary alloc] init];
[myDict setObject:@"My Name" forKey:@"name"];
[myDict setObject:@"99" forK... | stackexchange/codereview |
On WinXP sp2 I'd like to have a directory of modules that other python scripts will be using called "SharedPython" in the same directory as my python scripts. so, basically:
/pythonScripts
/pythonScripts/SharedPython
as well as other python scripts on the same level as the SharedPython directory.
when I run
pr... | stackexchange/codereview |
In a project, we have to call a web service that has existed for many years and cannot be modified. This web service contains a bug: when it sends a response to a SOAP request, the response does not always contain the required <S:Envelope> and <S:Body> elements.
How can we intercept the message and insert the missing p... | stackexchange/codereview |
I'm using pygame to create a small scene. Right now, I'm working with lines.
I have an array of lines which are drawn to the screen and when a line is deleted from the array, I would like the line to disappear from the screen.
The problem I've found is that the line is drawn on the screen and remains static. I can't ... | stackexchange/codereview |
I have a tight game loop in a separate thread where I paint a lot of things on the canvas.
When I paint the score to the canvas I use the following function:
public void clearAndDraw(Canvas canvas, Integer score) {
canvas.drawText(score.toString(), middleOfScreen, textYPosition, paint);
When I check allocations in... | stackexchange/codereview |
I would like to create a flyout menu exactly like how it is on Walmart.com. Could somebody help me with this.
| stackexchange/codereview |
I'm building an app where I want to add an online status for a given user.
I know that Devise has a method user_signed_in? built in to check if the user who is using the app is signed in or not. But when I try to use it for a different user like this:
user_signed_in?(user)
user.user_signed_in?
I obviously get an unde... | stackexchange/codereview |
i have tried update the value of text fields but they are show the old values,
code--
double lastValue;
lastValue = [strLastval doubleValue];
textPriceAtExp.text=[NSString stringWithFormat:@"%0.2f",lastValue];
frist time show the correct value but enter the text fields value show the old values.
the lastValue gaine ... | stackexchange/codereview |
Is there a better way of achieving this?
public static List<String> toList(String[] array) {
List<String> list = new ArrayList(array.length);
for(int i=0; i<array.length; i++)
list.add(array[i]);
return list;
}
NOTE: Arrays.asList(a) Returns a fixed-size list backed by the specified array. (Chan... | stackexchange/codereview |
I have a weird situation regarding this wiki:
http://www.dvartora.com/Wiki/en/index.php?title=TestPage
This wiki is version 1.16.0
If I add the word "free"(so it will write: "Avast! Free Antivirus"(without quotes)) between the 2 words and try to save it says I am forbidden.
Forbidden
You don't have permission to acce... | stackexchange/codereview |
I have a number of webpages on which I have the following piece of Javascript
var inputs = $("body :input");
for(i=0;i<inputs.length;i++)
{
thisObj =inputs[i];// test if the class 'roll' exists
if (thisObj.getAttribute('type') == 'text')
{
params+=thisObj.id + "="+thisObj.value+"&";
}
}
If the page it i... | stackexchange/codereview |
Or, how many times can I call AddParameter on the ParameterCollection object in System.Data.DbCommand?
| stackexchange/codereview |
I am trying to figure out an issue im having:
I have multiple calls to the same function simultaneously.
private const string aaaa= "aaaaa";
protected bool test()
{
if (Session[aaaa] != null && (bool)Session[aaaa])
return false;
Session[aaaa] = true;
return true... | stackexchange/codereview |
I have a file consisting of entries like Paula 100, Steve 150, Julian 200. I want to sort this.
Can I use the Collections framework in BlackBerry to sort file entries consisting of numbers and names? I can't find any sorting program for blackberry. So I am wondering if I can use Collections.sort()?
| stackexchange/codereview |
In the code below, I can run the sql through phpMyAdmin and it will return a result. It does not throw any php errors on the browser. I can't seem to get it to send out e-mail.
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
include('database.inc.php'); // Our database connectivity file
?>
<?php
$reminder_d... | stackexchange/codereview |
what I have is a text file that is like this:
apple|2
turkey|4
mango|11
apple|3
turkey|4
mango|4
I need the results to be:
apple|5
turkey|8
mango|15
Any tips or suggestions? I know that there is some Math.Abs and such, I'm just not sure how to combine the lines. Any help would be awesome.
| stackexchange/codereview |
This is my first time designing a web site and I have a question about best-practices. The website we are building has profiles of buildings, and each buildings will have user provided images. Obviously, the images need to be matched up with the buildings.
What is the best way to store this information in a mysql data... | stackexchange/codereview |
just reading up on Lua for a project. I do not like the '..' operator used to concatenate strings (just looks unnatural to me). I do not know enough about Lua yet - but it seems its very flexible.
Is it possible to somehow 'modify' this behaviour (perhaps using metatables?) so that I can use '+' instead of '..' for st... | stackexchange/codereview |
on my website, to search and compare prices of different things, I've form having 'search' button. When user enter keyword(thing for which he want to compare price), category etc. and click 'search' button, URL in address bar is exactly the same that i want (i.e /sp/searchresults/camera/115/Search/bla/bla/////) using f... | stackexchange/codereview |
After installing Django, I followed the tutorial Playing with the API. When I run the following command.
python manage.py shell
I got this error message.
File "/Library/Python/2.6/site-packages/django/core/management/commands/shell.py",
line 29, in handle_noargs
shell = IPython.Shell.IPShell(argv=[])
Attri... | stackexchange/codereview |
My only experience with Flex is some limited reading over the web. What i am wondering is if i want to use Flex or some variant of it for generating reports, specifically Charts, coming off a Java/Oracle backend can i accomplish that in an environment where the streaming media (we cannot play videos on our systems at w... | stackexchange/codereview |
I have strings in the form \d+_\d+ and I want to add 1 to the second number. Since my explanation is so very clear, let me give you a few examples:
1234567_2 should become 1234567_3
1234_10 should become 1234_11
Here is my first attempt:
$new = preg_replace("/(\d+)_(\d+)/", "$1_".((int)$2)+1, $old);
This results in ... | stackexchange/codereview |
How to update rows based upon another single row.
I want to update these:
SELECT field_one, field_two, field_three
FROM some_table WHERE user_ID = 296
With the values in this SELECT:
SELECT TOP 1 * field_one, field_two, field_three
FROM some_table
WHERE user_ID = 500
ORDER BY ID
Currently I am only upd... | stackexchange/codereview |
I have installed red5 client..But when i tried to start this nothing happens..When i see the log
Error log
2010-11-23 15:48:42,887 [WrapperSimpleAppMain] WARN o.s.b.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'enableRmiAdapter' being accessed! Ambiguous write methods found next to actually used [pub... | stackexchange/codereview |
I have an object -a scheduler class-. This scheduler class is given member function pointers, times and the pointer to the object which created the scheduler.
This means I could do something as much as: (pObject->*h.function)(*h.param); Where pObject is the pointer to the original object, h a class which contains the f... | stackexchange/codereview |
In Android I get the version of the SDK easily (Build.VERSION.SDK) but I need to use LabeledIntent only if the platform is newer than 1.6 (>Build.VERSION_CODES.DONUT)
I suppose that Reflection is necessary (I have read this link but it is not clear for a class or to me).
This is the code but it gives me an exception be... | stackexchange/codereview |
i am from Germany so be patient with my english :D
i take care of the hover function in jQuery to change the background color of some divs on my Page.
The problem is not every div acts when i hover over it.
$(document).ready(function(){
$('#book').hover(function(){
$(this).css('background', '#dfdfdf');
}, func... | stackexchange/codereview |
I am trying to replace formulas on column D with their values.
eg. currently D1 = C1 / 2
If C1 = 10, I want D1 to be 5
I need to do this because I need to delete the column C.
I tried changing the format to Text like below but it doesn't seem to replace formulas with their values
Excel.Style style = workbook.Styles.A... | stackexchange/codereview |
I have a JSON object in Python. I am Using Python DB-API and SimpleJson. I am trying to insert the json into a MySQL table.
At moment am getting errors and I believe it is due to the single quotes '' in the JSON Objects.
How can I insert my JSON Object into MySQL using Python?
Here is the error message I get:
error: ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.