instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
(This is not the actual code I'm using, although this sums up the idea of what I want to do)
class Connection < ActiveRecord::Base
belongs_to :connection1, :polymorphic => true
belongs_to :connection2, :polymorphic => true
end
class User < ActiveRecord::Base
has_many :followers, :class_name => 'Connection', :as ... | stackexchange/codereview |
I have a rake task to populate my db which depends on faker, so at the top there's:
require 'faker'
The problem is I don't install faker in production so all rake commands (like db:migrate) fail on that require line, saying faker is missing.
Obviously I could install faker in production to get around this, but I don't ... | stackexchange/codereview |
I'm working on a object-oriented Windows API wrapper library, written in C++, and I have two projects inside the solution:
The actual library project;
A "test" project, where I write code that uses the library for testing purposes.
My goal is to be able to include and use the library header files on the test project,... | stackexchange/codereview |
I seem to have forgotten how to change the root view for a UINavigationController
I have this code:
[window addSubview:navController.view];
but where do i set (preferably through interface builder) the root view please?
| stackexchange/codereview |
Does anyone know what to edit in the android_winusb.inf file of the usb_driver folder inside the android sdk folder if I want to add the new HTC Desire HD device to it?
I've read people posting different things to add for different devices. I could not find what to add for HTC Desire HD.
Your help is greatly appreciate... | stackexchange/codereview |
Spring 3.0 added a lot of features to be java 5 compatible. Many methods are parametrized now.
For example HibernateTemplate.executeXXX(), HibernateTemplate.getXXX(), HibernateTemplate.mergeXXX() return T,
HibernateTemplate.loadAll() returns List<T>.
But findXXX() methods return plain List, so I have to cast it to so... | stackexchange/codereview |
Due to a problem I'm encountering with STS2.3.3.M2 and JUnit tests, I decided to try out the newest STS (v2.5.1RELEASE). I installed AccuBridge since Accurev is our version controller and I was trying to checkout a project from depot... except that my STS hangs when I try to select the depot.
Steps I did:
1. New > Proj... | stackexchange/codereview |
I've got an xml file. How could I generate xml_builder ruby code out of that file?
Notice - I'm sort of going backwards here (instead of generating xml, I'm generating ruby code).
Pretty formatting isn't a big deal - I can always run it through a formatter later.
| stackexchange/codereview |
My question regards the situation were tablespace used for primary key index differs from tablespace used for the table itself. Will Oracle use this index or it becomes unusable?
Because when i tried to import the schema to Oracle that contains that table. Oracle complained with warning saying that index for this prima... | stackexchange/codereview |
Suppose I have a simple makefile like:
hello:
echo "hello world"
bye:
echo "bye bye"
Then in bash I want something like:
make h < tab >
so it can complete to
make hello
I found a simple way like creating empty files hello and bye but I'm looking for something more sophisticated.
| stackexchange/codereview |
Here's what I have so far:
import os.path as op
for d in map(chr, range(98, 123)): #drives b-z
if not op.isdir(d + ':/'): continue
The problem is that it pops up a "No Disk" error box in Windows:
maya.exe - No Disk: There is no disk in
the drive. Please insert a disk into
drive \Device\Harddisk1\DR1 [Cancel, ... | stackexchange/codereview |
I've a requirement where I'll have settings bundle which will show app in iPhone Settings.
Also Application itself will have a settings page.
Both App in iPhone settings and Application settings will show same info.
I know how to read settings bundle details and update in application settings.
But how to do it in othe... | stackexchange/codereview |
I'm skinning a Flex app and I want the graphics to be vectors. I have the design material in an Illustrator file. I want to export from there (or through Flash) as some sort of vector format and use it to skin spark components in Flex. However, I'm having trouble placing an SWF. I've tried the following (among others) ... | stackexchange/codereview |
I am trying to make a wrapper in Objective-C so I don't have to write c++ outside the library classes.
The Library main file is LLAHProcessor.h .cpp
My Wrapper is LLAHProcessorWrapper.h .mm
It compiles fine, but when I add LLAHProcessorWrapper to other class, (Lets say an UIView) as a member variable I get hundreds of... | stackexchange/codereview |
How can i add button as items in a ListView?
| stackexchange/codereview |
After installing Ruby and Ruby Gems:
$ sudo apt-get install ruby rubygems
...
$ ruby -v
ruby 1.8.7 (2010-06-23 patchlevel 299) [i686-linux]
$ gem -v
1.3.7
If I try to install Rails I get an error, and even though it seems to be the documentation only, rails isn't installed:
$ sudo gem install rails
...
Successfully in... | stackexchange/codereview |
I notice that we can set the language for a form by using Xml:lang="en-US". I want to see the named of other languages but not sure where those can be accessed from C#.
Please help.
Edit
I prefer to know an enum type which list the value set. Is there one available? Or we have to create that ourselves?
Since it seems ... | stackexchange/codereview |
I try to sign in using Google Apps open id with OpenID4Java library.
I discover the user's service using the following code in the consumer class:
try
{
discoveries = consumerManager.discover(identityUrl);
}
catch (DiscoveryException e)
{
throw new Open... | stackexchange/codereview |
I have the following situation (simplified):
I have a script file.php?file=foo.pdf that is delivering files outside the document root (it has no html, it's just the download push script). Some files are protected by the script - in that case the user gets redirected to login.php. When successfully logged in, a session ... | stackexchange/codereview |
I have a set of PHP, HTML, CSS files that make up a website. I have got these files from a friend.
Is there a way to create a project from these existing files in Komodo Edit?
| stackexchange/codereview |
generally I know there are workarounds for this, but is there any simple way in the iOS SDK to hide a superview without hiding its subviews?
I have a parent view that is a background to a few other views. I would like to hide the parent, either through setting its transparency to 0, or setting "hidden" or something - t... | stackexchange/codereview |
I frequently get an app crash while the ListView is calling on the Adapter to provide backing data. Device is a Sony Experia X10 with Android 1.6.
This is just a Seg fault violation, however I dont know how i can fix it?? I do not have any native components - its a pure java app.
I/DEBUG ( 1955): *** *** *** *** **... | stackexchange/codereview |
Has any of you guys ever tried writing a 2d game in C++ using Qt's QGraphicsScene/QGraphicsView classes for the purpose of rendering and collision detection?
Do they perform well if there are many moving/animated objects on the scene? Are there any caveats? In general, can you point me to any games written using Qt's g... | stackexchange/codereview |
In my code, I have a class that maintains a number of lists. We'll focus on one of them for the moment, since it's the one that highlighted the problem.
internal List<Badge> Badges { get; private set; }
In the code, I add Badge instances to this list when an XML document is parsed. Later, I want to update the individu... | stackexchange/codereview |
I'm creating quick web app that needs to send a php-created message from within php code. cURL is apparently the tool for the job, but I'm having difficulty understanding it enough to get it working.
The documentation for the API I'm dealing with is here. In particular I want to use the simple GET-based sms notificat... | stackexchange/codereview |
Does anyone know about a lightweight portable C++ threading library, that can work on Windows, Linux and Mac OS X?
Specifically in my case, I do a simulator that after each time passes exports simulated data. I would like to run only one thread (simulate) that would once in a while start another thread (export). The on... | stackexchange/codereview |
I have SharePoint 2007 and I have a list view that has a text field that, when shown with quite a few other fields, is only about 1 word narrow.
Is there a way to expand that column without access to css or other web programming languages?
| stackexchange/codereview |
I want to perform an svn update to a specific date, and I can do this with svn update -r {2010-10-17}. Unfortunately when this encounters an external it will do the update within the external without passing through the -r {2010-10-17} option. This results in us getting the correct past revision of the base code, but... | stackexchange/codereview |
I am working on a web application which supports file uploading. I am already familiar checking the size in server side, but i wanted to check the file size in a client side.
I know its a browser limitation that we cant access the file properties for security reasons. So i have tried both swfupload and uploadify compon... | stackexchange/codereview |
I'm trying to load images from the web in my wpf application.
The idea is the following:
When I click on a button, a popup with additional information is raised. In this popup I'm using some images from the web.
The problem:
When the popup is being loaded the systems hangs while waiting for the images. I'm binding
the... | stackexchange/codereview |
I need something that can provide the information GetFontUnicodeRanges provides, but I can't find anything similar. I have to create a charmap-like control that will be used in a larger project. Any ideas?
Thank you.
| stackexchange/codereview |
I'm trying to pass a string from C# to Delphi built DLL.
Delphi DLL expects PChar.
Here is Delphi export
procedure DLL_Message(Location:PChar;AIntValue :integer);stdcall;
external 'DLLTest.dll';
C# import(last one I tried, there were string, char* ref string ...)
[DllImport(
"DLLTest.dll",
Cal... | stackexchange/codereview |
I'm trying to publish my portal application to WPS 6. I get the message "Could not publish to the server". Moreover the Details button is disabled.
I checked IBM\WebSphere\PortalServer\log folder, I could not find any related logs for this error. Please suggest ways / ideas / workarounds to proceed / resolve this issu... | stackexchange/codereview |
My query below updates a record using variables to identify the data in the DB. I think my syntax is correct although it might be wrong. Also, I am absolutely sure that the variables have legitimate values in them. Why won't this query work?
UPDATE `databasename`.`".$tablename."` SET `stock` = '".$f."' WHERE `myers... | stackexchange/codereview |
If it is possible, how would you go about doing it?
| stackexchange/codereview |
I am having a NPE on some code and I have no clue why. I am sure it is something trivial, but I can't seem to find it - here is what I am trying to do.
Snap a photo, detect faces, if there are no faces then display the image on an ImageView and allow the user the option to snap another photo.
Here is my code:
if (face... | stackexchange/codereview |
I have a .xsl that transforms xml from docbook to DITA. A problem that I'm running into, is that the .dita file thats created destroys xrefs. To fix that, I want to try to enforce a dita version during the transform ( I hope thats possible). So my question is: How do I have the transformed document respect DITA 1.2 w... | stackexchange/codereview |
I have a unit test that uses the hamcrest library (1.2). It's important that it's 1.2 because I want to include a namespace context in the hasXPath matcher. This is a maven project and I have all my dependencies set up to work correctly. (I make sure that I only use junit-dep and not junit - a pain but I've confirme... | stackexchange/codereview |
Is there a project or project in progress for creating a Mercurial plug in for Delphi XE?
Failing that, where can I learn more about creating one?
| stackexchange/codereview |
Im tryingh to create a list view but im having issues designing it how I want it, I know about Windows Presentation foundation (WPF) but as im studying C# and the language itself im tackling it from the more difficult prospective.
I would assume that View.List would be the way to go with a small tinker with OwnerDraw a... | stackexchange/codereview |
How to identify the Blackberry device currently running the application?
For example: how to identify whether the current device is a Storm or a Torch?
BlackBerry Storm 2 (9520/9550)
BlackBerry Tour (9630)
| stackexchange/codereview |
Problem
I am not able to refresh the page with window.location.reload() which is used inside the success call made to yahoo.
Any hints how it can be fixed.
The whole of the code is working fine it is making call to cse server getting contents from there saving on yahoo. but i have to manually refresh the page to bring... | stackexchange/codereview |
I've installed EasyPHP, copy into "www" folder my site, but when i try to open it there is server error:
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please con... | stackexchange/codereview |
I am trying to get json response from the server. But jquery only got html. By the way I am using zend framework. Any idea?
Thanks
| stackexchange/codereview |
Here is the original xml file
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<setup>
<cap>33</cap>
</setup>
<setup>
<cap>dd</cap>
</setup>
</configuration>
In the example below I delete the node where cap equals to 33
Dim Cap As integer = 33
Dim query = From q In XElement.Load(E... | stackexchange/codereview |
ie6 and ie7 arent picking up class styling for map overlays (google.maps.OverlayView). has anyone else had this issue and worked it out?
eg i have an overlay like:
<div class="cp-map-pin cp-map-pinTboth" style="position: absolute; left: 326px; top: 241px;">
<div class="cp-map-pin-inner">
<div class="cp-map-... | stackexchange/codereview |
I have 5 tables with field name name . & which name is appear maximum time in each table then I need to find out which output is maximum in all answer
| stackexchange/codereview |
I recently developed a catalyst application which I would now like to deploy.
My host (OVH) allows perl applications via mod_cgi.
Unfortunately, I'm used to running my catalyst apps on mod_perl.
I have no experience with mod_cgi whatsoever, and I can't seem to find
good documentation on how I should get my catalyst app... | stackexchange/codereview |
I am having a HTML like
<a href="yourpath/controller/views/username" class="classname">username</a>
How to read the attribute href's value by classname using the Prototype.js.
Please give some suggestions.
| stackexchange/codereview |
I have an animated MovieClip of a fly that spawns at a random location and moves across the screen by bouncing off the walls. But every time the animation starts over, it seems to "jump" to a random location. Here is the code I have for when it spawns:
private function beginClass(e:Event):void{
_root = MovieClip(roo... | stackexchange/codereview |
I am trying to write a iPhone group chatting/message-board app which will have a backend component. I expect users to register with our system and start posting messages on chatrooms/message-boards. These message-boards can have more than 2 individuals, must support real time notifications and should be accessible from... | stackexchange/codereview |
Random question that crossed my mind:
If I define an array in PHP like so:
$arr = Array();
$arr[7392171] = "some value";
How is this stored internally? Does it map the key 7392171 to "some value", or does it work like JavaScript and put 7392170 empty values before it?
I'm guessing it's the former, because indexed and ... | stackexchange/codereview |
I have a page which,
If a variable is set(in a session)
it will do an action,
then it unsets the session.
Now it has to refresh itself.
This is where i am stuck.
Is there a way to get the exact url to the current page?
or is there a function to do this?
so header('location: ???');
| stackexchange/codereview |
what's the fastest way to get only the important_stuff part from a string like this:
bla-bla_delimiter_important_stuff
_delimiter_ is always there, but the rest of the string can change.
| stackexchange/codereview |
This problem is so simple I can feel the RTFM's coming. However, I've been looking at the docs (Inline, Inline-C, Inline-C-Cookbook ) all morning and I can't figure out how to solve this problem.
I want to use inline C, but I don't want to have C code in the same file as my perl code.
(Emacs doesn't like having two ... | stackexchange/codereview |
I am getting "SMTP Error: Could not connect to SMTP host." error while trying to send mails using GMAIL SMTP and PHPMailer..
The code is working perfectly in local environment but getting error in live (bluehost) server.. Please help
| stackexchange/codereview |
I want to create a MySQL database which should contain all the users of my site, and also There should be an option of adding other users as friends. What should be the fields of database.
| stackexchange/codereview |
Given the code below, how can you get unbind('click', h) to work?
It doesn't currently work. I could make h a global variable but I don't know how to "set this up" given the msg variable is set within the function.
??
function x(open) {
var msg = "blah";
var h = function (e) {
e.preventDefault();
... | stackexchange/codereview |
I've 4 bytes of data and need an 8 bytes array for a security operation. I should produce these 8 bytes form the 4 bytes byte array and this should be reproducible.
I was thinking of using exact byte array and adding 4 extra bytes and fill them with AND, OR, XOR... of the initial array in a known sequence. I'm not sure... | stackexchange/codereview |
i,
I have one Materialized view on one server which is created by DB link .
There is one job running on that Mview.(craeted with dbms_refresh.make earlier).
Now I have craeted 3 new fields in original table.
there was job running on the Mview, I dropped the job by DBMS_refresh.destroy.
Then dropped the Mview ( i forgot... | stackexchange/codereview |
This is pretty noob question, if I have an html button:
and when the user presses this button then I want the code in this jsp code to be run, how can I do this? or the code that I want to run should be on another .jsp page?
I guess the only way to do this would to do am a href to itself in the button?
| stackexchange/codereview |
this is the first time i use django. I'm really a beginner. And this is the first time i see the page "It worked! Congratulations on your first Django-powered page.". it's mean i'm now have a django+python in my xampp server. So i cam to the question ?
How to know what django version i use? is it 1.0, 1.1, or 1.2 ?
... | stackexchange/codereview |
I have this 3 lines of code which I use to hold the state of items in my listview when scrolling, but my problem is, the last line of code only gets executed. This is the code block:
holder.viewName.setTextColor((priority.equals("Low")? Color.BLUE: Color.GRAY ) );
holder.viewName.setTextColor((priority.equals("Medium")... | stackexchange/codereview |
I'm aware some (all?) daemons fork when they're being started. I'm under the impression this is to run the child processes as less privileged users, especially if the daemon is something like a HTTP server.
Why is this necessary though? Couldn't a process start up and drop its privileges without forking a child process... | stackexchange/codereview |
Consider my sample code:
var p512Sector:PByte;
.....
getmem(p512Sector, 262144);
FillChar( p512Sector,262144 ,0);
When I run the program, Delphi gives me an violation access error. Why?
| stackexchange/codereview |
I have a form....
<form id="orderform" method="post" orderform="" name="">
<table width="533" cellspacing="0" cellpadding="2" border="0" id="ordertable">
<tbody>
<tr>
<td>Product Code</td>
<td>Meterage</td>
<td>Sample Img</td>
</tr>
<tr class="item">
<td class="prodcode">
... | stackexchange/codereview |
I have an object that saves data to Redis. It needs to block as less as possible, so I've decided to use Celery to offload the task. When I try to .save() the object outside of celery, it connects to Redis and stores the data just fine. However, when I try to do the exact same thing from a Celery task, it looks like it... | stackexchange/codereview |
I'm trying to get the following functionality in my iPhone app:
When backgrounded, stays running (doesn't have to do any background work)
When resumed, app picks up where it was left off
I'm mainly wanting the same screen on my app still up, as there are several UINavigationControllers within a UITabBarController.
I ... | stackexchange/codereview |
I'm not so sure what that would imply and my textbook is dancing around the answer.
| stackexchange/codereview |
In C, how should I execute external program and get its results as if it was ran in the console?
if there is an executable called dummy, and it displays 4 digit number in command prompt when executed, I want to know how to run that executable and get the 4 digit number that it had generated. In C.
| stackexchange/codereview |
Often, I need to do an expensive task then display results. So I ramp up a thread. Is there less code, or a better way to doing this than I am currently using?
Example:
ThreadStart job = new ThreadStart (delegate {
Search d = new Search ();
x = d.DoSomeWork();
InvokeOnMainThread (delegate {
ctl.Sho... | stackexchange/codereview |
I'm using Delphi7 and I'd like to bold some days of a TDateTimePicker control.
I've read that, originally, it's a descendant of TMonthCalendar, thus it should be possible.
I've also found some example code, but it's in C#:
http://social.msdn.microsoft.com/Forums/en/winforms/thread/03527023-694d-41ab-bffb-18c59fca1fda
P... | stackexchange/codereview |
I can make numpy ndarrays with rec2csv,
data = recfromcsv(dataset1, names=True)
xvars = ['exp','exp_sqr','wks','occ','ind','south','smsa','ms','union','ed','fem','blk']
y = data['lwage']
X = data[xvars]
c = ones_like(data['lwage'])
X = add_field(X, 'constant', c)
But, I have no idea how to take this into an R data fr... | stackexchange/codereview |
I'm in the process of migrating our Map application from V2 to V3 (3.2).
I had a loop that read LatLng and put them in a array to display as a Polyline on the map.
I then set the length of my array to 0 and then fill it again in the loop with other LatLng to display another Polyline... and so on (many times).
It was wo... | stackexchange/codereview |
Given the follow data class,
public class EmployeeMenu
{
public int ID { get; set; }
public string HeaderName { get; set; }
public List<string> ItemNames { get; set; }
}
how can I get a sub-query into the ItemNames field?
My current query of
IQueryable<EmployeeMenu> retValue =
from mh in menuHeaders
se... | stackexchange/codereview |
I'm currently writing a script that would extract all the dates from a message and convert them to timestamps. PHP's strtotime (similar to Unix's date -c 'some date') would be perfect for this, as it recognizes all kinds of dates, such as:
5pm today
2010-11-15 16:30
Thursday 8:00
However, I'm having trouble finding t... | stackexchange/codereview |
EDIT:
At the suggestion of J. F. Sebastian, I can get the same error much more simply:
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.
IPython 0.10 -- An enhanced Interactive Python.
? -> Introduction and overview of IP... | stackexchange/codereview |
PDF allows you to set permissions such as a document can be printed just once or just 10 times etc. I believe Adobe Acrobat Professional allows you to set those.
My question is it possible to do so in Python programmatically? If so how?
| stackexchange/codereview |
I've been working on a project on my local server. The time has come to upload it so I did just that. I started to test it out online and my navigation isn't working.
The navigation works by doing this:
<a href="index.php?p=add">Add</a>
The page then checks whether $p exists and if it does, it shows the relevant conte... | stackexchange/codereview |
<?php
set_time_limit(0);
$errorArr = array();
if (!isset($argv[1]))
{
array_push($errorArr, "You forgot to enter a host.");
}
if ((isset($argv[1])) AND (!filter_var($argv[1], FILTER_VALIDATE_IP)))
{
array_push($errorArr, "The host you entered is not a valid IP address.");
}
if (!isset($argv[2]))
{
array_pu... | stackexchange/codereview |
I'm facing a problem that i can't explain :/
I have created a route for a specific action.
And it shows up into rake routes result :
update_attendance_admin_module_instance_activity_instance_list
POST
/admin/module_instances/:module_instance_id/activity_instances/:activity_instance_id/lists/:id/update_attendance(.:form... | stackexchange/codereview |
I have a spinner and its adapter.
I have a customized the list and an the spinner view.
The value of the spinner can be modified by 2 ways :
- by a user choice
- programaticaly
When the user makes a choice, and only if this choice is different from the selected value, I may (or not) want to show a second activity to ma... | stackexchange/codereview |
What is/are the difference(s) between these two? And why would I want one or the other or both? This is for a commercial .NET C# WPF application that will be packaged via WiX. I will need a trial license to purchased license capability.
| stackexchange/codereview |
Is there a replacement in Scala for Java's int Arrays.binarySearch(Object[] array, object)?
The problem is that Scala's Arrays are not covariant, so I would have to cast my stringArray: Array[String] like this first:
stringArray.asInstanceOf[Array[Object]]
Is there a better solution?
| stackexchange/codereview |
I'm trying to learn LISP and was going through a code example where something similar to the following code is used:
(list 'quote 5)
This evaluates to '5 in the REPL. I expected it to evaluate to ('5) or (quote 5)
I'm trying this out in the CLISP REPL.
Any help would be appreciated.
| stackexchange/codereview |
i am following the below link...
http://mobile.tutsplus.com/tutorials/iphone/iphone-sdk-in-app-purchases/
In that link they have given like below
"After logging into the Provisioning
Portal, select the “App IDs” tab.
Click “New App ID.” You will need to
enter a common name and a unique
bundle identifier. The c... | stackexchange/codereview |
Am working on a project in swings and in that am adding rows to a JTable in a while loop.
My Scenario is this :-
As soon as the user clicks a button the program enters a while() loop and start adding rows to the DefaultTableModel of the Jtable one by one till the while loop terminates.
But the thing is that the table g... | stackexchange/codereview |
Is there a way around this issue?
Take the following code...
namespace ReflectionResearch
{
class Program
{
static void Main(string[] args)
{
Child child = new Child();
child.GetType().GetProperty("Name");
}
}
public class Parent
{
public string Name
{
get;
set;
}
}
public class Child ... | stackexchange/codereview |
How do I add padding to a float:right item without having it to mess up everything? Isn't padding supposed to work on the inside not the outside?
Look at what happens with some padding on the green part: http://lauradifazio.altervista.org/cms/
| stackexchange/codereview |
I've got this query
UPDATE linkeddb...table SET field1 = 'Y' WHERE column1 = '1234'
This takes 23 seconds to select and update one row
But if I use openquery (which I don't want to) then it only takes half a second.
The reason I don't want to use openquery is so I can add parameters to my query securely and be safe f... | stackexchange/codereview |
Users login Facebook on my website via an URL that redirects them to
https://graph.facebook.com/oauth/authorize?client_id=116908145XXXXXX&display=page&scope=offline_access&redirect_uri=http://localhost:8000/account/services/?service=facebookcallback
On the callback page I make a request with the code I receive to get t... | stackexchange/codereview |
UnicodeDecodeError
Appears while trying to access any of the files from site media folder.
Full traceback presented in debug mode:
Environment:
Request Method: GET
Request URL: http://127.0.0.1:8000/site-media/img/image.png
Django Version: 1.2.3
Python Version: 2.7.0
Installed Applications:
['django.contrib.auth',
'd... | stackexchange/codereview |
I was reading an article the other day the showed how to run SQL Update, Insert, or Deletes as a whatif type scenario. I don't remember the parameter that they talked about and now I can't find the article. Not sure if I was dreaming.
Anyway, does anyone know if there is a parameter in SQL2008 that lets you try an in... | stackexchange/codereview |
I'm seeing a problem where a Queue is not backed up however the time for the consumer to actually execute the JMS message is between 100 - 200 seconds from creation (as measured via the JMSTimestamp-CurrentTime).
The flow was fairly low to the queue, less then 30 messages a minute. I was able to resolve the issue by... | stackexchange/codereview |
Ok I'm having a problem with this calculator. I've been assigned the project and I can only use addition and subtraction. The first part of the assignment was to create it using Scanner class. So I created a loop and the calculator works...but the multiplication and divison is off. It basically just keeps adding number... | stackexchange/codereview |
Does anyone know if there is an event which is fired off on success of the client side validation and how I would go about using this.
I have enabled it but I need to run some script onSuccess.
<% Html.EnableClientValidation(); %>
Thanks in advance.
| stackexchange/codereview |
How do I register my application to be the default application to open "aidelicense" files? I'm using the AquaticPrime Framework and the AquaticPrime Developer application to make licenses.
Thanks!
| stackexchange/codereview |
I have two tables : apartments and images, table images has foreign key on table apartments.
How to insert with LINQ ( C#) with transaction apartment and get that primary key ( apartment.id is auto increment ) so I can insert records in images in same transaction with real foreign key ?
| stackexchange/codereview |
I want to pass a diffrent number of strings to a function in java, it suppose to be the strings to filter a query by, it could be 2-4 strings.
What do you think will be the best way to do that?
a) creating an overload for the same function with different number of parameters?
b) create a new instance of an array of str... | stackexchange/codereview |
I would like to change the height and width of the image. Displays the image using the canvas:
canvas.drawBitmap (_image, 0, 0, null);
How to change the size of the bitmap?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.