instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
During initialisation of my program I call SDL_SetVideoMode() just after SDL_Init() and it is hanging my program.
When executing the program, if I press Ctrl-C during the hang it will continue as normal and all works fine.
Obviously, having to interupt SDL_SetVideoMode() every time isn't ideal! Anyone have any ideas o... | stackexchange/codereview |
For migrating my old database from MySQL to SQL Server, which edition is suitable, 2005 or 2008 R2? Some developers suggested me to stick to the old version.
Suggest Pros and Cons. I will be using with my .NET standalone Windows app.
| stackexchange/codereview |
I had a simple variable definition in my makefile:
THIS := ~/edan
and it had trailing spaces in the line.
Later, when I defined another variable in terms of this one:
WARES := $(THIS)/wares
the actual variable defined was /home/directory/edan wares
and then the make clean rule removed /home/directory... | stackexchange/codereview |
I have a java program where I want to validate if any of 3 booleans is false. I want to figure out the smallest expression I can write to check against the permutations.
if(!(needsWork && (needsApproval || isAdmin) ))
I think this is enough to make sure that if any of the 3 booleans is false I want to stop proce... | stackexchange/codereview |
I'm new to iOS development and am working on this app that has a similar interface to the official Twitter app. However, I'm not sure how to organize the view controllers and the hierarchy, especially for UITabBar and UINavigationBar (which one is the parent controller?).
Can you guys point me to the right direction? ... | stackexchange/codereview |
As part of a larger project, I want the ability to take two bodies of text and hand them to a merge algorithm which returns either an auto-merged result (in cases where the changes are not conflicting) or throws an error and (potentially) produces a single text document with the conflicting changes highlighted.
Basical... | stackexchange/codereview |
I am trying to start the GlassFish Server from the command line:
I typed in the following command:
asadmin start-domain -verbose
or
asadmin start-domain domain1
or
asadmin start-domain
I'm looking over the error output. I see this first:
java.io.FileNotFoundException: C:\Program Files\Sun\
SDK\domains\domain\... | stackexchange/codereview |
So the following code is possible in C# to start a new thread in a method:
int myInt;
new Thread(delegate() {
// yeah, I'm in a separate thread! And I can access myInt as well, awesome
}).Start();
and all your local variables in that scope are also available in that thread. I've used this in times where I need to ... | stackexchange/codereview |
I have a string:
TFS[MAD,GRO,BCN],ALC[GRO,PMI,ZAZ,MAD,BCN],BCN[ALC,...]...
I want to convert it into a list:
list = (
[0] => "TFS"
[0] => "MAD"
[1] => "GRO"
[2] => "BCN"
[1] => "ALC"
[0] => "GRO"
[1] => "PMI"
[2] => "ZAZ"
[3] => "MAD"
[4] => "BCN"
[2] => "BCN"
[1] => "ALC"
[2] =... | stackexchange/codereview |
I have been looking at this code and I am having trouble understanding the functionality of the OnTimer function. I am quite new to VC++ so all of this is new knowledge for me.
Can any one tell me when OnTimer event will be fired ? I have pasted my code below for review.
(new to VC++)
(sorry for bad formatting)
iSCSIDl... | stackexchange/codereview |
This should be much simpler than it has proven to be!
I have an ASP.Net web app which uses FORMS authentication to secure part of the site (i.e. the member login area).
Now I simply want to put a traditional/simple browser password popup (directory security) across the whole site because we are testing it and don't wan... | stackexchange/codereview |
I have some ebooks in xml format. The books' pages are marked using processing instructions(e.g. <?pg 01?>). I need to extract the content of the book in plain text, one page at a time and save each page as a text file. What's the best way of doing this?
| stackexchange/codereview |
I am trying to convert a query to return as xml in the correct format
The query is simply SELECT * FROM [TABLENAME], and yes it has to be * as this is used for a dynamic utility that needs to work on any table.
Anyhow, I want the resulting records to be nested two levels deep like this
<Root>
<RecordParent>
<R... | stackexchange/codereview |
i have created a custom NSView that displays an image.
i have created a property in Inspector view with binding to File's Owner.
Everything works fine in runtime image changing.
But nothing is loaded when i save and load xib file.
here is the simplified code:
IBDocument *document = [IBDocument documentForObject:self];... | stackexchange/codereview |
I code the game over at ninjawars.net, and have recently consolidated most of my (ugly) javascript code into a single object that gets re-used for the inner frame and the outer frame.
We were going to consolidate the same instance of jQuery as well (i.e. making it a Global so that it is accessible via $ everywhere, but... | stackexchange/codereview |
[array objectAtIndex:i] doesn't work as an L value, so it can't be used to set the object at index i.
| stackexchange/codereview |
My team is trying to build an Android application for a tablet that will be dedicated for this sole purpose. One of the requirements is that the application is the only thing running on the device (at least from the user's point of view). The user should not be able to close it or use any other functionality from the O... | stackexchange/codereview |
I'm using Matlab to take FFTs of signals, and I'm getting stuck on the normalization. Specifically, how to normalize the spectrum into units of dBm. I know that 0.316228 is the correct normalization factor, but my questions are related to how to normalize the bins correctly.
I created the following program to raise my... | stackexchange/codereview |
Ok so I -roughly- want this code:
test1.m:
Foo *foo = [[Foo alloc] init];
foo.x = 1.0f;
[staticClass bar:*foo.x];
staticClass.m:
-(void)bar:(float *)argVar
{
*argVar += 1.0f;
}
So I'm pointing the argVar to a property of the Foo class. Obivously the current code doesn't work.
What's the proper syntax for/way to d... | stackexchange/codereview |
Say I have a scheme that derives a key from N different inputs. Each of the inputs may not be completely secure (f.x. bad passwords) but in combination they are secure. The simple way to do this is to concatenate all of the inputs in order and use a hash as a result.
Now I want to allow key-derivation (or rather key-de... | stackexchange/codereview |
I'm trying to login to my website which runs on wordpress using Jwebunit.
webPage.setBaseUrl("http://www.mywebsite.com");
webPage.beginAt("/wp-login.php");
webPage.setTextField("log", "myusername");
webPage.setTextField("pwd", "mypassword");
webPage.clickButton("wp-submit");
The above does not throw any errors, but t... | stackexchange/codereview |
I'm developing some simulation software in Clojure that will need to process lots of vector data (basically originating as offsets into arrays of Java floats, length typically in 10-10000 range). Large numbers of these vectors will need to go through various processing steps - e.g. normalising the vectors, concatenatin... | stackexchange/codereview |
I need some images to display on my main page in (semantic media wiki)
| stackexchange/codereview |
I have table "Event" and table "Sessions" and each event has a set of sessions and each session has start date and end date.
Event start date : is the start date of first session of that event
Event end Date : is the end date of the last session of that event.
what i want to do is return all the events that have star... | stackexchange/codereview |
Hey guys, I have the following query and for the life of me I can't seem to translate it into JPQL. The working SQL is:
select * from TB_PRINT_DETAIL y inner join
(select JOB_ID,max(COPY_NUM) MAX_COPY_NUM from TB_PRINT_DETAIL group by JOB_ID ) x
on y.JOB_ID = x.JOB_ID and y.COPY_NUM = x.MAX_COPY_NUM
My feeble att... | stackexchange/codereview |
I have a UIWebView that contains a lot of text content. I need to be able to get the location of the UIWebView every time it moves. I am using this code to get the point:
pageYOffset = [[webView stringByEvaluatingJavaScriptFromString:@"window.pageYOffset"] intValue];
now I just need to make it so that this variables v... | stackexchange/codereview |
I'm new to ruby and was hoping someone could help me figure out how to open a file, then using gsub to find and replace by multiple conditions.
Here's what I got so far but this doesn't seem to work as the 2nd replace var overrides the first:
text = File.read(filepath)
replace = text.gsub(/aaa/, "Replaced aaa with 111"... | stackexchange/codereview |
what's wrong with the following code:
class A
{
public:
static A* p;
A()
{
p = this;
}
};
I got this link error:
error LNK2001: unresolved external symbol "public: static class A * A::p" (?p@A@@2PAV1@A)
I cannot figure out the point of this problem, please help..
| stackexchange/codereview |
This is my current code
@descriptions = TableName.find(:first, :conditions=> ["table_id = ?", table_name.table_id], :order => 'author_year')
author_year column contains data of
kannan 1845
kohlun 1976
palani 1956
Using above code, it gives result with order of author_year based on author names. I need to order the qu... | stackexchange/codereview |
I am trying to load data from Excel file to DataGridView in my Form. First I load all data from excel sheet into dataset then put all that data in database using C# LINQ and then I just set the DataGridView.DataSource to name.BindingSource and that is it. I get all the data in DataGridView but when I try to load the da... | stackexchange/codereview |
I have managed to get header at the top, and content at the center. But I did get stuck with placing user-navigation div at the right of the content. I have tried using position:relative, but what happens it appears below content's div, but on the right though, and also when I scroll down the view, it appears on top of... | stackexchange/codereview |
what is tool like TortoiseSVN on ubuntu? please help me.
| stackexchange/codereview |
We have started developing an application for location aware emergency service. The users can connect through computer,smart phone or even through WAP. We want to use cloud servers (GAE or AWS). We want to optimize the site for the user's device.
I can not find out exactly how to know the device or the browser the user... | stackexchange/codereview |
This runs fast compared to other's.But i dont know how fast it would be at slow computers..
The code filters the results dymanically. The criteria are set in css class..
$(document).ready(function ()
{
$("#filters a").click(function(event)
{
event.preventDefault();
event.stopPropagation();
... | stackexchange/codereview |
I have a Spring MVC web application which provides RESTful web services via a controller class (annotated with @Controller) which has methods mapped to specific request types and signatures via @RequestMapping annotations.
I have attempted to integrate a BlazeDS service destination into the mix by 1) adding the HttpFle... | stackexchange/codereview |
So I'm making a Load.c file, that basically will load a bunch of "students" into shared memory.
The students are stored in a struct that looks like this:
struct StudentInfo{
char fName[20];
char lName[20];
char telNumber[15];
char whoModified[10];
};
Anyway, I need to load this in shared memory. We were given some sa... | stackexchange/codereview |
I've searched this and cannot find it. I've tried different plugins and different browsers (Firefox, Opera, and Chrome). I've tried most of the no flash plugins for each of those as well as disabling Flash plugins/addons in the settings. I also renamed the .so file in /usr/lib/flashplugin-installer/ i found by searchin... | stackexchange/codereview |
i am passing two strings from a c file to asm file as parameters. then i move these to ecx and edx from stack. how can i know exactly what their lengths are? like strlen(string) in c?
push ebp
mov ebp,esp
mov ecx,[ebp+8]
mov edx,[ebp+12]
| stackexchange/codereview |
I have a grails project that is throwing the following exception:
org.springframework.dao.DataIntegrityViolationException: could not delete: [Role#4]; SQL [delete from role where id=? an
d version=?]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not del
ete: [Role#4... | stackexchange/codereview |
Someone know what this error means? I get the error when I try to disassemble a file written by LLVMWriteBitcodeToFile. When I dump the module using LLVMDumpModule and manually assemble and disassemble the file no error occurs. The module that i am trying to compile (from LLVMDumpModule) looks like:
; ModuleID = 'Test... | stackexchange/codereview |
I have a web app that adds an application to a users profile, and requests extended permissions.
I can't seem to find if there is a way to use a script to remove the application from the users profile when they request to do so from my web app. I know they can remove the app when logged into Facebook, but I want to kno... | stackexchange/codereview |
Hello
In the CMS of the eshop i am developing the other developer for static pages stores each static page at the database..
There is a form where you add static pages on demand.But i think that instead of storing the content at the database storing the path to the file might be a better solution...
What do you think?
... | stackexchange/codereview |
In Spring Roo I used this tutorial with my custom xsd to generate objects.
After that I used command controller all ~.web, controller is generated but without CRUD functions.
If I make manual objects in Roo controller with CRUD functions is generated. Any idea what is the problem?
Schema file xsd is in my case importan... | stackexchange/codereview |
I'd like to know why the following doesn't work.
from twisted internet import defer, reactor
from twisted.python.failure import Failure
import twisted.names.client
def do_lookup(do_lookup):
d = twisted.names.client.getHostByName(domain)
d.addBoth(lookup_done)
def lookup_done(result):
print 'result:', resu... | stackexchange/codereview |
I have a website. I was wondering if Apple exposed its Game Center data via a web api. If would be cool if I could show users their Game Center info right in my website!
Let me know folks.
| stackexchange/codereview |
I have created a custom dialog, And I have inserted two buttons, one is called send, and the other cancel.
I would like to know hot to close down the dialog when pressing cancel?
| stackexchange/codereview |
I'm coding a flocking algorithm in Java but I'm stuck at a certain point (using the Ardor3D libraries, in a 2D plane).
Basically, I need to find the angle difference to add to the current rotation. If you can only get the way it should be pointing with polar coordinates with 0 degs at north and not the difference, not ... | stackexchange/codereview |
I have tried to remove specific items from a listview using the RemoveAt() method. But When I remove it the first time some items will stay.
For example: see the image below
Code:
private void button1_Click(object sender, EventArgs e)
{
for (int i = 0; i < listView1.Items.Count; i++)
{
... | stackexchange/codereview |
I have a Data logic Memor with Windows CE 5.0 on my Applications i used only Message Box and Color Changing Labels for My Validation and Error Handling.
Now my problem is that i need to play .wav file on validation so even users do not need to look on screen every time they used the Scanner.
I tried this link http://... | stackexchange/codereview |
As it is now I create a JavaScript object and then stringify it, put it in a hidden textbox and my code behind can read this string. I then use JSON.NET to parse the string which works fine. I now try to use ajax to post it to my web service but have some issues with how to send the string. I have tried many ways but g... | stackexchange/codereview |
I have a method where I am passing in two object, which have the same property names, and I'm using Reflection to get the values from one object and set the values on the other. My problem is when I come across a property that is a collection, the original is EntityCollection and the one getting set is ObservableCollec... | stackexchange/codereview |
I have done one project in android which is to display map using GOOGLE API KEY.
goto: [http://mobiforge.com/developing/story/using-google-maps-android]
I generated MAP API key for my system by following the procedure mentioned in above link correctly. It works well and displays map on EMULATOR.
I took a BUILD of my pr... | stackexchange/codereview |
We use subversion, which works great for software projects. We also have a lot of flash projects, which we don't use any kind of source control. Each flash project contain quite a few images. The time frame of each project is a couple weeks, but few can go upto a couple months.
The number of files we create contribute ... | stackexchange/codereview |
Let's say I have a ClassA class and a methodA private method in Java.
In my ClassB class I have a main method where I invoke MethodA. This should not work, obviously.
What can I do to throw an Exception or Error when this happens during the runtime.
Thanks.
| stackexchange/codereview |
I need to create a large grid with approx. 5,000 cells (10x10px). each cell needs its own ID, has to be clickable. cells that have been clicked need to be shaded differently. I also have to have a background image which needs to remain visible.
This is wrecking my head as the HTML overhead creating 5000 div tags is sim... | stackexchange/codereview |
I'm in deep trouble. Something in my app causes a lot of properties in my app delegate to become trashed (changing contents and even object type, say an NSArray becomes an NSString...), and I can't debug it out. I can find no memory leaks or errors on my part. The only thing I've found is that all the way to ViewDidApp... | stackexchange/codereview |
I want to take a day of the year and convert to an actual date using the Date object. Example: day 257 of 1929, how can I go about doing this?
| stackexchange/codereview |
I've a form I want to validate. It contains 2 Address variables. address1 has always to be validated, address2 has to be validated based on some conditions
public class MyForm {
String name;
@Valid Address address1;
Address address2;
}
public class Address {
@NotEmpty
private String street;
}
... | stackexchange/codereview |
I'm using this code, from the nerddinner example. This method will display a list of all the upcoming dinners in a database when called in the controller.
public IQueryable<Dinner> FindUpcomingDinners()
{
return from dinner in entities.Dinners
where dinner.EventDate > DateTime.Now
orderby dinn... | stackexchange/codereview |
I have a problem with reading .xlsx files in asp.net mvc2.0 application, using c#. Problem occurs when reading empty cell from .xlsx file. My code simply skips this cell and reads the next one.
For example, if the contents of .xlsx file are:
FirstName LastName Age
John 36
They will be read as:
Fi... | stackexchange/codereview |
I need to display an info panel in my app, even if a modal window is open. How can I achieve that?
| stackexchange/codereview |
Would this Android code be a correct way to test for http network availability during a phone call, or does it exclude networks that should be included or vice versa:
public boolean isOnline() {
TelephonyManager tm = (TelephonyManager)
getSystemService(Context.TELEPHONY_SERVICE);
if (tm.getNetwor... | stackexchange/codereview |
I need to call a webservice but I dont care if I get need a response or the service is down (fire and forget).
Im currentlly using a try catch to compe with this.
My Question
Is there a better way?
Thanks
Sp
Bit more detail.
I dont want the call to fail even if the webservice is down
| stackexchange/codereview |
I found that template method could be overloaded, can I do the same on template classes? If 2 template classes match a template class instantiation, we can use the parameter type in the constructor to deduce which one to use.
template <typename T>
class A{
A(T){}
};
template <typename T>
class A{
A(T*){}
};
int ... | stackexchange/codereview |
i've a problem in converting pdf to any other formats which is supported by ipad.I tried svg and epub but everything has some drawback. Can any one suggest me software which is comaptable for ipad and memory aspects?
Thank you all.....
hi every one finally i got solution for this question.directly we can read and displ... | stackexchange/codereview |
I am a new beginner with boost. And here is my test code,
using namespace boost::lambda;
std::vector<std::string> strings;
strings.push_back("Boost");
strings.push_back("C++");
strings.push_back("Libraries");
std::vector<int> sizes;
std::for_each(
strings.begin(),
strings.end(),
bind(
&s... | stackexchange/codereview |
I'm working on an Android application (in Java, obviously) and I recently updated my UDP reader code. In both versions, I set up some buffers and receive a UDP packet:
byte[] buf = new byte[10000];
short[] soundData = new short[1000];
DatagramPacket packet = new DatagramPacket (buf, buf.length);
socket.receive (packet... | stackexchange/codereview |
I have two separate appliations running on the separate infrastructure. app-a is using MYSQL as it's database server and, app-b is using MS SQL Server as database server. I have got requirement to constantly read some tables in the MS SQL server and populate some table in MYSQL server.
I got clue about setup a communic... | stackexchange/codereview |
Let's say that we want to make class A thread-safe using an std::mutex. I am having my copy constructor and assignment operator similarly to the code below:
#include <mutex>
class A {
private:
int i;
mutable std::mutex mtx;
public:
A() : i(), mtx() { }
A(const A& other) : i(), mtx()
{
std::lock_guard<s... | stackexchange/codereview |
I have a web page which has many divs (listed like table rows), and the rows exceed the length of the page (within view, before you have to scroll down). I am using some JavaScript to toggle what information is displayed on my page (for example, number of rows.)
I have made a print.css file and have manaed to edit the ... | stackexchange/codereview |
I need constraints created in the following manner:
CONSTRAINT [IX_Unique_1] UNIQUE NONCLUSTERED
(
[Ordering] ASC,
[Description] ASC
),
CONSTRAINT [IX_Unique_2] UNIQUE NONCLUSTERED
(
[Description] ASC
)
I have the following nHibernate mapping:
<property name="Description" column="Description" type="Strin... | stackexchange/codereview |
I have 6 figures in my .tex file. Wherever I put a reference to the 6th image, in the pdf I get Figure1.5 instead of Figure1.6 (1 less) but upon clicking the link I go to the right figure Figure1.6.
Similarly, when I refer to 5th image, in the pdf I get Figure1.4 instead of Figure1.5, once again when I click the link I... | stackexchange/codereview |
I have some problems trying to custom the :path and :url options for has_attached_file with paperclip:
I have a polymorphic class named "Asset" that have :
class Asset < ActiveRecord::Base
belongs_to :file_owner, :polymorphic => true
has_attached_file :picture, :styles => { ...},
:url => "/attachment... | stackexchange/codereview |
/select/?q=*:*&rows=100&facet=on&facet.field=category
I have around 100 000 documents indexed. But I return only 100 documents using rows=100. The facet counts returned for category, however return the counts for all documents indexed.
Can we somehow restrict the facets to the result set returned? i.e 100 rows only?
| stackexchange/codereview |
I need a (XML, XSL) formatter for PDF and HTML output files. Can someone help me with this? How can I recieve FO file?
| stackexchange/codereview |
I am trying to create a redirect of a temp URL using
Redirect Permanent /dir/subdir http://www.domain.com/other_dir/htmlfile.html
Note that "dir" exists in the file structure but "subdir" does not.
In the browser if I type http://www.domain.com/dir/subdir the redirect works (even though, again, "subdir" does not exist... | stackexchange/codereview |
I have a WCF web service built in .NET 4.0 that is configured to require a username/password on each call and uses a Server certificate in the behaviour to encrypt the request. It currently uses wsHttpBinding. I have a .NET 4 utility app that lets me call the methods on this WCF web service just fine.
I need to call th... | stackexchange/codereview |
I am working on a project, which requires me to select a item from the categories navigation, which contains a "rel" attribute like (category-action, category-adventure, etc). As you can see from my demo: My Demo Script, it works on the first two categories, however, it does not work with the last two. Why is this? and... | stackexchange/codereview |
I'm having some trouble with Invoke-Sqlcmd
From the normal powershell console, it's fine. But I'm unable to use it from the ISE.
I can confim the addin is loaded
>Get-PSSnapin SqlServerCmdletSnapin100
Name : SqlServerCmdletSnapin100
> add-PSSnapin SqlServerCmdletSnapin100
Add-PSSnapin : Cannot add ... SqlServerC... | stackexchange/codereview |
Within my application i have a PUBLIC customer class...
Public Class Customer
Public Name As String
Public Surname As String
End Class
Then i decided to use LINQ to SQL within my application.
After adding the MyDatabase.dbml class, errors showed up since LINQ creates public properties too
<Column(Storage:="_Na... | stackexchange/codereview |
I am having difficulty preserving certain nodes (in this case <b>) when parsing XML with LINQ to XML. I first grab a node with the following LINQ query...
IEnumerable<XElement> node = from el in _theData.Descendants("msDict") select el;
Which returns the following XML (as the first XElement)...
<msDict lexid="m_en_us00... | stackexchange/codereview |
I usually write scripts for Illustrator and save them in the scripts folder. Then during development I run them using alerts for debugging but this is getting tedious so I thought I would give the Extendscript Toolkit 2 IDE a go so I could use the console for logging.
I've used it in the past a little bit however I ca... | stackexchange/codereview |
Hello
has someone already used a OCR activex/Dll/libary in Delphi ?
I cannot find a library for OCR (Free or for an affordable price)
regards
| stackexchange/codereview |
I have currently written a sub, written in VBA, that is called by the click of a button on an excel document. The sub takes data in the cells of the document and sends them to a web service.
All of this works flawlessly when Visual Studio automates Excel.
I am wondering if there is a way to save this excel file to whe... | stackexchange/codereview |
I have a simple WPF Popup that I am showing when the user clicks a Button.
<Button
x:Name="aButton"
Content="Up/Down"
Width="75"
Height="30"
Click="aButton_Click"
/>
<Popup
PlacementTarget="{Binding ElementName=aButton}"
Placement="Right"
VerticalOffset="-31"
StaysOpen="False"
Al... | stackexchange/codereview |
I need to choose a jQuery data grid plugin that plays well with MVC2.
I sit firmly on the client side so know nothing of MVC2 so was wondering if any had any particularly good or bad experiences in MVC2 with either of the following:
Datatables
Flexigrid
jqGrid
The following functions are required:
Free to use commerci... | stackexchange/codereview |
Hey everyone, I'm working on an application and I'm having difficulty with the new Rails 3 link_to. Here's the situation - I have two divs on my "home" page, and each div is populated at document.load with ajax. This works as expected.
In the content of the pages I'm loading into these divs, I want to use the link_to..... | stackexchange/codereview |
hey, there, is there any way to ass a NON DB property to a Linq-to-SQL class? (etc calculated fields), I'm getting an error when trying
| stackexchange/codereview |
I don't want function pointer overhead, I just want the same code for two different functions with the same signature:
void f(int x);
void g(int x);
...
template<typename F>
void do_work()
{
int v = calculate();
F(v);
}
...
do_work<f>();
do_work<g>();
Is this possible?
To clear up possible confusion: With "te... | stackexchange/codereview |
I need to build an indexed database of whole domains in the world.
.
Example:
domain1.com ips: 1.1.1.1,2.2.2.2,3.3.3.3
domain2.com ips: 1.1.1.1,4.4.4.4
requirements:
fast insertions
fast "selects"
index on ip's - need fast "select" for all domains on IP: 1.1.1.1 .
.
I built it in Berkley-DB , and it seems fine:
(... | stackexchange/codereview |
greetings all
i am using spring security 3.0.2
and i am using the following configuration for remember me
<http use-expressions="true" >
<remember-me token-repository-ref="tokenRepository"
token-validity-seconds="1209600"/>
<beans:bean id="tokenRepository" class="org.springframework.security.web.a... | stackexchange/codereview |
I want to show a ListView with two Buttons belows (outside of list) it. But as my Activity extends ListActivity, I am facing problems on setContentView. Can anybody please help me?
Updates: Solution
I got the solution. No matter which and how many elements we use on a ListActivity, the id (android:id) of ListView in XM... | stackexchange/codereview |
I want to override a bit of core drupal behavior on the comment form.
If you make a comment as an anonymous user, your name and mail are stored in a cookie, and then javascript fills out the appropriate fields in subsequent comment forms using this code below:
Drupal.behaviors.comment = function (context) {
var part... | stackexchange/codereview |
I’m writing a Windows Phone 7 app and am looking for a way to get a unique and unchanging device Id that I can use to identify the device and therefore the user (since Microsoft doesn’t give you access to the users Windows Live Id). Anyone know if this is going to be possible? Especially interested to find out if the... | stackexchange/codereview |
If in C++ I have a class longUnderstandableName. For that class I have a header file containing its method declaration. In the source file for the class, I have to write longUnderstandableName::MethodA, longUnderstandableName::MethodB and so on, everywhere.
Can I somehow make use of namespaces or something else so I ca... | stackexchange/codereview |
I'm using the below code to put an overlay on my MapView. For some reason after itterating through the location data it draws the point in the same place.
It seems to be happening on conversion from Location to GeoPoint to Projection:
Location (lat : lon) 51.2651789188385 : -0.5398589372634888
Projection (x : y) 239... | stackexchange/codereview |
Sorry for dummy question, I'm quite new in Silverlight.
I want to dynamically change the layout in my app: for example, I've got two radio buttons: male and female, and I want to show additional controls depending on the gender selected.
For example; If user checks male option, combobox1 should be shown, and if user c... | stackexchange/codereview |
Looking for a PHP solution to create Excel files on the fly (Think dynamic reporting).
Now I have seen PHP Excel and I know I can create a CSV file but are these by best options?
I running this script on a Linux system using PHP Excel but it doesn't set all the options
$objPHPExcel->getProperties()->setCreator("Phill... | stackexchange/codereview |
I should create several packages of our application using make(on AIX).
Content of packages should be different depending on one environment variable.
Something like - if environment variable WITH_CPP set to "Y" then c++ part of application should be built and packed to installation package.
If environment variable WIT... | stackexchange/codereview |
I'm using PHP 5.3 and SimpleTest, but more general answers are welcome. Each plug-in will be a class which extends an abstract class... how do I test that this interface works properly? Do I have to create several plug-ins and test them? Or is there a more satisfying way?
As an example, imagine writing something to rep... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.