instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Inspired by my own experience with multithreaded Winforms applications, as well as questions such as
Avoiding the woes of Invoke/BeginInvoke in cross-thread WinForm event handling?
Avoid calling Invoke when the control is disposed
I've come up with a very simple pattern, whose soundness I would like to verify.
Basica... | stackexchange/codereview |
I have a string in JS in this format:
http\x3a\x2f\x2fwww.url.com
How can I get the decoded string out of this? I tried unescape(), string.decode but it doesn't decode this. If I display that encoded string in the browser it looks fine (http://www.url.com), but I want to manipulate this string before displaying it.
Tha... | stackexchange/codereview |
is there a good library out there to connect to a SFTP server and save/load file to/from there? I tried google, but there is so much so I thought Id ask for recommendations. It will be used in a web app...
Thanks :-)
| stackexchange/codereview |
I ran into a bizarre scenario where a 32 bit process claims that its PROCESSOR_ARCHITECTURE is AMD64, causing failure in components that make decisions based on that flag.
I isolated it to these steps:
In VS2010, Create a Library project
In the Project properties / Debug tab, set Start External Program to the VS exe (... | stackexchange/codereview |
Purpose of the script :
1.This script will delete Files older than 4 months.
2.Files older than 3 days will be compressed.
A script has been written such as :
#!/bin/bash
exec >> /dir5/dir6/cleanup-logfiles.log 2>&1
# customer list job
cd /dir1/dir2/dir3/dir4/tmp
find -type f -mtime +120 -exec rm -v '{}' \;
fi... | stackexchange/codereview |
Please look this example:
select {
width: 172px;
height: 22px;
padding: 2px 7px;
border: none;
background: url(http://imgur.com/MJyZM.png) 0 0 no-repeat;
}
<select>
<option value="abcdefg">abcdefg</option>
<option value="1234567">1234567</option>
<option value="abcdefg">abcdefg</option>
</se... | stackexchange/codereview |
I want to create many folders whose names are like folder_x where x is an even number less than 256. Is there a unix command/dos command or some shellscript that I can run to do this?
Or may be some free utility program that does mass folder creation?
I want to do this on Windows.
| stackexchange/codereview |
Is there any way to capture screen of iphone device which is connected to mac via USB.
I want to do something similar to xcode ->organizer -> device ->capture Screen.
Thanks in Advance.
| stackexchange/codereview |
I am studying the boot process in Linux. I came across this sentence "RAM is several orders of magnitude faster than a floppy disk, so system operation is fast from a ramdisk"
The kernel will anyway load the root filesystem in RAM for executing it. So my question why do we need a ramdisk for loading the root filesystem... | stackexchange/codereview |
I got a well known security exception:
java.lang.SecurityException: Sending SMS message: User 1001 does not have android.permission.SEND_SMS
I added the following line to the android manifest file:
<uses-permission android:name="android.permission.SEND_SMS" />
But even when I do this I got the same exception.
This h... | stackexchange/codereview |
I have a login in my admin page.
Now I want to log every login-try in my database.
Normaly I have a Log-table with the adminID in a foreign key of the adminuser-table.
Now, of course, when someone try to login with a username that doesn't exist, I haven't a ID and the foraign-key uses a crash in the write-attamp.
Now w... | stackexchange/codereview |
I have an ASP.Net application that makes use of Forms authentication. I have two folders that are "protected" for administrators and registered users. I want to have two different login pages based on whether the user is trying to access the /admin/ or /members/ folder. Based on my understanding there can only be one l... | stackexchange/codereview |
I'm developing and Android application.
I have a model on Blender and I want to export it to use it with OpenGL ES 1.1. on Android.
How can I export my model as a set of points and vertex?
Is there any other suitable format to use with OpenGL ES 1.1? I'm not using a rendering engine.
Thanks.
| stackexchange/codereview |
I have a situation where I'm using a datagrid to display two different sets of columns based on the data being displayed. I hide/display the columns based on the data and one type has more columns displayed. An example of the type of setup I have is:
Type1 columns: Name, DOB, Address,
Height, Weight, Occupation, Y... | stackexchange/codereview |
I have a MySQL table with an auto-increment field and I am trying to figure out how to get the next or previous value along with the rest of that row using purely MySQL. The field is AI but the numbers aren't necessarily consecutive as rows get deleted all the time.
field_id
8, 15, 17
This is what I started with:
//to... | stackexchange/codereview |
What's wrong with the following code?
for (var x=0;x<8;x++){
for (var y=0;y<8;y++){
table[y][x]=new Peon("black",x,y,table);
}
{
I know that there's something wrong because if I remove it from the code bellow it works, if I leave it there it never reaches the second "alert".
<HTML>
<H... | stackexchange/codereview |
does php allow the use of the define function for images
define("IF", '<img src="image.jpg" width="50" height="50" />');
| stackexchange/codereview |
I have the following :
SortedDictionary<int, SortedDictionary<int, VolumeInfoItem>>
that I want to deepcopy.
VolumeInfoItem is the following class :
[Serializable]
public class VolumeInfoItem
{
public double up = 0;
public double down = 0;
public double neutral = 0;
public int dailyBars = 0;
}
I have... | stackexchange/codereview |
i have this jquery script that changes the color of the background instantly by entering a color code into the textbox, the working example is in jsfiddle link below.
http://jsfiddle.net/7jg4e/
but instead of the input field i wanted to use a color picker custom skin, becuase i dont want user to deal with hex code(jus... | stackexchange/codereview |
I am trying to redefine an element definition contained in an external xsd (that I cannot modify) which looks like this:
<xsd:element name="view-controller">
<xsd:complexType>
<xsd:attribute name="path" type="xsd:string" use="required" />
<xsd:attribute name="view-name" type="xsd:string" />
</x... | stackexchange/codereview |
This code get date and time in UK time format but i want INDIAN time format,
plz help
echo $today = date("d-m-y / g:i a");
| stackexchange/codereview |
We have a Windows based WPF application supports the user to connect to remote data services. When connecting to the remote services, the user is allowed to perform certain roles. Based on input provided by the remote service, we decide the user access rights and access area.
Given that how Windows Identity Foundation ... | stackexchange/codereview |
Can anyone tell me the best and recommended way of calling a stored procedure using NHibernate?
I have my mappings set up and currently i have this working
var list = session.CreateSQLQuery("exec usp_Test").AddEntity(typeof(Product)).List<Product>();
And sure enough i am getting a LIST back of my products, but is thi... | stackexchange/codereview |
I have looked a bit but I was unable to find what I figured might have been something that has already been created.
I am looking for an application that would read in a binary file, allow the inputing of the types of patterns/rules in someway that are expected (like a set of messages each of which are header + data) a... | stackexchange/codereview |
I have table A
Id | Name | Department
-----------------------------
0 | Alice | 1
0 | Alice | 2
1 | Bob | 1
and table B
Id | Name
-------------
0 | Alice
I want to select all unique Ids in table A which do not exist in table B. how can I do this?
| stackexchange/codereview |
If I enter Baltic characters in textctrl and click button test1 I have an error
"InicodeEncodeError: 'ascii' codec can't encode characters in position 0-3:
ordinal not in range(128)"
Button test2 works fine.
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import wx
class MyFrame(wx.Frame):
def _... | stackexchange/codereview |
I'm using a DevExpress grid and I'm trying to get a 'Country' column to display the header filter properly:
<dx:GridViewDataColumn Caption="Country" FieldName="CountryName"
ShowInCustomizationForm="True" Visible="false">
<Settings AllowHeaderFilter="True"/>
</dx:GridViewDataColumn>
If the 'Country' column is ... | stackexchange/codereview |
I'd like to programmatically access a site that requires Client certificates, which I have in PEM files. In this application I don't want to add them to my keystore, use keytool, or openssl if I can avoid doing so. I need to deal with them directly in code.
HttpClient httpclient = new DefaultHttpClient();
Http... | stackexchange/codereview |
I am trying to delete a client object in my program and then also delete the object in activeCollab using the API provided. I can delete the object but I keep getting a 404 error when it calls the API. I did a print for c.id and I am getting the correct ID, and if I replace ':company_id' in the req statement with the... | stackexchange/codereview |
I am looking for an HTML 5 AJAX library / framework for users to upload files directly to Amazon S3. The goal is to avoid uploading attachments to the web server (as the web server blocks when it transfer them to Amazon). My understanding is that this should be possible using XDomainRequest, but I can't figure out how.... | stackexchange/codereview |
I'm writing a Python program that selects some data from a Microsoft Access mdb file using PyODBC.
I need to discover the column names of several different tables. In SQL Server, this can be accomplished by using a query like
SELECT c.name FROM sys.columns c, sys.tables t
WHERE c.object_id = t.object_id
AND t.name = ta... | stackexchange/codereview |
I'm using aaronpk's Google Voice APIs to send and receive SMS messages in Google Voice. I've uncommented the "extension=php_curl.dll" line in the php.ini and have confirmed that cURL is working. I'm now stuck at this point and I keep receiving this error:
Uncaught exception 'Exception' with
message 'Could not pars... | stackexchange/codereview |
I am implementing a music player application in Android. My play list selection screen is implemented as a tab selector widget which contains a ListActivity inside each of the tabs: Artist, Albums, Songs.
I want to update the ListView in each of the ListActivity when I delete an item from any of the lists.
i.e. When I ... | stackexchange/codereview |
I have a static Java method, where I want to know who is its caller. Is it possible to get this information in Java?
| stackexchange/codereview |
What SQL query returns the row with the most recent Date and Time (Column B and C) for each unique Column A?
| stackexchange/codereview |
I'm new to the Ruby language and the Rails framework. When I saw this piece of codes from the "Head First Rails" book:
class ClientWorkout < ActiveRecord::Base
validates_numericality_of :paid_amount
end
My questions are:
1) From the Ruby language, where and how is validates_numericality_of implemented? Is it available ... | stackexchange/codereview |
I've got a drop down that is populated asynchronously by a web service with a caringorm event. I need to know when this event completes so I can set the selected combo box row. The data gets populated but I can't figure out how to subscribe to this event. Does anyone know hot to do this.
This code doesn't appear t... | stackexchange/codereview |
Dear Scholars
I am trying to parse a RSS feed with the following item element structure
<item>
<title>Title</title>
<link>http://somelink.com</link>
<description>The description</description>
<author>rss@youtube.com</author>
<guid isPermaLink="false">http://youtube.com/... | stackexchange/codereview |
My requirement is to add two side by side text box Once user click on add hyperlink.After that for that row add link should disappear.
Also clicking on remove must remove only those two textbox which are in the same tr.My code is like this.Its no way complete.But I need suggestions
regarding the implementation.
<html>
... | stackexchange/codereview |
How do I change the default coloring/fonts in Dreamweaver CS5?
| stackexchange/codereview |
I am just creating one application which is start Solr from code side using ASP.NET Web Application. http://localhost:8080/solr/admin/ this link working perfect but am i startup initialize from code side it's give me error like file not found exception so please help me
code line :: Startup.Init("http://localhost:8080... | stackexchange/codereview |
I need a hash function, H(X), fulfilling the following:
(1) Inputs around 10 digits and outputs around 10 digits.
(2) If you change X even just by a single digit, you get a totally different H(X).
(3) Easy to calculate manually. People are going to calculate it by hand. I need them to be able to do it quickly and with ... | stackexchange/codereview |
I have a question about inner-workings of Python sub-interpreter initialization (from Python/C API) and Python id() function. More precisely, about handling of global module objects in a WSGI Python containers (like uWSGI used with nginx and mod_wsgi on Apache).
The following code works as expected (isolated) in both o... | stackexchange/codereview |
I have QTableView, filled by QSqlRelationalTableModel. Changes should be committed or reverted on button hit.
When I edit some row, it changes state in the view when editing finishes, and succesfully commits changes to DB when submitAll() called.
But when I trying to delete row, it stays in view. Here is slot, connect... | stackexchange/codereview |
I have filenames in following format:
[ignore-prefix]-[important-middle]-[ignore-suffix]-[name-with-digits]
I need to sort according to following rules: first by middle part, then by name, in natural order (i.e. foobar10 > foobar2). I don't know prefix value, but I know the separator (dash).
so my first attempt, natu... | stackexchange/codereview |
What's the path on which Drupal / Ubercart usually receives the successful payment notifications from 3rd party websites ?
I need to provide a path for the notifications to the payment server. Since this is not specified in the documentation, I was wondering if there is a usual one in Ubercart.
(I'm using AlertPay if i... | stackexchange/codereview |
I have created a database - tasks.db - with SQLite.
This database has one table - todo - with the following fields :
id (pk), date (NOW with trigger), project, duedate, status, description
To enter a new row in SQLite from the command line, I have to write :
sqlite3 tasks.db "insert into todo (project,duedate,status,de... | stackexchange/codereview |
To create an empty dictionary, should I call [NSMutableDictionary dictionary] or [[NSMutableDictionary alloc] init]?
What's the difference?
| stackexchange/codereview |
I am learning F# by converting a program in C# to F#
The problem is with WritableBitmap, the compiler complains that:
The type tableBitmap is not defined
this is the code:
module MandelbrotBitmap
open System.Windows.Media
open System.Windows.Media.Imaging
type Mandelbrot(width:int) as this =
let mutable _width =... | stackexchange/codereview |
While going through one of the problems in Python Challenge, I am trying to solve it as follows:
Read the input in a text file with characters as follows:
DQheAbsaMLjTmAOKmNsLziVMenFxQdATQIjItwtyCHyeMwQTNxbbLXWZnGmDqHhXnLHfEyvzxMhSXzd
BEBaxeaPgQPttvqRvxHPEOUtIsttPDeeuGFgmDkKQcEYjuSuiGROGfYpzkQgvcCDBKrcYwHFlvPzDMEk
MyuP... | stackexchange/codereview |
My application crashes when I'm deleting row from table. Here is my sources where the bug is detected and stack trace. Thanx!
//delete row from database
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
NSLog(@"\ncomm... | stackexchange/codereview |
I have a development server that has Ubuntu server 10.10 with an ip of 192.168.0.175.
When I enable the rewrite mod for apache2 and change the site config to allow rewrite then things get all messed up.
With rewrite turned off and allow rewrites to None then I type in 192.168.0.175/test and the site loads, but with it... | stackexchange/codereview |
What technologies would have to be implemented into a website that would automatically generate questions and send them to my users email? Similar to stackoverflow.com and vark.com except the questions would come from a data base that I created not other users. I have no Idea even what language could do this... please ... | stackexchange/codereview |
Would like to subscribe to an event from within a facebook tab. so i would like to have something like FB.Event.subscribe, but a fbjs method. is there any?
| stackexchange/codereview |
i am doing a spool of sql select output. i have the below sql settings
SET FEEDBACK OFF
SET HEADING OFF
SET LINESIZE 800
SET PAGESIZE 50000
SET TRIMSPOOL ON
SET TERMOUT OFF
SET ECHO OFF
The problem is there is a blank line inserted into the spool file before... | stackexchange/codereview |
Python 2.6.1, mysql 5.1 on osx snow leopard.
In my python code to connect I am doing;
use_unicode=True, charset = "utf8"
mysql tells me
mysql> SHOW VARIABLES LIKE "character_set%";
+--------------------------+--------------------------------------------------------+
| Variable_name | Value ... | stackexchange/codereview |
I have a question about CATransform3D, I want to transform a view about 90 degrees(in any axis) and I want it a thick z-border
UIView *top...
...
top.layer.transform=CATransform3DMakeRotation(radians(90), 1, 0, 0);
rotates the view but the view has 0 border width
thanks.
| stackexchange/codereview |
In a multi-module maven project, is there a variable that points to the root project folder?
${project.basedir} points to the current project's directory,
${project.parent.basedir} points to the parent project's directory,
but is there a variable that always points to the root directory (the one from which the mave... | stackexchange/codereview |
I have this problem: I want to know how often a player holding a portfolio of poker hands beats another player holding a different portfolio of poker hands.
Each hand in a portfolio is given a weight (i.e. a likelihood). Each hand in a portfolio also knows it's own "strength". This effectively means all cards have ... | stackexchange/codereview |
I am having a bit of a problem with my UI hanging even though I am using a Dispatcher, and before I get any further I'm wondering if it's the way I'm handling the data retrieval.
Right now I have my main window creating a View and ViewModel. Then, inside of a new Thread (using a Dispatcher) it sets the View.DataContext... | stackexchange/codereview |
I defined this multi dimensional array in C#:
int[,] values = new int[,] { { 1, 2, 3 }, { 4, 5, 6 } };
Now the values are not longer in this form but in a Dictionary:
values2.Add("KeyA", new List<float> {1,4});
values2.Add("KeyB", new List<float> {2,5});
values2.Add("KeyC", new List<float> {3,6});
Now I'm trying to p... | stackexchange/codereview |
One of my customers want to have a simple CMS/blogging platform.
I have experience with Sharepoint variations and that method is very good for him anyway he could not afford the cost of a Sharepoint for Internet license.
Which of the platform currently available have easy to use features for adding multilanguage conten... | stackexchange/codereview |
Is there a PL/SQL engine in SQLDeveloper?
| stackexchange/codereview |
I have to create a desktop application in Java 6. Program should be able to communicate with other system using XML files (sending/receiving). Every single XML file is connected with its XSD, tags describing its content, username and status of the document. Application should provide such functionality as searching, mo... | stackexchange/codereview |
ini file that contains:
address="localhost"
username="root"
password="yourpassword"
database="yourdatabasename"
and I need to find the word between the two "" with ifstream, and put it in a char.
Is there a way to do this??
| stackexchange/codereview |
In my new task, I have been asked to write specifications for a new project. Actually I have never written any specifications except few rough drafts after discussions.
I need to write specifications in two parts first conceptional specifications and following functional specification. I just wonder what will be outli... | stackexchange/codereview |
can you help me with this?
$(document).ready(function(){
$("ul.fam:eq(0) li:eq(2)").addClass("redbold");
});
In this code, is there a way to loop or increment the '0' value in -> $("ul.fam:eq(0) ?
Like making it 0,1,2,3,4,5 and so on... and stop the loop for example when it reaches '3'
Thank you.
| stackexchange/codereview |
I need to create a Views of selection of nodes, some of which the current user may or may not have access to. What I would like to be able to do is, known what the access is to a node, print out either a link to the node, or a statement letting them know there is no access to that node without certain conditions met f... | stackexchange/codereview |
I am creating an application where client-side functionality calls various services to return results/content etc. At the moment, I have 3 controllers, with their actions which is working fine. What I'm trying to decide is how to manage list content, i.e. in 2 instances, there will be JSON lists of drop-down data outli... | stackexchange/codereview |
I am trying to setup some click events inside a jquery plugin.
The plugin is acting on the tfoot of a table.
the instance of this tfoot is stored in a variable 'foot';
I am trying to use this;
foot.find(' > div#table_pageination > #pages > a.link').live('click', function(){
console.log('clicked');
});
However this... | stackexchange/codereview |
A system administrator told med that memory leaks can be invisible. i.e. all memory used by an application may not be visible in task manager or equivalent tool if the application is leaking memory.
He seemed very sure of this. I've always though that all memory leaks are shown correctly (not in bytes, but that the mem... | stackexchange/codereview |
I have created a simple login page which is based on the sessions.
session_start();
and added a logout page that contains this
session_destroy();
Now when I close the browser/page and reopen it, the values of the session are still there.
I want to know how to completely destroy the session on page/browser close.
| stackexchange/codereview |
At runtime I can have two formats of a XML file:
<root>
<diagram>
<graph color= "#ff00ff">
<xaxis>1 2 3 12 312 3123 1231 23 </xaxis>
<yaxis>1 2 3 12 312 3123 1231 23 </yaxis>
</graph>
</diagram>
</root>
<root>
<diagram>
<graph>
<xaxi... | stackexchange/codereview |
i am using VS2010 with jquery-1.4.1.js version and i try to access the WCF service and i get a strange error "Access is denied" in jquery-1.4.1.js at page number 4982
jquery-1.4.1.js:
// Open the socket
// Passing null username, generates a login popup on Opera (#2865)
if ( s.username ) {
xhr.open(t... | stackexchange/codereview |
I am a newbie to the C/CPP application and analysing an issue with a piece of C/CPP code. I came across a Segmentation Fault error and I am not to identify the root cause of the segmentation fault.
Please find the scenario below:
union Value
{
int value_int;
float value_float;
RWCString *value_string;
}
voi... | stackexchange/codereview |
http://jsbin.com/ofudi4/3/edit
What this code does you can test for yourselves.
Now my question is if i would have another div-tag around , like a frame. How would i make #moveMe to just move inside the frame div? Checking for boundaries after each move, so the figure doesn't move outside the frame.
Anyone now how to... | stackexchange/codereview |
I'd like to do this in the Application_Start method, so I can write a 'robots.txt' file if the site is running on a test server.
Thanks
| stackexchange/codereview |
I have a service .NET using the FtpWebRequest to download images from an FTP server. I have a camera which stores images on the same FTP server.
If my service see an image and tries to download it before the camera has finished storing the same image, the 'not-yet-stored-part' of the image appears grey (corrupted).
Que... | stackexchange/codereview |
I am fairly unexperienced with the behavior of grep. I have a bunch of XML files that contain lines like these:
<identifier type="abc">abc:def.ghi/g1234.ab012345</identifier>
<identifier type="abc">abc:def.ghi/g5678m.ab678901</identifier>
I wanted to get the identifier part after the slash and constructed a regex usin... | stackexchange/codereview |
I have been developing a pure MVC CMS for fun and have run into an annoying bug/feature of ASP.NET routing.
Each dynamic managed page in my CMS is associated with a particular route that is pulled from the database. These are loaded at app start. When a user adds a new page or edits the Url of an existing page I need ... | stackexchange/codereview |
I am trying to create a jaxb class hierarchy for a web services domain. I find it inconvenient that a subclass that overrides a getter method in the super class can change the element name that JAXB outputs, but the super class's one is also being written to the output. I am wondering if there is a way to suppress the ... | stackexchange/codereview |
As part of gridpanel functionality after rendering the gridpanel I can modify the columns ordering by click drag. For example present column ordering is First Name | Last Name. But I can click drag first name and put it after Last Name i.e now it will be like Last Name | First Name.
Now my requirement is something ... | stackexchange/codereview |
This isn't a programming question but it's about the SDKs and the IDE. I've accumulated a ton of different XCode installs over the past couple of years and now my hard drive is nearly full. With each SDK clocking in at around 5 gigs, and my storage space getting low, I have a couple of questions
3 Questions:
Can I r... | stackexchange/codereview |
I'm trying to add a string in the end of an Outlook email's body with VSTO
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{
this.Application.ItemSend += new Microsoft.Office.Interop.Outlook.ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend);
}
void Application_ItemSe... | stackexchange/codereview |
Most applications (and libraries) using OpenGL on Linux load libGL.so at runtime using dlopen API, instead of dynamically linking against it.
Why do they do this?
The only reason I can imagine is that it's because any graphic driver vendor provides a different libGL, and two different libGL could be ABI incompatible. (... | stackexchange/codereview |
I have a PHP file which edits an XML file, both on the same web-server. So I need to chmod 666 the XML file. However i've seen some warnings about this being a security risk due to the granted write permissions.
I only care about whether remote users can edit my XML file, am I correct in thinking this is not possible w... | stackexchange/codereview |
I am using SevenZipSharp in order to compress files into a zip file.
I am having 2 issues:
When using CompressFiles miltiple times on the same destination file it does not append the files, but overwrites them.
I would like the files to be added with out their whole path but can't seem to find how (I thought that Pres... | stackexchange/codereview |
I'm trying to use the formula from (www.movable-type.co.uk/scripts/latlong.html) to return a destination point giving a starting point, distance and bearing. These are my values:
int radius_km = 6371;
double d = 74.02;
double st_lat = 39.4450;
st_lat = Math.toRadians(st_lat);
double bearing = 106.1607;
bearing = Math.... | stackexchange/codereview |
Working on some testing with phonegap on iphone; i have a plugin that returns simpl json data like this :
NSString* retStr = [[NSString alloc]
initWithFormat:@"%@({ code: '%@', image: '%@' });",
resultText.text,resultImage.image];
[ webView stringByEvaluatingJavaScriptFromString:retStr ];... | stackexchange/codereview |
My goal is to create a custom ROM for commodity Android tablet hardware. It won't use the normal Android UI widgets, but just a simple launcher that offers a custom email app, a news app, and maybe a handful of other things. Each icon won't be small, as in the normal Android launcher, but rather a full half or quarter ... | stackexchange/codereview |
Im starting learning Silverlight (Im decent with WPF :P). Im always try to put something new when I start a new program. This time I want DI. I saw all the mtaulty videos about Prism & Silverlight but the regions thing, all that projects, when to use SL app or SL library, catalog... Seems difficult to me right now.
The... | stackexchange/codereview |
I have a database with a field 'LS_GENDER' which stores genders as 'M' or 'F'.
My application uses an enumeration called Gender to work with genders.
My entity has the following field and property:
private string _gender;
public Gender Gender { get { return GetGenderFromString(_gender); } };
private Gender GetGenderF... | stackexchange/codereview |
I was following the very slim tutorial on the Tapestry website for Tapestry 5 and was introduced to very basic database interactions but not how to do user authentication. Where do I go for more comprehensive guidance in tapestry 5? I went to the tapestry wiki (http://wiki.apache.org/tapestry/Tapestry5HowTos) but I w... | stackexchange/codereview |
In Flex the AreaSeries tag looks like this:
<mx:AreaSeries
yField="Profit"
displayName="Profit"
areaStroke="{s1}"
areaFill="{sc1}"
/>
I am creating an AreaChart dynamically using ActionScript and I want to set the areaStroke and areaFill properties but they don't appear to be available in ActionScr... | stackexchange/codereview |
I need to clean phone numbers stored as varchar. There is bad data where unknown phone numbers are stored as a sequence of a single digit. Eventually more complex (area code & prefix matching) will be done but I want a simply query to obviously bad records.
So for example:
Valid Phone Number: 3289903829
Invalid Pho... | stackexchange/codereview |
I have a lot of paired fields (hoursDistance1, cityName1, hoursDistance2, cityName2, hoursDistance3, cityName3, etc.).
What query do I need to search for so that Lucene scores based on both fields having the correct terms instead of just one of them? i.e. if I search for a city 3 hours from here with this name, how do ... | stackexchange/codereview |
I have only ever seen it being used to 'overcome' the diferences between OOP and SOA.
| stackexchange/codereview |
I want to restrict the user in toolbar search by not allowing him/her using Some Special Characters like ('/','>','<','|').Please help me out.
$("#tblFundComp").bind("keydown",function(e)
{
if(e.keyCode >=48 && e.keyCode <=57 )
{
return false;
}
else
{
return true;
}
});
I have placed this ... | stackexchange/codereview |
I am having a application, which deploy MSI on machine but sometimes this MSI exited with code "1073807364".
After MSI installation machine reboot is required so expected exit code is "1641".
I have look at the different links but i have not able to got concrete answer.
| stackexchange/codereview |
I have a long string of characters which I want to split into a list of the individual characters. I want to include the whitespaces as members of the list too. How do I do this?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.