instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Hey, so i have a table on my page as a result of this code:
$result = mysql_query("Select * from porders, porders_detail, parts where porders.order_no = porders_detail.order_no and porders_detail.om_part_no = parts.om_part_no") or die(mysql_error());
This query gets fired off at the start. But i want to display a drop... | stackexchange/codereview |
pls give me any suggestion ...
i create new web application at sharepoint 2007 ...
and i run STSADM.EXE -o createsite to get empty site collection ... and operation completed successfully ...
but do not create my website folder 8082 in virtual directory .. and also i cannot see my site in the iis ..
i do not run iisre... | stackexchange/codereview |
I have a significant amount of data being generated in a C program. I want to write the data out into 1gb files.
How would I got about doing this?
At the moment, I go through a while loop (with a condition that will go on until 5 gbs data is created). It creates a struct and writes it to a file:
fwrite(storedVal, sizeo... | stackexchange/codereview |
Anybody knows the trick to show different themeing for different country peoples.
For example if my store is loaded in US i want to show the us_mystore theme and the same store viewed in India then i would like to show myindia theme. How can i achieve this.
Please suggest me a idea
| stackexchange/codereview |
I know there is the option in Eclipse to 'restore defaults'.
The problem is I had imported a .epf to change my editors font/colors.
I'm not a big fan of the changes and would like to go back. I've tried deleting the eclipse folder and downloading a fresh copy, but the styles persist.
I assume there is a config file s... | stackexchange/codereview |
I done one project using CSS3 (with the border radius and box shadow property). These properties are not working on IE. How can I use those properties on IE?
| stackexchange/codereview |
I have an image on my page and i am trying to embed a youtube video on top of it at a specific location. How can i do this? usemap?
| stackexchange/codereview |
How can I combine a list of RenderTargetBitmaps into single large RenderTargetBitmap?
I create a list of RenderTargetBitmaps by rendering multiple visuals. Then all these RenderTargetBitmaps need to be combined into one large texture atlas (sprite sheet).
| stackexchange/codereview |
Is it possible to invoke a g++ executable file's function from mono in Ubuntu? Note that both C++ and C# code compiled in Ubuntu Operation System.
C++ application source:
#include <stdlib.h>
static int32_t Sum(int32_t a, int32_t b){
return a + b;
}
/*
*
*/
int main(int argc, char** argv) {
return (EXIT_SUCC... | stackexchange/codereview |
Let's say I have a boolean DP with a default value of False and a register callback OnDPChanged. The DP is serialized every time the app exits. On app startup I deserialize the DP. In which cases will OnDPChanged fire?
If my understanding is correct then on every startup the DP is created with the default value. After ... | stackexchange/codereview |
I am writing a PDF viewer for iOS. I obtain a reference to the pdf when I initialize my viewcontroller like,
pdf = CGPDFDocumentCreateWithURL((CFURLRef)pdfURL);
Then I use it throughout the life of that class to obtain CGPDFPageRef's like,
CGPDFPageRef pageRef = CGPDFDocumentGetPage(pdf, docPage);
The child view cont... | stackexchange/codereview |
I'm new to php and hope you can make me figure out whether I'm trying to do anything impossible.
I have two folders 'public' (root directory), and 'library' (all php files here), these folders are in same level of folder hierachy. my public/index.php is basically loading another php file (say aa.php) which is in 'libr... | stackexchange/codereview |
My questions is how can join two or more data frames in system R?
For example:
I have two data frames:
first:
x y z
1 3 2 4
2 4 5 7
3 5 6 8
second:
x y z
1 1 1 1
2 4 5 7
I need this:
x y z
1 3 2 4
2 4 5 7
3 5 6 8
4 1 1 1
5 4 5 7
I tried to use append for each vector, like... | stackexchange/codereview |
I am obviously doing something completely wrong when it comes to preg_replace.
Say I have a string of text,
"Silence is golden until you are the one silenced." And I want to replace "Silence" with "Silence" but not replace the silence in silenced.
Here is the code I have in place:
$q = "Silence is golden until you are ... | stackexchange/codereview |
I need to get the ID (a column) from the last row inserted, in a table. I'm wondering if there's any way to somehow embed that in another query, to avoid having two different querys? It seems much simpler, and i believe i've seen it somewhere before.
Something like this:
$query = "INSERT INTO a_table (x, y) VALUES ((SE... | stackexchange/codereview |
I just wanted some input on a project that I'm working on. Basically, I'm creating a service that monitors and processes new files in a directory specified by a configuration file and other parameters through the command line. It should also output text via the command line, i.e. when a user types in '-help' it will ... | stackexchange/codereview |
I am using the jQuery plugin 'formwizard' and wish to allow users to jump to a specific step in the process.
What I thought would do it was the 'show' method:
$(function(){
$("#linkId").click(function(){
$("#demoForm").formwizard("show","newLocationId");
});
});
but all this does is expose the step on ... | stackexchange/codereview |
i have following code i want the text in the div to come in the middle .
i know this is very easy question but i am getting problem in these type of questins please suggest me the what can i do to solve these kind of problems in future.
<!DOCTYPE html>
<html>
<head>
<style>
.transition-msg {
background-color:#000000;... | stackexchange/codereview |
Im trying to perform a parameterized query in SQLite from C#, and the method im using is along the lines of creating a static command with
SQLiteCommand cmd = new SQLiteCommand(
"SELECT [ID]" +
",[email]" +
",[serializedata]" +
",[restrictions]" +
" FROM " + ... | stackexchange/codereview |
This works:
<li @{if (Model.Mode == "map") {<text> class="bselected"</text>}}>@Html.ActionLink("Map & Directions", MVC.Biz.Show(Model.SingleBiz.BizName, "map", string.Empty))</li>
But it's ugly... Is there a better, cleaner way to do this? in this code, I'm checking if some view data is null or empty, if so add a clas... | stackexchange/codereview |
Tried Googling but:
Question:
Best way to externally generate Sequential UID values for a MySQL field which must be representable as a string.
Reason:
Generic sequential UUID-ish values for on-disk-order/page-appending inserts for performance of writes and date prefixing for read speed when searching an index of the fi... | stackexchange/codereview |
I don't get why this integration test fails. I can get the test to pass by either removing the @Transactional(propagation = Propagation.REQUIRES_NEW) annotation above the service method, OR by setting transactional = false in the Integration Test
I realize that the integration test itself is running in a transaction, ... | stackexchange/codereview |
i ran this query on mysql:
select rc_details from apitbl limit 1;
the result is
a:7:{s:6:"itemid";s:9:"PCO FLEXI";s:2:"op";s:1:"P";s:3:"cir";s:1:"*";s:3:"api";s:1:"3";s:3:"loc";s:1:"P";s:4:"type";s:1:"F";s:4:"mode";s:1:"T";}
My Problem:
i want to extract elements from the serialize fields to run query as:
select rc_d... | stackexchange/codereview |
Hello my smart friends i have this contact form that i am working on. I want visitors to send me email through the form. I am using godaddy as my web hoster. From the below code can someone help me how to setup SMTP using godaddy so i can receive emails from users on my site? I tried to use it on my local computer but... | stackexchange/codereview |
I have a modal with JQuery UI tabs inside. There is a ASP.NET checkbox list server control in one of the tabs. I am facing a weird issue that if I set toTop:true in JQModal parameters
$(document).ready(function() {
$('#testDiv').jqm({toTop: true});
});
when I run a server side foreach on the checkbox list it al... | stackexchange/codereview |
I am not that familiar with SQL Server data transfer and I am trying to setup a nightly database transfer for certain tables from SQL Server 2000 to SQL server 2008. I am reading up on DTS, but I dont know how to get it started. Is it possible to have a few steps that would point me in the right direction at least?
E... | stackexchange/codereview |
I've got a reporting application that runs server-side that reads a stored BMP from my database (as a byte[]), converts it back to an image, and then places it into an Excel spreadsheet that forms the base for this report (this report is ultimately delivered to the client for download.) To do this I'm trying to use the... | stackexchange/codereview |
Do they even exist? I am really sick of having to display "Romance Standard Time" to my European users and trying to explain why their "Central European Time" can't be displayed as "CET". If I parsed "Romance Standard Time" and presented them with "RST" that would be meaningless to them, or possibly confused as "Russia... | stackexchange/codereview |
There seems to be no way to get MySQL to return formatted times from timestamps without zoneinfo being imported.
If I use
SET time_zone = '-4:00'
and I create a timestamp for 6:00PM Nov 1, when daylight saving time passes, and the timezone changes to -5:00, that event will no longer be displayed at the correct time.
I... | stackexchange/codereview |
I have an ASP.NET based web app, and I want to add an update/news section to the portal. I don't want to add this through a table that reads data from the database, but use some other way that easily allows me to publish this news content/website updates on the portal.
I'm looking at using blogengine.net to publish the... | stackexchange/codereview |
<?php
session_start();
require_once('JSON.php');
$url= 'http://ajax.googleapis.com/ajax/services/search/web?rsz=large&v=1.0&q='. $_POST['searchquery'].'&key=ABQIAAAA4oH5MwaexHdhZg4UWRNB1RT2yXp_ZAY8_ufC3CFXhHIE1NvwkxTzUf4N43torAasiY6JD5CaJS6n7Q&userip=http://localhost/';
echo $url;
// use fopen and fread to pull Go... | stackexchange/codereview |
I have a struct like this:
struct A
{
char x[];
};
What does it mean? When I do something like:
A a;
a.x = "hello";
gcc throws an error saying:
error: incompatible types in assignent of 'const char [6]' to 'char [0u]'
| stackexchange/codereview |
I am trying to insert data into MS SQL server 2008 using Ole DB. my insert procedure is:
ALTER PROCEDURE [dbo].[table_insert]
@category as bigint
AS
BEGIN
INSERT INTO dbo.table
(category)
VALUES(@category)
SELECT SCOPE_IDENTITY() as id;
END
When I call the procedure, it is executed properly. New row... | stackexchange/codereview |
The following code outputs a random number each second:
int main ()
{
srand(time(NULL)); // Seeds number generator with execution time.
while (true)
{
int rawRand = rand();
std::cout << rawRand << std::endl;
sleep(1);
}
}
How might I size these numbers down so they're always ... | stackexchange/codereview |
this is probably going over the top, but I was after a function that assigns a value to my class property if the value from the database is not null and do nothing if it is. I could do this with if statements but I was after a one liner. I want this to go everywhere in my code but before doing so was just wondering if ... | stackexchange/codereview |
I need to customize UITabBarItem where I need to add a custom image but its a circular image and the boundary should expand beyond the UITabBar where it should display some of the parts of the button in the UIView of the application.
Thank you
| stackexchange/codereview |
I've got a set of strings, and need to build a graph where strings are the nodes, and there's an edge between any pair of adjacent strings.
To strings A and B are said to be adjacent if by adding, removing, or replacing a single character of A (at whatever position) you get B.
For example scar and car are adjacent (r... | stackexchange/codereview |
I am performing the follwing sql to return a data where there is a match of both dob and address in tables1 & 2.
select table1.dob
, table1.address
, sum(case when person_status in ('A','B','C') then 1 else 0 end) as 'ABC_count'
, sum(case when person_status in ('D','E') then 1 else 0 end) as 'DE_Count'
, sum(case when... | stackexchange/codereview |
In jquery, what does this means and when it is used?
| stackexchange/codereview |
I would like to add some ads on an external website, to do so, I use iframe :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body style="background:#ddd">
<center>My ad</center>
<iframe src="http://ww... | stackexchange/codereview |
In Ruby, is there any way to determine which files were loaded and defined/modified a particular class?
| stackexchange/codereview |
im pretty new with php, i found a gallery script that takes all photos from a folder and displays them. I'm trying to make the array ignore all folders in this 'photos' folder named 'app_thumbnails'.
the code creating the array is:
//READ FILES AND FOLDERS
$files = array();
$dirs = array();
if ($handle = opendir($curr... | stackexchange/codereview |
I'm following the instruction indicated in http://code.google.com/eclipse/docs/install-eclipse-3.6.html about installing Google plugin in eclipse 3.6.
But every time, i paste the link for Google eclipse plugin 3.6, eclipse prompts an error message saying the specified link could not be found.
Can someone help me 'bout ... | stackexchange/codereview |
I have a page with keith-wood's datepicker, and jqplot graphs. Basically, the date picker 1 is set to todays date by default, and date picker 2 is set to a day before. If you select a date in datepicker1, the date in datepicker2 goes a date before.
Now, all is well in chrome if I refresh, but in FF, if I refresh, the d... | stackexchange/codereview |
Just mucking around with Razor in the ASP.NET MVC 3 RC released today.
Now, we have a concept of a "Layout Page", which i presume is the replacement of the "View Master" in the ASPX view engine.
But i do not understand the "View" property of the layout page.
Here is the example which is created when you create a new Ra... | stackexchange/codereview |
Many people may have asked this question, however, I have never seen any one gave a satisfactory solution.
okay, let me make my question clear: I am trying to call some c++ subroutines/functions from my exsiting fortran code. The point is i am doing everyting within visual studio 2008 (fortran compiler being intel for... | stackexchange/codereview |
This is a very simple question, and I apologize for being so noobish :/
I'm new(ish) to Java. I've got a game on the Market that works quite well, but the code is all rubbish. Basically, I wrote it like I was writing JavaScript. I'm trying to learn more about Object Oriented Programming. So, in my new game I've been cr... | stackexchange/codereview |
I am trying to updagrade from spring 2.5.6 to Spring 3.0.5. We are using josso for single sign on. JOSSO(1.8.2) installs spring 2.5 libs in jboss(4.2.2) server lib folder. We have spring libs in ear lib folder, hence we have conflict between jboss server libs and ear libs. I tried to replace jboss server libs with spri... | stackexchange/codereview |
I am very new to Rails .
I am trying to get a lightbox on hover the User name..
In my code , i am having a line like
<%= hcard_link_to_user h(@blog.user.fullname), @blog.user, :class => "underline" %>
which displays the User name of the person who put the blog.
For a trial i have tried as,
In the View show.html.e... | stackexchange/codereview |
I am trying to use Valum's Ajax Upload to do file uploads on a Django-
based site I am making. Currently I am avoiding a form simply because
AU sends the upload as the entirety of the POST data in an ajax
request. Right now I have a very naive approach to doing this:
upload = SimpleUploadedFile( filename, request.raw... | stackexchange/codereview |
I have the following test script:
<?php
$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = "Floppy Jalopy\n";
fwrite($fh, $stringData);
$stringData = "Pointy Pinto\n";
fwrite($fh, $stringData);
fclose($fh);
?>
when run however and opened usign Notepad, the data is returned i... | stackexchange/codereview |
I need to assign display style (CssClass) to every CheckBox within CheckBoxList. I would like to do it separately for every CheckBox.
And the last requirement is that I have to do it on server side within my .net code.
| stackexchange/codereview |
I have recently analysed my website with pagespeed addon on firebug. It suggested me to set expiration on CSS, JS and image files.
I am wondering, how do I do this?
| stackexchange/codereview |
I'd like to use the Facebook social plugins (which are iframes) on my secure page. I have the facebook src attribute as "https://www.facebook...." which allows the page to render no problemo in Firefox, but for some reason, only on IE, this still triggers the warning that the page has both secure and unsecure elements... | stackexchange/codereview |
I want to run a batch file through java program. The batch file itself runs a exe file with some filename as arguments. I tried this by creating a C program and running that exe through java. Is there any other way to run a batch file which itself runs a exe through java. Thanks in advance...
| stackexchange/codereview |
I have a Swing application that uses a Java Thread to constantly perform some operation. The results of this operation update the contents of a graph in the UI:
class ExampleThread {
...
public void run() {
while (running) {
// extract some information
...
// show r... | stackexchange/codereview |
I have a text file that has all it's columns separated by \t (tab). There are 34 columns in total, but I only need to read and insert the first two columns, namely ID and name. The table structure is as follows:
CREATE TABLE temp.itemname (
id SMALLINT(5) NOT NULL,
name VARCHAR(255) NOT NULL,
PRIMARY KEY (id)
)
E... | stackexchange/codereview |
In Python I can do this:
animals = ['dog', 'cat', 'bird']
for i, animal in enumerate(animals):
print i, animal
Which outputs:
0 dog
1 cat
2 bird
How would I accomplish the same thing in Clojure? I considered using a list comprehension like this:
(println
(let [animals ["dog" "cat" "bird"]]
(for [i (range (... | stackexchange/codereview |
I was wondering what is the correct way to set the text of a TextView after a button has been pushed? I currently have an app that would change the text every time the activity was created (but for now it only sets the text as one value for testing purposes):
public void onCreate(Bundle savedInstanceState) {
super.... | stackexchange/codereview |
I'm building my first site using expressionengine and need to create members that work like this:
they can register and set into a pending state. once registered, admin will be able to select members and assign permissions to multiple channels where they will be able to view extra content on the front end.
I'm not sur... | stackexchange/codereview |
I am trying to use isDigit() to verify if a character in a string is not a digit.
if (aString.charAt(i).isDigit == false)
I am getting the error: cannot invoke isDigit on the primitive type character. What am I doing wrong?
| stackexchange/codereview |
I thought of this problem due to some of the answers I got to the following problem suggesting that I could use vector<T>::assign or copy with a back_insert_iterator
here. My problem is, what are the drawbacks and advantages of using one method over another?
| stackexchange/codereview |
Does exist any *.npy files reader/visualizer ? (for Windows)
| stackexchange/codereview |
The default jndi context in JBoss 5.1 for an EJB is "earname/ejbname/local". In some instances where injection is not available I need to manually do a jndi lookup, however if my ejb jar file is packaged in different EAR's I'd like to have a portable way to maintain a look up helper class.
I know a method to do this ... | stackexchange/codereview |
How can I make the statement:
SELECT column1 FROM db WHERE country in ('USA','BRA','CHN') and commodity='pork'
return
value1, value2, value3 (where value1 is for USA, value2 for BRA, value3 for CHN)
The best I got so far was a single column with all the values appearing as they are pulled from the database.
| stackexchange/codereview |
I am trying to perform CRUd operations in mongodb and scala..
i have written following code.this code is compiling succesfully but giving runtime exception.I am using scala 2.8.can any 1 help me out?
Error while execution:
Exception in thread "main" com.mongodb.MongoInternalException:
DBPort.findOne failed
... | stackexchange/codereview |
I'm using the Rails gem SimpleForm, but I think my question may be applicable to any gem.
https://github.com/plataformatec/simple_form
It has a lot of great features and customization, but I'm looking to go a bit further. For example, I really wish the markup generated had no default classes inserted into it, but I'd s... | stackexchange/codereview |
I have a Word macro that needs to run using Java. So I use a VB script to
run the macro as below. It does some editing in the Word document and I use
that "test.doc" to read as an InputStream. But I have to sleep the main
thread for a while to get the document changes in the "test.doc" file (varies
the time needed to... | stackexchange/codereview |
Consider this situation: You are editing template file from some wordpress theme and want to have it in CODAs live preview. As the paths is different it will doens't show live preview.
e.g I'm editing; /wp-content/themes/pixel/header.php
and want to have www.wordpress.loc in live preview window (I use "loc" for loca... | stackexchange/codereview |
hi everybody
I'm very new to IT field can anybody explain me relation between virtual machine and cloud computing .
In my firm they using a private cloud using ubuntu eucalyptus tool . They uses KVM.
when ever i demand the resource they says we will give u the virtual machine is cloud computing means providing virt... | stackexchange/codereview |
I have searched on this forum and haven't been able to find a solution to my problem.
I have been trying to add an icon for my program to show up on the taskbar and for the exe but everything I've tried has been failing.
I have gone to resource view and added my icon as a resource. the rc file came up but when I compil... | stackexchange/codereview |
I do need you help.
How can I adjust the following code in order to play a .wav file backwards?
Any help will be very much appreciated..Thanks.
Carlos
import java.io.*;
import javax.sound.sampled.*;
public class WavPlay {
public static void main(String[] args) {
SourceDataLine soundLine = null;
int BUFF... | stackexchange/codereview |
why sizeof("") is equivalent to 1 and sizeof(NULL) is equivalent to 4 in c-language ?
| stackexchange/codereview |
Possible Duplicate:
Why there is not a comprehensive c archive network?
Like Python has a Cheeseshop and Perl has CPAN?
Google results have a lot of C++ results and I am looking for purely C libraries.
PS: Looking for *nix libraries
| stackexchange/codereview |
I have spent days on this trying out all the JSON libraries including the JSON gem, Yajl-ruby, ActiveSupport::JSON and nothing can do this simple task:
user = User.find(1)
json = user.to_json
user2 = json.as_json # OR json.from_json
# OR JSON.parse(json)
# OR Yajl::Parser.par... | stackexchange/codereview |
I'm writing a password salt/hash procedure for my .NET application, largely following the guide of this article:
http://www.aspheute.com/english/20040105.asp
Basically the code for computing the salted hash is this:
public string ComputeSaltedHash(string password, byte[] salt) {
// Get password ASCII text as bytes... | stackexchange/codereview |
I have a mixed-mode DLL built in visual studio 2005. In dependency walker, my DLL is showing a dependency of the following CRT Dlls. Note this is on my Windows 7 developement machine.
c:\windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\MSVCP80.DLL
"\MSVCR80.DLL
"\MSVCM80.DLL
... | stackexchange/codereview |
Hello
I'm trying to send a simple GET request using flex mx:HTTPService:
<mx:HTTPService
id="service"
resultFormat="text"
result="loadJSONDataToTree(event);"
method="GET"
useProxy="false"
/>
Code that is supposed to send the request:
service.url = base_url + "workbench/pipeline/";
service.send();
Event handle... | stackexchange/codereview |
Went through the post and your suggested solution as in --
Which web crawler for extracting and parsing data from about a thousand of web sites
Have installed heritrix under /root/heritrix-1.14.4
Stuck at export HERITRIX_HOME=/PATH/TO/BUILT/HERITRIX .
The command runs silently, but cd $heritrix_home results in
-bash:... | stackexchange/codereview |
I constructed the radio button group using f:selectItems. I constructed the radio button as follows
<h:selectOneRadio>
<f:selectItems value="#{options}"/>
</h:selectOneRadio>
How to insert an image before every individual radio button in the above code?
| stackexchange/codereview |
We have a servlet that accepts image uploads. Sometimes when the uploads originate in our iPhone client (flaky connection) the saved image can end up being partly or completely gray. I suspect this is due to the connection being prematurely terminated and the servlet ending up processing an incomplete image.
Whats the... | stackexchange/codereview |
When I send order confirmations via PHPMailer, they usually end up in spam folders of Google, Yahoo and Hotmail and also take a long time to deliver. Is there a checklist or something of things I should be aware of when sending confirmations this way? Mail from most sites that I order from or register to gets delivered... | stackexchange/codereview |
I'm looking at server controls for the first time, and I've a question about this code:
[Bindable(true)]
[Category("Appearance")]
[DefaultValue("")]
[Localizable(true)]
public string Text
{
get
{
String s = (String)ViewState["Text"];
return ((s == null) ? "[" + this.ID + "]" : s);
}
set... | stackexchange/codereview |
Is there a dead simple socket interface in C++ that I could use with MS Visual Studio Express Edition? I know there is the WinSock library, I guess I am looking for a wrapper around that which is simpler to use.
I would consider the java.net library simple enough, however, MS VC++ Express is what I have to use. Is ther... | stackexchange/codereview |
I have a form which when submitted checks for a CSRF token and validates it. I'm trying to have the same security when I submit the form with ajax. But the ajax request doesn't submit the form itself, it just sends the data to the url with a post request. What would happen if the ajax request submitted this CSRF token ... | stackexchange/codereview |
My aim is to show the text - "Welcome username"
The username info is stored in the cookie. How do i access that cookie information to show it up in the Joomla! Article.
I would like to know if there's a way to do this without creating a module.
Thanks
| stackexchange/codereview |
I run a mail server on my web server, it has SMTP authentication enabled and I added my server's IP address to the whitelist, so no password is required to send out emails if they come from within the server. I did this to allow my web applications to use the SMTP service.
My question is can a spammer spoof a packet wi... | stackexchange/codereview |
I am trying to draw a circle using the following code.
-(void)drawRect
{
CGContextRef contextRef = UIGraphicsGetCurrentContext();
CGContextSetRGBFillColor(contextRef,1,0,0,1);
CGContextFillEllipseInRect(contextRef, self.frame);
}
I am getting my circle as expected, but at the edges of the circle truncated/int... | stackexchange/codereview |
I have 2 dynamic objects and I want to build one to contain all the properties:
var o1:Object = {prop1:val1,prop2:val2,prop3:val3};
var o2:Object = {prop3:val3a,prop4:val4};
and I need to obtain a third object that looks like that:
{prop1:val1, prop2:val2, prop3:val3a, prop4:val4};
Basically I need a way to iterate t... | stackexchange/codereview |
What are best practices for storing your gems in one git repository? Should they be kept in one repository? Should each gem be versioned on its own? I'm mostly concerned with gems that are shared on a per project basis - even though that defeats the purpose of a gem, which can be reused and shared in other projects. I ... | stackexchange/codereview |
When using $db->sql_query in PHPBB3, how would I get the id of a row created with an insert statement?
| stackexchange/codereview |
I am creating an to-do list iphone app and facing a problem related to version update.
During each Build & Debug process, I discovered that the my last testing data is all gone. It's fine for development and testing but how about once the app is published and when I publish a new version update? I would like my users t... | stackexchange/codereview |
I have an app with country preferences. A user will have 2 types of country preferences - event and research. In the future there may be more. I was leaning more towards having 2 tables to represent this over using STI. I'm having a bit of trouble configuring Rails elegantly to do this. I could hack it but I would... | stackexchange/codereview |
This code making a combo box.
public String getColor(String colorName)
{
mySB.append("<select onchange=\"ChangeColor(this);\" style=\"font-size:0.8em;\" id=\"").append(colorName).append("\" name=\"").append(colorName).append("\">")
.append("<option value=\"\"> </option>");
}
function ChangeColor(color... | stackexchange/codereview |
I'm trying to use a super simple API from is.gd:
http://is.gd/api.php?longurl=http://www.example.com
Which returns a response header "HTTP/1.1 200 OK" if the URL was shortened as expected, or "HTTP/1.1 500 Internal Server Error" if there was any problem that prevented this. Assuming the request was successful, the bod... | stackexchange/codereview |
Hi I have silverlight client timeout problem tried the
TimeSpan getSessionMapTimout = new TimeSpan(0, 20, 0);
Client.Endpoint.Binding.CloseTimeout = getSessionMapTimout;
Client.Endpoint.Binding.ReceiveTimeout = getSessionMapTimout;
Client.Endpoint.Binding.SendTimeout = getSessionMapTimout;
Client.Endpoint.Binding.Op... | stackexchange/codereview |
Here is my situation:
I've got a m:n-relation between artists and events. What I'm trying to do is to get a IQueryable containing only events that include a certain artist. I'm using a repository for my data access layer. Obviously the following approach doesn't work:
_db.EventSet.Include("Location").Where(e => (e.Arti... | stackexchange/codereview |
I'm stuck with retrieving data from a MySQL-database in an efficient way.
I have a table with a lot of items. Each item can have a status 1, 2 or 3. I want to select item with certain statusses, depending on links to these records in other tables.
Example:
A table items with fields: id, name, status, ...
A table bou... | stackexchange/codereview |
If I have a DB named myDB with one of the user defined Schema as Schema1..Is the following query correct if I want to create a simple table?
use myDB
CREATE TABLE Schema1.Users
(UserID bigint NOT NULL,
UnID nvarchar(100),
UserName nvarchar(100),
PRIMARY KEY (UserID))
It prefixes dbo in the table name
| stackexchange/codereview |
I've implemented firePHP with ZF (http://www.christophdorn.com/Blog/2008/09/02/firephp-and-zend-framework-16/) which works like a charm. However what I'm noticing now that my application is growing and that the amount of firePHP output grows is that it's beocming increasingly difficult to review it. The main issue for ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.