instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I always compile my delphi apps without 'build with runtime packages', but for my latest Project i had to use it (as it started swelling day by day ) . I use some third party VCL (TMS component pack with source code , source code directory is in search path also ),
when i compile with build with runtime packages whole... | stackexchange/codereview |
I'm not having too much success applying animations to views inside a RemoteViews.
For the sake of simplicity, let's say I have a widget with an ImageView and a Button. When clicking the button, I want to add a simple animation to the ImageView (a rotation for example).
Since I can't get a reference using findViewById... | stackexchange/codereview |
In my app I have an NSURL which is a file path. If a file or a folder's name contains Russian characters, instead of normal path, something like "/Users/user/Downloads/%D0%94%D0%BE%D0%BC%D0%B0%D1%88%D0%BD%D0%B5%D0%B5 %D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5 %D0%BD%D0%B0 %D0%BB%D0%B5%D1%82%D0%BE.doc" is displayed.
Is ... | stackexchange/codereview |
I have a need to encrypt and decrypt files using php. I need to have other users a preshared key to be able to decrypt the file. The encryption should be at the lease AES 128. Are there any good articles or tutorials on that
thanks
| stackexchange/codereview |
I have a div on a page. I want to with jquery, when the div loads a function is fired and I can alter its style based on a set of conditions. Any help with this?
| stackexchange/codereview |
What are the usual rules for Iterator invalidation when operating over STL container classes(Vector,Dequeue,list,map,multimap,set,multiset). Is it possible to categorize and sum up some general rules/guidelines that a C++ STL programmer must be aware of while working with containers and their Iterators?
| stackexchange/codereview |
in my project in the container form i use buttons to open the child forms , not Strip Menu but the buttons in the container always appears on the child form
how to privet the buttons or any other controls form being above the child form
i am using Visual Studio 2008 professional edition C# programming language
as in ... | stackexchange/codereview |
I know what self::staticFunctionName() and parent::staticFunctionName() are, and how they are different from each other and from $this->functionName.
But what is static::staticFunctionName()?
| stackexchange/codereview |
My iPhone app crashes when I try to create an NSURLRequest object. However, I know the url object I'm using is correct. Code and console log are both below. Any advice?
NSURL *url = selectedObject.url;
NSLog(url);
NSURLRequest *tempURL = [NSURLRequest requestWithURL: url];
NSLog(@"got here");
And console log:
2010-11-... | stackexchange/codereview |
I have a client and server application in two computers. i am trying to connect them through internet TCP connection. the problem im facing is.
Client (192.168.1.2) -> [router] (124.43.224.112) --
-> (internet) -> [router] (124.43.190.63) -> Server (192.168.1.3)
How do i establish a TCP connection ?
| stackexchange/codereview |
Posted this to serverfault, but then decided it was more of a stackoverflow deal. I am running tomcat 6.0, and am having trouble configuring it to do what I want...
I have two web apps, call them X and Y, deployed as X.war and Y.war. Each has a servlet called blah.
So I can access them like so: http://server/X/blah ht... | stackexchange/codereview |
In ASP.NET, .NET 4.0, MEF, I put all parts in a folder and importing them using DirectoryCatalog. Everything is fine. Some of part have related configurations. I don't want put them in web.config. Maybe a good approach be a config file just beside the part with a .config added to the end.
What is the best way for stori... | stackexchange/codereview |
I have Googled and read, but didn't find answers for these three simple questions...
Should header file name be equal to code file name?
For example, I have function void foo() declared in foo.h. It is used in main.c which includes foo.h Must foo() be implemented in foo.c? What if it would be implemented in foox.c? B... | stackexchange/codereview |
I had Datalist and inside it panel and inside panel label and I want to find label inside panel inside datalist.I did my code but it didnot work well
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
Label LblHead = e.Item.FindControl("Label1") as Label;
string LanguageID = G... | stackexchange/codereview |
I have a TabActivity, and each Tab corresponds to its own Activity. In one of them, in the onCreate method, I use startActivityForResult to show a dialog (specifically, Bump's BumpAPI activity).
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
bump = new Intent(thi... | stackexchange/codereview |
I need to check if the variable has value of string which starts with specified substring.
In Python it would be something like this:
foo = 'abcdef'
if foo.startswith('abc'):
print 'Success'
What is the most explicit way to check in Ksh whether strig $foo starts with substring bar?
| stackexchange/codereview |
I had the following set-up which worked perfectly fine:
@Service
public class MyService {
}
public class Test {
@Autowired
MyService service;
}
I changed MyService to implement a new interface, like this
@Service
public class MyService implements NewInterface {
}
There's nothing special in this interface, it'... | stackexchange/codereview |
Has anyone taken the C++ test on proveit.com ? I've done it a few times, and there are always questions that I get wrong, but I can't help but assume it's the site and not me. The only example I can think of off the top of my head (its been a while) is
What is the value of x after the operation?
int x = 5;
++x;
And it... | stackexchange/codereview |
I am using a WinForms ListView in details mode (.NET 4.0, running on Windows 7) and I have a function that needs to clear the subitems in a particular item. Unfortunately when I do that it also clear's the name:
item.Name = "TESTNAME";
item.SubItems.Clear();
MessageBox.Show(item.Name); //shows nothing
In the debugger... | stackexchange/codereview |
Basically i was looking for the way to stop the application form running at the background and the following question helped me.
How to prevent my app from running in the background on the iPhone
But when i used this method, my app starts from beginning but when i double tap the home page, it still shows my app there..... | stackexchange/codereview |
Are there any (preferably free) tools which would let you throw together a quick outline of a UI, and build these into storyboards to create a mockup of how a use-case might play out including popup dialogs that could be raised, etc?
| stackexchange/codereview |
What is the good way to parse HTML with jQuery?
I have some html like..
<ul><li>Yadayada</li><li>Yadayada</li><li>Yadayada</li></ul>
..where I would like to parse those ul and li elements away. Do I use find method and then just .remove('ul') or something like that?
And yes I am quite new with jQuery/javascript so sor... | stackexchange/codereview |
I have three tables arranged to make a many to many relationship (Contacts, PurchaseOrder, and PO_Contact). The PurchaseOrder table will eventually represent each purchaseorder (only one instance of each). Each Customer can be associated with any number of PurchaseOrders and each Purchase Order may be associated with... | stackexchange/codereview |
In my user editor page, I'm trying to check if a enter email is in use by other customers but not the customers current email. This is my code, it doesn't seem to show an error message, but my form is unable to submit.
Here is my JS:
$("#cedit").validate({
rules : {
email : {
email : true,
remote : {
url :... | stackexchange/codereview |
I have an ObjectDataSource which uses a DataObjectType (Name). In this case EmpRow to pass update and insert parameters instead of passing individual parameters.
The ODS is used by the FormView which has two Multi Select ListBox controls. Because the ListBox controls will only pass one selected item, I need to properl... | stackexchange/codereview |
I need to lock down various urls to a certain domain.
Any ideas?
| stackexchange/codereview |
I wonder which of these javascript frameworks - officially - works on Node.js:
jQuery
Prototype
Mootools
Dojo
Extjs
| stackexchange/codereview |
Having trouble with Google blocking my IPs when querying Google for content matches. I've got 300 private IPs and have no trouble connecting to Google with a desktop app (w/ the same IPs) that performs a similar function. Yet, when I crank it up on my server using CURL my IPs get temporarily blocked - your machine ma... | stackexchange/codereview |
I'm learning C socket programming. When would you use bind() on the client-side? What types of program will need it and why? Where can I find an example?
| stackexchange/codereview |
Hey everbody, im getting some trouble here. When my viewcontroller reaches the view, it sends to php some data. BUT...i've looking for, and discovered viewDidLoad gets called twice.
So, how can i call some action just once?
I know this is a noob question, but i wanna know the besto method.
Thanks!
| stackexchange/codereview |
Hi I have just finished debugging my first application and want to publish it. I would like to know if you have a checklist that you use prior to distribution.
For instance I have lots of Log.d() commands, must I remove them? I have rotated my screens as much as possible to cause stop/restart failures. These are the... | stackexchange/codereview |
I'm looking for a Mercurial C# API. The only one i can find goes to a 403 page on google (http://code.google.com/p/mercurialdotnet/).
Does anyone know of one that I can use?
| stackexchange/codereview |
I have an image display control similar to a PictureBox control, it takes a Bitmap and displays it. The issue is that my control will naively attempt to perform operations that require it to access it's image field even though the Bitmap that was supplied has been disposed. So let's say I have a form with my image di... | stackexchange/codereview |
I have a Java bean which stores what I am calling meta data (week start day, any holidays) that my JSP view will use to display a Calendar Month. I am using JSTL, not EL, since company only has jsp 1.2
<table align="center" border="1" cellpadding="3" cellspacing="0" width="100%" class="tableInternalBorder">
<tbo... | stackexchange/codereview |
I have two Arrays of object, one has a set of options like this (the left side of the equation):
Id Value
1 Red
2 Blue
3 Green
and another like this (the right side):
Id Value
3 Green
And I need a "left join" (all left products and matching right) like this:
Id Value Selected
1 Red
2 Bl... | stackexchange/codereview |
An aspect of C++ that periodically frustrates me is deciding where templates fit between header files (traditionally describing the interface) and implemention (.cpp) files. Templates often need to go in the header, exposing the implementation and sometimes pulling in extra headers which previously only needed to be in... | stackexchange/codereview |
I need to parse the following URL:
http://m.flickr.com/#/photos/westconn/
I need to get the following details:
Image's URL
Updated Time
Title
View details
Command Details.
But the contents are displayed using Regular Expression JavaScript.
| stackexchange/codereview |
I'm testing out my Grails app in Jetty (v.7.0.2). I've created the WAR (grails prod war), and added it to the webapps directory for Jetty. I've removed the "root" folder that was in there. After bringing up my browser, I'm clicking on various links to make sure I can see all of the appropriate pages. However, when ... | stackexchange/codereview |
I have this JSON string:
{"natalia1891":{"idUser":1435105,"nick":"natalia1891","sefNick":"natalia1891","status":1,"photo":"http:\/\/213.215.107.125\/fotky\/143\/51\/s_1435105.jpg?v=3","sex":2,"isFriend":1},
"pepina888":{"idUser":3338870,"nick":"pepina888","sefNick":"pepina888","status":1,"photo":"http:\/\/213.215.107.1... | stackexchange/codereview |
I have a web app for iOS devices. I have a pesky link that calls a javascript function to show and hide the div layer. however, instead of performing this javascript show/hide in the webapp view, it closes and loads the page and javascript in safari.
I want it to execute the javascript in the webapp view. I know it is... | stackexchange/codereview |
Please note: this is not an attempt to get you to share a site I have been developing, there is a genuine issue with Facebook.
When I attempt to share a page on Facebook using their sharer.php script, it just doesn't do anything. You can see what I mean by going to http://www.vouchertastic.co.uk/ and clicking one of t... | stackexchange/codereview |
Project OverView : Theres two images. Click the top image (in my app i use a cat pic) and it will set the bottom image background to the color of the pixel on the location you clicked at.
The Problem: The background color doesn't match the color of the pixel at the location of your click at times its randomly colored, ... | stackexchange/codereview |
I parse various data sources with network information in them.
I have been using java.net.InetAddress to represent and parse hosts. It works fine being initialized with IP.
I have to parse a new source now. It contains hostnames instead of IP's. InetAddress.getByName() throws UnknownHostException if a hostname argument... | stackexchange/codereview |
I know it's now Flash Builder 4 and it is great, but Flash Player for Mobile on Nokia is still quite not up to AS3. My audience mostly has quite old Nokia phones that support FP 7-8. Do any of you have experience with Flex 1.5 to create mobile apps? Is my idea reasonable, or should I expect big problems if I go down... | stackexchange/codereview |
Say I have a ruby script called hello_world.rb that has one line
puts "Hello, world"
And I want to call that from another ruby script called spawn_hello_world.rb
pipe = IO.popen("ruby1.9.1 hello_world.rb", 'w+')
if pipe
puts pipe.gets
end
My question is: Is there a shorthand way of running another ruby process with... | stackexchange/codereview |
I have a Silverlight ListBox that uses a DataTemplate for the ItemTemplate. My DataTemplate and ListBox are shown here:
<DataTemplate x:Key="myTemplate">
<Grid Background="Green" HorizontalAlignment="Stretch">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
... | stackexchange/codereview |
I have a class which requiring a large amount of memory.
class BigClass {
public:
BigClass() {
bf1[96000000-1] = 1;
}
double bf1[96000000];
};
I can only initiate the class by "new" a object in heap memory.
BigClass *c = new BigClass();
assert( c->bf1[96000000-1] == 1 );
delete c;
If I initiate it... | stackexchange/codereview |
I took the following function from this site and plugged it into my code to display a user-friendly time string based on a millisecond argument.
Why does this function not work?
function getTimeFromMillis(millis)
{
milliSecs = millis;
msSecs = (1000)
msMins = (msSecs * 60)
msHo... | stackexchange/codereview |
I have a project template called Foo. Xcode is replacing all the files and tokenizing all the ___PROJECTNAME___ and ___PROJECTNAMEASIDENTIFIER___ inside the files. In one of the source files I have
FooObject *foo = [FooObject fooWithName:@"foo"];
Xcode is replacing Foo in FooObject to the newly named project:
MyNewPr... | stackexchange/codereview |
In reading a post about TreeView and binding to a view model (http://www.codeproject.com/KB/WPF/TreeViewWithViewModel.aspx), it seems that binding a TreeViewItem IsSelected property is possible. However, I have the following code which always fails on Initialize() because it's trying to set a read-only property?
... | stackexchange/codereview |
I am trying to process Canon RAW .CR2 files using C#. My code is as follows:
BitmapDecoder bmpDec = BitmapDecoder.Create(new Uri(origFile), BitmapCreateOptions.DelayCreation, BitmapCacheOption.None);
BitmapEncoder bmpEnc = new BmpBitmapEncoder();
bmpEnc.Frames.Add(bmpDec.Frames[0]);
Stream ms = new MemoryStream();
bmp... | stackexchange/codereview |
I have a question regarding the most efficient way to design a class that handles a large number (10K+) of dynamic properties. Properties only hold boolean or double value types.
I've thought of a couples of answers but not sure if I am on track.
Class has one property that passes a hashtable
Create class at runtime ... | stackexchange/codereview |
ok when i used to draw stuff using gdi+ i used to know the coordinates for objects but now when im using meshes in directx 9 i have no idea how to get the coordinates for the object so i can find if the mouse over an object. any idea how to find the coordinates ?
| stackexchange/codereview |
I am writing a code to find out which part of an image has been duplicated, so i need to find similar blocks in image. I need to use SVD (singular value decomposition) to find which blocks match together . Do you know how i can apply SVD on image to find similar blocks?
Please help me . Thanks
| stackexchange/codereview |
I am using spring webservices to expose my services as web services.
I defined my Soap fault element like this
<xsd:element name="systemFault">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="faultCode" type="xsd:string" nillable="true"/>
<xsd:element ... | stackexchange/codereview |
I've got problem with sorting entries in JqGrid. Orderby seem to not work. I set breakpoint in code and I noticed, that orderby doesn't change order of elements. Any idea what could be wrong?
I'm using LINQ to SQL with MySQL (DbLinq project).
My action code:
public ActionResult All(string sidx, string sord, int page, i... | stackexchange/codereview |
In my setup project in VS 2010, in the properties window, I have set the Manufacturer and ProductName properties. I have also set the Company property of the assemblies of my web application and class library. When I install, in Programs and Features, I want the "Manufacturer ProductName" listed. Now, I only get Produc... | stackexchange/codereview |
We are using Clearcase and we migrate our big project to Maven. We are facing a problem when doing inter project deliveries.
We have a development CC project where most development occurs. We have pom.xml that holds versions of our dependencies to our own sub-projects (these versions are maven/pom version).
At some poi... | stackexchange/codereview |
This is daft, I'm trying to move the mouse to the center of the active window. I cant find a method on MSDN that gives me the coords (RECT) relative to the corner of the screen.
::GetClientRect returns 0,0 for the top left.
Is there a method that returns 100, 134 or some such.
| stackexchange/codereview |
I am about to start a project which will be taking blocks of text, parsing a lot of data into them into some sort of object which can then be serialized, stored, and statistics / data gleaned from. This needs to be as fast as possible as I have > 10,000,000 blocks of text that I need to start on and will be getting 100... | stackexchange/codereview |
I am trying to make IE to hide a scrollbar, The recommended recipes do not seem to work:
E.g. this.scrollbar='no'; <- no effect
this.style.overflow='hidden'; <- this hides the vertical scrollbar and introduces a horizonal one.
this.style.overflow-y='hidden'; <-- this freezes IE8.
What else could i do?
Found out.... th... | stackexchange/codereview |
Can any anyone tell me why the example below doesn't work:
var obj = $('#example');
function examplefunc(){
obj.hide();
}
Whilst the second one works fine:
function examplefunc(){
var obj = $('#example');
obj.hide();
}
I know that the difference is obvious - in first example we have global variable, whi... | stackexchange/codereview |
is there any way to add a doRead() method to an existing socket object?
the socket needs a doRead method to be able to be passed to twisted's reactor via the addWriter method.
i've tried using the new module's instance method but it doesn't seem to work...
>>> c
<socket._socketobject object at 0x7fcb03cc8b40>
>>> c.doR... | stackexchange/codereview |
I have the following snippet that toggles padding when hovering (see example here):
<div id="outer"><div id="inner"></div></div>
<script>
$("#inner").mouseenter(function () {
$("#outer").animate({ 'padding' : '20px' }, "slow");
});
$("#inner").mouseleave(function () {
$("#outer").animate({ 'padding' : '... | stackexchange/codereview |
I'm trying to add a DataGrid inside a spark TitleWindow and for some reason its not showing up correctly.
When I put the same code in the main mxml, it comes up correctly. The exact same code shows up weird in the TitleWindow.
<mx:DataGrid x="10" y="51" width="535" height="215" id="musicianGrid">
<mx:columns>
... | stackexchange/codereview |
Can someone please tell me the best way to get the users profile from a ForeignKey field?
author = models.ForeignKey(User)
{{ object.author }} just gives me the username but I want the entire users profile.
Also, is there a way to change the way the user is displayed in the admin field? I'd like it so you can chose t... | stackexchange/codereview |
Assuming I have the following:
class Person(db.Model):
name = db.StringProperty()
I would like to print all the names in an html file using a template.
template_values = {'list': Person.all()}
And the template will look like this:
{% for person in list %}
<form>
<p>{{ person.name}} </p>
<button type="button" na... | stackexchange/codereview |
I just wondering where to get the training kits and MOCs for the course 50392A (Complete ASP.NET 3.5)
I searched a lot but nothing ..
I also tried to search for courses with the same material but nothing too .
Please recommend place where i can download the MOC from
Or
Recommend another courses with the same content ... | stackexchange/codereview |
I was completely facinated when I discovered BRW's (example) method to prevent web page copying. I had a quick look through the source view and couldn't see how they did it. Aside from inserting (c) symbols through out the text, they also scramble the text yet it is completely readable through a browser. Amazing!
Any i... | stackexchange/codereview |
Is it true that Standard convention is that variables and method identifiers start with a lower case letter.
| stackexchange/codereview |
I deployed an ASP.NET MVC app using MSDeploy and ran into this problem i tried every solution that i found over internet and i still can't get this working it's a small basic MVC 2 app that I built while learning.
so..
how do you get this thing running under IIS7?
what is the exact problem?
Screenshot
http://screen... | stackexchange/codereview |
I'm writing a plugin for another piece of sofware we use in my office that will allow users to audit the files they are working on. I'm trying to keep my tool as flexible as possible. The idea I have is that the user will generate a tree of Nodes that can contain other Nodes as sub-nodes. At the bottom of the tree the ... | stackexchange/codereview |
I need to "translate" pascal code (not whole code, just lines line a:=5, or Writeln("a=5?"). In pascal = means "is equal", but my program replaces [^=!<>]=[^=!<>]with ==, so in writeln("a=5?") the = will be also replaced with ==. How to avoid replacing text in quotes? I tried with keyword AND: [^\"].*AND.*[^\"] to &&. ... | stackexchange/codereview |
Suppose I am creating a UITableViewCell subclass. The cell will not know what its size is going to be until the controller tells it.
What is the proper way to organize configuration of the subviews? They will want to determine their frames based on the size of the cell.
| stackexchange/codereview |
Is there a way to transfer a file from the web directly to my Amazon S3 account?
For example, I want to transfer a large RDF file from www.data.gov directly to Amazon S3 without having to download the file to my local machine first.
| stackexchange/codereview |
I've got a bunch of files with DB7 extension, coming from a customer's software.
Each one of them is related to a database table.
What I want is to export data in a more practical format, such as CSV.
Reading the header of the file, something addressed me to NexusDB, but I can't manage opening these files. Do you have ... | stackexchange/codereview |
In my app I need to play a 50 MB audio story. If at about the 27 minute mark the user hits the home button, the sound pauses. When they resume the application, the audio resumes where it left off.
I'm using AVAudioPlayer to play this audio, but I'm worried about keeping this large audio file in memory when my appli... | stackexchange/codereview |
I have a WPF Control that I want to be resizable. As such I also want the root element of this control to be a canvas so I may absolutely position elements on this control. The problem seems to be that I can not get my Image elements to resize automatically.
Can someone please post an example of a WPF User control wit... | stackexchange/codereview |
Is there a way trap error 266 inside JDBC or inside SQL by wrapping an exec statement in some way?
We are looking to develop a guard around stored procedures exiting with a transaction left open in a common way. This helps guard against programmer error that can cause significant issues when combined with connection p... | stackexchange/codereview |
This existing question on SO is probably exactly what I need, but it wasn't answered. ;)
I hadn't realized this in my initial testing of my WiX installer, but my application doesn't work properly on Windows 7 after it's been installed. Various assemblies need to read/write files in my installation folder, but access ... | stackexchange/codereview |
I need to add a public key to ssh-agent but I'm getting the following error
Could not open a connection to your authentication agent.
I'm using Windows 7. I found that agent is running. But ssh-add is useless as it gives an error above.
| stackexchange/codereview |
I need to draw n different objects on a chart. I want to pick a different color for each of them to make them distinguishable. The objects will be moved around, so I cannot count on ideas like "four color theorem" to assign same color to non-adjacent items. So far my problem call for up to 20 different items.
Is there ... | stackexchange/codereview |
I'm trying to make an alias in .alias file for tcsh.
Alias is something like this :
alias do "grep -iE '<pattern>' <file> | awk '{if($2 < 0)print}'"
When i try to run the alias it give me following error :
awk: cmd. line:1: {if( < 0.0) print}
awk: cmd. line:1: ^ parse error
Any idea why this would happen ?
Th... | stackexchange/codereview |
Ok so I kinda know how to do this locally with a find then cp command, but don't know how to do the same remotely with scp.
So know this:
scp -vp me@server:/target/location/ /destination/dir/.
That target directory is going to be full of database backups, how can I tell it to find the latest backup, and scp that local... | stackexchange/codereview |
I'm just starting to get to the point in my python projects that I need to start using multiple packages and I'm a little confused on exactly how everything is supposed to work together. What exactly should go into the __init__.py of the package? Some projects I see just have blank inits and all of their code are in mo... | stackexchange/codereview |
In IB I created UIView inside of a UIScrollView. File's owner for both is a UIViewController named JLViewController. The UIView is wired to class BodyClock.
The BodyClock class draws a graph inside the view. It also creates several small views which act as touch hot spots. When a hot spot is touched it displays an inf... | stackexchange/codereview |
I have the following HTML / CSS:
<table>
<tr>
<td>
<div>
<pre>
<code>
This is a test!
This is a very long line that is designed to exceed the length of the visible area of the page. This is a very long line that is designed to exceed the length of the visible ... | stackexchange/codereview |
I take a file as an input argument and I need to determine whether or not the data is binary or not (well, ASCII or binary I guess), similar to the 'file' command on *nix, but within my application.
I'm not sure how to do this, as when I'm reading data I'm doing it as such:
fread(&rndByte, sizeof(unsigned int), 1, fp);... | stackexchange/codereview |
What is the correct way of datagridviewcomboboxcolumn bind with sql database and re-
arrange with other column. Suppose if I have columns like below.
Srno
Particulars // this columns is for datagridviewcomboBoxColumn
Amount.
I wants the datagridview’s columns correct order as above and the same is for the purpose ... | stackexchange/codereview |
Java annotation processing (since Java 6) is a very good concept, because it allows to access lots of information about classes and methods through the Element interface (and others).
But sadly, I had to find out empirically, that non-annotated classes are never passed to a custom annotation processor:
warning: No Supp... | stackexchange/codereview |
I have a Grails app where people login through Spring Security. Their user domain is then loaded onto the session for the duration of being logged in.
I get a StaleObjectStateException when another user preforms an action that updates a counter on a user object in the database user.save(flush:true) that's currently on ... | stackexchange/codereview |
Hopefully this is an easy question:
I am building an application with Qt and would like to use Google's Protocol Buffers. I have downloaded and installed the protobuf source, now I want to link against it in my project.
My .pro file contains the line:
LIBS += -L/usr/local/lib -libprotobuf
However, I get the error:
::... | stackexchange/codereview |
I want to use Latent Semantic Analysis for a small app I'm building, but I don't want to build up the matrices myself. (Partly because the documents I have wouldn't make a very good training collection, because they're kinda short and heterogeneous, and partly because I just got a new computer and I'm finding it a bitc... | stackexchange/codereview |
Possible Duplicate:
How should I print types like off_t and size_t?
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <errno.h>
int main(int argc, char *argv[])
{
int fd, offset;
char *data;
struct st... | stackexchange/codereview |
I am working on an application that has a lot of checkboxes that start off unchecked, and each one has an associated textbox which is disabled until the checkbox is checked.
I am going through and currently one by one doing an "if checked, enable, if uncheced, disable" - however it is taking forever!
Is there a quicker... | stackexchange/codereview |
I have one table that is read at the same time by different threads.
Each thread must select 100 rows, execute some tasks on each row (unrelated to the database) then they must delete the selected row from the table.
rows are selected using this query:
SELECT id FROM table_name FOR UPDATE;
My question is: How can I i... | stackexchange/codereview |
We've installed a new shop software and I've set up redirects for all of the old pages, but there's one that I just can't get to work. If the url includes
cp_tpl=productlist.html
then I want to redirect to the main website. So for example the old url could be
http://www.gocellular.ca/index.php?cp_tpl=productlist.html&c... | stackexchange/codereview |
I am trying to send an HTTPWebRequest POST XML data to my WCF service.
However when setting a breakpoint in my service, it is hit, but my widgetStream is empty when I try to read it. Even if I read it from a StreamReader.
Does anyone know what I am doing wrong?
My WCF service looks like this:
[WebInvoke(UriTempl... | stackexchange/codereview |
So here is a method I'm using to create form objects:
protected function _getForm($form, $action = null)
{
require_once(APPLICATION_PATH.'/modules/'.$this->_request->getModuleName().'/forms/'.$form.'.php');
$form = new $form();
if (null !== $action) {
$form->setAction($action);
}
$csrfNames... | stackexchange/codereview |
I am trying to create a "depth" based threaded comment type of thing for a job I am working on. The code (below) works but is prob. cumbersome and also I would like to go to $x depths which the way I have done it would mean "lots" of loops, any suggestions about how to create a simpler/better way?
$sql = $azdb->ge... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.