instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I've got this jquery script, it seems to be working in other browser, but it doesnt work at all in Safari. Does anyone know why this might be happening? Its supposed to be accessed from an iphone.
url: http://connectsr.org.nz/calendar/
thanks
| stackexchange/codereview |
We are using the dotNETCHARTING to portray our charts, they accepts Series for their SeriesCollection. This is a new chart I'm working on, all the previous ones have a 1:1 relation between value shown and value extracted. Now I have a list of values to show as a list of values 12:12.
I currently have my 2 lists of data... | stackexchange/codereview |
I'm looking for a solution where I have to create a set of records from one record using data from another table. The table definition:
DECLARE A AS TABLE
(
AID BIGINT NOT NULL,
StartDate DATETIME NOT NULL,
EndDate DATETIME
)
DECLARE B AS TABLE
(
AID BIGINT NOT NULL,
StartDate DATETIME NOT NULL,
EndDate DATETIME... | stackexchange/codereview |
My problem is I am adding an Ajax client to an existing RPC web service. i have a PHP client that talks to it, a java jibx.POX client that talks to it, a pure java http client that i wrote that talks to it, everything. but when i try to put my jquery ajax client im working on at it, the server sees the connection, b... | stackexchange/codereview |
Do I simply need to install the VS2010 SDK?
Is there such a thing as the TFS2010 SDK, and if so, would that be the thing I need to install, and if so, where can I get it?
On Microsoft's "Extend Visual Studio" web site, I saw a link to example code for the "TFS 2010 SDK" but I could not find the TFS 2010 SDK itself.
... | stackexchange/codereview |
How to add a field such as address and other information of user that created by devise in registration place?
By using another table? or set a attr in model?
I have look through the documentation and found nothing, can anyone help me out?
| stackexchange/codereview |
I'm a database noob so please bear with me. I'm trying to join three tables together in the SelectCommand attribute of a SqlDataSource. Here's my select command at the moment:
SelectCommand="SELECT DISTINCT a1.[CreateDate], a2.[UserName], c1.[name], c1.[organisation], c1.[address], a1.[IsApproved], a1.[UserId] FROM [as... | stackexchange/codereview |
I was born in the modern world, so I don't often need to deal with this sort of thing, but could someone explain how to get the correct number in the following code.
Here is one attempt of many:
#define X 2527
#define Y 2463
#define Z 3072
main()
{
long int c = X*Y*Z;
printf("%ld",c);
}
I'm just try... | stackexchange/codereview |
What I want to do is to create a mixin that takes arguments and uses one or more of the arguments as names for other mixins to be included.
as I'm not sure about the proper terms, I'll try to explain through example:
@gradients{
light:#fafafa; //Should these also be prefixed with @?
dark:#888888;
}
@gradientBac... | stackexchange/codereview |
I have to create a function, printObjects(attribute, option), which must print the objects based on a certain attribute. The attribute can take ints or strings as input. The option attribute is optional. How do I implement this for my class?
| stackexchange/codereview |
I am trying to develop a webpage which will need to create files in server-side with the text that a user writes in a textarea.
Which technology do you suggest me to use for this purpose? PHP or GWT+RCP?
I would like to use the easier to develop, more secure and faster one.
THANKS
| stackexchange/codereview |
Setting
#myDiv
{
width:100%;
height:100%;
position:absolute;
top:0;
left:0;
}
makes the div the same size as the visible page, but if you have an active scrollbar then the div isn't actually the same size as the complete page.
Is there a way around this in CSS?
Or if not, what is the simplest java... | stackexchange/codereview |
I have created a Team Project in TFS 2010 and the Project Portal in SharePoint 2010.
Now I need to create a WebPart to deploy in the SharePoint Site (Project portal) that connects to the TFS to get some information.
Where I can get the TFS Url that is associated with the Project Portal in SharePoint?
Any clues?
Thanks... | stackexchange/codereview |
I use synchronous boost::asio SSL sockets in my application. I initialize all parameters and then connect to some hosts (one after another) and do a GET request for each host.
Everything works until I get a "404 - Not Found" error for one of the hosts. After this error, all new connections fail with some unspecified SS... | stackexchange/codereview |
this is my problem: I'm writing an alternative contacts app which is specified to work with A LOT of different languages and alphabets. When querying names in my own language, Swedish, the names using umlaut characters are sorted in an illogical manner to me, but logical to unicode i suppose:
Should be/Swedish style: A... | stackexchange/codereview |
Can I use named parameters for stored procedures in MySQL? I need to call stored procedures something like this:
CALL stored_procedure(@param1 = "foo1", @param2 = "foo2");
The answer is
CALL stored_procedure(@param1 := "foo1", @param2 := "foo2");
Thanks for Pentium10.
| stackexchange/codereview |
I get this error only in IE7.
lang.link.toolbar is null or not an object
I thought I may have accidentally deleted something when setting up the language, so I went to ckeditor/lang/en.js and there was indeed a CKEDITOR.lang.en.link.toolbar being set.
I set up the actual CKEditor using the jQuery adapter like so...
$... | stackexchange/codereview |
I am currently working on a project. One library I would like to consider using in the future uses ToLua++ as a method of binding Lua. Currently, the library I am looking at is CEGUI, and it uses ToLua++. I am currently considering using LuaBind for the implementation in the project I'm working on. I was wondering if a... | stackexchange/codereview |
I'm curious to know: is scrolling (such as in Firefox, Nautilus, etc.) handled be each application separately? Or is it done by the environment? Or by the widget toolkit?
What confuses me, is that it is possible to change to "smooth scrolling" in Firefox, which makes it seem like each application handles its scrolling ... | stackexchange/codereview |
Trying to run a simple Hello World C++ program on Eclipse (Galileo) CDT plugin on Windows Vista. Following the "Before You Begin" instructions for Eclipse/CDT...
1) Downloaded and installed the latest Cygwin. However, could not compile with Cygwin.
Internal Builder: Cannot run program "g++": Launching failed
the Ecl... | stackexchange/codereview |
I have a top level frame (MyFrame Class) which has a child tree (MyTreeCtrl class)and a child panel (MyPanel class) . An object of MyPanel exists in MyTreeCtrl . An event on a node in the tree should populate the panel.I am setting a sizer with the panel ,but it does not get set. When the sizer is set to the panel whi... | stackexchange/codereview |
So i am using some reflection to call a function from a dll on a network drive. The problem is that the dll requires another dll and it is in that same folder but an exception is thrown.
Here is my code:
try
{
Assembly loadedDLL = Assembly.LoadFrom(@"G:\Remote\Debug\BonderControlPanelSim.dll", AppD... | stackexchange/codereview |
Can UIViews with a CATiledLayer have animations?
If I call the following:
[myContentView setNeedsDisplay];
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIVie... | stackexchange/codereview |
I have a main window, which has four user controls on it. These five entities need to communicate with each other. Is there an established method for passing values and objects between UserControls?
Edit: I'm familiar with MVVM, but I am asking for solutions outside of that paradigm.
| stackexchange/codereview |
Someone has hacked my database and has dropped the table.
In my PHP page there is one single query where I am using mysql_real_escape_string:
$db_host="sql2.netsons.com";
$db_name="xxx";
$username="xxx";
$password="xxx";
$db_con=mysql_connect($db_host,$username,$password);
$connection_string=mysql_select_db($... | stackexchange/codereview |
If a class Foo observes another class FooBar, does Foo depend on FooBar? Is the opposite the same; does Foobar depend on Foo?
Does dependency refer to compilation dependency, or run-time functional dependency?
| stackexchange/codereview |
For debugging purposes I'd like to see what SOAP request and responses are send back and forth between a SoapClient and SoapServer.
I remember seeing once that some methods on the instances of SoapServer or SoapClients were able to trace this SOAP messages. Is this really possible? Or some other way to able to see the ... | stackexchange/codereview |
Is this just an API defined by Java, to be implemented by (say) servers, or the JRE includes the implementation too?
Thing is that I was trying to concatenate two strings using '+' on my JSF page, but it threw NumberFormatException. It seems it was trying to parse my strings using Long.parseLong().
I was surprised to s... | stackexchange/codereview |
I have a single svn repository for all my projects. In svn I also have a directory which contains the compiled libraries (like .dll, .swc) which are directly referenced by the projects.
I want another developer to do a project for me and I don't want to open up my whole svn tree to him. If it was only about not being a... | stackexchange/codereview |
I want to develop 3D animations for scientific demonstrations. I am familiar with Java & C++.
I am not clear about the basics of 3D or 2D graphics, nor am I familiar with 3D animation tools like Blender and Maya, and I haven't been able to find any good resources for learning about these topics.
So, as a beginner what ... | stackexchange/codereview |
I have the following jquery code to remove the style attribute of all table, tr and td elements located inside a div with id="testdiv".
$(document).ready(function(){
$("#testdiv").find("table, tr, td").removeAttr("style");
});
If i run the $("#testdiv").find("table, tr, td").removeAttr("style"); line in the fire... | stackexchange/codereview |
I am running a Wordpress site but i feel that the solution to this question is possibly more generic so am asking for help here.
I have set up LDAP authentication. My website is running on http://a.com (for example), the authentication must happen over an SSL connection and the SSL address is https://b.com (points to t... | stackexchange/codereview |
I made a pool of about 20 strings that each display different sayings. I want one of those sayings to display to a text view on random.
I cast an integer as a random 1-20,
int randomNumber5 = (int) Math.ceil(Math.random() * 20);
and created strings named randomString1, randomString2, etc...til it hits 20.
The best wa... | stackexchange/codereview |
Is there a site like codeplex just for PHP?
Basically a site for volunteers that wants to learn and code together. I want to develop a project, but I need someone to help me out.. don't know where to find this help.
| stackexchange/codereview |
I need to give this account some write permisison. Is the account Network_User?
| stackexchange/codereview |
void Record::Update() {
string choice;
cout << "Enter ID: " << endl;
cin >> IDValue;
for(Itr = List.begin() ; Itr !=List.end() ; Itr+) {
if(Itr->GetID() == IDValue)
{
cout << Transit->GetID() << endl;
cout << "Would you like to set Name ? (y/n) :";
cin >> choice;
if ( choice == 'y' )
... | stackexchange/codereview |
I've recently looked into using list(), dict(), tuple() in place of [], {}, and (), respectively when needing to create an empty one of of the three. The reasoning is that it seemed more readable. I was going to ask for opinions on the style, but then I decided to test performance. I did this:
>>> from timeit import Ti... | stackexchange/codereview |
I have a handler that handles download from my site.
but when I try to download a mp4 on Mac, it just opens another window and opens the movie in quicktime.
context.Response.ContentType = dd.Type.Mime;
context.Response.AddHeader("Content-Disposition", "attachment; filename=\"" + dd.Document.FileName + "\"");
dd.Type.M... | stackexchange/codereview |
In the book "Programming Clojure" (Halloway, S., (2009). Programming Clojure. Raleigh, NC: Pragmatic Bookshelf.) he shows type hints using the syntax
(defn describe-class [#^Class c]
...)
while on the Clojure Website, the type hints are shown without the # reader macro:
(defn len2 [^String x]
...)
Which is correc... | stackexchange/codereview |
Is there a way to apply a label to a TFS 2008 project/directory with C#?
I know of the command line program:
tf label SampleLabel $/Project1/Source/* /recursive /server:TFS1
But i want to do this with C# code, and do NOT want to run TF.exe commandline from C#.
| stackexchange/codereview |
In my app, I use Groovy as a scripting language. To make things easier for my customers, I have a global scope where I define helper classes and constants.
Currently, I need to run the script (which builds the global scope) every time a user script is executed:
context = setupGroovy();
runScript( context, "global.groov... | stackexchange/codereview |
I have eclipse Galileo 3.5 with maven plugin installed. I want to know if there is any way to uninstall that plugin. I do not see any option as uninstall a plugin in this version if eclipse.
The following is the screen i got after reading one of the comments on this question. but the uninstall button is disabled. What ... | stackexchange/codereview |
Given the following tables:
CREATE TABLE Employees
(
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
birth_date DATE NOT NULL,
PRIMARY KEY (first_name, last_name)
);
CREATE TABLE Managers
(
first_name VARCHAR(50) NOT NULL,
last_name VARCHAR(50) NOT NULL,
salary INTEGER NOT NULL,
total_... | stackexchange/codereview |
I want to add Apple push notification service to my app.The detail is:
my app will store some important personal data,so ,i want to sure that when someone lost s/he's iPhone,s/he can report to the server which provide service to my app.When the server receive the report,it'll send a notification to the APNS,then the AP... | stackexchange/codereview |
I'm trying to create a button which has some text beneath the icon (sorta like the app buttons) however it seems to be quite difficult to achieve. Any ideas how can I go about get the text to display below the image with a UIButton?
| stackexchange/codereview |
I have an observable that when it fires a message is displayed. After a delay I want to fade that message out, unless in the mean time that observable has fired again.
In other words given an observable, I want to create another observable, such that when the last event fired the first observable is more than a specifi... | stackexchange/codereview |
i have a structure :
typedef struct book{
double rating;
double price;
double relevance;
int ID;
}B;
an array
list* B;
and a file of these so read in the files with this
int read_file(char* infile, int N)
{
int c;
if((fp=fopen(infile, "rb")))
{
fscanf(fp, "%*s\t%*s\t%*s\t%*s\n");
c=0;
... | stackexchange/codereview |
I have an ant target for creating zip like this -
<zip destfile="${dist}/myzip.zip">
<zipfileset dir="docs/manual" prefix="docs/userguide"/>
</zip>
This basically creates archive myzip.zip with all the files and directories under docs/manual prefixed with docs/userguide in the archive.
But I don' want to inc... | stackexchange/codereview |
Is it possible to force jQuery.jScrollPane to always show a vertical scroll-bar?
e.g. hidden setting, API function?
Preferably without touching the content pane, its height etc.
| stackexchange/codereview |
I keep running into stale, locked, (php) session files on my apache server which keep the threads from closing and thus eating away my server resources.
Its an Ubuntu box and having session_write_close(); in the automatically appended script doenst help. I keep ending up with locked session files which are local (memor... | stackexchange/codereview |
I have 3 models User,Listing and Message. What I want is for an authenticated user to have many listings. The listings then can have multiple messages. So the messages are tied to the user through the listing model. I am able to get a users listings but not able to get the users messages which he owns through the listi... | stackexchange/codereview |
I have the following stored procedure, not writing the complete stored procedure but some of it is:
@course int = null,
SET @query = @query + 'Where course_id='+ cast(@course as varchar)
I want to know when I have converted the @course as the VARCHAR type while my course_id in the database is of INT type - how th... | stackexchange/codereview |
I'm currently working on a ToDo List for a college project, and I'd like to take on some AJAX, but I'd also like to make it work both ways (pure PHP and also with AJAX, if JavaScript's available).
On my PHP approach, I use some HTML code embeded (like <td>$value</td>). On AJAX, I guess I would strip the HTML from the P... | stackexchange/codereview |
I need to show some html code in TextBox.
this is my TextBox description:
<asp:TextBox ID="responseTextBox" runat="server"
Width="910px" ReadOnly="True" TextMode="MultiLine" CausesValidation="false" />
i am passing the html to it programatically, and it works, but on postback from page i'am getting the followi... | stackexchange/codereview |
I'm trying to figure out which process is sending a signal to one of my ruby scripts. I am able to trap the signal - is there any way to figure out which process sent it once I've done that? Normally, this would be in a siginfo_t structure passed to the signal handler - is this exposed in ruby?
| stackexchange/codereview |
I have date as a string 16/11/2010 12:00:00 AM for example which I am inputting in
<input type="text" value="<%: Object.Instance.SomeDateAsString %>" />
Note: this can either be empty string or in 16/11/2010 12:00:00 AM format only.
How can I display it it nicely to the user as a 16-Nov-2010?
| stackexchange/codereview |
I was just wondering if jQuery can be considered as a language, since it has its own syntax. I can't say it's a library, because most other languages are made through a library of another language. For example, PHP is written in C and PHP functions call functions made in C.
Just wanted to hear ideas and insights from ... | stackexchange/codereview |
I'm a bit confused in the question, if it's better to use ContentProvider or Database. Or it makes no difference if I don't want to share any data with other applications.
If I've understood it right, content providers based on SQLite DBs and it's also possible that content of them is only accessable for my application... | stackexchange/codereview |
In the context of an RCP application I want to deliver to my customers a patch. This patch has modification in only one of my plugin included in one of my feature.
How should I build the patch and what will be the patch's content ?
How can I deliver this patch to my end users, through a zip file, an update site ?
Can y... | stackexchange/codereview |
I am trying to invoke maven-dependency-plugin programatically. i am using maven 3 version. the problem is that when i invoke it through pluginManager.executeMojo(session, execution), i receive the following error message:
[ERROR] **The parameters 'project', 'local', 'remoteRepos',
'reactorProjects' for goal
org.apache.... | stackexchange/codereview |
I am using MSVS 2008. I am writing an application in c, and would like to know what's the best way to restart an application in windows.
I looked around and someone was doing something like this, but I am not sure if that is the best way or if that even creates a whole new process.
if(command == restart)
{
... | stackexchange/codereview |
Is it possible to invoke iPhone Simulator and launch app through UIAutomation? If so, is it possible to invoke UIAutomation script through shell script or Java?
Or can I able to do this through applescript? Thanks
| stackexchange/codereview |
I'm using socket_server from this tutorial and the following code for a client and server:
Server:
-module(echo_server).
-export([start/0, loop/1]).
% echo_server specific code
start() ->
spawn(socket_server, start, [?MODULE, 7000, {?MODULE, loop}]).
loop(Socket) ->
case gen_tcp:recv(Socket, 0) of
{ok... | stackexchange/codereview |
I have a Horse Racing Database that has the results for all handicap races for the 2010 flat season. The spreadsheet has now got too big and I want to convert it to a MySQL Databse. I have looked at many sites about normalizing data and database structures but I just can't work out what goes where, and what are PRIMARY... | stackexchange/codereview |
I’m a programmer working on a CRM project.
I wanted to know if there’s a way to configure some kind of a “large mailbox” on Ms Exchange 2007 to which all incoming and outgoing messages to the company goes through, and stay (like some kind of a shortcut – I don’t want to waste double disk space for this mailbox)
We are ... | stackexchange/codereview |
I'm making a fairly simple text editor, and I have a question about my style buttons. When I highlight text and click my "bold" button, the text bolds as expected, but my selection is not longer visible. I can still unbold the selection, italicize it, or underline it, but you just can't see what is selected. So, I'm wo... | stackexchange/codereview |
my ColumnFicture test table look like this:
|categoryId|subcategoryId|showResults?|
| 2 | 1 | |
I overwrite in my ficture code (C#) categoryId (2) if subcategory is more than 0. Is that possible overwrite categoryId on fitnesse test site? That evry one ... | stackexchange/codereview |
I am using Postgresql as my database and rails 3 as my middleware for a multi-tenant application.
I would like to set an environment variable containing currently logged in client id for every connection that gets created via establish_connection method.
Is there anyway I can intercept initialization process through a... | stackexchange/codereview |
I have a C# program which takes in a log string and tries to tokenize it into various arrays.
The string used for the example would be "Tue Oct 26 2010 23:48:54,664,macb,d/drwxrwxrwx,0,0,33-144-1,C:/WINDOWS/system32/ras" which I need both Spacing (' ') and "," to be seperated into arrays. The results from running my p... | stackexchange/codereview |
Possible Duplicate:
Linking C++ code with 'gcc' (without g++)
GCC provides the -x lang option, which allows you to modify the assumed language during compilation. What is the equivalent for the link step? I wish to link a program that has C++ dependencies via the gcc command.
| stackexchange/codereview |
I have an android emulator. I would like to develop an application to measure the signal strength (RSSI) from the Acess Point.
I would like to poll the signal strength and update the metric about the signal strength.
I am using WifiManager. But as I run the application, I get the following output,
WIFI Status:SSID<non... | stackexchange/codereview |
I'm new to iOS development and m curious to know how can i create a CMS app like flipboard or WiredMag for ipad???
i have basic knowledge of Objective C and its frameworks.
I need to know how to connect to internet and pick the stuff n display it on the ipad??
I've created some awesome animations that are used by Ipad ... | stackexchange/codereview |
I'm having some issues with sending data from an Android client to a desktop server over TCP via wifi. The emulator works fine, but on the actual phone, the connection cannot be established. A "socket not connected" exception was thrown.
I have attached my code below. Any help please? Many thanks!
// CODE inside an Act... | stackexchange/codereview |
I'm having trouble understanding the finer points of Java generics with wildcards. specifically, why doesn't this compile.
public class Test {
abstract class Function<A, B> {
abstract B call(A a);
}
interface PropertyType {
String bubbles();
}
class Apartment implements PropertyTy... | stackexchange/codereview |
Im creating a dashboard for a large display at work, I have managed to get one div auto refreshing a php request page, but I can't think of a way of using this function on another div for another script without copying the entire function and renaming it, which just seems dumb.
This is what I have so far:
<script type=... | stackexchange/codereview |
I made a pseudo code algorithm to find repeating values of an array which includes float numbers:
mergeSort(A);
int i <- 0
for i<- A.lenght-1
if Arr[i] == A[i+1]
return A[i]
while A[i] = A[i+1]
i++
else
i++
I want to change the above algorithm to find the repeating values an... | stackexchange/codereview |
I just today stumbled upon the Code Metrics thing, after having used Visual Studio practically every day for... practically my whole life. I think it's been there since around VS2008, but I haven't cared to play with it.
Most of my projects in my solution have fairly high Maintainability Indices -- 85, 83, 86, and 76 a... | stackexchange/codereview |
I'm trying to read the alpha pixel values using glReadPixels. The first thing I did was read the pixels individually. To try to speed things up, I tried reading all the pixels at once :
GLubyte *pixels = new GLubyte[w*h*4];
glReadPixels(0, 0, w, h, GL_RGBA, GL_UNSIGNED_BYTE, pixels);
and it worked, but really slow. No... | stackexchange/codereview |
trying to do a small stored procedure without needing to add freetext indexing just for this (SQL Server 2008)
Basically, I want to find all records where a certain field contains all the words from a parameter.
So if in the field I have "This is a test field", and the parameter to my SP would be "this test field" it w... | stackexchange/codereview |
While Google Chrome's messaging API allows communication between two different extensions using their 'Extension ID', I'm yet to see the issue of communication between two instances of the same extension be addressed. Is this possible using the current Google Chrome API? Is there an 'Instance ID' to uniquely identify e... | stackexchange/codereview |
Most functions are easy to name. Generally, a function name is based on what it does or the type of result it produces.
In the case of a generator function, however, the result could be a iterable over some other type.
def sometype( iterable ):
for x in iterable:
yield some_transformation( x )
The somet... | stackexchange/codereview |
I have a tag table with a huge data. I need to make an autocomplete textbox and search similar tag just like stackoverflow. I'm tried mysql LIKE but it's slow. I'm asking a way to optimize this task.
| stackexchange/codereview |
i have some listbox, which has this applied style:
<Style x:Key="GroupListBoxItemStyle"
TargetType="ListBoxItem">
<Setter Property="OverridesDefaultStyle"
Value="True" />
<Setter Property="FocusVisualStyle"
Value="{x:Null}" />
<Setter Property="... | stackexchange/codereview |
While learning Prolog, I'm trying to solve the following problem, using accumulators:
Write a predicate addone2/ whose first argument is a list of integers, and whose second argument is the list of integers obtained by adding 1 to each integer in the first list. For example, the query
addone([1,2,7,2],X).
sho... | stackexchange/codereview |
I am not sure about this, but I think I read it before, and I would like to know if that is true or false:
When creating tables, it is better to put volatile columns first and then the static columns. I mean, to put the columns that will be updatable, and the not updatable at the end.
This is good to reduce the size of... | stackexchange/codereview |
I have a large list of positive integers in an array and would like to use a bead sort but have found in to be not well documented. does anyone have the code for a bead sort?
| stackexchange/codereview |
I have a Users table in which no two same users can exists , what is the best way to do this error free?
What I did is that I wrote a check for duplication in the controller, but someone said to me it's not a right thing to do. He said put unique on database table? I have implemented this on several other controllers ... | stackexchange/codereview |
Linux.
I have an ethernet cable between two computers. A simple server-client program in C to transfer a file from client to server. Client reads 100 bytes of data from the file and sends it to the server, and then waits for 2 seconds before sending the next packet.
When the client was sending the data, I pulled out t... | stackexchange/codereview |
Can someone please explain the difference between preemptive Threading model and Non Preemptive threading model?
As per my understanding:
Non Preemptive threading model: Once a thread is started it cannot be stopped or the control cannot be transferred to other threads until the thread has completed its task.
P... | stackexchange/codereview |
What events on the canvas object that I can handle. In particular, I'm looking for a mouse click (or down, or up, etc) event that will give me the x and y within the canvas.
| stackexchange/codereview |
I have added like button to my application page:
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'xxxxx', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.pro... | stackexchange/codereview |
I want to build my own decentralized application platform to build and deploy web applications easily, which is like Google's App Engine, on multiple web servers. What language-independent steps should I take to build such infrastructure?
Thanks.
| stackexchange/codereview |
Im starting to program in Lisp and having an hard time with the Format function.
My objective is to print a list of integer sublists as N integers for line. For example:
'((1 2 3)
(4 5 6)
(7 8 9))
should be printed as
1 2 3
4 5 6
7 8 9
I tried using iteration in the format procedure, but I failed.
What I wrote was:
... | stackexchange/codereview |
I have a Menu control that I dynamically populate with categories. When a user clicks a category, the postback should populate a grid with products in that category. However, I seem to have tried every way possible, i.e. whatever page life cycle time, only to always get this error:
Failed to load viewstate. The cont... | stackexchange/codereview |
I am running a separate process that minimizes a folder of javascript files. This process creates a new file for each of the js files with "_min.js" appended to it. The next step is to delete the old js files (the ones without "_min.js"). For some reason File.Delete cannot delete these files.
It would appear that some... | stackexchange/codereview |
I'm trying to show all images from a selected category on screen. Which is the best way to accomplish this? because the drawable folder won't allow me to create subfolders :(
i will be using a database but i don't want to save the whole image in it, can this be done?
Thanks in advance
| stackexchange/codereview |
Controller
function login() {
// Don't show the error message if no data has been submitted.
$this->set('error', false);
// Does not render the view
$this->autoRender = false;
// If a user has submitted form data:
if(!empty($this->data)) {
$someone = $this->Student->findByStudentEmail($this->data['... | stackexchange/codereview |
Maven2 checks for updates of stax-ex at every build. And it's just checking this single dependency, all other dependencies are updated only once per day.
Maven2 output:
artifact org.jvnet.staxex:stax-ex: checking for updates from java.net
stax-ex (groupid: org.jvnet.staxex, version: 1.2) is included as part of jaxws-... | stackexchange/codereview |
I have created a custom dialog and a layout xml:
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<Button
android:layout_width="wrap_content"
android:lay... | stackexchange/codereview |
The below is returned to the browser:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="to_xhtml.xslt"?>
<root>
<value>test data</value>
</root>
Chrome 7 and FF 5 do not appy the XSLT only showing the XML values. IE does apply the XSLT showing the resultant XHTML.
The XSLT file is ther... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.