instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How would I go about adding a trial version and achievements for my Windows Phone 7 game?
And how can I make the game upon finding it's a trial prompt the user to purchase the game and redirect him/her to the games page on the AppHub?
| stackexchange/codereview |
We use TeamCity with subversion and MSBuild and we have a problem with the continuous build that is triggered by Subversion commits.
The continuous build is set-up to do incremental builds (the nightly build is full and clean).
The problem occurs if a developer changes and commits file for the second time after the bui... | stackexchange/codereview |
Possible Duplicate:
Creating a document for taking notes about a book using Git?
I have never used Git before. I am supposed to takes notes on a book in a document file and track the history of the document using Git. How would I do this? And what kind of document format should I use?
| stackexchange/codereview |
When I insert a new record in a grid:
<telerik:RadTextBox ID="txtRedemptionBeforeMessage" Text='<%#Bind("RedemptionBeforeMessage") %>' runat="server" />
I want to be able to:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
{
if (e.Item is GridEditFormItem && e.Item.IsInEditMode)
... | stackexchange/codereview |
Possible Duplicate:
Undo “git add”?
I made the mistake of running:
git add .
Which added important things such as .bashrc. Even though I run:
git rm .
When I run:
git push project master
Everything still is added. I've even reinstalled git, but I am still pestered by this. A solution I found was to start over and... | stackexchange/codereview |
I can't understand why my compiler is giving me these errors:
brain.cpp:16: error: cannot declare pointer to ‘const class FACT&’
brain.cpp: In constructor ‘FACT::FACT(const FACT*)’:
brain.cpp:20: error: cannot convert ‘FACT**’ to ‘FACT*’ in assignment
brain.cpp: In member function ‘void FACT::AddRelation(FACT*)’:
brain... | stackexchange/codereview |
I am creating an object from JSON that has a String[] property, so the JSON looks like this:
{
key1: "val1",
key2: ["val2a", "val2b", "val2c"],
}
What's the best way to define this as a JavaScriptObject?
Right now I am defining a new object JSString, so the java object looks like this:
public class MyObject extend... | stackexchange/codereview |
I'm attempting to push to a repository over SSH instead of the normal https or whatever the default is. This process requires a username and password instead of an ssh key. However this always fails when I try to do this:
Owner@DESKTOP /w/programming/wreckcreations-site/dev (dev)
$ git push -vvv --all ssh://*name*@*sit... | stackexchange/codereview |
I am at a point where I must make a decision about models. I am aware that models are what you use to do all your database manipulation. But are models restricted to this?
Are they meant only for database interaction or are they meant for all external data manipulation (e.g. data from external APIs etc)?
| stackexchange/codereview |
I am trying to do a plot in Mathematica of something like
x^2 + y^2
with x, y € [-10, 10].
Besides showing the plot, I'd also like it to include points (for example, (0, 0)) painted in a different color. Point (0,0) would be shown as (0, 0, 0). Point (1, 1) would be shown as (1, 1, 2), etc.
Here is what I am looking f... | stackexchange/codereview |
I have 2 WinForm Apps.
A completed, working WinFormApp1 has a reference to CompanyName.BusinessObjects.dll.
A fresh WinForm app with nothinhg in it has a reference to BusinessObjects.dll. when I type "Import CompanyName.BusinessObjects" intellisense recognized it and shows available methods when I reference contained o... | stackexchange/codereview |
How to encrypt this url in asp.net (VB.NET), so that user cannot view this address bar text in their browser address bar ?
http://localhost:2486/volvobusesindia/passenger_info.aspx?from=Delhi&to=Manali&journey=21-Nov-2010
| stackexchange/codereview |
I have created a ShellExtension which add "Start N Application" to the windows right click menu.
But the problem is that , the position of the context meny is not fixed. When I rightclick on a drive , it shows up in 3 rd position , or if I rightclick on a file then it starts in the 5th position. Can I make it to appear... | stackexchange/codereview |
does someone know a VPN Server for Debian whose connections can be handles by Mac OS X and Windows 7 natively?
I have found several vpn solutions on the net, but all either need some software to be installed or I could not find information about it.
Thanks,
Heinrich
| stackexchange/codereview |
Hai, I wanna ask something..
I was developed code in ASP.NET and C#. on masterpages i was added code similar for call javascript and CSS like
<link rel="stylesheet" type="text/css" href="/Css/reset.css" />
<script type="text/javascript" src="/Js/jquery-1.4.2.min.js"></script>
When I compiled it, it works 100 % but wh... | stackexchange/codereview |
Is there a way to handle OnBackKeyPress in such way that it returns to the actual page in the back-stack instead of going back to another instance of the same page? This is the code I have:
protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
{
e.Cancel = true;
base.OnBackKeyPress(e)... | stackexchange/codereview |
I have a class which extends AsyncTask, which is intended to serve as a generic task manager class for my application.
Problem:The strange behavior is that the progress dialog shows up, but is never dismissed.
I am sure that onPostExecute() gets called for every task instance, as any Log.d("","") statements fire i... | stackexchange/codereview |
I'm trying to write a script that will
highlight table row and
show me tooltip with image whenever I'm on that row
HTML
<table>
<tr class="thumbnail-item">
<td class="column-1">1</td>
<td class="column-2">2</td>
<td class="column-3">3</td>
<td class="column-4">4</td>
<div ... | stackexchange/codereview |
Heresy? Possible through the dark magic of IKVM? Would I just write a lot of C# code that had to pretend to be Java?
| stackexchange/codereview |
List<Foo> results = null;
results = this.getResults();
if (results == null || results.size() == 0)
{
LOGGER.warn("results empty");
}
else
{
LOGGER.warn("results:" + results.toString());
}
The code above always produces the following output when getResults returns a null List.
results:[null]
I need to respond ... | stackexchange/codereview |
$var = 1;
debug_zval_dump($var);
Output:
long(1) refcount(2)
$var = 1;
$var_dup = &$var;
debug_zval_dump($var);exit;
Output :
long(1) refcount(1)
UPDATE
Very disapointed at the answer...
| stackexchange/codereview |
I am getting old, hence I am unable to recall the name of the rule that says (loosely) that a method of a class should mess only with its arguments, or the instance itself.
| stackexchange/codereview |
I want to use asp.net-mvc to write a website, I am quit new to the framework And I am not sure if using MembershipProvider Class is a good idea or not.
Or it is better to implement it by myself.
Could you please tell me what are MembershipProvider drawbacks? and if I use it would I have control over it.
| stackexchange/codereview |
Possible Duplicate:
Is there an equivalent to 'sscanf()' in .NET?
sscanf in C is a nice way to read well formatted input from a string.
How to achieve this C#.
For example,
int a,b;
char *str= "10 12";
sscanf(str,"%d %d",&a,&b);
The above code will assign 10 to a and 12 to b.
How to achieve the same using C#?
| stackexchange/codereview |
I have a list box of images and I want to be able to click and drag an image to a content control item and have it display the file path of the image for now. Does anyone know how I could implement this? I'm very new to WPF. Links to references would also be ok.
| stackexchange/codereview |
I need a batch file that monitors additions to my Downloads folder, but only new additions. Something like this:
:START
NumOldFiles = GetNumberOfFilesOld
Delay_30_Seconds
NumNewFiles = GetNumberOfFilesNew
if(NumFilesOld < NumFilesNew)
run_another_batch_file_I_wrote
goto START
else
goto START
I do... | stackexchange/codereview |
My App will be initially deployed with Windows Installer.
The key characteristics of the solution I am looking for include:
Support silent update while app is
running (or automatically restart
client)
Easy to maintain and manage packing
process
Avoid complex customizations or
installation scripts
Do you have a... | stackexchange/codereview |
I have a swf file sample.swf which has its actionscript class in Main.as. This Main.as has various objects declared as public in it. For instance lets consider an object myData of class MyData (in MyData.as).
I am loading this swf file in my AIR app using swfLoader. I want to know how do I access myData.func() using sw... | stackexchange/codereview |
I have been learning C# for the past few days for use with ASP.NET to create websites.
I am very new to C# but I have been thinking about how I should go about writing my code to make it as reusable as possible.
As a quick example, lets say I wanted to create a piece of code to check a users login details which I could... | stackexchange/codereview |
Ok. Still busily figuring out our form, etc. So scenario. We have a form for member to enter a price. Typically, they would enter anything between 50,000 and 10,000,000. We also have select drop-down, with value ranges.
Example of the form so far:
<div class="field">
<label for="propertyprice">Price</label>
<input ... | stackexchange/codereview |
I've got a WCF client talking to a WCF server (on the same machine). We use netTcpBinding with message-level security (using a custom principalPermissionMode and a custom implementation of serviceCredentials). The service is marked with InstanceContextMode.PerSession.
The WCF service is self-hosted in a Windows service... | stackexchange/codereview |
s = ['my', 'name']
I want to change the 1st letter of each element in to Upper Case.
s = ['My', 'Name']
| stackexchange/codereview |
I wanna to ask is there a plugin that can do a image slider/rotator and at the sametime it has the effect of the image zooming in?
Just like a normal slider, a container that hold image and description. Then it will show the image in certain interval, but the effect of image slowly zoom from far to near when the image... | stackexchange/codereview |
I am learning on Xquery. I have this tag in my XML document.
<element a="1" b="2" c="3" name="testgroupID">198</element>
<element a="11" b="12" c="13" name="testgroupverifyID" binary="hidden"/>
May I know how to create something like the following with xquery?
<mytags>
<a>1</a>
<b>2</b>
<c>3</c>
<name... | stackexchange/codereview |
Possible Duplicate:
PHP pagination class
are there any PHP/Class libraries that i can utilize & customize with my solutions... i am just looking for that to avoid the trouble of coding a lot and all....
| stackexchange/codereview |
I was following a guide/tutorial from railstutorial.org here
and stuck up till Ruby Version Manager (RVM) part below:
root# rvm install ree
/usr/local/rvm/rubies/ree-1.8.7-2010.02
ree-1.8.7-2010.02 - #fetching (ruby-enterprise-1.8.7-2010.02)
ree-1.8.7-2010.02 - #extracting ruby-enterprise-1.8.7-2010.02 to /usr/local/r... | stackexchange/codereview |
i have an array like this
places = new Array();
places.push({name: "ci", loc: "bo"})
places.push({name: "ae", loc: "ea"})
if i try to send this data to server with this:
jQuery.ajax({type: "POST", url: "import",
data: { "places[]": places, kind: "pub" },
});
doesn't work.
i receive an ar... | stackexchange/codereview |
I've been researching google on what it is, but haven't been able to find an answer. You can look up google yourself if you want.
So, I've come here for help. Just wanted to know what that type of object is and what it does.
Thanks in advance...
| stackexchange/codereview |
Is Ruby the only language that has a test suite describing the language, or has the idea spread to other languages?
| stackexchange/codereview |
Is it possible to add text to a char*?
Because this code gives errors:
name3 = "SELECT account_id FROM players WHERE name = '" + name + "'";
(name3 = a char*)
| stackexchange/codereview |
I have a list of objects say Sales. I want only the Sales objects whose Product matches the ones in another list, say saleProductList.
Other than looping, is there a better way to do it.
| stackexchange/codereview |
Here my situation :
The user click on a LinkButton, and the page does a PostBack. But I also need to prompt a file download to the user at the same time.
In order to do that, I did this on the LinkButton
lnkPrint.Attributes.Add("onclick", "window.open('Download.ashx?type=x')");
The Download.ashx Http Handler generate... | stackexchange/codereview |
I currently had my form set up so that each section was refreshed using Ajax, however it didn’t degrade gracefully with JavaScript turned off and I’ve looked into putting each part of the form in to a separate view which works fine but isn’t that great to be honest.
I know the client wants it to look nice so I thought ... | stackexchange/codereview |
Firstly, I would like to remove the www. from my domain name
http://www.example.com => http://example.com
I would also like for certain directories to be secure (https), while the rest remain http
http://example.com/login => https://example.com/login
Obviously it needs to work for all conditions, for example if someone... | stackexchange/codereview |
I have index.aspx , index.html and another mvc application. I found mvc application takes the priority to execute. I want to know how to determine the sequence.
| stackexchange/codereview |
I have some code that I want to make public. The code sends email via servers, connects to databases, and other tasks requiring usernames/passwords.
I'd like to store the passwords and such in a seperate configuration file so that I don't have to sanitize my code on every commit.
How can I do this? It would be easy to... | stackexchange/codereview |
I want to know the status of a process. I think I can use the wait family functions but actually I don't want to wait for the process, just check the status and go on.
I would want something like
checkStatusOfProcess(&status);
if(status == WORKING) {
//do something
} else if(status == exited) {
//do something... | stackexchange/codereview |
I'm trying to create a small 2D game in Javascript/Canvas which consists of several animated sprites. I'd like to cut down on the number of HTTP requests, so I combined each frame of animation (32px by 32px) into one image per sprite (say, 192px by 128px). Is there any way I can copy and crop these images clientside ba... | stackexchange/codereview |
I work in a company where we create a lot of small customer-specific applications.
We are a few developers but most of the time there is only one developer per project.
Customer1
ProjectX
App
Tests
ProjectY
App
Tests
Customer2
Project2
Products
Product1
Common
Today ever... | stackexchange/codereview |
I'm trying to learn ExtJS and object-oriented JavaScript in general. I've seen people defining classes in custom namespaces in a couple of ways. What's the difference between these two methods?
Method 1
Ext.ns('myapp.cars');
(function(){
var Car = Ext.extend(Object, {
//...
})
myapp.cars.Car = Car;
... | stackexchange/codereview |
I have a text_area inside a fields_for, which is inside a form_for.
<%= day_form.text_area :hatch %>
Is it possible to change the size of the text_area? For example: day_form.text_area size: 5.
| stackexchange/codereview |
I have a large HTML document, a book, and need to bold every occurrence of "Toronto".
How is this done in jQuery?
| stackexchange/codereview |
I want a regular expression in PHP which will check for all caps the string.
If the given string contains all capital letters irrespective of numbers and other characters then it should match them.
| stackexchange/codereview |
I would like to parse QueryString and put the ID value to the ImgUrl path, I am trying this code:
<asp:Image ID="imgImageNormal" runat="server" ImageUrl='<%# string.Format("ImageHandler.ashx?ID={0}",Request.QueryString["ID"].ToString()) %>'/>
But the produced result is none. I am not getting any error message but afte... | stackexchange/codereview |
I have location and maps enabled so that the user can add their current location by City and Country. To have the users appear on the map they have to place a marker on their location in the map.
Is it possible to have the markers set automatically at city level when the user sets the city?
Seems odd to ask the user t... | stackexchange/codereview |
I have the following example code
<?php
`echo test > /tmp/test.txt`;
$f=fopen("/tmp/test.txt","w+");
`rm /tmp/test.txt`;
var_dump(fwrite($f,"test"));
fclose($f);
file_get_contents("/tmp/test.txt");
Which creates a file, opens a pointer to it, removes the file then attempts to write to it. Now I would expect the fwrite... | stackexchange/codereview |
I'm using Django-nonrel on Google App Engine. I'm trying to add a row to the database but I get this error when trying to use save():
invalid literal for int() with base 10
Here's my code:
views.py
from django import forms
from django.contrib.auth.decorators import login_required
from django.contrib.auth.forms import... | stackexchange/codereview |
I have a jQuery DataTable configured for server-side processing against an ASP.NET MVC server.
To achieve progressive enhancement, an HTML table is rendered, and then upgraded to a DataTable. When the DataTable makes an AJAX call to retrieve more data, it expects elements of the returned JSON to correlate with the exis... | stackexchange/codereview |
Is there a way to load calculated values into an entity using Doctrine2? For example, if a question has votes (the votes table having a foreign key from the question table), using SQL you could select the question and calculate a vote total.
Is something like that possible with Doctrine2?
| stackexchange/codereview |
I want to create a series of a low- and high-pitch beeps at fixed times. For example:
High-pitch beep at 150 ms
Low-pitch beep at 151 ms
Low-pitch beep at 200 ms
High-pitch beep at 250 ms
Is there a way to do this in Ruby or Python? I don't really care what the output encoding is (.wav, .mp3, .ogg, whatever), but I d... | stackexchange/codereview |
I have the following in my deploy.rb:
after "deploy:update_code", "sphinx:stop"
after "deploy:migrate", "sphinx:start"
Often when I issue a cap command, sometimes the changes don't require a deploy:migrate, and went to deploy:restart as its final command. Hence, sphinx:start was not issued and I had to restart Sphinx ... | stackexchange/codereview |
I have created the following form with qt designer.
I added a Add Files button that works with QDir and QFileDialog and loads files into a listWidget.
Here are my methods that fill this form with the files.
void RightDoneIt::changeDirectory()
{
/* select a directory using file dialog */
QString path = QFileDialog:... | stackexchange/codereview |
Assuming that vb6 does not run on Windows 8 because the VB6 run time libraries are not shipped with Windows 8, would it not be possible to install the VB6 run time library on Windows 8 and then then run VB6? Or is there another problem?
| stackexchange/codereview |
We recently upgraded from Delphi 2006 to Delphi 2007, and the project files changed from .bdsproj to .dproj.
My research so far indicates that in order to create the .dproj, an existing project needs to be opened in the D2007 IDE. We have over 400 .bdsproj files so doing this manually is not really practical.
The proce... | stackexchange/codereview |
I am seeking a way to take an existing ESRI Shapefile that has a Feature set of 200 countries. Each country Feature has an attribute of "NAME." My objective is to create a Python script that adds an arbitrary (for now) additional attribute, say, "POPULATION".
Of course I have the OSGeo and GeoDjango modules installed. ... | stackexchange/codereview |
I have a database of questions, and a few of those questions have need of special validation. So, I added a field to my model called py_validation and when those questions are answered, I validate them by running the code that is stored in py_validation. When I paste the code into the interpereter, it works correctly... | stackexchange/codereview |
I have used following code :
<asp:HyperLink ID="Time" runat="server" Text='<%#Eval("CREATED_ON")%>'> </asp:HyperLink>
It will display the date in the format: 11/4/2010 10:52:33 AM
But I want it to display 11/4/2010. How would I do this?
| stackexchange/codereview |
hie i am using jde 4.5 want to use camera through my app.
i write the code and getting runtime excepetion Pushmodelscreen caaled by non event thread
tell me what the problem in it?
public void start Camera()
{
try {
// Create a player for the Blackberry's camera
Player player= Manager.createPlayer( "capture://video"... | stackexchange/codereview |
I'm currently writing my own shell as a project for a class, and have everything virtually working. My problem is with my pipes, sometimes they work, and sometimes, they just hang until I interrupt them. I've done research on this, and it seems that the function that is getting it's stdin written to isn't receiving an ... | stackexchange/codereview |
I am using Apache poi3.5 and java
1.6 for my application. here, i have one problem using formula...
my Cell has formula(sheet2!C10) and the data inside this cell is String type...How to access that cell also want to display the formula.
my Cell has formula(sheet2!C11) and the data inside this cell is number type...How ... | stackexchange/codereview |
I have been trying to find ways to make the following piece of code perform faster:
def do_chart(target="IMG_BACK", xlabel="xlabel", ylabel="ylabel", title="title", ydata=pylab.arange(1961, 2031, 1)):
global MYRAMDICT
MYRAMDICT = {}
print "here"
for i in range(70):
MYRAMDICT[i] = cStringIO... | stackexchange/codereview |
I'm trying to run a process in the background to generate a string, which is then used in the main thread (sent to a remote server.) The code works fine in the simulator, and the string is logged twice as expected.
On a device (iPad, 4.2 and various iPhones) it crashes every time with EXC_BAD_ACCESS. It seems that myS... | stackexchange/codereview |
I made an application with some widgets and at command line I want change their look and feel:
java -Dswing.defaultlaf=com.sun.java.swing.plaf.windows.WindowsLookAndFeel LookAndFeelAppl
but after invoked that command only a widget into the class constructor change its L&F but other that I created into a separate metho... | stackexchange/codereview |
I am having trouble keeping a ListBox updated with child objects.
I'm using two Lists, total and current, and a Timer; every 1000ms the current set of child objects is queried, and appended to my total list. My current list is then instantiated with only the current items (read not the total).
I'm then comparing the to... | stackexchange/codereview |
I'm doing a program that's supposed to move the mouse around and press automatically at places where I specify in the code. Right now i've managed to move the cursor by using this line:
Cursor.Position <- System.Drawing.Point(x,y)
What I haven't found out yet is how to simulate mouseclicks or keypresses. The only thing... | stackexchange/codereview |
I'm try to get latitude and longitude values via the android.Location class, but sometimes my system can't get the correct value; it is lat: 0.00 and lng: 0.00. Perhaps it returns an incorrect value because Android detects GPS only.
Now, I know that location value can detect by GPRS/WiFi, and how do I get it?
| stackexchange/codereview |
I am facing a recurrent problem when I try to export a Processing applet that deals with video to work in the browser. It's a simple application that stops, plays and pauses a .mp4 video. When I run it using Processing IDE, it works just fine. But executing the index.html generated when I export, the video box gets bla... | stackexchange/codereview |
Can someone please point me to some "for dummies" step-by-step guide for remote debugging using Visual Studio 2010?
I need remote debug a web service. My computer and the server are in different domains.
I've been reading this in MSDN for two days and still have no clue.
Best regards, Primoz
I get this error:
Unable ... | stackexchange/codereview |
My application calls RemotingConfiguration.Configure() to set up .NET Remoting. But since I need the portName attribute of the channels element to be different each time the application is run, I have to configure this particular setting programatically.
It sounds very simple (and probably is - but I've been searching ... | stackexchange/codereview |
Brief: I'm fairly new to databases and currently have one with two tables for a checker type script. Is there a way to ensure that both tables use the same types of columns? This database is in Sybase.
Detail: The first table is basically a log of every check ever made by the script (Let's say there are 106 checks in o... | stackexchange/codereview |
Is there a feature to minify and combine these files when deploying on Visual Studio?
| stackexchange/codereview |
Why would Mono not being able to run under IIS 7 ?
Update: what prevent to develop an ISAPI for that purpose ?
| stackexchange/codereview |
How does one implement an interface in erlang? What is the structure of the modules or how is it setup?
I have a layered architecture and want to implement the interfaces in each layer. Allowing the layer which requires the below layer to handle some task to access or call for these tasks.
How would this interface mod... | stackexchange/codereview |
The JQuery UI Buttons plugin seems to meet all my needs for replacing radio buttons, except that I lose keyboard control. Is there a way to tab between different sets of radio buttons and use the arrow keys to navigate which one is selected, just like normal radio buttons?
This example shows a buttonset() along with re... | stackexchange/codereview |
How do I optimize the following PHP code?
<?php
if(strlen($_POST['myName']) < 2 || isNumeric($_POST['myName']))
{
echo "Please fill in your name!";
exit();
}
if(!is_numeric($_POST['myAge']) || strlen($_POST['myAge'] < 1))
{
echo "Please enter only digits!";
exit();
}
if(strlen($_POST['myRes']) < 2 ||... | stackexchange/codereview |
I have a property:
@property(readwrite, ?????) NSDate *selectedDate;
The accessors are like so:
NSCalendar _calendar;
NSDateComponents _selectedDateComponents;
@dynamic selectedDate;
- (void)setSelectedDate:(NSDate *)newDate
{
@synchronized(_selectedDateComponents)
{
if (!newDate) return;
[_s... | stackexchange/codereview |
Lets say I have this
_articlesService.SaveAsync(Model, AddressOf OnSaveCompleted)
The OnSaveCompleteMethod do a couple of things, obviously. Its a
Protected Overridable Sub OnSaveCompleted(ByVal asyncValidationResult As AsyncValidationResult)
In my unittest. I need to run a mocked SaveAsync, and have OnSaveCompleted... | stackexchange/codereview |
Is there a way to somehow emulate Cmd + ~ shortcut behaviour (i.e. cycling through an application windows) in Cocoa?
I was able to do this in Carbon by doing the following:
HICommand cmd;
cmd.attirbutes = kHICommandFromMenu;
cmd.commandID = kHICommandRotateWindowsForward;
::GetIndMenuItemWithCommandID( NULL, cmd.comman... | stackexchange/codereview |
Can some help me understand what a buffer write is? I'm particularly interested in learning its function in the context database systems, MySQL say! Some of the following would be helpful:
What is the purpose of a buffer write
Are there any performance advantages
An example of a buffer write in a database application
... | stackexchange/codereview |
Hey, I have a small test case set up as following:
class T {
public function __construct(){
$obj = new SimpleXMLElement(file_get_contents('vote.xml'));
return $obj;
}
}
$vv=new T;
var_dump($vv);
The dump of $vv equals, in this case, object(T)#1 (0) { } - in other words, not the expected output... | stackexchange/codereview |
How can I put and read data from PHP and MySQL? I tried the following:
$pwdcrypt = SHA1($pwd);
echo "Now we put some data to the database!";
$userregisterquery="INSERT INTO user (email, password) VALUES ('$email', '$pwdcrypt')";
echo $userregisterquery;
mysqli_query($link, $userregisterquery);
$usergetdataquery="SELEC... | stackexchange/codereview |
I want to get the number of launcher:cellWidth in xml:
<mobi.intuitit.android.p.launcher.CellLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/mobi.intuitit.android.p.launcher"
android:layout_width="fill_parent"
android:layout_height="f... | stackexchange/codereview |
I am writing a cross platform shared library (.so in linux and .dll in windows) using C. Currently when there is a error, library functions returns the proper error code and writes error information into the stderr. Library functions also emits some information and debug messages to stdout. This works well for console ... | stackexchange/codereview |
i am removing the global variables in the Javascript that is used in my Rails/views/show.html.erb
The javascript that i am using is
var App = {};
App.UserSnapShot = function () {
var _body, _detailEl, _selectedLinkEl;
var _init = function () {
_body = $$("body")[0];
$$(".user-link").each(function (el) {
... | stackexchange/codereview |
I created an iPhone application that I want to receive notifications at a custom time. The backend Django application has a queue of events with dates when the event reminder should be pushed to the iPhone client. This is this like a Watch Alert from eBay; when the bidding period of a watched item is about to close, ... | stackexchange/codereview |
This is my test component
<fr:mycomponent name="test">
<fr:constraint instance="myinstance" xpath="item/@id" />
</fr:mycomponent>
I have to read the value of instance attribute in XBL. I am doing as follows.
<xsl:value-of select="./fr:constraint/@instance" />
or
<xxforms:variable name="instance" select="xxforms:eval... | stackexchange/codereview |
I want to use issuu.documents.list to list my document from issuu, It work fine. But when I add two more parameters startIndex and pageSize, it doesn't work.
Here is my signing request:
[apiSecret]accessprivateactionissuu.documents.listapiKey[apiKey]startIndex0pageSize20formatxmlresponseParamstitle,documentId
and My ... | stackexchange/codereview |
I am a PHP Programmer and willing design my own architecture to work on please suggest me what do i need to design the architecture for any project in PHP? Project is a shopping cart,WIndows or Linux would be the OS Db has to be Mysql. PHP is the scripting language to be used for development
| stackexchange/codereview |
I've always liked the ability to do simple calculations in the same place I'm entering a number when working in MS Money.
I know that DevExpress is working on one, but don't want to buy the full WPF bloat only for this control.
Do you know a control like that for WPF?
| stackexchange/codereview |
is there a way to check if an object can be fetched by the garbage collector?
Somewhere in my code I've got a reference to an object:
MyObject mo = myObject;
Then, via Eclipse Debugger, I get the objects memory location. Afterwards, I set the reference null:
mo = null;
Is there any way to check if the previously refe... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.