instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Trying to prevent the application from shutting down when clicked the X button, it still closing but the AIR process is running in the task manager. What wrong with the code?
Application Complete:
NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExiting);
Closing code:
private function onExiting(e... | stackexchange/codereview |
Here is how my app is laid out:
onResume() user is prompted to login
If user logs in, he can continue using the app
3. If the user logs out at any time, I want to prompt login again
How can I achieve this?
Here is my MainActivity:
@Override
protected void onResume(){
super.onResume();
isLoggedIn ... | stackexchange/codereview |
I am building a website with two language, english and french.
If anyone request http://www.abc.com then i would like to redirect it to http://abc.com/fr and fr is my default language.
anypage request without language en/ or fr/ should redirect to fr/. How do i write htaccess for it
| stackexchange/codereview |
I've seen sample code (most notably in iOS GL projects) where the current GL texture name is cached, and a comparison done before calling glBindTexture. The goal is to avoid unnecessary calls to glBindTexture.
e.g.
if (textureName != cachedTextureName) {
glBindTexture(GL_TEXTURE_2D, textureName);
cachedTexture... | stackexchange/codereview |
I'm using python to send data out to my arduino and for some reason under windows it's giving me an error.
Below is my code.
import serial
ser = serial.Serial("COM3")
ser.write('1')
Here is the error.
File "C:\Python25\lib\site-packages\serial\serialwin32.py",
line 255, in write
raise SerialException(... | stackexchange/codereview |
I have a Dictionary variable, the program reads XML files, and then instantiates objects stored in the Dictionary variable by type for performance. I would like to store the Dictionary variable to memcache for reuse, but, because the Dictionary variable and instantiated objects are reference types, when I operate insta... | stackexchange/codereview |
I am developing an android application that provides instruction on various topics. Within my application, I would like to have a "talking head" or even a full-body person that talks with moving lips synchronized (or at least close) to the spoken output. Ideally, I would want the head/body to move while the speech is... | stackexchange/codereview |
hi i want to develop an addin to Visual studio in c# to display a tool tip text when the cursor lands on a particular text..
ex- if there is a line called Hello i want it to popup a tool tip "hello world " when i land the mouse cursor on it
please help me out
| stackexchange/codereview |
Here's a shell script:
globvar=0
function myfunc {
let globvar=globvar+1
echo "myfunc: $globvar"
}
myfunc
echo "something" | myfunc
echo "Global: $globvar"
When called, it prints out the following:
$ sh zzz.sh
myfunc: 1
myfunc: 2
Global: 1
$ bash zzz.sh
myfunc: 1
myfunc: 2
Global: 1
$ zsh zzz.sh
myfunc: 1
myfun... | stackexchange/codereview |
Things started off simple with my fake repositories that contained hard-coded lists of entities.
As I have progressed, my shared fake repositories have become bloated. I am continually adding new properties and new entities to these lists. This is making it extremely difficult to maintain and it is also difficult to ... | stackexchange/codereview |
I am writing unit tests for a page that uses several Submit buttons to control logical flow through my Django application.
Unfortunately, I can't figure out how to get the response to return the submit values in the unit testing framework. The Django unit testing documentation for post indicates its form is the foll... | stackexchange/codereview |
Using CSS3 columns to take a somewhat large text document and make it scroll horizontally. I want each column to be close to the size of the iPad screen, as I am displaying the content in a UIWebView.
If I make the -webkit-column-width: property a relatively small number, everything works great. The text stops at the m... | stackexchange/codereview |
I am doing an AOP kind of layer and I would like to return an iterator block for a generic collection (i.e. something like "IEnumerable"). However, the type T is dynamically discovered. I can find that type and have it locally as a "Type" variable but how do I go beyond that and return an iterator block for that d... | stackexchange/codereview |
pg_connect() is showing the error in table format.Instead of showing error message as table format need a error message alert.
Error Message
Warning: pg_connect() [function.pg-connect]: Unable to connect to PostgreSQL server: FATAL: password authentication failed for user "test" in /home/test/public_html/QueueMan... | stackexchange/codereview |
I have a string:
$uri = "start/test/go/";
Basically I need to know which regular expression and PHP function I can use to match the first item with a forward slash ("/") and remove it from the string. It should also work if the first item is not start and is anything else which might also have a space in it.
So all th... | stackexchange/codereview |
public interface LoginService extends RemoteService {
public static final String SERVICE_URI = "/login";
public static class Util {
public static LoginServiceAsync getInstance() {
LoginServiceAsync instance = (LoginServiceAsync) GWT.create(LoginService.class);
... | stackexchange/codereview |
I'm building an application as part of a course project which allows users to rate an place/event .
My basic question is how should I proceed in this ?
In what language should I write my code ?
If a user provides a 5-star rating, how do I collect it and put it in the database ?
Any guidelines on how to put the initial ... | stackexchange/codereview |
Is there a way to change the order from left-associative to right-associative, except parentheses? For example in Haskell you can write foo $ bar b and foo will be applied to a result from bar b.
let a x = x * 4;;
let b y = y + 2;;
let c = a ??? b 3;;
print_int c;;
Should print 20
| stackexchange/codereview |
I am trying to make a really easy xml layout and I can't seem to get it to look the way I want.
I attached a picture of what I want it to look like:
Basically, I have a static background image in my imagebutton at the top. Below that I have a picture the user snapped in the Photo Box. I assume I need an image view f... | stackexchange/codereview |
I have code as below for some Div. I need to call the ajaxSuccess in a different place manually. How do I call it? Alternatively is to pull everything within ajaxSuccess to a separate function so it can be called at multiple spot but I prefer to call directly to that #someDiv's ajaxSuccess. Is there a way?
$('#someDiv'... | stackexchange/codereview |
The Eclipse downloads page provides a selection of purpose oriented downloads.
I'm looking for the minimal download; I'll handpick the plugins I want. Would I find this kind of 'core' download, or do I simply not grok eclipse yet.
| stackexchange/codereview |
I'm having a hard time getting better results on this query:
I have the following 2 tables:
DROP TABLE IF EXISTS `casino`.`mutualfriends`;
CREATE TABLE `casino`.`mutualfriends` (
`CustUID` varchar(64) CHARACTER SET ascii NOT NULL,
`CustUID2` varchar(64) CHARACTER SET ascii NOT NULL,
`FType` tinyint(4) NOT NULL,
... | stackexchange/codereview |
Anyone know how I can set a new contact as a kABPersonKindOrganization in iphone using jQtouch + PhoneGap)
I am able to set the new contact as a normal contact but not as a organization.
| stackexchange/codereview |
I want to create the Model and everything on my own without using the scaffolding in Ruby on Rails. I create the following class:
class Dog < ActiveRecord::Base
end
Now, I want to add a table Dogs. I am using sqlite3. I think I need to write migration manually!
| stackexchange/codereview |
I want to share ehcache in multiple wars. I have put ehcache-core-2.2 jar in ear lib and its working fine in JBOSS. Same ear is not working in Weblogic 10.3. Caching is avaliable in the root context only, its not propgating to other web contexts. Any help in this regard would be highly appericiated.
| stackexchange/codereview |
In SQL Server I would like to create a table to save time of an event, and would like to convert it into the timezone of the users choice for display purposes. Let us say that If there was an event that happens in London at 1:00 PM GMT, that would be 8:00 am US EST.
Given This example I would like to create a frame wor... | stackexchange/codereview |
I am new to using APIs of Websites. But since a long time I wanted to learn this and today started with the simple example of how to access information from soundcloud. Here is the code of the simple example from their website
require 'rubygems'
gem 'soundcloud-ruby-api-wrapper'
require 'soundcloud'
gem 'oauth'
requir... | stackexchange/codereview |
Since there are multiple ways to encode non-ascii strings - does Django ORM make any effort to normalize the encoding, or I have to do it myself?
Or will database do that? How about web browsers?
I'd like to make sure that strings are findable regardless of normalization form of the original input, and allow matching s... | stackexchange/codereview |
I am going to make a program that can analyse a algebraic expression.
For example:
<?php
echo cal ('5*5+2*2');
?>
My program will know that it will multiply 5 with 5 and 2 with 2 first, then plus them. I want to analyse it myself, not by php.
| stackexchange/codereview |
Yesterday it worked fine when I ran the server but today I am getting this:
****Environment:
Request Method: GET
Request URL: http://192.168.2.206:8080/home/
Django Version: 1.1.1
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
'django.contrib.admin',
'django.contrib.contenttypes',
'django.con... | stackexchange/codereview |
Hey there... so I am here using VS2008, programming with CUDA C. I have the 3.2 toolkit installed and working.
Now my problem is, i have a file with this:
#ifndef _cuda_rng_cu_included_
#define _cuda_rng_cu_included_
#include <stdio.h>
static void HandleError( cudaError_t err,
const char *fi... | stackexchange/codereview |
Given,
1*2^1 + 2*2^2 + 3*2^3 + 4*2^4 + ... d * 2^d
= sum(r * 2^r, r from 1 to d)
How can we infer to the following solution?
= 2 (d-1) * 2^d + 2
Thank you
| stackexchange/codereview |
I have a DB like so:
id text parent
1 Parent 1 0
2 Child of 1 1
3 Sibling 1
4 Another Parent 0
5 A first child 4
So I'm trying to capture a tree structure my listing the parents. I'm aware of the other option (nested sets I think?) but I'm going to stick with this ... | stackexchange/codereview |
I created some phone number fields in a Wicket form. Without tab-auto, they work fine. When tab-auto is added to the HTML, it takes a few seconds for new values being entered to be displayed.
| stackexchange/codereview |
I can define icon for a jquery ui button in code like this;
$( ".selector" ).button({ icons: {primary:'ui-icon-gear'} });
but I would like to define button icon in HTML code. for example
<a href="#" class="jqbutton ui-icon-gear">button</a>
this way I can only call..
$( ".selector" ).button();
in onready event and... | stackexchange/codereview |
I recently switched back to Windows7 (x64) because of perfomance issues with my graphics card on linux but i miss the abilty to easily compile open source software on Windows. I have a copy of the intel c compiler which is somewhat better than the gnu c compiler and i would like to use it to compile software written fo... | stackexchange/codereview |
I have set of x coordinates x={0,32,64,...256} and y={2,6,4....},i ll plot the graph along x_y axis,then i drag the point 128 to 64 along x axis,now i want left side of the point to be compressed and right side to be enlarged.How can i recalculate the coordinates of the graph in C.
Any help is appreciated. here is my ... | stackexchange/codereview |
I want to detect the “automatic” language from the device .Basically , I want device language from settings programmatically.
| stackexchange/codereview |
I just upgraded to snow leopard, ran the migration assistant and have spent hours and hours trying to get these gems to work with no luck. When I try to start my server I get the errors below. All the gems that are missing are actually in vendor dir. This works on another persons snow leopard so it must be an artifact ... | stackexchange/codereview |
How to get hardware information (for example cpuId, biosId, diskId, baseId and videoId) in c++?
Can anyone give me an example visual studio project for this?
| stackexchange/codereview |
I'm using EF4 and new to it. I have a many to many in my project and cannot seem to work out how to insert or update. I have build a small project just to see how it should be coded.
Suppose I have 3 tables
Class : ClassID-ClassName
Student : StudentID-FirstName-Surname
StudentClass : StudentID-ClassID
After adding ... | stackexchange/codereview |
I'm implementing in app purchase.
Where a user buys a game-like money(a currency a user can use to buy other products with).
(Many iphone games do this)
Many of these games use the tied apple id(the apple id that a user used to buy the app itself with) for in app purchase.
My questions are.
How do these games know the... | stackexchange/codereview |
I am learning VS 2008 setup project to create install for our C# application. I made a mistake trying to delete the exe itself during the uninstall. Now I manually deleted the exe file but the entry still in Add Remove Program list. I try to install a fixed newer version but msi doesn't allow me to do so.
How can I re... | stackexchange/codereview |
I have a 50k rows dataset and want to select every 10 percentile value in an ordered set. Ideally it would return 11 values, equally spaced from non-NULL values.
I'm trying to avoid selecting the entire column and doing it in PHP, or doing 10 queries, each selecting a single row based on the total count.
This will be ... | stackexchange/codereview |
I found some sites using https:// for login page
https://login.alibaba.com/
What are the advantages of using ssl in a login page, also these guys are used a sub domain for login, why should I set a sub domain for login, is it another server for handling login process ?
How can I set https in my site ?
Thank you very mu... | stackexchange/codereview |
I have a small thrift server in python that I use do some fast lookups. The server queries mysql via SqlAlchemy on the first request and shoves all returned objects into a dictionary so on subsequent requests no DB call is needed. I just get the object from the dict and then call some of the object methods needed to gi... | stackexchange/codereview |
In my desktop application, I am facing a problem in using the function in Interface class.
I have a function like this for executing plugin
public static string ExecutePugin(string PluginName, string ConnectionString)
{
//ToDo: Get the plugin dll in the memory in a different appdomain. call RunAnalysis method of th... | stackexchange/codereview |
When dynamically creating DOM objects in jquery is it better to use pure string concatenation or should I use the jquery methods? Which is the more "jQuery way"?
var tr = $('<tr/>').addClass('foobar');
// or $('<tr class="foobar"/>');
tr.append('<td>' + someobj.property + '</td>');
// or ...
tr.append($('<td/>').te... | stackexchange/codereview |
How can i connect to my ec2 instance through filezilla..?
thanks
| stackexchange/codereview |
i want to display google map in android emulator. i also follow the step described in below link.
http://developer.android.com/guide/tutorials/views/hello-mapview.html
when i run my application it will not display google map. just display grids like below.
Please help me to show google map.
thanks in advance.
| stackexchange/codereview |
I have a simple program in mind where it reads the input first name and last name respectively and shows the number of characters present in each, but I am getting both the values as 5.
Here is the code:
#include<stdio.h>
void main()
{
char fname[20];
char lname[20];
int count=0;
int counter=0;
pri... | stackexchange/codereview |
The following code works sometimes and most of the time not:
WebBrowserTask wbt = new WebBrowserTask();
wbt.URL = url;
wbt.Show();
On both the emulator and a real device (HTC HD7). It will bring up the web browser (IE) but it will not put in the url or navigate to it.
What gives?
| stackexchange/codereview |
I have been writing for a website. while writing content i came across two options:
1.) Writing Népal or
2.) Writing Népal writing both prints Népal.
Now i have been confused which one is the correct one and why? Should i use htmlentities to encode or change Népal to Népal
| stackexchange/codereview |
I was just wondering how can I assign different cell style for same column? Cell style might be combo box or text box.
Image uploaded. Is it really hard?
I want to display a table in data grid. The first column should be name of the table field, second column should be the value of the column.
now if the first column ... | stackexchange/codereview |
I'm trying to change my process' name as it appears in ps and Activity Monitor at runtime. I found several notes that there is no portable way to do this (which I don't care about).
Here's what I tried. None of these approaches worked for me.
Changing argv[0] (seems to be the way to go on some Unix systems)
Calling [[... | stackexchange/codereview |
first, sorry for the bad english.
I have a test that submit a login form.
after redirect, when I test for a message 'successfully logged...'
then my page.body is
'<h1>Not Found</h1>'
but this works perfectly on browser manual test.
what should I'm doing wrong?
| stackexchange/codereview |
I wanted to show a couple of our designers a quick mock-up of an animation in jQuery, specifically one that would create the appearance of one object moving beneath another.
The example I set up has a $100 bill moving beneath a transparent .png of paper with a hole ripped out. Both elements are set up with absolute pos... | stackexchange/codereview |
Basically:
Fast, sorted insert.
Returns position of where an item would be inserted if it's not found in the data structure.
An array with binary search satisfies my second requirement, but it's still prohibitively slow for insertion. What solution might work best?
| stackexchange/codereview |
I want to know two things about ASP.NET MVC2 that I've researched from Google but still confusing. Hope I can find clear and clean answer here.
First, how to upload a file to server with custom file path. (Eg. to /Content/Files)
Second, how to download that file, since the url has applied URL Rounting, how to map to th... | stackexchange/codereview |
I have a MySQL database that contains many tables, some of them created dynamically by the software. The dynamic tables have a consistent naming scheme:
dynamic_1
dynamic_2
...
However, I don't necessarily know how many of these tables there are.
I'd like to be able to delete all of these dynamic tables without ... | stackexchange/codereview |
One of the common programming best practices is "define variables as close to where they are used as possible".
I use structs frequently to create code thats almost self documenting in places. However, C# forces me to define the struct outside the method. This breaks the aforementioned best practice - its basically cre... | stackexchange/codereview |
import java.awt.*;
import java.awt.image.*;
import java.io.*;
import javax.imageio.ImageIO;
public class ConvertRGBtoLAB {
public static void main(String[] args) {
//get input image
String fileName = "IMG_7990.jpg";
//read input image
BufferedImage image = null;
try
{
... | stackexchange/codereview |
So I'm currently trying to upgrade from 2.3 -> 3, and I'm running into an issue. In rails 2.3 I had a module that was comprised of autocomplete methods. So on key press an ajax request would be sent to the corresponding message. For example:
/grants/auto_complete_for_grant_name
module AutoComplete
def auto_complet... | stackexchange/codereview |
I would like to have an interactive console in a single-threaded script that has several TCP connections open. This means I can't just have a standard input blocking the thread.
Is there an easy way to do this? Or should I just put the console in its own thread and be done with it?
| stackexchange/codereview |
I am designing an app that will have some activities separated in tabs. Some of them will have to perform tasks in the background will the user is in another tab.
What is the best strategy for designing an app like this?
I was thinking about using a service but it can be killed by android dalvik, isnt it?
Thanks in ... | stackexchange/codereview |
I'm converting a lot of tables from MyISAM to InnoDB (you've convinced me) and I'm wondering what recommendations as to my MySQL configuration you guys might have...
I'm running a 16GB of RAM with 4x QUAD Core 3.0 GHz processor.
#
# * Fine Tuning
#
key_buffer = 1024M
max_allowed_packet = 16M
thread_st... | stackexchange/codereview |
When I am deploying the same application on Tomcat 6.0 and Glassfish 3.0 it is working fine
but on JBOSS server I am getting the below error. Please give specific solution.How can i programatically remove the hibernate-validator.jar of jBoss making some entry in xml files as I can't remove that jar from jBoss manually ... | stackexchange/codereview |
I am adding a series of custom views to a LinearLayout. I have overridden the onMeasure method of these custom views, to return the dimensions based on certain parameters. Based on user input, I would like to change these parameters, to change the size of the views. How can I force the LinearLayout to "re-layout" it... | stackexchange/codereview |
I would ultimately like to make .nativePath bindable or fire an event when it changes in Adobe Air. I figured I'd just extend the File class and be good.
But I cant find its source anywhere (so I know how to extend it). I've dug through http://opensource.adobe.com/svn/opensource/flex/sdk/ quite a bit and didnt see anyt... | stackexchange/codereview |
I'm planning on building a subsystem of one of my projects for laying out a set of interlinked nodes optimally. The nodes would represent websites and website pages and the connections would represent links between pages. The user will add the first page to the diagram, then add additional pages that link back to the o... | stackexchange/codereview |
How doesn't this work? Please help!!!
$query = "UPDATE User SET updated_date = NOW() WHERE pk_item = '$id'";
mysqli_query($this->link,$query);
if(mysqli_errno($this->link))
return -1;
return 1;
Thanks
| stackexchange/codereview |
Here's the situation. I have a table called Users and a table called Groups. Likewise, I have a User and Group class. Both the User and Group classes contain a Privileges property in it that's a collection of Privilege objects.
So NHibernate created a Privilege table that contains both a reference to the User and th... | stackexchange/codereview |
I am trying to have one image show for the header on the root page of a RoR site, and all the other pages will randomly show one of three other picture. The problem is I don't know how to get this to work. Any ideas?
| stackexchange/codereview |
I have a complex regex I want to apply. Here is my pattern:
/(?:^|\s|[\.(\+\-\,])(?:\$?)\$((?:[0-9]+(?=[a-z])|(?![0-9\.\:\_\-]))(?:[a-z0-9]|[\_\.\-\:](?![\.\_\.\-\:]))*[a-z0-9]+)/i
How can I declare this as a String and make sure everything is escaped?
| stackexchange/codereview |
I would like to use the jQuery lib with a Sharepoint 2007 application. I read this article here:
http://weblogs.asp.net/jan/archive/2008/11/20/sharepoint-2007-and-jquery-1.aspx
which talks about giving access to the web part controls through publishing a feature that will add the delegate control containing the script ... | stackexchange/codereview |
I'd like to get the contents of a directory that contains arbitrary files (a typical "Downloads" directory) and determine programmatically if a given file is an Image of any type.
I'm working in Clojure but anything available on the JVM is fair game.
Thanks in advance!
| stackexchange/codereview |
I am wondering if there is an intelligent way to design a C# dll such that you can later rebuild it and use the new version as a drop-in replacement in a "safe" manner. Safe mostly means the signatures don't change.
I was contemplating the differences between using a database primarily via LINQ vs using it primarily w... | stackexchange/codereview |
If I define a class with a private default constructor and a public constructor that has parameters, how can I access the private constructor?
public class Bob
{
public String Surname { get; set; }
private Bob()
{ }
public Bob(string surname)
{
Surname = surname;
}
}
I can access the private ... | stackexchange/codereview |
I'm building an SL 4 app. The UI consists of three main parts: a top search bar, a bottom favorite bar, and the page content between the two. I would like the page content to take up all available space. Right now, it expands horizontally but not vertically. I'm not sure what I'm doing wrong. Here is the XAML:
<Grid x:... | stackexchange/codereview |
I have a link that opens a modal dialog
How can Selenium 2 handle this.
Thanks
Aidan
| stackexchange/codereview |
I want to use tracing in my web application . please give an example.
| stackexchange/codereview |
I am using R currently and I want to know how can I label the list objects when
I declare a list. For example: return(list(xhat,alpha,beta)), and xhat, alpha and beta
are themselves arrays. I want to give each an appropriate label.
Thank you.
| stackexchange/codereview |
Eg: There's this 3 venue. A, B, C
Users can allocate students into either this 3. and once allocated, it will be removed off the dropdown list thus user cannot add them in anymore thereafter leaving 'B' and 'C' available. How do i do that using query statements?
| stackexchange/codereview |
I have this code:
for(var i=0; i < localStorage.length; i++) {
var subjects = [];
var key, value;
key = localStorage.key(i);
value = localStorage.getItem(key);
var keysplit = key.split(".");
if(keysplit[keysplit.length] == "subj") {
subjects.push(value);
}
}
I am trying to select all th... | stackexchange/codereview |
I want to change the Text color and the background color of the left hand side of the RootView Controller in my UISplitView controller. This needs to happen in both orientations.
| stackexchange/codereview |
Probably this is extremely easy.
If I have two booleans, a and b, how can I get the equivalent "binary" number?
false and false = 0
false and true = 1
true and false = 2
true and true = 3
| stackexchange/codereview |
How would I load a chunk of Lua code as a char and run it using this function? If not, what other function can I use and how does lua_load() work?
| stackexchange/codereview |
Do you know of any alternatives to wmctrl? A program that lets you manipulate windows and window management from the command line.
One drawback with wmctrl is that whilst you can manipulate the current window, you cannot get wmctrl to list information about the current window (it ignores -r).
| stackexchange/codereview |
I am having an aspx form and in that i need to do validations using jquery or javascript.
I just want to give a message near to the textbox if a user enter a value which is not valid in that textbox.Inorder to display the message in a popup [not alert('message')]
How can I find the position of the textbox in which u... | stackexchange/codereview |
I am very new to ajax and jquery, but I came across a code on the web which I am manipulating to suit my needs.
The only problem is that I want to be able to respond to the ajax from PHP.
This ajax POSTS to a php page (email.php).
How can I make the email.php reply back if the message is sent or if message-limit is exc... | stackexchange/codereview |
I am building a small program to retrieve data from the market and chart it in real time. While the trading decisions will be largely automated, the charts are updated continuously so that someone can keep track of how the decisions are being taken and manually intervene when necessary.
What would be a good GUI Library... | stackexchange/codereview |
My question is about using full text search. As I know like queries which begin with % never use index :
SELECT * from customer where name like %username%
If I use fulltext for this query can I take better performance? Can SQL Server use fulltext index advantages for queries like %username%?
| stackexchange/codereview |
Is there a way to deep clone JSoup Document object and get back exactly same HTML?
I have a pre-parsed object that I want to just clone because I suspect that clone would be faster than always parsing the HTML again.
I've tried to clone it by just iterating through of all the elements of the Document object, but then I... | stackexchange/codereview |
SOAP XML:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<PaymentNotification xmlns="http://apilistener.envoyservices.com">
<payment>
... | stackexchange/codereview |
this code print but i need see all line with scroll
#include "iostream"
#include "conio.h"
using namespace std;
void main()
{
for (int k=1 ;k<1000;k++)
cout<<k<<"\n";
getch();
}
i write in windows seven
when compile and see result only 300 line i see 701-999
butt i need see all line 1-999
| stackexchange/codereview |
I have 2 variables - Z and X. Z is a sequence of numbers and X is just a number. F.e. Z = 4 6 2 6 2 3 (it can be any length) and X = 2. I need to do operation Mod for each number - Z mod X: 4 Mod 2, 6 Mod 2, 2 Mod 2,...
And after that all numbers with Mod=0 must be written to new array. How to do this thing ?
| stackexchange/codereview |
Sorry for a lot of code to read. It's the simplest way to show the problem.
using System;
using System.Collections.Generic;
namespace P1
{
class A
{
static Dictionary<int, A> a = new Dictionary<int, A>();
static int i = 0;
int id;
public A()
{
id = ++i;
... | stackexchange/codereview |
I am getting error in following T-Sql:-
DECLARE @sortby VARCHAR(10)
SET @sortby='A1'
SELECT String1, String2, Date1
FROM (
SELECT 'A1', 'B1', CONVERT(datetime,'1 July 2010 00:01:00')
UNION ALL
SELECT 'A2', 'B2', CONVERT(datetime,'2 July 2010 00:02:00')
) AS a(String1,String2,Date1)
OR... | stackexchange/codereview |
Seeing that we'll probably get this feature in the next release what are some of the things you either think you'll be able to do or things you would like to use this feature to do?
Personally, during code generation (say in a MSBuild task) I sometimes wish I could grok the code in the project and thus have the option ... | stackexchange/codereview |
In the database, there's a name containing ñ (ex Niño)
when I retrieve it from the database then echo it, the output will be Ni�o.
How can I fix this?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.