instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a Silverlight DataGrid with two columns. The headers of these two columns header have to be shown with a text box and column header title or name so that the text box can be used for filtering later.
So, I have used the following code to display the text box using a style:
<Style x:Name="mytemplate"
x:K... | stackexchange/codereview |
I was wondering if I could add a user control to a page with a parameter and then access that parameter in the code behiind for initiallization.
For example on my aspx page i would have somethign like.
<%@ Register TagPrefix="uc1" TagName="myMap" Src="~/Map.ascx" %>
blah
blah
blah
<uc1:myMap ID="myMap1" runat="server... | stackexchange/codereview |
I have been looking around and seem to find lots about aligning a div vertically however not with a dynamic height div surrounding it.. i have a moch up of what i require, built from all sorts of different templates i have found.. i just cant get it to do what I want maybey i am totally wrong?.. i thought it would be s... | stackexchange/codereview |
From dahlbyk answer to this question : Map two lists into a dictionary in C# , Leppie wrote this comment:
Pity there is a need for a Zip method. If only more statically typed languages would support generic variadic parameters, Select would handle this (like map in Scheme). – leppie
What does that mean? (I don't know... | stackexchange/codereview |
I have a billion word corpus which I have collected in a scalar. I have a .regex file that contains all the stop words that I want to eliminate from my data (text).
I don't know how to use this .regex file, so I have made an array and stored all the stop words of the .regex file in my stop word array.
To remove the st... | stackexchange/codereview |
Hello
Is it possible to manipulate a dovcot server or any like server with CURL to return email for an email address?
I've been unsuccessful with imap_open and am in need of a new alternative.
I've been able to login using CURL but after that I do not know where to go. This is what is outputted after login:
+OK Doveco... | stackexchange/codereview |
Is there any way to be notified / have your Cocoa application listen for changes in the network connection (disconnect, connect, etc.)? How does something like HardwareGrowler do it?
| stackexchange/codereview |
I have made a toolchain using this script: http://gist.github.com/403608 (more or less modified to get it to work)
Everything is installed and now when I try to compile using it I get an error when I ./configure it says that my C compiler cannot create exeicutables. I'm thinking that my compiler just doesn't know wher... | stackexchange/codereview |
I've got a JSP page which allows users to enter time periods throughout a 24 hour period, they are stored as Strings from the request such as :
13:00
14:00
15:00
Whilst iterating through these values, I need to perform a check to make sure that the time in question is after the previous one, such as the above.
I'm t... | stackexchange/codereview |
In my WebView, I have some block elements that have a background color (different than white). However, the background color does not go all the way across the sky.. um, screen. Instead, it leaves a small white strip to the right, for where the scrollbar would go. Now, I want the scrollbars to appear only when scrollin... | stackexchange/codereview |
Situation: Got a div with buttons images. Div needs to fadeIn on hover. Works in all browsers, except Internet Explorer. When I give the div a background color it suddenly works.
Check: http://ListAndPlay.com , top left are the controls.
The hover won't work in IE, try to add a background color to #buttons and it sudde... | stackexchange/codereview |
I have some xibs with all sorts of text controls (UITextFields, UITextViews). Since the keyboard obscures some of these text controls when text input starts, I followed Apple's guideline for managing content located under the keyboard.
In short, the solution involves moving all interface elements on a UIScrollView. Doi... | stackexchange/codereview |
When I attempt to push to my heroku.com remote git repository, i get this message:
ssh: connect to host heroku.com port 22: Connection refused
I can easily work with my repository on github with the same ssh key.
Entering:
$ssh git@github.com #outputs: success message
$ssh git@heroku.com #outputs: ssh: connect t... | stackexchange/codereview |
Say I have a bunch of local constants in my code behind that I want to use as headers, for example:
const string TYPE_HEADER = "Type";
const string LOCATION_ HEADER = "Location";
etc.
Is there any way I can bind the headers of my DataGridColumns to these like events are bound to local methods, for example:
<data:DataG... | stackexchange/codereview |
Silverlight (even 4, sigh) seems unable to have a ListBox change ItemsPanel at runtime. I'm already successfully binding my ItemTemplate, which works fine, but ItemsPanel, once set, doesn't seem to be able to be changed at runtime. Are there any workarounds for this?
Most (all) of what I've found online works for WPF... | stackexchange/codereview |
I need to get all the content inside the body tag of an HTML file using C#. Are there any good and effective ways of doing this?
| stackexchange/codereview |
when I selected row, change the backgroundimages?
| stackexchange/codereview |
The problem is how to include the needed files for a jquery datepicker for say someone in Sweeden or Russia so this code works as expected.
var browserLang = $('#browserLanguage').val(); //this value is set on serverside
if (browserLang !="en-ca" && browserLang != "fr-ch" && browserLang !="en-gb" && browserL... | stackexchange/codereview |
I'm developing as small diabetes program using Delphi 5 and ADO. I do a little query like this:
function GetLowestGlucoseLevel(StartDate:string;EndDate:string): Integer;
var
Q:TADOQuery;
begin
try
Q:=TADOQuery.Create(Application); //Separate unit, owner set to App
Q.Connection:=dtMod.ADOCon;
Q.Di... | stackexchange/codereview |
I am trying to implement asynchronus http client for Android and I am haveing a trouble with type mismatch:
The method execute(HttpUriRequest) in the type HttpClient is not applicable for the arguments (HttpRequest)
I am doing all based on this tutorial: http://blog.androgames.net/12/retrieving-data-asynchronously... | stackexchange/codereview |
Is it possible to change the background color of HTML header text in JavaScript?
Edited: oops - i did forget to add that is it header text in jqGrid..
i'm sorry about that..
| stackexchange/codereview |
I am trying to follow this guide to use Facebook on my site:
http://www.deviantcoders.com/articles/aspnet-membership-and-role-provider-facebook-connect-part-2
But when I try to use API api = new API(); it can't find the class:
The type or namespace name 'API' could not be found (are you missing a using directive or an... | stackexchange/codereview |
Folks,
In a nutshell, I want to replicate this dialog:
It's a Visual Studio 2010 ASP.Net MVC project. If I execute this command, I get all the files I want, including the transformed web.configs in the "C:\ToDeploy" directory.
I want to replicate this on the command line so I can use it for a QA environment build.
I'... | stackexchange/codereview |
I'm building a Rails 3 app. I'm trying to learn Cucumber with Capybara.
Do I need JRuby to run Capybara via Cucumber?
I've used Webrat, but many people seem to be using Capybara,
so I'd love to try.
I don't need JavaScript testing right away, but I want to install
Capybara if I need in the end.
I read and read the Ca... | stackexchange/codereview |
I hate to admit this: I'm building a complicated, but gmail-friendly HTML email blast (inline styling). Anyway, it's a game of tables and split images, and I've seemed to have forgotten all my 1995 table mojo.
http://www.highgatecross.com/development/tables/
<table border="0" cellpadding="0" cellspacing="0">
<tr>
... | stackexchange/codereview |
I am trying to use EF4 with the SQLDependency object with not much luck.
I have created my own queue and service and want my WPF application to monitor this queue for data changes so that I can update the UI (opted for trying this rather than constantly querying the database).
Even though on application startup I call;... | stackexchange/codereview |
From http://docs.python.org/library/time.html:
time.mktime(t):
This is the inverse function of localtime(). Its argument is the
struct_time or full 9-tuple (since the
dst flag is needed; use -1 as the dst
flag if it is unknown) which expresses
the time in local time, not UTC. It
returns a floating poin... | stackexchange/codereview |
I'm calling a function in the element itself via an onclick attribute because I need php to dynamically give a value in one of the function's parameters. When I try to reference the calling element in the function via $(this), it ends up referencing the entire window and not the element. How do I fix this?
| stackexchange/codereview |
Trying to use StackLL method size() is returning a null pointer error. I cannot figure out why this is, as count is initialized to 0. My only guess is that I am not properly creating an instance of LinkedList.java. However, I have no idea what I should do to correct this. Any help would be greatly appreciated.
The foll... | stackexchange/codereview |
I have my application sending mail on click of a link./
Any way that i can customize this app to send mail with an attachment.
Belwo is my controller code and service code
Controller code
def list = {
params.max = Math.min(params.max ? params.int('max') : 10, 100)
[challengeInstanceList: Challenge.list(params)... | stackexchange/codereview |
In PHP when you have an associative array, e.g.:
$groups['paragraph'] = 3
$groups['line'] = 3
what is the syntax to access the first or second element of the array when you don't know the value of the keys?
Is there something like in a C# LINQ statement where you can say:
$mostFrequentGroup = $groups->first()?
or
$mo... | stackexchange/codereview |
If I've got three classes like this:
class BaseClass(object):
def __init__(self, base_arg, base_arg2=None):
...
class MixinClass(object):
def __init__(self, mixin_arg):
...
class ChildClass(BaseClass, MixinClass):
def __init__(self, base_arg, mixin_arg, base_arg2=None):
???
What i... | stackexchange/codereview |
I am able to successfully connect from access 2007 into SQL Server 2008 using ODBC; however it prompts me with the password each time.
When I try to open the linked table from access it says connection filed: SQLSTATE '28000' SQL SERVER ERROR 18452 [microsoft][odbc.........[][]] login failed. the loin is frmo an untrus... | stackexchange/codereview |
I'd like to embed my custom HTML in an area that is draggable, like the JavaScript Map widgets.
For example, I want to put a 1000x1000 <div> inside a 480x320 <div>, without scrollbars (overflow:hidden) and be able to adjust the position of the inner layer by dragging it with the mouse. Ideally I'd like to catch scroll ... | stackexchange/codereview |
I am very new to MVC and I have a Model like this
User :
FirstName : TextBox
LastName : TexBox
User Commitee : [CheckBox Textbox] [CheckBox Textbox] [CheckBox Textbox]
I store if user is in committee in a separate table.I need to insert selected check box value and related text box to database.How can I achieve this ... | stackexchange/codereview |
[DllImport("winusb.dll", SetLastError = true)]
internal static extern Boolean WinUsb_ReadPipe(IntPtr InterfaceHandle, Byte PipeID,
ref Byte Buffer, UInt32 BufferLength, ref UInt32 LengthTransferred, IntPtr Overlapped);
I am using the API to read async data from USB device, it works most of the time in 32 bit OS. But ... | stackexchange/codereview |
I am trying to move a old Classic ASP site to run in PHP. I am rewriting bits of it, however I have come across the following function that is causing me some problems. Basically the function FixForSQL is run on everything before adding it to the database and then FixForHTML is run on data returned with a SQL query to ... | stackexchange/codereview |
I don't known what happened but fdb.exe now always start debug swf in IE
And IE not my default browser!
How to return its default behaiviuor? (embeded browser only with swf)
| stackexchange/codereview |
I'm a good programmer, but I have zero network experience.
Basically, I'd like to get into client-server networking. For example, I'd like to try getting a server process going which allows clients to connect over the internet and send pings to all of the other connected clients. Then maybe I'll try developing a simple... | stackexchange/codereview |
There has been a post about setting cron job to index: Use a Cron Job to Automate Sphinx Index Refresh from Rails Rake Task
The author shares the same technique to invoke the indexer through Thinking Sphinx. But in the comment, there is a second method shared, which claimed to be better in easing the server load by cal... | stackexchange/codereview |
I know that we can't use messageBox in xaml. But..Can we have a custome "Message box user control"...with a view model..which is having following properties : Message, Trigger (to popup), Icon ???
| stackexchange/codereview |
Different developers use different fonts in Visual Studio. However, this is becoming a problem when people check in code because Source Safe apparently retains the formatting information. Is there a hook that source safe provides to update formatting on the code before it checks in to ensure that the checked in code is... | stackexchange/codereview |
I'm writing some useful functions in C. One of them is isPalindrome().
I figured to determine if a number is a palindrome or not, I should...
get all digits in an array
iterate through with two indexes - start one at 0 and one to the array count
increment/decrement the indexes whilst subscripting the array whilst they... | stackexchange/codereview |
I am opening a System.Diagnostic.Process to read the stdout from a process and I would like to be able to interrupt it after a certain elapsed time.
try
{
output = outputStream.ReadToEnd();
}
catch (ThreadInterruptedException e)
{
return;
}
That doesn't work since the thread is in the ReadToEnd() method. I att... | stackexchange/codereview |
please help me with my simple cakephp application.
i have a products_warehouses table:
--
-- Table structure for table `products_warehouses`
--
CREATE TABLE IF NOT EXISTS `products_warehouses` (
`id` int(5) NOT NULL auto_increment,
`product_id` int(5) NOT NULL,
`buyprice` decimal(8,2) NOT NULL,
`sellprice` de... | stackexchange/codereview |
First off, I know how to make a frameset scrollable.
The problem is I have a frameset within a frameset within a frameset.
I want to make it so that if the frameset of the frameset of the frameset overflows in the x direction, I get a scrollbar for the entire page.
| stackexchange/codereview |
I want to align my classes on the VS 2010 architect UML class diagram tool. I can't seem to find the toolbar or menus to allow alignments of elements on the design surface.
| stackexchange/codereview |
I'm working on developing a WMI query for my application. It needs to find the assigned virtual COM port for a given VID/PID. Using the WMI Code Creator I have found that...
Namespace: root\CIMV2
Class: Win32_SerialPort
Property: PNPDeviceID
...returns a value of USB\VID_10C4&PID_EA60\0001. This same value can be ... | stackexchange/codereview |
Consider the following 2 scenarios:
boolean b = false;
int i = 0;
while(i++ < 5) {
b = true;
}
OR
boolean b = false;
int i = 0;
while(i++ < 5) {
if(!b) {
b = true;
}
}
Which is more "costly" to do? If the answer depends on used language/compiler, please provide. My main programming language is Jav... | stackexchange/codereview |
Pseudo code:
SELECT * FROM 'table' WHERE ('date' < today) OR ('visible' = false)
How do you do OR in Linq?
| stackexchange/codereview |
In the Silverlight Toolkit there is this method:
/// <summary>
/// Removes the noise from double math.
/// </summary>
/// <param name="value">The value.</param>
/// <returns>A double without a noise.</returns>
internal static double RemoveNoiseFromDoubleMath(double value)
{
if (value... | stackexchange/codereview |
Is there a way to draw on or modify the key guard wallpaper programmatically?
It looks simple enough for the home wallpaper, you can use WallpaperManager. But how about for the lock screen wallpaper? I would like to draw some text there.
| stackexchange/codereview |
I created a FireFox addon a while a go, and noticed it stopped working on FireFox 3.6
Apparently, NSGetModule is being replaced with an NSModule structure, so I have to adapt.
I'm coding my product with Delphi, so I have to port the new code to Object Pascal.
If I look over this code:
http://mxr.mozilla.org/mozilla-cen... | stackexchange/codereview |
We have 2 tables (tblSerials and tblRequests). The question is how can we make this code to execute faster? As you can see "from request in ctx.tblRequests" parts are very similar. Any other better solution?
var list = from s in ctx.tblSerials
orderby s.CreateDate descending
select new
{
... | stackexchange/codereview |
Using SQLite in HTML5, how do I execute a call such as the following so that it's returned immediately, instead of passing off the result to another function?
try {
mydb.transaction( function(transaction) {
transaction.executeSql(
'SELECT name FROM celebs order by name limit 100 ',
[... | stackexchange/codereview |
I ran into problems in MATLAB R2010b when creating a DLL that uses .NET-integration and enumerations with encapsulate data.
Example:
There is a .NET Assembly which is used in MATLAB, let's call it "MyAssembly" (MyAssembly.dll).
There Matlab Enumerations Class "OpenMode"
classdef OpenMode
methods
function ... | stackexchange/codereview |
how can i run a query that joins two tables from TWO different Databases in mssql_query or mysql_query in php
for example
$conn=mssql_connect($ip,$username,$password);
mssql_select_db("DB1",$conn);
$q="select A.name,B.ID from DB1.dbo.T1 A, DB2.dbo.T2 B where A.ID=B.ID";
$res=mssql_query($q);
how to run such query??
| stackexchange/codereview |
This is a super naive question (I know), but I think that it will make for a good jumping off point into considering how the basic instruction set of a CPU actually gets carried out:
In a two's complement system, you cannot invert the sign of the most negative number that your implementation can represent. The theoreti... | stackexchange/codereview |
Let's say we have a table (EnsembleMembers) in an SQL database with the following data. It lists the musicians which are part of various ensembles, along with their instruments.
EnsembleID (FK) MusicianID (FK) Instrument
----------------------------------------------
'1' '1' 'Clarinet'
'... | stackexchange/codereview |
I recently developed a Java Application for a client with MySQL database. Now he wants to have ASP.NET website connected with the Java Application.
I'm thinking of placing the database on a local server which would support both the desktop application and the website.
What i want to know is, is it the good way to handl... | stackexchange/codereview |
Given an instance of MyClass, I want to be notified when someone calls an specific method.
example:
package bar;
{
public class MyClass {
private var foo:int;
public function MyClass() { foo = 2; }
public function getFoo():int { return foo; }
}
}
So given a instance of MyClass ( var instance = ... | stackexchange/codereview |
I'm working in Microsoft SQL Server 2005 and need to do an analysis of players who qualify for our 50+ tournament on Tuesdays --> To qualify, they need to get 5+ points on Mon or Tues that week before 2pm, and the points are not cumulative (must get a min of 5 on Mon or on Tues before 2pm). The code I am using is below... | stackexchange/codereview |
I have a form to fill which has several input fileds and 20 checkbox My question is how to organize the records of the selected checkbox in mysql and what is the best way to search for them with php. Can you give me an example?
| stackexchange/codereview |
I have a .launch file which I can run by context menu (Run As...), but it is not being added to the list of Debug or Run configurations like it should. Why not?
| stackexchange/codereview |
I have created 4 files
signup.php
signup_ac.php
confirmation.php
config.php
Also, i have created 2 databases:
temp_members_db
registered_members
I want to do this:
When users sign up. Random a set of confirmation code.
Keep their informations and confirmation code in table "temp_members_db". This is temporary t... | stackexchange/codereview |
I'm doing a project to test Scala and Lift at my company, atm I'm implementing a REST API
that shoves XML around. I saw that there is an XMLApiHelper that offers the createTag method
that encapsulates the responses in a root element.
So I did this
object RestAPI extends RestHelper with XMLApiHelper {
serve {
…
... | stackexchange/codereview |
I am unable to create directory using CreateDirectoryW(). Kindly help me.
I am getting error, unable to create folder.CreateDirectoryW(L"c:\A\B,NULL ). but same code is working on 32machine
| stackexchange/codereview |
I need to display the skin as a piano keys which has up and down state.
Compare to a commercial grade music player like NI Kontakt, it doesn't consume over 10% (around 3-5% to be exact) of my CPU when playback a song or I abuse by press the keys repetitively as fast as I can. However, I see my Flex app will use over 10... | stackexchange/codereview |
I am designing an app that requires that all requests to our servers be routed through a single 'dispatcher'-type server. This server will, based on an API key sent in the request, forward the request on to an appropriate backend server, than relay the response back to the client.
eg., an incoming request could be http... | stackexchange/codereview |
I am trying to convert a jqtouch app that was developed for me to jquery mobile.
I don't know how I should be converting this code
showMainMenu: function() {
Inventory.loadDealers();
Inventory.enableMenu(false);
jQT.goTo('#mainmenu');
},
I tried
showMainMenu: function() {
Inventory.... | stackexchange/codereview |
I see this:
public class MyGenericClass<T> where T:IComparable { }
and I have this:
public class ProductRepository : IRepository<Product> { }
How would you code something like this?
public class ProductRepository<T> where T : Product : IRepository<Product> {}
After all that, I thought I could simply make a single Re... | stackexchange/codereview |
What I'm seeing seems strange to me. Not all consumers of a queue are being delivered the messages. Is there a setting I'm missing?
| stackexchange/codereview |
I want to register a function on a UISegmentedControl for the event UIControlEventTouchUpInside -- not UIControlEventValueChanged. I specifically want to ensure that it fires only when the user touches within the item, not when its value is set programmatically.
Any suggestions?
| stackexchange/codereview |
I'm having a problem with a custom Membership implementation for ASP.NET using EF. The thing is, my web.config features the default values for the provider but at runtime those default are only being read in Initialize() the first time provider is instantiated (that happens for instance when I request the Register view... | stackexchange/codereview |
this is my first post here. I'm asking because I ran out of clues and I was unable to find anything about this specific issue.
My question is: In Adobe AIR, is there a way to do a synchronous usleep() equivalent (delay execution of 200ms), alternatively is there a way to specify the SQLite busy timeout somewhere?
I ha... | stackexchange/codereview |
I have a challenging question for you big experts. This has not yet a practical usage in my code, but comes from an idea I just had.
If I have an IList<T>, how do I implement an enumerator that randomly walks the list and that can be used by multiple threads simultaneously?
For example, if I have elements A, B, C, D, E... | stackexchange/codereview |
Really simple, I want to select all titles that starts with letter 'A' while ignoring the dash at the beginning of the string.
SELECT * TRIM(LEADING '- ' FROM title) WHERE title LIKE 'A%'
This just doesn't seem to work. Please help. Thanks.
| stackexchange/codereview |
Hi I'm new to dynatree, but I find it very cool.
I am trying to use this treeview in my app where I need to populate the tree based on dropdown slection event in my page.
The tree will be initially and will only needs to be populated based on the selections in dropdown fields in the page.
I tried to read the documenta... | stackexchange/codereview |
I found a way to hide Excel sheets which is as follows: set the visibility of the sheet to VeryHidden in the VBAProject properties and then password protect VBAProject properties.
This is great, but in Excel 2007, if you save it as XLSX, the VBAProject password protection is stripped and you can view the VBA code. Is t... | stackexchange/codereview |
Can i use java awt print to print a document/file instead of using javax print? I could find that in java awt print there is an option to set the content to be printed only as string using AttributedString. Is there an option to use awt and print document/file from input stream instead of String?
| stackexchange/codereview |
I coded a custom Membership provider and I want to run some Unit tests against it. However, whenever I create a "Test" project, I can't access MembershipCreateStatus. You may know that this is a type on an out parameter for CreateUser.
I am using VS2010 Ultimate and just can't seem to grasp why, even when I add a ref... | stackexchange/codereview |
I've just started a job and have identified an issue in which the database isn't currently being backed up properly so to speak. We are doing one back up every 6 hours that uses the Oracle native backup utility, but we were also sold a process by a company in which they stated that they could in essence perform "warm"... | stackexchange/codereview |
So, i've been working on a project for a long time and when I finally came to a release version and wanted to create a tag I suddenly realized, that the person, who set up the SVN server somehow didn't create trunk/branches/tags folders. So, the trunk is in the root folder of the SVN directory.
Is there any normal way ... | stackexchange/codereview |
I am trying to customize the webif v. 0.3-4895 package on openwrt-10.03.1-rc3 (backfire).
I have a functional webif and I am trying to follow this wiki entry
I copied info.sh to helloworld.sh and edited .categories and the ##WEBIF line
but I dont see any change in the menu and when i call helloworld.sh I get a 403 on m... | stackexchange/codereview |
I am trying to show the popular product list using ajax in magento on the home page using ajax, I could do that for 5 or "N" no.of products, but what i want is the pagination toolbar to be added with the result set.
This is what i added to show the popular products,
// Magento layout
$magento_block = Mage::getSingleton... | stackexchange/codereview |
I have a ASP.NET 3.5 web application that uses long polling for chat. It long polls an asynchronous handler for new messages. Each request can last a maximum of 15 seconds before being closed and reconnected.
The application runs fine using Visual Studio Built-in web server but once deployed to the IIS (i.e. IIS 7.5 ) ... | stackexchange/codereview |
I have an ebook style iPhone app that allows users to read a book. I have it setup so that when they leave the app, it remembers what page they were on, but not the exact spot on the page (the page can scroll quite a bit).
I am using NSUserDefaults to get me back to the page, I was wondering though if anyone had any id... | stackexchange/codereview |
Why wouldn't the following work?
phrase.AddAll(new ICollection<Chunk>[] { noteChunk, noteAttributeChunk });
Error 8 Cannot implicitly convert type 'iTextSharp.text.Chunk' to 'System.Collections.Generic.ICollection'.
Just curious,
rod.
| stackexchange/codereview |
I've been trying to convert the following XAML code to C#, but without success. I'm kinda stuck at the ControlTemplate part. I'm very new at WPF, so I might be doing this all wrong.
The idea behind this is that I have to retrieve data from a database and wrap each record with the below template. Since the rows may vary... | stackexchange/codereview |
So I'm trying to take an input from a user using Scanner(System.in) but when i try to type something into the console it won't let me.
Can anyone help?
Function.show();
Scanner input = new Scanner(System.in);
if (input.equals("a"))
{
Function.outputFile(1, list);
}
input.close();
| stackexchange/codereview |
I'm looking for information of a ui slider control whose step size is influenced by the distance between the ui control and the users mouse pointer.
For example:
You have a slider control which slides horizontally. It has a value range of 0 to 1000. It occupies about 100 pixels on the screen. So, when you slide the con... | stackexchange/codereview |
This piece of code generates unexpected output.
Hashtable<Pair, Integer> results = new Hashtable<Pair, Integer>();
results.put(new Pair(0, 1), 2);
System.out.println("[DBG] " + results.containsKey(new Pair(0, 1)));
The output is [DBG] false. Why did Hashtable fail to register this element? Does it have something to do... | stackexchange/codereview |
I am on Ubuntu10.
Create new db file with
touch development.db
Want my migrations
rake db:migrate
but get locked error
SQLite3::BusyException: database is locked
How it can be locked?!
update it can be locked by samba. it's shared folder
| stackexchange/codereview |
I have table sort of like
Name |DateOfEvent|EventType
----------------------------------
Smith |10/1/2005 |New
Thomas |1/1/2002 |Updated
Johnson |6/1/2002 |New
Smith |7/1/2008 |Updated
Smith |7/1/2000 |New
I want to return rows where the event is say New and the date is before a row with... | stackexchange/codereview |
I'm pretty new to database setup in Ruby and need help in setting it up correctly along with the models. Can anyone help?
Basically I have an Organisation, which will have at least 2 types of Users - Member and Admin User. Both the Organisations and the Users have an Address.
I was thinking this was basically three t... | stackexchange/codereview |
I'm planning on doing a small page where user uploads a movie, and it should be converted to flashmovie format.
Is there some good api there for .NET that is rather affordable?
I found this one:
http://www.all4dotnet.com/features.aspx
Are there better ones out there?
/M
| stackexchange/codereview |
I have the following rows in a file that I want to get the average of the 3rd column by hour.
2010-10-28 12:02:36: 5.1721851 secs
2010-10-28 12:03:43: 4.4692638 secs
2010-10-28 12:04:51: 3.3770310 secs
2010-10-28 12:05:58: 4.6227063 secs
2010-10-28 12:07:08: 5.1650404 secs
2010-10-28 12:08:16: 3.2819025 secs
2010-10-... | stackexchange/codereview |
I'm using DotNetOpenAuth with a custom login provider to sign users into my site. I have most of the code working, but am having an issue returning the view and displaying it so users can log into the provider. Basically, the action is returning an actionresult which is the login page on the specific provider back to... | stackexchange/codereview |
Here is my code.
for example TextBox1.Text= 12,34,45,67,67
Dim process_string As String() = TextBox1.Text.Split(New Char() {","})
Dim process As Integer
For Each process In process_string
Combo1.Items.Add(process)
count = count + 1
Next process
total_p... | stackexchange/codereview |
How can I convert the ints in a 2d array into chars, and strings? (seperately)
If I copy ints to a char array i just get the ASCII code.
For example:
public int a[5][5]
//some code
public String b[5][5] = public int a[5][5]
Thanks
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.