instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am using this code to add a row to a table usign js:
var tbody = document.getElementById('tableID').getElementsByTagName('tbody')[0];
var row = document.createElement("TR");
tbody.appendChild(row);
I want to use onmouseover on that TR to make it change the background color, how can I do that?
| stackexchange/codereview |
I am creating a Grails application that is the backend for a mobile application. It is currently deployed on Amazon EC2. It persists data to a mysql database. One instance currently pointing to the database. I plan to deploy multiple instances of the app behind a load balancer and eventually have read requests go to s... | stackexchange/codereview |
I would like to get some experiences of using RPC::XML::Server library in Perl, especially the stability and robustness issues. Also would like to get comparison to some other Perl libraries regarding this kind of usage
| stackexchange/codereview |
I'm using the following form, but the customer is charged immediately and doesn't get the 5 day trial. I have no idea why. I tried this with the sandbox and on the "regular" paypal site. What do I miss here?
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="business"... | stackexchange/codereview |
I need to represent the due time for tasks in my MySQL 5 database.
Then, I need to store times like these:
_ 18
_ 9:15
_ 12:00
Now I am in dilemma whether to use the time datatype or just a 4-digit integer as I just need to store hours and minutes.
In the second case, I would store:
_ 1800
_ 0915
_ 1200
What are th... | stackexchange/codereview |
I have a custom module that is working just fine but I would like to be able to store variables in the config so I can use them in my code. (For example a default error message)
I think I can access them by using Mage::getStoreConfig('/some/path/here'); but I don't know how to add them to the modules config.xml (myname... | stackexchange/codereview |
I am working with asp.net 2.0 and sql server 2005. I have a problem and need some help, so trying to describe it below:
THE SITUATION
I have a few tables to hold data for billing information. The first table has each dedicated to each location, and a serial number that can be incremented. The concept is to update this ... | stackexchange/codereview |
I am reading in an image one byte at a time with with read(1), and appending it to a list. The image data is all hex data. When I print out the list with the print function it is in the format '\xd7'
['\xd7', '\xd7', '\xd7', '\xd7', '\xd7', '\xd7', '\xd7',...]
The problem is that now I need to perform some calculation... | stackexchange/codereview |
I have the following java code to create a zip file. The file works fine on linux but Windows XP's native extractor is blocking it. The workaround recommended (go to file properties and unblock) does not work either. I have read about similar issues on the web and a similar post on stackoverflow about this but none of ... | stackexchange/codereview |
I'm having problems sending a soap request to a webservice. I create an order, including an array of order details. Then I send that order to the webservice. Using fiddler, I'm able to see that the order gets passed correctly, but the order details don't show up. I only get:
<order><orderDetails><orderDetail /></or... | stackexchange/codereview |
I'm currently developping a webapp for iphone which use the local sqlite database introduced with html5.
Before the 4.2 update I could see some informations and delete my database via Settings ->
Safari -> databases.
But now this panel is gone !
Without this panel , there is no way to delete a database (sqlite dont su... | stackexchange/codereview |
I have a feature in my app that requires the auto-focus capabilities of the iPhone 4 or iPhone 3GS. How can I programmatically exclude iPhone 3G from loading that particular feature?
Apple recommends not searching for hardware version, but for the specific feature in which you are interested. I'd rather avoid going aga... | stackexchange/codereview |
So I am using the textLabel and detailTextLabel to add information onto my TableView cells however there is an issue.
There is a white box around both of the labels and I tried setting their backgroundColor to clearColor but that doesn't seem to work.
Any suggestions?
| stackexchange/codereview |
In Lucene I use the SnowballAnalyzer for indexing and searching.
When I have the index built I make queries on my index. For example I make a query 'specialized' for the field 'body'.
IndexSearcher returns documents containing 'specialize, specialized etc.' because of the stemming done by the SnowballAnalyzer.
Now - h... | stackexchange/codereview |
I'm currently porting a jQTouch web project to jQuery Mobile and have run into the following issue: I need to display a form submit button in the page header, but unless I make the submit button an action in the header (instead of an input of type submit in the content) jQuery Mobile will always render that button as p... | stackexchange/codereview |
What is this type of initialization know as:
long i=12l; //using 'l' to denote long variable
double d=12.0d; //using 'd' to denote double variable
Is there a difference between:
long i=12l;
and
long i=12L;
| stackexchange/codereview |
I have been using C++ for a while now and I began to get interested in lower level system programming like drivers and stuff. Even some kind of primitive operating system could be very interesting project!
I have no clue where I could start. Are there any not-too-challenging things I could get started with and are ther... | stackexchange/codereview |
How would I convert an NSDate into a string like this:
Monday, November 22, 2010
.. and then back again into an NSDate?
| stackexchange/codereview |
I've modified Apple's Scrolling example to grab a series of images created from files referenced in CoreData objects. I can add the images fine, but I also want to programmatically add a UIButton to each image. The number of images depends on the number of CoreData objects, so I can't use IB.
Can anyone give me some h... | stackexchange/codereview |
How do I increase the value of applicationIconBadgeNumber when a localNotification fires and my app is running in the background?
| stackexchange/codereview |
What's the difference between ob_flush() and flush() and why must I call both?
The ob_flush() reference says:
This function will send the contents of the output buffer (if any).
The flush() reference says:
Flushes the write buffers of PHP and whatever backend PHP is using (CGI, a web server, etc).
However, it cont... | stackexchange/codereview |
I've got the following scenario:
var el = 'li';
and there are 5 <li>'s on the page each with a data-slide=number attribute (number being 1,2,3,4,5 respectively).
I now need to find the currently active slide number which is mapped to var current = $('ul').data(current); and is updated on each slide change.
So far my t... | stackexchange/codereview |
I have this iOS 3.2 app (iPad) which has lots of content, and a few videos.
All the views are in portrait, except for the videos which are portrait inline, with a fullscreen option, and I'd like to let the user autorotate the video while fullscreen.
In shouldAutorotateForInterfaceOrientation: my app generally refuses a... | stackexchange/codereview |
if i have a file, how should i implement a function so that it can both read single and multiple lines. for example:
TimC
Tim Cxe
USA
http://www.TimTimTim.com
TimTim facebook!
ENDBIO
Charles
Dwight
END
Mcdon
Mcdonald
Africa
# website in here is empty, but we still need to consider it
# bio in here is empty... | stackexchange/codereview |
HI, I have the following model:
@Entity
class Flight{
private Airport airportFrom;
private Airport airportTo;
@OneToOne(fetch=FetchType.LAZY,optional=false)
public Airport getAirportFrom(){
return this.airportFrom;
}
@OneToOne(fetch=FetchType.LAZY,optional=false)
public Airport getAirportTo(){
r... | stackexchange/codereview |
I have an ajax function in home.php that give me back this html response from elaborate.php
in elaborate.php i have this summarized situation:
if(a<b)
{echo "yes.";}
else
{echo "no.";}
echo<<<EO
insert a title...aand something more!
EO;
back in home.php I want to split in two the response I get,cause I need to use ... | stackexchange/codereview |
Hi There I'm looking to create a custom call application.
i.e I want to replace the default application handling call :S.
I'M SURE THAT I WANT TO REINVENT THE WHEEL Sometimes current wheels are ain't good for me.
Can you put me on a start up line. I used to be a married to M$ ".net developer", and I'm in love with gOO... | stackexchange/codereview |
I'd really appreciate some help with this its been driving me nuts. I'm trying to validate numbers submitted by a zend form either in the form of integers or decimals (2 decimal places) allowing for 0 or 0.00 but not empty inputs.
$form->element->addValidator ('regex', false, array(
'pattern'=>'/^\d+(\d{1,5})?(\.\d{... | stackexchange/codereview |
I've been working on a script for a while now to change the colors of GIF and PNG files that works better than the PHP colorize filter, which doesn't preserve luminosity. I've come up with this, but it doesn't quite work right:
$filename = "images/sprites/".$_GET['sprite'].".png";
$im = imagecreatefrompng($filename... | stackexchange/codereview |
In my Android app I have 2 layouts, one for portrait and one for landscape.
In both layouts I have a TextView that the user can change by clicking on, by default it reads 'ON'
If the user presses it then it changes to 'OFF' All well and good.
However if it's set to OFF and the screen is rotated the text view resets to ... | stackexchange/codereview |
Hi how do i allow only word documents? And i mean both mime-type and extension? Right now i have these codes checking extensions for .txt files, how do i change it to accept only word docs.
if ($uploaded_type !=="text/plain")
and
if($ext !== 'txt')
| stackexchange/codereview |
This should be simple - I think I'm just overlooking something. I have a simple Mojo:
package com.company.product.plugins;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
/**
* @goal diff
*/
public class CCDiffMojo extends AbstractMojo {
/**
* @paramete... | stackexchange/codereview |
I'm working on a project with some event handling code. Basically, I create a timer and then tack on my own event handler for the timeout event. I double-checked by putting a break-point there and yes, the event handler does get added to that Event (yes, I also start the timer). For some reason, though, sometimes the e... | stackexchange/codereview |
Is it possible to transfer a signature from an iPhone into an .xls file via a cable (USB) connection?
| stackexchange/codereview |
I'm working on a piece of software I would like to sell eventually. Right now I'm fine with sharing it with people that are interested in playing with it and testing it, perhaps on a web page as an alpha version. But I don't want people to steal my code. Will a code obfuscator do the job? Should I also copyright it or ... | stackexchange/codereview |
I generally don't like using Excel and Microsoft products in general, but Excel 2007/2010 has some very nice conditional formatting features which, sadly, I haven't seen in many other places so far. One of these which I use extensively in business reports is data bars.
Link
In my opinion, these data bars are extremely ... | stackexchange/codereview |
Hey there! So I got Facebook to work with Flash as I wanted it to using the Facebook-Actionscript-Api. Works great and I got get Graph api working so that I'm able to post stuff to ppl's walls using the Facebook.api("/me/feed") function.
It post stuff without asking the user permission, as it's already got that permiss... | stackexchange/codereview |
Hi:
I am learning struts,however I was often confused by its configuration,sometimes I do know clearly why.
SO I wonder if there is any idea to write a simple mvc framework which need not have to be prowerful enough,just make me know more about the steps the struts-like framework do.
Any ideas?
| stackexchange/codereview |
I want to format dates in jQuery using the UI datepicker like this:
Sunday - 11/28/2010
How/where can I plug in a custom parser for Rails to make it so this works:
def create
puts params[:event] #=> {"my_date"=>"Sunday - 11/28/2010"}
event = Event.new(params[:event])
puts event.my_date #=> nil
end
This works:
d... | stackexchange/codereview |
I have separated a Java EE project in the following submodules:
project-war
project-ejb
project-ear
project-test
I also have a root pom which includes the above modules. Since I have tests in a separate project, theres no point in running the test phases in the 3 first modules, as theres no point in compiling or pack... | stackexchange/codereview |
Is there a while loop that allows me to enter in all the values for a stringstream into some datatype? For example:
stringstream line;
while(/*there's still stuff in line*/)
{
string thing;
line >> thing;
//do stuff with thing
}
| stackexchange/codereview |
I know i can set an alarm to "go off" with a SIGALRM after a specified amount of time using alram(numberOfSeconds) what i am looking to do is to raise the SIGALRM immediately.
Any help would be greatly appreciated.
| stackexchange/codereview |
Here is the scenario:
User opens app, they press a button and some activity launches. After the button is pressed and the activity is executed, I want to disable the button until the week starts over. Even if they close the app and come back, it should still be disabled unless it has reset.
For example, if they press ... | stackexchange/codereview |
I am making a jquery plugin.
You are given an object which contains several divs.
is there anyway to select the say, 3rd child div?
| stackexchange/codereview |
I have declared the following method:
private void mockInvokeDBHandler(Map<String, Object>... rows) {
List<Map<String, Object>> allRows = Arrays.asList(rows));
// rest of method omitted
}
It is invoked by clients using something like
Map<String, Object> row1 = new HashMap<String, Object>();
Map<String, Object>... | stackexchange/codereview |
I have developed an Android App that contains a list of information. I want the list to retrieve new data from the sever whenever the app 'wakes up' from multasking. Right now it just displays the old data and does not refresh.
Can someone tell me what function/method I am looking for?
| stackexchange/codereview |
I am creating buttons on the fly and creating event handlers for them. When the code runs everything works fine as far as populating the menu on the fly successfully. When I click a button the event fires, but sender=Nothing and the Object is not set to instance exception comes up. Any Ideas? Must be missing something.... | stackexchange/codereview |
Say we have class
public class Entry<K, V> {
public Entry(K k,V v) {
mKey = k;
mValue = v;
}
public K getKey() {
return mKey;
}
public V getValue() {
return mValue;
}
...
}
Then we write an extending class like:
public class ExtendedEntry<K extends SomeSpecificKey, V> extends Entr... | stackexchange/codereview |
Already checked the Internet but I wasn't able to find it out :-(
| stackexchange/codereview |
how do I resize an image in PHP keeping the aspect ratio, the transparency if the file is a gif or a png image, and then center the image vertically or horizontally depending on the final size?
| stackexchange/codereview |
Good Morning,
I was looking for a way to combine two integers to create a unique number, I have two tables that I need to combine into a third table with unique numbers,
These are my tables:
Table A
SchoolID ClassId
107 56644231
107 56644532
107 320110212
Table B
SchoolID ClassId
108 566442310
108 56644532
10... | stackexchange/codereview |
I am trying to deploy my PivotViewer files to an IIS server. I have added a MIME info for the cxml, dzc and dzi as "text/xml".
What else do I need to do? Currently, if I try to run my PivotViewer app in Visual Studio it is fine.
when I try to access this machine through the IIS webserver, the pivotviewer "loading" pag... | stackexchange/codereview |
I have been struggling for days to find any resources to help me write a simple glow/blur shader using High Level Shader Language and DirectX 9 Managed Libraries.
All I need to do is have an array of CustomVertex.TransformedColored vertices drawn as simple lines and then blurred/glowed by the HLSL effect.
I have search... | stackexchange/codereview |
i'm coming into C++ from Java/AS3-land, and i'm used to the package-cum-folder structure for my classes. and i like it.
i understand the very basics of namespaces in c++, and i'm happy to leave it at just the basics. but, as my project gets more complex, i'd like to keep my folder structure organized in a way i can k... | stackexchange/codereview |
I have table within the div. If I view it with IE9 or FF then it is ok. But if I view it within IE8 the table grows beyond the div border. Any ideas?
<div>
<table width="100%" >
<tr>
<td>
</td>
</tr>
</table>
</div>
| stackexchange/codereview |
I'm having serious biggies trying to figure out how to evaluate an expression in a If statement using Tcl. This is what I have:
#!/bin/sh
#The next line executes wish - wherever it is \
exec wish "$0" "$@"
set apid "/var/run/apache2.pid"
set apsta [file exist $apid]
if { $apsta == 1 }
{
set result ":)"
}
else
... | stackexchange/codereview |
i need to read the content of a web page using php with this simple command:
$pagina='https://graph.facebook.com/me?access_token=' . $cookie['access_token'];
$user = json_decode(file_get_contents($pagina));
As you can see the protocol is https. When i execute this commands i always get:
[function.file-get-contents]: ... | stackexchange/codereview |
I have a little project I am working on and I am using jQuery. I tried using a little jQuery to change the class to change some css styles when clicked but it does not seem to work.
heres the important html:
<ul id="UInavList">
<li class="selectedNav"><a href="javascript:;">My Activity</a></li>
<li ><a ... | stackexchange/codereview |
The below code works fine but the only problem is not giving me the textStatus. What do I need to do in order to get textStatus?
var url = "http://host/MyServiceImpl.svc/GetCount?method=?";
$.ajax({
dataType: 'jsonp',
data: { Id: '1' },
jsonp: 'jsonp_callback',
... | stackexchange/codereview |
One of my last questions came down to this topic and I didn't get an exact response:
I am selecting data from one table, running certain tasks on the data, then inserting the new data into a 2nd table. If the new data matches an existing row in table 2, then I want to do an update. The problem is that, there is no ke... | stackexchange/codereview |
I have a NSManagedObject subclass with CoreDataGeneratedAccessors as follows:
- (void)addCoursesObject:(Course *)value;
- (void)removeCoursesObject:(Course *)value;
- (void)addCourses:(NSSet *)value;
- (void)removeCourses:(NSSet *)value;
When objects are added or removed using the accessors above, I need some other co... | stackexchange/codereview |
While doing a lot of benchmarking stuff these days, I stumbled upon something very disturbing / interesting / new to me. After doing some research getting more and more to the point (which i couldnt believe), it seems that windows xp (and probably all other versions as well) runs programs around 3 times as slow as in s... | stackexchange/codereview |
How can I have two output windows on R?
I'd like to be able to get some outputs on a different window.
For example, I'd like to keep all my instructions on the main window.
And get long outputs, such as big matrices, on a different one.
thanks
| stackexchange/codereview |
I'm looking for a tool that validates deliverable (such as a .tgz, .war/.jar, .zip file) against a list or inventory of files that it should contain. Something that checks for every file that should be in the deliverable (per the list).
This is part of a final validation step in a continuous delivery cycle.
An OSS sol... | stackexchange/codereview |
So i have this PM system.
At the recipient field, You can type in the full name of who you want to write to.
So I want to help the user alittle, if he don't remember the name.
So if you want to write the full name "Megan Fox" and only know:
Megan
Megan F
Megan Fo
Meg Fo
M Fox
etc..
It will return "Did you mean Megan F... | stackexchange/codereview |
I'm currently doing this in my nginx.conf:
allow 1.2.3.4;
deny;
What I'd really like to do is this:
allow my.domain.name;
deny;
I.e., I want nginx to do an A record lookup on my.domain.name at the time of the request, and if it matches the IP that the request is coming from, then allow it. I don't see any built-in me... | stackexchange/codereview |
I am using CCK on a custom node type. I have created a field that is a file upload. By default I do not want to show this field in the form so in my CSS I have:
#edit-field-name-doc-0-upload-wrapper{
display:none;
}
When an option is selected from a drop down/select list I want to show the field.
I had the followi... | stackexchange/codereview |
So I have 0.5MB XML file with data for my iPhone application. It's all read-only so I don't have to bother with writing.
Currently I'm using NSXMLParser to load data.
I had fun with NSXMLParser and I created a class that loads only the part of data that I currently need. So once the file is parsed it takes minimum of m... | stackexchange/codereview |
I'm wondering about computational efficiency. I'm going to use Java in this example, but it is a general computing question. Lets say I have a string and I want to get the value of the first letter of the string, as a string. So I can do
String firstletter = String.valueOf(somestring.toCharArray()[0]);
Or I could do:
... | stackexchange/codereview |
I'm working on asynchronous operation which needs to invoke further asynchronous tasks. I'm trying to keep it simple by using BackgroundWorkers, with the result being that one BackgroundWorker's DoWork() callback calls a method which creates a second BackgroundWorker, like so (minus error checking and all that jazz f... | stackexchange/codereview |
I am thinking about learning the Rails way, and want to focus on Rails 3.
In Rails, when looking at code snippets and recipes that do not clearly mark what versions the code works on, how do I figure out what version the code works on without doing a full deploy? For example, setting up a database and running the code... | stackexchange/codereview |
// Property
IsSelectedProperty = DependencyProperty.Register("IsSelected", typeof(bool), typeof(MyControl),new UIPropertyMetadata(false,
new PropertyChangedCallback(OnIsSelectedChanged)));
// Event
public event RoutedEventHandler SelectedChanged
{
add { AddHandler(SelectedChangedEv... | stackexchange/codereview |
I am using db_placeholder within a query to replace an array of strings.
$paths = array("commentary_analysis/18", "commentary_analysis/16", "commentary_analysis/95", "commentary_analysis/89");
$query = "SELECT DISTINCT a.uid, u.mail FROM {alerts} a JOIN {users} u on u.uid = a.uid WHERE u.mail IS NOT NULL AND u.mail !=... | stackexchange/codereview |
I have installed timidity on a dedicated Linux server.
when I try to convert a midi to a wav or mp3:
timidity toto.midi -Ow -o out.wav
I always get an error
couldn't open output device
Any idea ?
regards
| stackexchange/codereview |
Fairly new to Java, but I'm wondering why package access is considered "more restrictive" than subclass access. That is, every access modifier which provides subclasses with access to a member also provides the whole package with access, and there are modifiers whic provide package access but not subclass access.
Isn't... | stackexchange/codereview |
help me to describe the use case update feature in an application. For example, the actor run the update feature on system/application and then the system will send request/interact with a website who provide the data.
I hope u can give an example image that describes the use case.
thx
| stackexchange/codereview |
i have 5 links in my home page ,
linkabc
linkdef
linkghi
linkjkl
linkmno
when i click the CTRL+b to open the linkabc page ,
When i click the CTRL+e to open the linkdef page like wise,
How to do this functionality with few snnipet ,
| stackexchange/codereview |
I use this method:
def getRandomNumber(int num){
Random random = new Random()
return random.getRandomDigits(num)
}
when I call it I write println getRandomNumber(4)
but I have an error
No signature of method: java.util.Random.getRandomDigits() is applicable for argument types: (java.lang.Integer) values: [4]
... | stackexchange/codereview |
I would like to have this tab animate when hovered over
Before:
On hover:
How do I go about this with jquery?
<div class="recruiterLink">
<a href="http://mydomain.com/recruiter/">
<span>Recruiting?</span>
<br>
Advertise a vacancy »
</a>
</div>
Thanks!
| stackexchange/codereview |
Is it possible if I want to create my application that need to zip the video and user must have password authentication to open file ?
If it poosible , could you guys provide me some of example code ?
Thanks ,
Regards
| stackexchange/codereview |
I was wondering what the various costs of referencing assemblies in a .NET solution are. I'm interested in both technical and organizational costs.
Some examples:
The unused Assembly contains additional bytes to ship (longer downloads, wasted space)
The unused Assembly might contain an exploitable security hole
The un... | stackexchange/codereview |
How do you flush (or reset) and reuse an instance of hashlib.md5 in python? If I am performing multiple hashing operations in a script, it seems inefficient to use a new instance of hashlib.md5 each time, but from the python documentation I don't see any way to flush or reset the instance.
| stackexchange/codereview |
If there is a way to specifiy a custom ServiceHost (i.e. a ServiceHost derived class) or custom ServiceHostFactory (i.e. a ServiceHostFactory derived class) via configuration?
thanks
| stackexchange/codereview |
I have a java RMI app that I want to port to using CORBA. To do that, I have to change the remote interface definition from java to IDL but I'm not exactly sure how to do that.
At the moment one of the methods in the java interface has a parameter that is not a predefined datatype (like string, int etc) but one that I ... | stackexchange/codereview |
I've been using collectiveidea's fork of delayed_job as a gem in my Rails 3 app, and it's working fine. I'm now looking for a solution to autoscale workers, specifically for Heroku. I've given pedro's fork a try but since it's written for Rails 2, using it throws lots of errors and warnings about deprecated methods a... | stackexchange/codereview |
The following is my Cython code for drawing from multivariate normal distribution. I am using loop because each time I have different density. (conLSigma is the Cholesky factor)
This is taking a lot of time because I am taking inverse and Cholesky decomposition for each loop. It is faster than pure python code, but I w... | stackexchange/codereview |
Are there any implementations of SSH in pure python? Preferably open source?
I'm specifically looking for a client, not server.
| stackexchange/codereview |
I have a problem with rendering a ScrollView. Essentially, the layout is fixed header and footer with a scrollview in the middle. The idea is that when the screen keyboard is activated for the content EditText the image can be scrolled if the height of the image is longer than the middle view.
In testing the layout, I'... | stackexchange/codereview |
Is there a way in Eclipse CDT to do the following automatic refactorings?
move file: move a source/header file to another project folder and have every #include directive relative to the moved file automatically updated
rename file: rename a source/header file and have every #include directive relative to the renamed ... | stackexchange/codereview |
IS there RandomizedQuickSort method in java API? OR we should write its code ourselves?
thanks
| stackexchange/codereview |
I rethrow an exception with "throw;", but the stacktrace is incorrect:
static void Main(string[] args) {
try {
try {
throw new Exception("Test"); //Line 12
}
catch (Exception ex) {
throw; //Line 15
}
}
catch (Exception ex) {
System.Diagnostics.... | stackexchange/codereview |
can I get the name of the active configuration in a powershell variable inside nuget powershell console ? I know there is a $DTE, but I don't know how to get to the active configuration name ...
| stackexchange/codereview |
We are currently testing a bugfix for an old VB6 application, the initial version of the program would get the PID and store it in an int, and then write it to the database. This works fine until your application gets assigned a PID higher than 32768, in which case you get overflow and the application dies.
We fixed t... | stackexchange/codereview |
This code checks if a user is logging in for the first time, that is after registration. I want to redirect him to a custom page if so. Otherwise, redirect him to the homepage or admin page.
function mylogin_redirect() {
global $user_ID;
if( $user_ID ) {
$user_info = get_userdata( $user_ID );
... | stackexchange/codereview |
I can use SimpleCursorTreeAdapter to create ExpandableListView with correct groupcursors and childcursors. For my program, each child contains three TextViews. When I expand group and click on child, I use custom dialog to show the three values in EditText view.
The program is ok if I only open "ONE" group at a time. ... | stackexchange/codereview |
I have an object which I want to use under admin instead of a model which inherits models.Model. If I make it inherit models.Model, this object will create a table in the database which i don't want. I only want this object to stay in memory.
One solution I have come with help from the nice people at stack overflow is... | stackexchange/codereview |
at the moment I am developing a game in c# and im a little stuck.
I need to draw the tile map. I read the tile map in using xml and store each tile in a list with its x and y position. but Im having a bit of trouble with the draw method.
public void Draw(SpriteBatch theBatch)
{
int tileWidth = 32;
... | stackexchange/codereview |
I want to break the xmlns declarations into multiple lines. I've seen it in text books, but when I try to replicate it, [shell-tools][1] gives an error for the second example below:
/var/tmp/FOO758cqr:11: parser error : Premature end of data in tag book line 2
How do I change this:
<?xml version="1.0"?>
<!-- init... | stackexchange/codereview |
I have a form with 4 input fields and 1 textarea. Im trying to do the following thing in Jquery without success:
To show the next field whenever i click on a field. So for example you click on the first input and then the next one show up.
On page load, the first input field should be visible while all the rest hidden... | stackexchange/codereview |
I've a little tricky problem
i'm trying to save pages of document in sqlite ..the thing is i want in certain points lets say when it find the font <font tag which is mark the titles of the chapters of the document .. so in short i want the the title of the chapter to be the begining of the page.. so i've did that cod... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.