instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have a WCF service hosted on IIS, and i am writing a file on the server through wcf servcie and i just wanted to make sure what credintials is using to access the services.
how do i check to see what account is using?
| stackexchange/codereview |
I have a String Array Resource that has about 1000 drug names
<string-array name="index">
<item>Aspirin</item>
<item>Levitra</item>
....
</string-array>
I tried to load this string array into a String[] inside an activity.
Using the same syntax provided by Google's java documentation found here.
http://developer.a... | stackexchange/codereview |
I am working on a product and I am using Pivotal Tracker to write user stories, but I am quite new to BDD and XP, and newer to Cucumber. So I am getting confused by the terminology a little bit. What is the difference between a story and a cucumber feature? Both are simple descriptions consisting of three parts--actor,... | stackexchange/codereview |
I can think of two ways to determine whether an object is a sequence:
hasattr(object, '__iter__').
And whether calling iter(object) raises a TypeError.
As it is most Pythonic to ask forgiveness than to ask permission, I'd use the second idiom, although I consider it more ugly (additionally, raising an exception once ... | stackexchange/codereview |
In joomla, it has jos_session table in which time is stored as unixtimestamp in 'time' column.
I want to select the records which are older then a week or two days, basically any interval.
Not much hands on DB, but i did tried with date_sub, but it seems taking date as an argument. So I also tried using FROM_UNIXTIME t... | stackexchange/codereview |
We have a test server where every developer has their own sandbox. In fact, our web project is so huge that we can't allow developers to edit everything even in sandbox. For example, there are some password files from some other web services that developers don't have permissions to see. Anyway, the thing is, we can't ... | stackexchange/codereview |
Below is a code block for simulating key presses on a menu. I can navigate deep into the menus of my application but when I get back to the main form, I'm getting a segmetation error.... :(
first I show my Application:
std::auto_ptr<MyForm> mainForm( new MyForm( 3, 3 ));
mainForm->show();
Then simulate a keyPress to s... | stackexchange/codereview |
I created a exe in c# .Net 2005.
Scheduled it to run on the server every day at 10 AM.
But I can not close the exe when intended task is completed so it remains open and Task Schedular shows its status as running as it is also plesent in Task Manager and When next day its run time come to run then it dosen't run.
At fi... | stackexchange/codereview |
I got a question regarding binding and annotation.
I have the following class:
public class MailFacadeImpl implements MailFacade {
private final PersonDao personDao;
@Inject
public MailFacadeImpl(@Mail PersonDao personDao) {
super();
this.personDao = personDao;
}
The PersonDao is annotated with a cus... | stackexchange/codereview |
Here is the situation:
-Using VMWare Workstation, set the network adapter to bridge.
-Host os is winxp, guest os is CentOS 5
-Apache server installed in guest (centos) os
-Say my host ip:172.19.20.100, my guest ip:172.19.20.101
My host installed rails, so I just type 'rails server' in command line, it started up a serv... | stackexchange/codereview |
I found introducing a directory "values-notlong-ldpi" did not work out for me
Solved it: using -notlong-ldpi DID work. The mistake was somewhere else (the child overwrote the style info)
However, if u find a better way to address those devices, feel free to post it.
| stackexchange/codereview |
I am trying to understand weave.inline to wrap C code in my Python programs. The code below simply takes the Numpy array and multiplicates all of its elements by 2.
inl.py
import numpy
import scipy.weave
a = numpy.array([1.0, 2.0, 3.0])
N = a.shape[0]
print a
code = \
"""
int i;
for(i = 0; i < N; i++)
{
... | stackexchange/codereview |
It appears as if there is very little use of JDesktopPane but it doesn't appear to be deprecated. Are they any advantages of using JDesktopPane instead JFrame? I mainly plan on putting a few JInternalFrames into it.
EDIT: I didn't realize that a JDesktopPane more fills the role of a Panel than a frame.
A JDesktopPane s... | stackexchange/codereview |
I'm developing an ASP.NET MVC2 application.
After having about 10 tabs open that read "Default.aspx" I was wondering if there was a way to specify in the routing table that the default controller action should be the same name as the controller. So for example, if I go to http://mysite/Foo, it would invoke the action ... | stackexchange/codereview |
Is there a way to capture the stdout and stderror of my Java program line by line?
Perhaps something similar to the way you can add a handler to a Logger instance using addHandler.
edit: I don't want to replace the default handlers--I still need the output to show up on the command line.
| stackexchange/codereview |
Trying to find a proper way to transform HTMl talbles into plain text tables. Anyone know if there is a good tool out? either payware or freeware. Preferably in .net (C#).
I've looked in to doing it via HTML agility pack, maybe there are better ways? Using a html parser would still leave a lot of the complexity e.g. to... | stackexchange/codereview |
I attempting to deploy files to a remote server using SSH.
My username joe is a member of the group www.
I am SSH'ing in as joe, and creating a new folder (let's call it test). The parent folder's owners are root:www. When I issue the mkdir /parent/test command over ssh, the owners for the new directory are joe:joe. ... | stackexchange/codereview |
This is probably a pretty obvious question, but how would I go about creating a List that has multiple parameters without creating a class.
Example:
var list = new List<string, int>();
list.Add("hello", 1);
I normally would use a class like so:
public class MyClass
{
public String myString {get; set;}
public ... | stackexchange/codereview |
I'm creating a C# Windows Installer (using a C# Setup Project) for an application that I'm deploying and I have a problem with the limited UI controls.
Throughout the install process, I am logging all the installer activity to an XML file, so in the final screens of the install process, I'd like to parse that XML progr... | stackexchange/codereview |
I created report vs 2008 asp .net web application and sql server 2008, report .rdl. i want to chage the height and width of the reportviewer... width=100%
how can i do this....
plz help me....
| stackexchange/codereview |
I am trying to work on this problem: A user spaces program keeps polling a buffer to get requests from a kernel module and serves it and then responses to the kernel.
I want to make the solution much faster, so instead of creating a device file and communicating via it, I allocate a memory buffer from the user space an... | stackexchange/codereview |
I have a script that is in the top level of my working copy and would like to use it as a Mercurial hook. If I use an absolute pathname to the hook then everything is fine, but I want a relative pathname so the whole thing can be easily moved around, used in other working copies and other developers can copy the hgrc ... | stackexchange/codereview |
I have been doing some reading, and I see that I can use getch() to get a keystroke. What I have seen is that this is considered bad practice, however I have seen conflicting opinions. I am writing a console application for my class, and would like to be able to move a marker(*) around the screen based on the arrow k... | stackexchange/codereview |
i have two text box
when i press a button text of textbox one can automatically display on textbox2.
i used V S 2010
I need this code in c#
| stackexchange/codereview |
is there a way to assign a special value when a binding cannot be evaluated because of a null value in the property path ?
For instance if I have a property Name in a class Customer and a binding like this :
{Binding CurrentCustomer.Name}
When CurrentCustomer is null I'd like the binding to produce the string "---".
"... | stackexchange/codereview |
I have a few variables:
var test1 = 1500;
var test2 = 500;
var test3 = 3000;
var test4 = 20000;
And I have an another variable like this:
var list = 'test3,test1';
This is not fixed obviously, so that can be 'test4,test1,test2' etc..
Now, I need a price variable. test3+test1 = 4500
var price = '4500';
But I don't ha... | stackexchange/codereview |
My jQuery performs it's action with success, I know, because I get authenticated with the server, but I've got a problem accessing the return data. I've tried added the .d to solutions found on Google..
JQuery:
$.ajax({
url: "something.asmx/Login",
type: "POST",
data: "{'a': '" + a.val() + "', 'p': '" + p.v... | stackexchange/codereview |
To be concise: dump/restore process makes my functions’ source code look ugly! God knows why, but something adds extra line breaks to my beautifully formatted source code in a way that makes me really mad (and makes it harder to read my code). Just a small illustration of what happens after I restore my database:
CREAT... | stackexchange/codereview |
I'm using internally a simple text list to represent roadmaps. But that's not enough when it comes to present the roadmap to some powerpoint accustomed decision makers.
Do you know of any techniques to generate (nice looking) development roadmaps? How do you produce your roadmaps?
Update: Started a bounty to draw a lit... | stackexchange/codereview |
I'm new to Ruby and as part of my studies I got a task to convert a CSV file into something I can sort by price and such. However I am having trouble creating a list of objects. I know that I could make object1, object2 and such, but I do not know how to do this automatically.
This is the code I have so far:
class Prod... | stackexchange/codereview |
For example:
I want to set a variable and then have it output on the same line.
set /p MESSAGE= && echo %MESSAGE%
But it doesn't quite work like you expect. Is there a way to pipe it to echo or is there a better way to delimit separate commands?
Thanks.
| stackexchange/codereview |
Does anyone know of an app that would generate an xml file filled out with random data?
My app has an importer that should handle almost all sizes and structure of xml files, and I'd like to test this.
To be clear; not only do all element names and values need to be random, but also the tree structure itself. There sh... | stackexchange/codereview |
I'm trying to bind a nullable bit column, which at the moment is mostly null, but I need to somehow convert the null to a 'false' on runtime because it doesn't bind to a checkbox if it's null. But, I am currently unable to change the default value and update all records accordingly - is there a way to do this in runtim... | stackexchange/codereview |
I'm a bit new to .net so i was wondering if a thing like this is possible.
I'm having one basic aspx script that needs to load some "plugins".
Every plugin has its own settings and it should perform different logics.
What i'd do in php is create a class for each plugin, load that class, pass the settings file to it ... | stackexchange/codereview |
I have a config file which I often modify in order to do some testing. About 95% of the time I modify this file, I do not wish to commit to the repo. It's a nuisance to always be on the lookout during commits.
I discovered this supposedly nifty feature in TortoiseHg called "Auto Exclude List" which is supposed to tak... | stackexchange/codereview |
I have run out of all the posibilities with the next piece of code. The condition in if is false therefore the if should not be executed. But, using the debugger, the execution goes to the second line, which is Response.Redirect.
If False Then
SaveData()
Response.Redirect("Lop_Approved_Results.a... | stackexchange/codereview |
Is there any way in Java to store a reference to a class? Here's what I want to do:
public class Foo
{
public static void doSomething() {...}
};
SomeClass obj = Foo;
obj.doSomething();
Is there some class "SomeClass" which lets me store a reference to a class, such that I can later use that stored object to call... | stackexchange/codereview |
I used code like this:
puts Time.now.at_beginning_of_day
but it seems Ruby didn't have this method. I searched Google to find it. Is something used wrong?
| stackexchange/codereview |
i am getting the following error while adding the background image to the content of a table view cell
[NSCFString setBackgroundImage:forState:]: unrecognized selector sent to instance
UIButton *playBtn = [UIButton buttonWithType:UIButtonTypeCustom];
playBtn.frame = CGRectMake(x+playBtnXPos, y+playBt... | stackexchange/codereview |
We have an android app that currently sends data to a php script which writes to a mysql DB on the same server. We are thinking of using a scalable remote DB e.g. amazon RDS.
The question is how does our android app write to these remote DBs? Do they have some kind of rest API, or do we have to send the data to the sam... | stackexchange/codereview |
Will XCode installer automatically update my old version or do I need to uninstall old one first?
Sorry, sort of newbie to Mac development. Going fine with Xcode 3.2.4, but new version is out as of today.
| stackexchange/codereview |
In Pentaho Kettle, say one wants to copy data between two identical tables, A and B. If there is a column that is auto incremented is there a way to preserve the value of that column when copying the data from A to B? Is the behaviour of the auto incremented columns database specific or has Kettle found a general solut... | stackexchange/codereview |
I have written some Java Applets and bundled them into a signed JAR. Even though the Applets are signed, they still need to be some changes on the client concerning the java.policy file. For example, to do a print job.
To help the end user, the user can download another JAR with a small Swing app which will add the en... | stackexchange/codereview |
I'm a Regex noob and am pretty sure I'm not going about this in the most efficient way - wanted to get some advice.
I have a Regex expression ((\w+\b.*?){100}){1} which selects the first 100 words of my string, the length of which varies.
What I want is to select the entire string except for the first 100 words.
Is ... | stackexchange/codereview |
I have an array containing a set of elements. The order of elements is irrelevant - I use an array since it's the simplest data structure I know in Perl.
my @arr = ...
while (some condition) {
# iterate over @arr and remove all elements which meet some criteria
# (which depends on $i)
}
I know of splice() but ... | stackexchange/codereview |
I am using icefaces when I enter arabic value I get some strange value like ????? on bean.
<ice:inputTextarea id="content" cols="30" rows="7"
onkeypress="moveFocus(event,'btn-add');"
binding="#{createSmsTemplateBean.bodyRef}"
value="#{createSmsTemplateBean.smsTemplate.smsContent}"
valueChangeListener="#... | stackexchange/codereview |
There is something I would like to understand in my custom control. I handle WM_NCCALCSIZE to set the client area to the entire window, in other terms there is no nonclient area. I was expecting to not receive WM_NCPAINT but I still receive it each time the window size changes. Here is my WndProc code:
if (m.Msg == Win... | stackexchange/codereview |
What's the difference between check InvokeRequired and call Invoke method for a control
and for the parent form if I want to deal with the control from another thread?
if (theForm.InvokeRequired)
Invoke(...)
Or
if (myControl.InvokeRequired)
myControl.Invoke(...)
From MSDN:
The Invoke method searches up the ... | stackexchange/codereview |
Is it possible to do draw a rectangle with a given border thickness in an easy way?
| stackexchange/codereview |
i know that [UIDevice currentDevice].model will give me the name of the device currently running my application. What i want to know is whether there is a way to differentiate an iPad with Wifi only from an iPad with 3G connectivity or not. I do not have the hardware and the emulator gives only iPad Simulator. Any one... | stackexchange/codereview |
I'm exploring different ways of storing user-uploaded files (all are MS Office documents or alikes) on our high load web site. It's currently designed to store documents as files and have a SQL database store all metadata for those files. I'm concerned about growing out of the storage server and SQL server performance ... | stackexchange/codereview |
Adding indexes is often suggested here as a remedy for performance problems.
(I'm talking about reading & querying ONLY, we all know indexes can make writing slower).
I have tried this remedy many times, over many years, both on DB2 and MSSQL, and the result were invariably disappointing.
My finding has been that no m... | stackexchange/codereview |
This is a little complicated, but I have 2 tables. Let's say the structure is something like this:
*Table1*
ID
PhoneNumber1
PhoneNumber2
*Table2*
PhoneNumber
SomeOtherField
The tables can be joined based on Table1.PhoneNumber1 -> Table2.PhoneNumber, or Table1.PhoneNumber2 -> Table2.PhoneNumber.
Now, I want to get a r... | stackexchange/codereview |
I mostly work on CMSs, where there is no security concern about the people who CAN/CANT enter the site because it is for public use, but now i have been assigned to work on an Intranet App, and would like to know if on the programmatic side i must take care of extra security features or all that "intranet security" is ... | stackexchange/codereview |
I'm using the Chipmunk physics engine for my C++ project.
Chipmunk has it's own vector, cpVect, which is nothing but a struct { double x, y; };
However I have my own operator overloaded Vector class in my project - and I'd like to use it just as a cpVect and vice-versa, without any conversions
(my class Vector's only d... | stackexchange/codereview |
I´m building an application which shows a modal dialog for some operation. That modal dialog is build using a Form, and has as Owner the main application window, which is passed as parameter in the Form.ShowDialog method.
That modal dialog needs to spawn a common dialog when a button is clicked, (FontDialog) A common d... | stackexchange/codereview |
I have a comma delimited file which I want to import into SQL Server.
The file is quite huge (240MB).
I need to import the same via the following process:
Create table to import to.
The first line of the file would correspond to the column of the table.
All items would be treated as string.
Is there a tool in SQL ser... | stackexchange/codereview |
I am novice about ruby and getting lot of confusing what is ruby and where it used.
I am requesting a small description about ruby. How to get started with ruby.
Thank You
| stackexchange/codereview |
It seems their displays dont have enough colors. Right?
Can I do smth. about it? What shall I tell my designer?
| stackexchange/codereview |
I am using a Toolstrip to draw myself a TabStrip where I do not want the items to overflow, but rather shrink-to-fit the available width. Very much like many browsers tabs behave (ex. Chrome).
I know there is a LayoutEngine property which can be overriden, but I have no clue on how to implement this.
Anyone knows how t... | stackexchange/codereview |
What are the advanced and mature software platforms that can be used to create commercial software?
And what types of apps are they suited at creating?
We all know the basics:
.NET makes quick work of Windows apps
Flash or Silverlight for internet experiences
MS Office addons for workflow integrated apps
ASP, Python, ... | stackexchange/codereview |
Apologies if my question is misleading. Here's what I mean. In Visual Studio 2010 for example, you could visually design a website or a web application as well as add C# code here and there. How would I design my website without an IDE, just by using Python IDLE and Django platform.
Would I need to use something like ... | stackexchange/codereview |
I have something similar to this
.col {float: left; width:190px;border: 1px solid red;}
<div class="col">
<p>some text goes here some ass sasass here </p
</div>
<div class="col">
<p>some text goes here</p>
<a href="">Link</a>
</div>
So the text on the first div is quite long where as the text in the second ... | stackexchange/codereview |
I'm creating a social network. I'm trying to implement a profile search or a search engine where a profile can discover and connect to new profiles. Is there any algorithms or modules out there in PHP? Do anyone have any suggestion of how to make the search as relevant as possible please give som code example.
Any algo... | stackexchange/codereview |
I'm curious if it's possible to send a Rails 3 application to one website if someone lands on the site as a guest and another website if someone lands on the site as a user.
Is this done in routes? Is this done in the controller-tier?
| stackexchange/codereview |
I would like to add the smooth scrolling functionality into my application.
i.e. I have a huge text and I want to scroll it automatically (like in book readers).
Could anyone offer any examples of smooth scrolling?
| stackexchange/codereview |
I have a file tracked in Mercurial. I can see its history with hg log. How can I see the diffs between its most recent version, and the last checked-in changeset?
| stackexchange/codereview |
I have a column of type geography. I have created a a spatial index, but its not being used:
declare @geog geography
select @geog = 'POINT (18.12 -33.2)'
select *
from dbo.product WITH(INDEX(IX_Spatial))
where
@geog.STDistance(GeoLocation) > 1000
The index is created like this:
CREATE SPATIAL INDEX [IX_Spati... | stackexchange/codereview |
I need some help in converting following format using strcat function instead of s
printf.
const char* const MSG_STAMP_PRINTF_FORMAT = "%c %04d-%02d-%02d %02d:%02d:%02d.%03d";
char cMsgStamp[500];
char cSevChr = 'I';
struct tm gmt;
// Calculate Day/Hour/Min/Sec
gmtime_r((time_t *)&pMsg->iSysTimeSec, &gmt);
int iSy... | stackexchange/codereview |
My friend and I are developing a little game and we want to share the development stages with our friends. So I made this little page http://people.scs.carleton.ca/~manders8/game.html
Right now it's one .class file that we're updating. But for some reason it always loads the old version. I know there's a way to turn of... | stackexchange/codereview |
Let:
G - the graph
V(G) - the vertices
E(G) - the edges
v,w particular vertices.
the algorithm for building the graph:
//adding v (a new vertex to the graph)
if v has a friend in V (G) then E ← E ∪ {vw|w ∈ V (G)}
G ← (V ∪ v,E)
Can you please give me at least a clue how could I find out if a given graph was built with ... | stackexchange/codereview |
I'm having trouble with this query and can't seem to find a solution on the net. What I'm trying to do is to select rows from several tables after applying unions on them and then insert only those rows into table1, whose col2, and col3(as a pair) are not already present in table1.
INSERT INTO [somedbo].[table1](col1, ... | stackexchange/codereview |
I have a mixed C++/Qt/Python project managed in Eclipse, and I would like to set the Qt paths without setting my project as a "Qt Project".
Using CDT and setting it as general "Makefile project from existing code", I cannot find any option in the project properties, where I can set the Qt paths.
The menu "QT" seems to ... | stackexchange/codereview |
I'm writing a preference screen in in xml for my Android application. My issue is that some of the titles of the preferences are too long and will not wrap the page. Consider my example:
<CheckBoxPreference
android:title="Language Detection (BETA)"
android:defaultValue="false"
... | stackexchange/codereview |
We've put an existing application to a new R2 server with IIS 7.5.
Now everything works, and application can write to it's folders...but we are wondering how...new IIS comes with IIS Application Pool Identity story which creates a new virtual user for each application, and so it has done for this one.
It is stated in d... | stackexchange/codereview |
I'm using OleDB to connect to a FoxPro DBF database. I need to query a table for all items with column = key1 or key2 or key3...... key2000.
FoxPro apparently doesn't like long queries....
I've tried both:
where (col like "key1") or (col like "key2") or ..... (col like "key2000")
and
where col in ("key1", "key2",... | stackexchange/codereview |
i just wanna ask how to encrypt database using adobe air 2.0. I found some codes using Adobe air 1.5. here the codes:
// Include AIRAliases.js to use air.* shortcuts
var conn = new air.SQLConnection();
conn.addEventListener(air.SQLEvent.OPEN, openHandler);
conn.addEventListener(air.SQLErrorEvent.ERROR, errorHandler);... | stackexchange/codereview |
how do i add IncludeExceptionDetailInFaults = true; to the below code. I need to get the details of the FaultException thrown by the web service. currently i am not getting any details back. It looks like the only thing i get back is the . any ideas?
c# code
CustomBinding Binding = new CustomBinding(BINDING_NAME);... | stackexchange/codereview |
We are building an application which is suppose to connect to the Support Engineer's Mobile phone and will alert him about any job to be done.
This application will be based on 2 parts. one is Control Centre part where the interface will be built using Silverlight 4.0 and ppl from Control Centre will be using it usin... | stackexchange/codereview |
I see the majority of WPF Ribbon examples out there use some code like
xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
I'm getting this error..."The type 'r:RibbonCommand' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies ... | stackexchange/codereview |
I would like create a file from a batch file. I can use the echo. > donald.txt, but it creates it with an initial blank line. What else I can use to a file starting from the first line?
| stackexchange/codereview |
I was trying to import a .m file to use a static variable declared there in to another class.
#import "Faculty.m"
I got the error "No such file or directory".
Now this might be a bad programming practice to declare variables in .m implementation files, but just out of curiosity, what is the error all about? The .m fil... | stackexchange/codereview |
I have a code but cant get it to work.
I have a .vb site with a namespace and a Class and a Sub.
Then on my index.aspx site i cant to call this sub
The 2 sites is in the root of my project, and the name of the project is CalendarWeek
My WeekController.vb is
Imports System
Imports System.Web.UI.WebControls.Calendar
Impo... | stackexchange/codereview |
Just for the hell of it, i've taken an interest in learning assembly. The problem is I can't find a good starting point...
There seems to be a lot of assemblers available (FASM, NASM, YASM, MASM) but each has their own separate syntax, commands, and features. FASM seems to be the most convenient since it can compile ... | stackexchange/codereview |
I have a problem, normally I would understand why this is happening, I didnt declare the function in the main method. But the class itself includes the .h file, which has the prototype for this method, so I am a bit lost on why it is not in the scope of the main function.
using namespace std;
#include "Solar.h"
... | stackexchange/codereview |
Is there a way to remove self-intersections from a polygon using GEOS?
| stackexchange/codereview |
I use GeckoFX to render some web application's GUI. There are many repetitive small 16x16 images here and there injected into single HTML page by javascript.
All these IMG instances are downloaded one by one from the web server and I couldn't optimize this behavior using cache-control or expires headers or by using jav... | stackexchange/codereview |
I am looking for a simple method to format the following float\double numbers to a CString.
I was hoping to use CString.Format(), but alternatives are welcome as well, as long as it ends up being a CString.
3.45
112.2
To the following format:
00003450
00112200
Notice there should be no decimal point.Can this be done ... | stackexchange/codereview |
For example, I have the following expression mapping:
function! DelNthSpace()
let col=match(getline('.'), '[[:blank:] ]', col('.'), v:count1)
return virtcol([line('.'), col+1])."|s \e"
endfunction
nnoremap s DelNthSpace()
You see, v:count1 is already handled here. But if I try to replace ... | stackexchange/codereview |
Is there a way to use strtotime to add working days (Monday to Friday) to a date? Or some other method? What I want to do is:
date ( 'Y-m-j' , strtotime ( '+3 working days' ) )
| stackexchange/codereview |
I have 2 WCF serivces hosted in IIS server.
Here is web.config
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="HttpBinding" />
</basicHttpBinding>
... | stackexchange/codereview |
What mysql java driver version are you supposed to use with the latest mysql 5.5.7.RC server. (Env: Hibernate 3.3.x)
| stackexchange/codereview |
i am providing copy protection for Android paid applications by using Android Market Licensing mechanism. But it supports only for the paid applications. How can i provide copy-protection to Free application. Is there any alternatives ? Please help me.
ThanQ.
| stackexchange/codereview |
iOS SDK 4.2 includes a new UIApplicationDelegate method called application:openURL:sourceApplication:annotation:. It is a replacement for application:handleOpenURL: and offers more information about the calling application: not only do we get the bundle identifier of the calling app, but also, in the annotation argumen... | stackexchange/codereview |
I am on Rails 2, which the newest version of factory_girl to use is 1.2.4
I have 2 tables:
ethnicities(code, description)
people(id, name, ..., *ethnicity_code*, ...)
people.ethnicity_code is the foreign key
In factory_girl factories.rb:
Factory.define :ethnicity
f.sequence :code { |n| n+20 }
f.description 'Foo'
en... | stackexchange/codereview |
I was looking at the code of java concurrent collections and I see that they just wrap simple collections with locking some lock in the beginning of the operation and unlocking it in the end.
What about volatile? If the back end collection is not volatile the changes could be missed by other threads, and so the thread... | stackexchange/codereview |
I'm trying to implement a solution using HornetQ. Since I need to access it through a C++ application, that raises me a problem. I'm compiling the activemq-cpp builtin example, and changing it to work with stomp instead of openwire (HornetQ doesn't understand openwire). The application refuses to produce messages on th... | stackexchange/codereview |
I am building grade-book report - a two dimensional table that shows lesson names going horizontally and a list of students going vertically.
Student Name | LessonID x | LessonID x | LessonID x
Joe 95% 95%
Mary 80% 80%
Sam 80% 80... | stackexchange/codereview |
I am writing a class library to interact with a domain Active Directory. In my object model, I have the following:
Domain;
Organizational Unit;
Group;
User.
In my Domain object, I have an Entries property and an Add() method.
public class Domain {
// The ReadOnlyDictionary<TKey, TValue> is a custom wrapper over a... | stackexchange/codereview |
I need a regex to match a string in any of these formats:
"AAAA00000000"
"AAAA00000000-0000"
"0000000000"
I've got the first and third pattern right, this is what I came up with
^(([a-zA-Z]{4}[0-9]{8})|([0-9]{10}))$
I can't get that working to include the second pattern.
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.