instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
On an aspx page I have a dropdownlist and a button.
I select a value from the dropdownlist and click the button.
In the button event handler I have the statment: DropDownList1.SelectedValue;
This value is showing up as the first item in the list regardless of what item is actually selected.
Same result with .SelectedI... | stackexchange/codereview |
i am using atom_inc in one of my kernels. More or less like this:
kernel exampleKernel(
global volatile int * x,
global const int maxX,
global const int * buf1,
global const int * buf2
)
{
if(x < maxX)
{
int y = atom_inc(x);
buf2[y] = buf1[get_global_id(0)];
}
}
But it gives me an CL_OUT_OF... | stackexchange/codereview |
I am creating a Java application where I am using log4j. I have given the absolute path of configuration log4j file and also an absolute path of generated log file(where this log file are generated). I can get the absolute path of a Java web application at run time via:
String prefix = getServletContext().getRealPath(... | stackexchange/codereview |
How do I get the apk file from an android device? Or how do I transfer the apk file from device to system?
| stackexchange/codereview |
I could not find this anywhere. I fetch some JSON from an API that returns standard JSON dates. You can see the format by running this code in a JavaScript console:
> new Date().toJSON();
"2010-10-27T11:58:22.973Z"
Well, actually, the API I'm working with is not returning the millisecond part, and sometimes it returns... | stackexchange/codereview |
I m using the followinf application ==> pedometer
As i run this pedometer application on my emulator it starts showing some random values ...so could you please suggest me some ways in order to run this application on android emulator!
THANK YOU
| stackexchange/codereview |
I'm programming a QGraphicsView that has a lot of images. But when I display a JPEG with resolution 8528 x 1128 px (a panorama image), the QGraphicsPixmapItem does not render. It just displays a black square. Images of "normal" size renders good. I have not tried to find the "magick limit" for what sizes the problem oc... | stackexchange/codereview |
Basically I have a custom built "Date" class "EndDate" in my MVC output model. FYI: The "Date" class builds of DateTime but hides the time functionality. I've created a display template for this Date type that formats the date nicely but in once instance (shown below) if the object is null (in this case for EndDate) ... | stackexchange/codereview |
I am new to salesforce and apex.
In my 1st VF page it shows some book names (from DB) and when I want to add more books I put a button in the 1st page and shows all the books from DB in the 2nd page.
If I selected some of the books from page2, I have to add it in the first page with the previous results (books).
How ca... | stackexchange/codereview |
I am using the pub sub model of nservicebus. I have the following situation
My publisher is hosted a wcf web service and publishes the message.Thw wcf web config look like
<!--NSB configurations-->
<MsmqTransportConfig
InputQueue="Pubque1"
ErrorQueue="error"
NumberOfWorkerThreads="1"+
MaxRetries="5"
/>
And i a... | stackexchange/codereview |
I'm just starting out with a friend creating iPhone apps and the biggest hurdle other than finding clients is knowing how to structure proposals for clients.
Is it the norm to write a 1, 2 or 3 page proposal? Obviously I don't want to bore the client just with the initial proposal (sales pitch with quote).
How should I... | stackexchange/codereview |
I had a look into the following posts on stack overflow
Posting on twitter/facebook from my site using jQuery
jQuery plugin to post updates on Twitter?
Using only JQuery to update Twitter (OAuth)
but with no success...
The question is i am having a website that gives cricket score updates ball by ball,schedule, new... | stackexchange/codereview |
Have a String being sent from in the below format:
-----BEGIN RSA PUBLIC KEY-----
MIGHAoGBANAahj75ZIz9nXqW2H83nGcUao4wNyYZ9Z1kiNTUYQl7ob/RBmDzs5rY
mUahXAg0qyS7+a55eU/csShf5ATGzAXv+DDPcz8HrSTcHMEFpuyYooX6PrIZ07Ma
XtsJ2J4mhlySI5uOZVRDoaFY53MPQx5gud2quDz759IN/0gnDEEVAgED
-----END RSA PUBLIC KEY-----
How do i construct a ... | stackexchange/codereview |
It may be silly question.
Is there any way to give comparison operator at runtime using string variable.
Suppose i have a data of salaries in vector.
vector < int > salary;
Input:
salary[i] != /* ==,>,<,>=,<= (any comparison operator)) */ 9000.
The input given like above. I store the comparison operator in string s... | stackexchange/codereview |
I'm porting a small (<10 classes) C++ project to Java. The project manipulates sound files, and in C++ does this using libsndfile. The code includes stuff like:
const int channels = audioFileInfo.channels;
...
sf_readf_double( audioFile, inputBuffer, MAX_ECHO );
...
sf_writef_double( outputAudioFile, ¤tAudioBuffe... | stackexchange/codereview |
I have two tables.
products
id title image_ids
---------------------
1 myproduct 1,2,3
images
id title file_name
-------------------------
1 myimage myimage.jpg
2 myimage2 myimage2.jpg
3 myimage3 myimage3.jpg
I want to query so that the names of the images are concatenated into a single field... | stackexchange/codereview |
REF: Creating a SOAP proxy?
How do I use HttpHandlers to create a proxy and change a SOAP request and response namespace?
Example...change this (1 line)
<?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="ht... | stackexchange/codereview |
add_filter('wp_list_categories', 'myCatNoBrk', 10, 1);
function myCatNoBrk($OrgCat) {
$CatNoBrk = preg_replace('/<br \/>/',',',$OrgCat);
return $CatNoBrk;
}
Hello, this is part of a wordpress function that would replace html breaks with commas. How could I alter this to also remove and add 'x' arou... | stackexchange/codereview |
The only other language I've any experience with is Perl & this is my first crack at OO programming. I feel like I'm approaching this all wrong. One of the problems is probably me trying to code OO Java like I coded non-OO Perl. Can anyone suggest a way to gracefully accomplish what I'm trying to accomplish in the c... | stackexchange/codereview |
I want to pre populate check boxes on jsp. I have following code on my Mycheckbox.jsp
Code
MyDTO [] dtoArr = Context.getParameter("PREFdtoSettings");
<%=dtoArr.length%> is 6;
dtoArr[i].getId(); gives me the unique ID;
In above code am setting PREFdtoSettings parameter in request context in handler class
There are alm... | stackexchange/codereview |
$ gcc -O2 -S test.c -----------------------(1)
.file "test.c"
.globl accum
.bss
.align 4
.type accum, @object
.size accum, 4
accum:
.zero 4
.text
.p2align 2,,3
.globl sum
.type sum, @function
sum:
pushl %ebp
movl %esp, %ebp
... | stackexchange/codereview |
I'm writing a generic template tag that could return a model's field value dynamically based on user inputs in template files. The idea follows which mentioned in the book "Practical Django Project 2nd Edition", but the book version is getting a list of objects where I want to get only a object's value. I want to get t... | stackexchange/codereview |
I have a series of meter reading stored in a table, each is identified by a building ID, a meter ID and the time at which it was recorded.
For each entry I would like to search for the entry that has the same ID numbers and the closest previous time, I would then like to use the previous time and the previous reading ... | stackexchange/codereview |
I am trying to use a 32 bit wix installer to install to the powershell directory c:\windows\????\windowspowershell\v1.0
i have hard coded the 32bit directory
and i am trying to read the registry to return the 64 bit location.
all works fine on a 32bit machine, the registry gets read with the correct value and the file... | stackexchange/codereview |
private static String requestToken;
private static String requestSecret;
public static void loginTwitter(Context mycontext) {
if (savedToken==null) {
try {
consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY, CONSUMER_SECRET);
provider = new CommonsHttpOAuthProvider("https://api.twitter.com/oauth/requ... | stackexchange/codereview |
I've just submitted my app to review (for the App-Store), and apple has rejected my app, saying the following:
"On iPad, the application displays a
black screen and no content loads.
This review was conducted on iPad
running iOS 3.2.2 as well as iPhone 4
running iOS 4.1. A screenshot has been
attached for yo... | stackexchange/codereview |
We can apply styles through .css by giving property class name:
Ex: <input type="text" class="StyleSheet" id="txtName" />
But in server control(asp) there is a property called SkinId, by this way we can access.
Ex: <asp:TextBox SkinID="DataListColor" ID="TextBox1" runat="server"></asp:TextBox>
So, can we apply styles t... | stackexchange/codereview |
I've got the these strings:
/search/keyword.html
and
/search/keyword/1.html # the 1 represents the current page
Now I want to write a regex that matches the keyword, and the page, if given.
$1 (the first match) should always be the keyword (keyword).
$2 should be the page, if there is one (1).
I tried this but it ... | stackexchange/codereview |
We found this issue while implementing a reconnect logic for a WS endpoint using JAX-WS stack deployed on Glassfishv2.1 server. We deploy the web service on a cluster environment. To simplify the deployment, we use 0.0.0.0 as the IP on which the endpoint needs to be published, so that it can be accessed from all availa... | stackexchange/codereview |
i am displaying a line graph on an ms chart using VS2008 c# professional
what i am trying to do is when the user clicks on a datapoint, it will display the entire ROW in the database for that point.
how can i
handle the click event
display the row for that particular point?
| stackexchange/codereview |
I've recently created my first c# desktop application. It simulates data exchange. The application stores and reads data from two text files. When using this application, user must first login by entering username and password. The application then reads the first text file which contains all usernames and passwords. L... | stackexchange/codereview |
I am new to FFTs and signal processing, so hopefully this question makes sense and/or isn't stupid.
I would like to perform spectrum analysis on a live audio signal. My goal is to find a good tradeoff between responsiveness and frequency resolution, such that I can take a guess at the pitch of the incoming audio in nea... | stackexchange/codereview |
Hey guys, I do most of my work in MySQL, but have recently been tasked to do some database work on SQL Server. I realize the databases work in a very similar fashion.
My task is simple, export data from a SQL Server 2008 database as a fixed length file to a secure ftp server on a daily basis.
If I was using php I wou... | stackexchange/codereview |
in Jobeet there is this part below of the schema:
jobeet_category:
_attributes: { isI18N: true, i18nTable: jobeet_category_i18n }
id: ~
jobeet_category_i18n:
id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference: id }
culture: { isCultu... | stackexchange/codereview |
I need to select all local links, regardless of if the start with
/path/to/page
http://mydomain.com/path/to/page
https://mydomain.com/path/to/page
and replace them with
/#/path/to/page
Thanks for your help.
Edit: As pointed out by dvhh in a comment, a better solution would be to target clicks. So sorry, I won't b... | stackexchange/codereview |
I am a "GIT newbie" as of starting with Heroku, and I'm interested in knowing what would be best practice in how to work with it.
As of now my site has one production environment and one staging environment.
However I'm only using the most basic GIT commands, i e:
git add .
git commit -m "some changes"
git push product... | stackexchange/codereview |
I just wanna ask what is the efficient way to get the week numbers of a certain month. I have a function with month number & year as arguments, the return value of the function should be a int array which contain the week numbers of the specific month.(like following...)
public int[] getWeeksOfMonth(int month, int year... | stackexchange/codereview |
I am working on window application. I have a form where I will be displaying terms and conditions against shopping done. Below Terms and Conditions, I want to show Checkbox which user have to check as an acceptance before proceeding.
This Checkbox should come below the terms and conditions. If terms and conditions are... | stackexchange/codereview |
I am trying to log some information while the unit test is running in MS Unit Testing Framework VS 2010.
I tried Trace.WriteLine, Console.WriteLine and Debug.WriteLine but I am not able to see the output in the output window.
Any idea how to do it? Thanks in advance
| stackexchange/codereview |
Any one Explain this with an example
"Involving conversions on a function argumentsinvolved in template
parameter deduction."
EXamples like this:
template<class T> struct B { /* ... */ };
template<class T> struct D : public B<T> { /* ... */ };
template<class T> void f(B<T>&);
void g(B<int>& bi, D<int>& di)
... | stackexchange/codereview |
I'm making a network sniffer for my college project using the libpcap library. Majority of the code works without any problem, however, I'm stuck with the following issue. I've added five command line options using getopt_long() function, but one option doesn't work as expected.
The option is -d (--device_info) and is ... | stackexchange/codereview |
I have written a fairly complex SQL query to get some statistics about animals from an animal sampling database. This query includes a number of subqueries and I would now like to see if it is possible to rewrite this query in any way to use joins instead of subqueries. I have a dim idea that this might reduce query ti... | stackexchange/codereview |
I need to write a screencast, and need to detect when window content has changed, even only text was selected. This window is third party control.
| stackexchange/codereview |
I've got this js:
<script>
$('#appt_start').val(parent.location.hash);
$('#appt_end').val(parent.location.hash);
</script>
which gets the hash value from the url something.com/diary.php#0800 for example.
The value is then used to autofill the start and end times in an appointment form.
I need the second time (#appt_en... | stackexchange/codereview |
When I run Test NG test using testng.xml, it runs fine but if i run testng.xml using ant (Build.xml), it gives an error Cannot fine class in classpath
Testng.xml:-
?xml version="1.0" encoding="UTF-8"?>
Build.xml:-
<xmlfileset dir="." includes="testng.xml"/>
| stackexchange/codereview |
parallelizing two nested for-loops, I have run into behavior I cannot explain. I have tried three different kinds of parallelization using OpenMP on an i7 860 and and a xeon E5540 and I expected that the code behaves more or less the same on both platforms, meaning that one of the platforms should be faster for the all... | stackexchange/codereview |
I've just updated XCode with the new SDK 4.2 and launched my app in my development environment, I see the app is asking me to register again: registration is a process I do once for the new users and I save the info in a plist.
Why it is asking me to do it again? I suppose for the new path of the plist or something.
Do... | stackexchange/codereview |
HI..
I am working with the scala n mongodb.
now i want access mongodb database in scala swing application.
so which drivers can i use for it?
and which can easily work?
please reply
| stackexchange/codereview |
I'm trying to create a custom field type with jQuery autocomplete functionality. But I'm really stuck now.
I want to use a WCF REST service that returns the necessary data. The data is not stored in a list. It stored in a DB2 database.
With ASP.NET MVC this is peanuts, but in SharePoint I'm really struggling.
Does anyo... | stackexchange/codereview |
I have revoked my active development certificate ,and unable to create a new one, what is the solution ?
edit:
I followed these instructions
Generate a Certificate Signing Request (CSR) with a public key
In your Applications folder, open the Utilities folder and launch Keychain Access.
Choose Keychain Access > Certific... | stackexchange/codereview |
Sorry for maybe not so clear title of this question but I'll try to explain it better, so bear with me a little longer :)
We have some C# app on a device with Windows Mobile and it uses MSSQL CE database to store its data (no surprise here, I presume). The problem is that any change in db schema (new columns, different... | stackexchange/codereview |
I successfully added AcroPDF in my application. When a PDF needs to be displayed I create an instance of AcroPDF dynamically and insert it into a TPanel with align set to alClient. My problem is that when the Form/Panel is resized the AcroPDF does not follow. Only if a new file is loaded. I tried several solutions to n... | stackexchange/codereview |
i want to store an array of integer values in a SQL database table (SQLServer 2005), if possible by using a single column.
The integer array will have a length of 7560 values.
I am using a objectdatasource, the datatype should be compatible with the generated parameters of a tableadapter.
thanks for helping :)
| stackexchange/codereview |
Hello
In my android application i am trying to run a application using GPRS connection and not WIFI.
When tried to run in wifi the app runs fine.
The browser works fine with the APN settings set but when trying to connect to server using my application it gives me socket exception.
I am using the below permissions in ... | stackexchange/codereview |
I'm trying to track a particular section of links on my page. I want to know what is clicked, so I'm trying to set up a click handler with jQuery to register a custom variable with Google Analytics, but it's not working. Here's my code:
<!--Google Analytics-->
<script type="text/javascript">
var _gaq = _gaq || []... | stackexchange/codereview |
We have variable $menu with HTML inside (there is no loop, it comes from a function).
On echo it gives the code like this:
<ul id="menu">
<li id="some-id" class="many classes one"><a href="#">text</a></li>
<li id="some-id" class="many classes second active"><a href="#">text</a></li>
<li id="some-id" class="... | stackexchange/codereview |
I've decided to get used to using Javascript as my server sided (I'm using Node.js) language to setup a webserver, create server deamons and a lot more. This is a rather big project, which means that I have to get used to the language and get myself an optimal setup before actually starting to avoid overhead and unneed... | stackexchange/codereview |
Duplicate issue: I have read this thread and this thread and these didn't quite answer my question.
Question:: Is there a way I could make Visual Studio use g++ or comeau or other as the C++ compiler. If
so, has anyone tried it? Any feedback?
Reason: Love microsoft's IDE, hate their compiler.
| stackexchange/codereview |
I have the following code in my html:
<p id='foo' style='text-align:center; font-size:14pt; font-family:verdana; color:red'>hello world</p>
and that in my external css:
#foo{ font-size:11pt; font-family:arial; color:#000; }
I want to remove all font-size and font-family in the style atribute, but not the color and ot... | stackexchange/codereview |
I have a git branch (called v4), that was made from master just yesterday. There were a couple of changes to master, that I want to get into v4. So, in v4, I tried to do a rebase from master, and one file keeps screwing things up: a one-line text file, that contains the version number. This file is app/views/common/... | stackexchange/codereview |
As I step into .NET source (.NET source stepping is enabled in Debugging Options and Just my Code is disabled), for some reason in the Autos and Watch windows in VS2010, I can't view parameters in .NET framework functions in the watch or autos panes. I can see local variables however. Why is this?
Update:
This is a deb... | stackexchange/codereview |
I want to have a C preprocessor macro that knows the number of instantiations/macro calls of this macro so far.
Example:
int main() {
printf("%d\n", MACRO());
printf("%d\n", MACRO());
}
Should print
0
1
Is something like this possible?
Note that it is not enough to forward this to a function as proposed below.
It... | stackexchange/codereview |
whats the problem with that array?
var proImages = {
{img_1 : '3648119884.png',img_2 : '2737618597.png',img_3 : '1688333623.png'},
{img_1 : '8738764911.png',img_2 : '1367341638.png',img_3 : '9613419473.png'},
{img_1 : '0072066717.png',img_2 : '2516072491.png',img_3 : '1567853878.png'},
{img_1 : '2991559225.png',img_2 :... | stackexchange/codereview |
I know this is a simple math problem but for some reason im drawing a blank.
If I have two ints which are boundaries for a range:
int q = 100;
int w = 230;
and then another in that is a number that I want to see if it is inside of the range:
int e = ?;
How can I find if e is in the bounds of q and w?
| stackexchange/codereview |
For example, I need to change from
to
.
I know PIVOT is for that, but it requires an aggregate function; and for my case, I donot need to aggregate only need column to row.
You can use the following sample data:
CREATE TABLE[StudentScores]
(
[UserName] NVARCHAR(20),
[Subject] NVARCHAR(30),
[Score]FLOAT,
)
G... | stackexchange/codereview |
I am just getting started with Google Web Toolkit and Google App Engine and have a quick question. I think I understand how to use the datastore now but I was wondering if there is a way that I can quickly create a "database" with static data from an excel sheet? I just need to add some data for a proof of concept late... | stackexchange/codereview |
I had two apps in xcode, which i wanted to combine, so i started a new project and attempted to put the two apps together in this new one. Was this a really stupid thing to do?
The app now crashes on start up and i have no idea why, i'm 99% the outlets are all connected. It uses xcdatamodel for storage and i've importe... | stackexchange/codereview |
I want to use FileInfo and CopyTo to move some files across a network. I have to move the files to a share on a server that has to be accessed using a particular user account. How do I do this - do I have to impersonate that user and then do the copy?
I am using .net 4 and was wondering what the best way accomplish t... | stackexchange/codereview |
I currently have a project that I'm building with a makefile. This project includes some additional software (jflex) which is not on one of the default system search paths (it's installed to (/opt/local/bin/). My .profile file adds this directory to my PATH, and so building the project from a terminal window succeeds.
... | stackexchange/codereview |
Just trying to set up some basic links with authlogic.
here they are
<% if current_user %>
<div class="register_new_user">
<%= link_to "Register", new_user_path %>
</div>
<div class="login_existing_user">
<%= link_to "Log In", new_user_session_path %>
</div>
<% else %>
<div class="l... | stackexchange/codereview |
I'm writting a Ruby program for windows, and I need to read user input from keyboard (stdin).
However, it's needed that the user key-presses are not automatically displayed in the windows console, and behave like "silent key presses"
This problem in Ruby over linux, can be solved using the "stty" linux command:
%x{stty... | stackexchange/codereview |
I'm tryting to write a cucumber/capybara test to reorder some items and then save them back. Any thoughts on how to best do this?
| stackexchange/codereview |
I have a VB .NET Application which I have written for my company which occasionally throws a message “System.IO.IOException: An unexpected network error occurred.”, that I have been unable to figure out the issue.
The application is a Backup program which to simplify for this post does the following:
1) Checks for H dr... | stackexchange/codereview |
I'm pretty new with JQuery, I'm trying to get this script to work. I'm trying to create a rotator on the homepage of a clients website but I can't get it to run! I get no errors, the files are were they're supposed to be, I can't for the life of me figure out what the problem is!
Here's a snipped of the code:
<script s... | stackexchange/codereview |
I have a pretty complex WPF and C++/CLI application that was built using .NET 3.5. We've migrated to 4.0 to take advantage of the WPF goodies, so all our projects in the solution are targeting 4.0.
On running our application on XP machines with just 4.0 (and MSVC++ 2010 [and 2008]), an error dialog will pop up with the... | stackexchange/codereview |
I have code below which has been working on devices of type Windows Mobile 5 and 6.1
private const string OwnerSubKey = @"ControlPanel\Owner";
regKey = CERegistry.CurrentUser.CreateSubKey(OwnerSubKey);
When I have a 6.5 device cradled and the debugger hits the line above, I get
"Type:
System.Runtime.InteropServices.E... | stackexchange/codereview |
In ScrumToys web-application (NetBeans JSF 2.0 demo) the .jsf page is not renderend in internet-explorer (I see the page source as XML).
This works fine in 'proper' browsers, like Chrome and FireFox.
I'm using the ScrumToys demo app provided by NetBeans 6.9.1 (running on GlassFish 3) with absolutely no changes. I'm usi... | stackexchange/codereview |
I have an Access 2003 report and some of the fields within the report are NULL. I can use conditional formatting to change the color and other aspects of the text-box control but what I want to do is to display "XXXXXXXXXXXXXX" in fields where there is no data (i.e. NULL). Can this be done using conditional formatting?... | stackexchange/codereview |
What packages and functions in R can perform a two dimensional non-additive local regression/smooth. For example consider
b<-seq(-6*pi,6*pi,length=100)
xy<-expand.grid(b,b)
x=xy[[1]]
y=xy[[2]]
z= sin(x)+cos(y) + 2*sin(x)*cos(y)
contour(b,b,matrix(z,100,100))
What functions could estimate this?
| stackexchange/codereview |
Suppose I have a Post model, and a Comment model. Using a common pattern, Post has_many Comments.
If Comment has a default_scope set:
default_scope where("deleted_at IS NULL")
How do I easily retrieve ALL comments on a post, regardless of scope?
This produces invalid results:
Post.first.comments.unscoped
Which genera... | stackexchange/codereview |
I'm trying to wrap a unmanaged C++ DLL with managed C++ and I keep getting linking errors.
even though I include my library.lib in the project and include the correct header file.
This is the managed class:
#pragma once
#include "..\Terminal\Terminal.h"
public ref class ManagedTerminal
{
private:
Terminal * m_un... | stackexchange/codereview |
HI!
for example i have site1.com
Is it possible to send request from site1.com page witch loads in client browser, to other sites site2.com etc (i have no access to them) and parse result data?
Is it possible to do it via javascript and how?
| stackexchange/codereview |
Is it possible to use pastebin (may be via their "API" functionality) inside bash shell scripts? How do I send http-post? How do I get back the URL?
| stackexchange/codereview |
I've been developing a multi-tier application using the following:
ASP.Net - UI Layer
WS - Business Service Layer
WS - Data Service Layer
SQL - Database Layer
Is the security the responsibility of the Architects, Developers or Infrastructure?
More specifically the security from layer to layer.
I guess the answer will... | stackexchange/codereview |
I have some price values to display in my page.
I am writing a function which takes the float price and returns the formatted currency val with currency code too..
For example, fnPrice(1001.01) should print $ 1,000.01
| stackexchange/codereview |
I have a class that is query data via a SOAP client. the results of the query are returned as an array of objects. Something strange is happening. I'm not sure if it only occurs when there is one element in the array.
Here is the code:
function getNotes($ticketid){
$ticketid = $this->ms_escape_string($ticketid);... | stackexchange/codereview |
how is it possible? I have windows Form control, derived from System.Windows.Forms.Form with WebBrowser control contained in this form. Webbrowser object instance is created in constructor of form (in InitializeComponent() method). Then in background thread I manipulate with content of WebBrowser, and I found that in s... | stackexchange/codereview |
How do I include CSS reference in only certain pages on my asp.net website? If I include the reference in my master page, all pages of the website share the CSS reference.
| stackexchange/codereview |
I have my main ViewController which has a tabBar and a navBar.
My tabBar has 2 buttons, in the first view, I added to its navBar an Add button, which should call another view. That's working fine except that this view is being called on the other tab instead of the one where the button was clicked.
This is my code:
-(v... | stackexchange/codereview |
Can someone help debug this?
Currently my script throws this error
Parse error: syntax error, unexpected '=' in includes/common.inc(1695) : eval()'d code on line 38
and I've narrowed it down to this SQL statement. It appears that counting results rows in Drupal isn't as straight forward as I'd hoped.
$sql_checkIP = "... | stackexchange/codereview |
I know we can create windows service using win32-service gem which is available in Ruby. How we can create a windows service in JRuby, is there any java-specific way which can be re-used ??
| stackexchange/codereview |
How copyscape uses google API?
The ajax api works only on browsers with javascript enabled, So this api is not used. The SOAP api is not used, because it is not allowed to be used for commercial use and no more than 100 queries are allowed per day.
| stackexchange/codereview |
I try to implement a webservice in an existing standalone spring application.
I configured spring:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:... | stackexchange/codereview |
Is there a simple Java library or approach that will take a SQL query and load data in a CSV file to oracle database. Pls help
| stackexchange/codereview |
what is the default encoding one should use to decode multipart/form-data if no charset is given? RFC2388 states:
4.5 Charset of text in form data
Each part of a multipart/form-data is supposed to have a content-
type. In the case where a field element is text, the charset
parameter for the text indicates the... | stackexchange/codereview |
I need to apply a StringFormat to DateTime Column of a DataGrid (WPF4.0) at run time. I have used the column template to create a column of a data grid. The value of format is set at run time by applying setting in the application.
Any one knows that how we can apply StringFormat to DateTime Colum(Column Template) at r... | stackexchange/codereview |
i'm .Net developper and new to WP7 development.What I'm trying to do is to built my interface depending on how many items i have in a list. My items are agences with a name, adress,2 phone numbers and one image.
In my .cs file:
Agence agence1 = new Agence();
agence1.Name = "Name1";
agence1.Adress = " Adress1";
agence1.... | stackexchange/codereview |
I'm creating a small application(for now) that needs to generate a Token with Kerberos library. The two methods equivalent I'm searching for are the gss_import_name and gss_init_sec_context methods. I have found several examples in other languages: C,C++ and C#, but none in Java. I'm not even sure of which library to i... | stackexchange/codereview |
Will the next version of Delphi be released with cross platform support and Qt based components? If so, do we have to distribute with Qt? (I don't know anything about Qt)
How can Qt help the Delphi world, and why did many programmers using C++ start using Qt with, and what will happen to VCL?
| stackexchange/codereview |
Is there is any rails plugin that can be used for voice chat between multiple users?
OR
multi user voice chat application in any other language that can be integrated with rails application?
Eagerly waiting for help.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.