instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I have to manage a Java build, and I don't know how to best manage the software's version so that it can be displayed on an about dialog etc.
How do you people do it? We are using Maven, can I somehow reuse the version as defined in pom.xml? I'd also be interested to know how it's usually done with Ant.
| stackexchange/codereview |
I have a Custom Action that should execute during the Install portion of an .msi setup. I have a previous version that was installed using InstallShield (which was overkill) and wanted to move to the simpler VS Setup Proj because I do not require all the control that an .isproj provides. However, doing a straight ins... | stackexchange/codereview |
Can anyone provide a link to a respectfull webpage which shows statistics of how much time development teams spent on fixing unit tests that fails (unit test regression) ?
Regards
| stackexchange/codereview |
I am using Carrierwave (https://github.com/jnicklas/carrierwave). I need to make sure images conform to a maximum/minimum height and
width? Otherwise an error should display.
Should this be handled in the uploader class or in the model (possibly
through a custom validation method)?
| stackexchange/codereview |
I am trying to convert some animation code that uses beginAnimations to use animation blocks. The problem that I am having is that when I use the animations blocks the animations goes much faster and I cannot seem to adjust the speed by changing the duration value
This is what I started with originally:
birdFly.image... | stackexchange/codereview |
When compiling my app today, I encountered this warning (the code, I think, is irrelevant):
warning C4315: 'MyClass' : 'this' pointer for member 'MyClass::my_data_' may not be aligned 8 as expected by the constructor
I am not able to find any documentation about this warning, in either the online help, my locally-ins... | stackexchange/codereview |
Recently me and my team got a HG repository for versioning as this would make it easier and better to develop our application.
We are using Visual Studio 2010 and c#
All of the project is under version control..
Unfortunately, when one of us commits, usually the other gets an error of some kind when opening the solutio... | stackexchange/codereview |
I have a TabControl bound to a ICollectionView with derives from ObservableCollection<EditorTabViewModel>. I think quite standard MVVM Multi-Document pattern? Anyways, EditorTabViewModel has a property Content that contains the string to be displayed. I find that the binding is working ...
// Add 2 default tabs for a ... | stackexchange/codereview |
I can access the targetObj instance inside the document class,but when I try to access it in another .as class,get this error:
Access of undefined property targetObj.
Anyone can help?
| stackexchange/codereview |
I've written a very simple web service that returns an XML document.
The header for that document is currently
<?xml version="1.0" encoding="utf-8" ?>
and I would like it to return <?xml version="1.0" encoding="utf-16" ?>
How can I change the default output encoding in the .asmx or .cs file?
smo.asmx
<%@ WebSer... | stackexchange/codereview |
I have two interfaces:
public interface A {
void aMethod();
}
public interface B : A {
void bMethod();
}
Later I'm basically using a dictionary like this:
Dictionary<int, A> dict = new Dictionary<int, B>();
C# is saying I can't convert from the right to the left, even if I cast it. Is there a way to use gener... | stackexchange/codereview |
This has been bugging me for quite some time.
lets say you've got a property
@property(nonatomic, retain)NSString *test;
Within your implementation you use:
self.test = [[NSString alloc]init];
(only an example).
The result is, that the newly allocated NSString object has a Retain-Count of 2.
Releasing the Object in ... | stackexchange/codereview |
Is it possible to trigger a "refresh" for a div when you click a link? I have embedded a js call to an adserver in a div, there are a lot of parameters in the link so I couldn't get .load to work and this is the best solution I could come up with. Ideally, each time you click a link (change tab) I would like the script... | stackexchange/codereview |
I have a website that consists of one parent page. Using the lightbox-style jQuery plugin colorbox I open other pages in iFrames that float on top of the parent page, overlay style.
In the javascript code on the iFrame pages I load JSON data from Facebook. Since the data loading from facebook takes time I want to stor... | stackexchange/codereview |
Ever since I updated FF to 3.6.12 (or at least that's when I noticed the issue), I am dealing with an unusual situation. While Chrome and Opera use the content-box box model, Firefox seems to have started using border-box. Right now I'm styling some table headers with a height of 39px and a 1px border on the bottom (to... | stackexchange/codereview |
When I do:
channel = session.query(Channel).options(eagerload("items")).filter(Channel.title == title)
I get this error:
TypeError: 'bool' object is not callable
If I rid of options(eagerload("items")), it's working properly.
Any idea??
Thanks in advance!
| stackexchange/codereview |
i need just to print the database name in text box using asp.net and i have the .aspx code like this :
<asp:TextBox ID="TextBox1" runat="server" DataSourceID="SqlDataSource2" ></asp:TextBox>
<asp:SqlDataSource ID="SqlDataSource2" runat="server"
ConnectionString="<%$ ConnectionStrings:testConnectionString %>"
S... | stackexchange/codereview |
I have an app that sends SMS via Internet, and I'd like to know how to:
1)Launch my own "SmsSender" activity when user have already typed an sms in default android sms application, and presses Send button.I would like to get recipient number and message text.
2)or Launch my app when user tries to send sms from his adre... | stackexchange/codereview |
I am reading the tutorial about Receiving Mail. I updated the app.yaml file as instructed:
application: hello-1-world
version: 1
runtime: python
api_version: 1
handlers:
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: static/images/favicon.ico
- url: /_ah/mail/.+
script: handle_incoming_emai... | stackexchange/codereview |
How do I ensure that both the buttons, saveBtn and cancelBtn are displayed next to each other in the following HTML?
I tried using float, but all it ensures is placing the button cancelBtn next to the label in this structure.
<div >
<asp:UpdatePanel ID="updt" runat="server">
<ContentTemplate... | stackexchange/codereview |
I read this into jquery website:
message (Optional) String, Function
The default message to display for
this method. Can be a function created
by jQuery.validator.format(value).
When undefined, an already existing
message is used (handy for
localization), otherwise the
field-specific messages have to be
... | stackexchange/codereview |
I know that I can do something like this:
var test = new { FirstName = string.Empty, LastName = string.empty };
But I don't if there's is a way to do it dynamically, let's say:
var test = new {};
if (condition) {
test.Property = string.Empty;
}
Let's say I Have this:
string[] names =
{
"eder",
"quiñones... | stackexchange/codereview |
I am getting this error in java in my junit test code. I looked up on the net and it says that I need to add the junit.jar in the classpath.
In Eclipse I have added it in the classpath of Project Properties windows but I still get initialisation error. What should I do..?
This is the complete trace of the error:
java.l... | stackexchange/codereview |
i have an XML document and i want to parse it using VC++, are there any opensource parsers are available? if so please let me know with some example..
Thanks
| stackexchange/codereview |
I Don't understand this, its a good framework but not many use it.
If you know something I don't please help.
| stackexchange/codereview |
I want to add an option to the finder context menu that calls hg add %1 with %1 being the full path of the selected file in finder.
Of course there are more useful cases I can think of, to add to the context menu.
Is there a simple way to do that which doesn't involve installing any 3rd party software or coding in a co... | stackexchange/codereview |
I would like to share a CSS across multiple widgets using .
I can see that css class name are obfuscated but the class definition
is not showing up when I inspect the element in firefox / chrome.
Here're my codes. Can anyone suggest what am I missing? Thanks.
Style.css
.nameSpan { color: #3E6D8E; background-colo... | stackexchange/codereview |
How can I draw image with rounded corners in Cairo/Gtk? In any language.
| stackexchange/codereview |
i have my project whose name is let us take "xyz",it is a live project is there on the website,problem is that
when i write "xyz" on any browser url place and i will click enter not ctlr+enter then it has to redirect to "http://www.xyz.com".in a programatic way i am using .net 2.0 and iis server for my project.so pleas... | stackexchange/codereview |
I've tried both the SimpleXMLElement XPath approach as well as the DOMDocument XPath approach, but cannot seem to get things straight either way, but at least with the SimpleXMLElement route, I could actually print out the results var and see what's going on. (See Results Below)
I want to use XPath querys without havin... | stackexchange/codereview |
I'm running into a problem: when I use a non-trivial type of Spinner item, the Spinner displays the drop-down list someplace other than on the Spinner.
(Note: most of this description is identical to https://stackoverflow.com/questions/4188443/android-doesnt-honor-selection-change-with-custom-spinner-items, but the pro... | stackexchange/codereview |
I'm just wondering how people working in teams manage the relationship between the logic and validation in the backend, say in php, and the exact same logic and validation in the front end, for example in JavaScript?
Ideally, the final say should be given by the backend, but in order to make the application more accesi... | stackexchange/codereview |
I have a String with binary data in it (1110100) I want to get the text out so I can print it (1110100 would print "t"). I tried this, it is similar to what I used to transform my text to binary but it's not working at all:
public static String toText(String info)throws UnsupportedEncodingException{
byte[] ... | stackexchange/codereview |
Is it possible to create subfolders under res/layout and place the layout XML files there so that one can call a view like setContentView(R.layout.questions.create); or setContentView(R.layout.questions/create); ?
| stackexchange/codereview |
how to decode a binary stream in lisp
i did with with-open -file and passing a argument as element-type '(unsigned byte 8) but returning as numbers not a string
please help me on this problem
| stackexchange/codereview |
I am using EF4 and I have a situation where I need to insert a parent child into the database using sql server 2008.
When Saving a customer I would like to save their addresses as well.
I have as follows:
public class Customer
{
public string Name { get; set; }
public string Surname{ get; set; }
public List<Addre... | stackexchange/codereview |
I would need to have a personalized summary links web part in a given page.
So when a user logs into the site, he should see his own links as opposed to system wide links inside the links web part.
Is it possible to have a personalized summary links web part?
How would that work?
Thanks in advance.
W
| stackexchange/codereview |
When i do the "df" command in my machine I can see the following:
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 491520 127240 364280 26% /
I want to create another tmpfs. How should i do it?
I am using flash which contains my bootloader, kernel and rootfs. At which sta... | stackexchange/codereview |
I am building a website using Django, and this website uses blocks which are enabled for a certain page.
Right now I use a textfield containing paths were a block is enabled. When a page is requested, Django retrieves all blocks from database and does re.search on the TextField.
However, I was wondering if it is not a ... | stackexchange/codereview |
Is it possible to call another action helper from another action helper. Actually I have created an action helper which preform some layout related stuff using preDispatch hook. Now I want to call ajaxContext within my first action helper's preDispatch method. any ideas how can I achieve this?
| stackexchange/codereview |
I'am currently working on a project using Hadoop 0.21.0, 985326 and a cluster of 6 worker nodes and a head node.
Submitting a regular mapreduce job fails, but I have no idea why. Has anybody seen this exception before?
org.apache.hadoop.mapred.Child: Exception running child : java.io.IOException: Spill failed
at or... | stackexchange/codereview |
I added the application into Android market, but some phones(i think with android lower than Froyo(2.2)) does not find it!
my manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:installLocation="preferExternal"
package="com.skkap.uti... | stackexchange/codereview |
Hi All I am very new to WPF and trying some sample
program to learn it.
I have a application with following fields
Username(TextBox)
Password(PasswordBox)
Button(Submit)
Requirement:
I have to do the data validation of username and password.
1.Validation when the cursor moves from the Box.
and
2.Validat... | stackexchange/codereview |
please tell me how to send and receive objects with his parameters to another iphone for my multiplayer game through wifi ..
I am using cocos2d in my game ...
i already spend my 2 days in it please help me ...
i am stuck here ....
Thanks :-)
| stackexchange/codereview |
I have a general design pattern question converning inheritance of objects. No, I don't mean class inheritance like public class dog : animal, I need some "best practice" information on the following situation.
I have three classes of the same type with a name and different values. They have a hierachical order, so one... | stackexchange/codereview |
I'm using ASP.net membership system with SQL Server 2000 database. What I want to do is create a view (or stored proc if that's better) which will return a table with the following columns:
UserName | Role1 | Role2 | Role3 | .... | Role*N*
Where the columns (besides Username) are generated to include all the... | stackexchange/codereview |
I have this xml:
<pos:getPositionRouter xmlns:pos="positionNS">
<positionID>
<code>1</code>
</positionID>
<parameter>?</parameter>
</pos:getPositionRouter>
and I want to rename the element pos:getPositionRouter to x:getPosition using xslt:
<x:getPosition xmlns:x="newPositionNS">
<positionID>
<c... | stackexchange/codereview |
Is there a recommended IDE for developing Excel VBA macros that provides reasonable error reporting and code completion?
Currently, I'm using "Microsoft Visual Basic For Application" IDE which comes with Excel 2007, but so far, it is less than ideal.
Even a plug-in to Vim or Emacs will be great.
| stackexchange/codereview |
I'm making a query with Doctrine that contains lots of joins. Some are hasOne relationships, and some are hasMany.
I think CakePHP makes separate queries for each hasMany relationship, but Doctrine seems to make one huge query. Both can hydrate the data and return a nice array into your php script, but they seem to ma... | stackexchange/codereview |
In my current project, I have a class Company that is composed of other custom objects.
class Company {
Address mailingAddress;
Address physicalAddress;
MailingTypes mailinTypes;
...
}
When users search for companies, The UI has to display, Name, Address and Mailing Types. I can get the data i... | stackexchange/codereview |
I have a form and I generate a unique Id for it. The idea is that if more than 1 form is generated, the duplicate ids on each form will not interfere with each other because I can reference the unique form Id for the first.
However what I want to know is the syntax for doing this.
So on the following View, I have some ... | stackexchange/codereview |
Hi i am working on asp.net mvc app now.
I want to put all db logic to my mydbprovider.dll
The problem is in design, how can i change only db provider name in my web.config without recompile my own dll ?
I will use such .net providers as (oracle,mssql,postrgree)
Thanks and sorry for my bad english
| stackexchange/codereview |
Is there a function to append padding digits to the left of a digit.I want to form a 3 digit number, so when the value is '3' i need to make it '003'
e.g in php we have
$m_ccode=str_pad($m_casecode,3,"0",str_pad_left);
same i want to convert in asp.net c#. How can i do it, i have numeric value stored in string 's'
St... | stackexchange/codereview |
I have the following code snippet which is working fine:
ifstream NDSConfig( "NDS.config" ) ;
string szConfigVal ;
while( getline( NDSConfig, szConfigVal ) )
{
//code
}
But the problem is I need to update a check box state by comparing the line values. The code then will si... | stackexchange/codereview |
I'm creating a simple CRUD for adding links to a category. Each category has an id. I have a view that lists all the links for a certain category. In that view I have a link to the add-form which is:
http://example.com/link/add/categoryId/3
I currently build that link in the view using the following syntax.
<?php echo... | stackexchange/codereview |
I have page in which data is being fetched and displayed. But few of the characters are displayed as special characters
Likewise: Â , inverted question etc...
I am using mysql db and PHP
| stackexchange/codereview |
I have a control servlet that forward the request to the model servlet.The model servlet retrieves results from a database and forward the display to the jsp.how do i display the result set in the jsp?Do i need to write the sql statement again in the jsp?
| stackexchange/codereview |
I tried googling for this but i didnt find anything... I am building a port scanner and i would like to make it so, that i can scan a network range e.g 192.168.2.* and find out how many computers are on that range that are online. Alot like Nmap. I am programming in python. Is this possible in Python?
| stackexchange/codereview |
i would like to start a report(SSRS) project in VS 2008.
I could not find Business inteligence project> report project in my VS 2008.
How can i get it..?
am using VS 2008 professional edition.!!
| stackexchange/codereview |
given the simplest HTTP server, how do I get post variables in a BaseHTTPRequestHandler?
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
class Handler(BaseHTTPRequestHandler):
def do_POST(self):
# post variables?!
server = HTTPServer(('', 4444), Handler)
server.serve_forever()
# test with:
... | stackexchange/codereview |
Here I want to make notifyPanel visible after changed to it's state, with a smooth transition. But I want to let the notifyText to have it's own height, what I mean is that if it's multiline has some height if not, have other. Because of this i can't just set the notifyPanel.height = 20
<s:Group width="100%" height="10... | stackexchange/codereview |
I want to parse all enclosure tag, with my SAXPArser, how i can do that?
<enclosure url="http://website.com/picture.jpg" width="120" height="90" type="image/jpeg" length="10000" />
| stackexchange/codereview |
When you design your web service API, how do you organize your error code?
I mean how do you keep track of your API error code so that you can avoid having two error code for the same error etc (there seems to be too many error code to keep track of???)
| stackexchange/codereview |
How do I checkout just a single folder from git (e.g. the jsFiles folder over here)
| stackexchange/codereview |
Now I want to alignment the text of button to the left with code , how to do ?
and I code this :
button.titleLabel.textAlignment = UITextAlignmentLeft;
but it doesn't work.
| stackexchange/codereview |
Could any one explain me how to get to know the calling convention of a dll without getting and processing method names? Lets say our application is loading a third party dll and in order to handle it, is there any effective ways to get to know the calling convention of a dll? (__stdcall, __cdecl, __fastcall)
| stackexchange/codereview |
I've a blog-driven ASP.NET website.
Under the post, there is a Comment block to let readers post comments.
I've used some TextBoxes and TextArea for that.
To Prevent XSS:
I've filtered the input by using: Server.HtmlEncode() Method (I don't care about text formatting).
To Prevent SQL-Injection:
I'm using Linq To SQL (... | stackexchange/codereview |
I'm building a script that will add some HTML code to the page. That HTML code has style, let say I added
<div class="myplayer">
</div>
The code was added using JavaScript, but I also add styling, through CSS
.myplayer {
a_property: #fdfdfd;
}
Everything is fine. But wait, my script is expected to run on pages I don... | stackexchange/codereview |
I created a new table in SQL Server 2008 R2, and i would like that the index is on autoincrement.
How to do that? There is no identity data type; i selected int
| stackexchange/codereview |
I am doing the Nerd Dinner tutorial for ASP.NET MVC and I met one construction in the C# language that seemed very strange. The title of this question is a bit vague, because I have trouble defining what this is. This also made it difficult for me to search about the topic, hence I decide to ask a question about it.
In... | stackexchange/codereview |
To summarize: How do I print unicode system independently to produce play card symbols?
What I do wrong, I consider myself quite fluent in Python, except I seem not able to print correctly!
# coding: utf-8
from __future__ import print_function
from __future__ import unicode_literals
import sys
symbols = ('♥','♦','♠','... | stackexchange/codereview |
I have this code:
void Main()
{
List<Employee> employeeList;
employeeList = new List<Employee>
{
{new Employee("000001", "DELA CRUZ, JUAN T.")},
{new Employee("000002", "GOMEZ, MAR B.")},
{new Employee("000003", "RIVERA, ERWIN J.")}
};
employeeList.Dump();
}
public class E... | stackexchange/codereview |
I am trying to plot the data using the ggplot2 package, but I am crossing with an error:
the data are set of columns which represents every day values (the values change in altitude)
V1 V2.... V500
2E-15.....3E-14
3e-14.....3E-21
1.3E-15....NA
I want to plot all the data in two axis with a fill of the values.
Code;
a... | stackexchange/codereview |
Because this is part of a larger SQL SELECT statement, I want a wholly SQL query that selects the first item matching a criteria or, if no items match the criteria, just the first item.
I.e. using Linq I want:
Dim t1 = From t In Tt
Dim t2 = From t In t1 Where Criteria(t)
Dim firstIfAny = From t In If(t2.Any, t2, t1) ... | stackexchange/codereview |
I have WPF application that follow MVVM pattern. I need to implement keyboard shortcuts. These shortcut have to contol WebBrowser control behaviour. I defined first custom command and added to view's inputbindings. There will be much more commands and they would have to invoke scripts on browser:
MainWindow.xaml.cs:
... | stackexchange/codereview |
I have a list of about 50 keywords and about 50000 strings. I check every string if it contains at least one of the keywords. I'm not interested in the matched keyword or the number of matched keywords. I only want a "true" or "false" back, as fast as possible.
So, I bet there's an algorithm out there that outperforms ... | stackexchange/codereview |
I could not find the jar contains com.tbf.xml.XmlParser.
Please help.
Thanks
| stackexchange/codereview |
I am trying to install SQL Server 2008 but it tells me that "Previous releases of Microsoft Visual Studio 2008: Failed". I downloaded Visual Studio 2008 SP1 from here VS2008 SP1, installed it (it said that the installation was successful), restarted the machine, but nothing has changed in Visual Studio Help -> About an... | stackexchange/codereview |
We are using PayPal on a faily large website, integration went well with all code helpers from the integration wizard. Now we had processed a number of transactions in the first day of putting this live but a small percentage (5%) essentially had there transaction processed by PayPal but our system recieved a TimeOut. ... | stackexchange/codereview |
I'm currently trying to improve my Selenium tests on IE. I would like to use javascript-xpath instead of ajaxslt.
My setUp function is :
public void setUp() throws Exception {
super.setUp(host, browser);
selenium.setSpeed(Constants.DELAY_BETWEEN_ACTIONS);
selenium.windowMaximize();
selenium.allowNativeXpath("... | stackexchange/codereview |
I am looking for advice on where to start with regards to writing a c code program that will use an xbox controller and a pic to activate motors. Would anyone have advice on where to start?
Thank you,
| stackexchange/codereview |
I have recently been doing a security code review for my company and using a tool called Fortify360. It will identify many issues with the code and describe the problems. An interesting issue it has raised that I have not found any other info on is the following:
"Sensitive data (such as passwords) stored in memory can... | stackexchange/codereview |
Whit ol' good SubSonic 2 I was able to retrieve the name of the table I was querying:
.Schema.TableName
Now that I switched to SubSonic 3 I can't find any way to achieve the same goal.
I tend to avoid to hardcode the name of the table in the che source code, so if I change it the compiler throw me an exception.
(Note: ... | stackexchange/codereview |
I have written a simple database driven app in C# which uses a 2 table MySQL database. This is all a learning curve for me (except c#, which I am now comfortable with)
The app is small, has a couple of datagridviews, uses a few sql select/inserts statments to populate the datagridviews and also update records.
I want t... | stackexchange/codereview |
I have two models:
lecture
enrollment
The lecture has a capacity and a waiting list. If there's an enrollment for a lecture, I'd like to validate if there are free seats available.
Created two helpers for that:
def availableSeats
return self.capacity - self.enrollments.confirmedEnrollments.count
end
def waitListAv... | stackexchange/codereview |
I am trying to make this picture showing but I had no success.
If I do
$.blockUI.defaults.message = '<img src="../images/blockUI_Loader.gif" />';
I get from fiddler
If I do
$.blockUI.defaults.message = '<img src="../_assets/images/blockUI_Loader.gif" />';
I get from fiddler
If I use
$.blockUI.defaults.message = '... | stackexchange/codereview |
We're rewriting a website used by one of our clients. The user traffic on it is very low, less than 100 unique visitors a week. It's basically just a nice interface to their data in our databases. It allows them to query and filter on different sets of data of theirs.
We're rewriting the site in Python, re-using the sa... | stackexchange/codereview |
First up, this might be the wrong place to ask this question.. So, sincere apologies for that!
I have two MySQL Tables as follows:
First Table: employee_data
id name address phone_no
1 Mark Some Street 647-981-1512
2 Adam Some Street 647-981-1214
3 John Some St... | stackexchange/codereview |
whenever I try to create Mix_Music instance, I get this error: "incomplete type is not allowed".
However, I need to get the address of the pointer music before calling Mix_LoadMUS(file);
Code:
Mix_Music *music;
/* I need the memory address here */
music = Mix_LoadMUS(file);
How do I do this?
| stackexchange/codereview |
Please tell me about some OpenGL 4.0 limitations:
1) What is the maximum of FBOs can i create?
2) What is the maximum of PBOs can i create?
Thank you!
| stackexchange/codereview |
In java, when executing a query like :
statement stm = stm.executeQuery("select * from table1");
How can I view the results of this query on the command prompt ?
Thanks for any help
| stackexchange/codereview |
I have a problem with installing SQL Server 2008 R2 Express.
On my computer, I have installed VC# and VWebdev 2010 express.
It included SQL Server 2008 Express inside.
After that, I did an upgrade to SQL Server 2008 R2 Express.
The consequence is I can't connect to a local server itself. So, I uninstall all of SQLServe... | stackexchange/codereview |
i want to know about the tcp tahoe and tcp reno?i have followed kurose and ross book for networking and sally floyd paper but unable to understand and i also need some websites where i can find some viva questions based on tcp and socket programming?please help me.
| stackexchange/codereview |
class Employee(Profile):
designation = models.ForeignKey(Designation)
keys = models.ManyToManyField(Keys)
parent = models.ManyToManyField(Parent, blank=True, null=True)
If i know some key id lets say key_id=12 how to query Employee for keys
| stackexchange/codereview |
Why this code does not work?
And is there another way to select the first item?
<div>
<a href="#">text</a>
<a href="#">text</a>
</div>
<script type="text/javascript">
$(function() {
$('div a').each(function(){
$(':first', this).css('color', 'red');
//...other actions with $(this)
}... | stackexchange/codereview |
I am executing a program in PHP and getting the below error sometimes.Is this due to creating lot's of objects and not destroying them or any other reason?
Allowed memory size of 16777216 bytes exhausted (tried to allocate 19456 bytes)
What is the correct method to destroy an object in PHP5.
Some code:
App::import('Ven... | stackexchange/codereview |
i'm trying to cave-man-profile the speed of my code from code using the date class and trace statements. it's not working out so well.
package
{
import flash.display.Sprite;
public class Test extends Sprite
{
public function Test()
{
var now:Date = new Date();
var profileSpeedMark:N... | stackexchange/codereview |
Let me give you the scenario.
Say that my first Activity that loads up, also creates a thread, which will run indefinitely in the background.
Now, if I move to another Activity, I assume that the thread that I initially created in the main activity will continue to run.
So, now to my main question - in order to manage ... | stackexchange/codereview |
All
My problem is I'm creating a 1-to-many relationship in GORM and expect 2 database tables to be created as backing objects. 3 are created which makes SQL queries overly complex.
I've created a close variant on the 1-to-many in the GORM documentation:
class Status {
List errorMessage
static hasMany = [errorM... | stackexchange/codereview |
That is, would I be better suited to use some kind of tree or skip list data structure if I need to be calling this function a lot for individual array insertions?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.