instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
How to add a background theme and/or background wallpaper to my app? Right now my app background is plane.
| stackexchange/codereview |
I need to put a rotating Waiting.gif image indicating task is in progress when I call a EJB method from my java Swing class.
| stackexchange/codereview |
I'm new to bluetooth. Is there a way through an API call or callback to get some event from a device that's connected via BT to the iphone? That is, without using the apple authentication chip?
A simple example would be an accessory that acts as a doorbell. My device would send "something" to the iphone to tell it s... | stackexchange/codereview |
I am trying to extract the from address from the sending relay IP address in a postfix log file
Any ideas???
Much appreciated for any help
Ken
Nov 16 00:05:10 mailserver pfs/smtpd[4365]: 925D54E6D9B: client=client1[1.2.3.4]
Nov 16 00:05:10 mailserver pfs/cleanup[4413]: 925D54E6D9B: message-id=<11414>
Nov 16 00:0... | stackexchange/codereview |
I have installed Apache tomcat 5.5 as a service in my system. Also i added a custom logging file using log4j for a web application. whenever i used system.out.println("some text") statement in my JSP page by default it goes to the stdout.log file which is in the logs directory of tomcat.i want system.out.println("some ... | stackexchange/codereview |
I have a 3-column table which contains images. All td's have width="33%", and the images contained have CSS width:100%. In FF and Opera, the images scale like I want them to, i.e. fill the entire width of the cell, maintaining their aspect ratio. However, in IE7, they behave quite differently: I think the pic with the ... | stackexchange/codereview |
I'm trying to mock Server.HtmlEncode(), but I keep having a null reference exception.
I'm pretty new to the Moq framework, here is my code:
var context = new Mock<HttpContextBase>();
var request = new Mock<HttpRequestBase>();
var response = new Mock<HttpResponseBase>();
var session = new Mock<HttpSessionStateBase>();
v... | stackexchange/codereview |
I am working with silverlight3 with WCF service for a while.. I have developed and hosted my application into client mechine. It was working good. Then i need to do some modifications in my application, so I have added new functions in to my .svc file(i.e in to the wcf service). I have updated the servicereference succ... | stackexchange/codereview |
I have some problem with zend. Here it is. I'm going to make some kind of articles db, which containt some info. Every article is marked with 1 or more tags (like WordPress).
I have a controller (let it be index) and action (also index).
All I need is to get articles and tags, associated with it, when user goes to site... | stackexchange/codereview |
Sorry for the n00b question, but I have no more hair to pull. =(
I'm building my iOS project using XCode and have a reference to another XCode project, to make this work I also need to reference the bundle-file. The developer who built the project and bundle wanted to organize things and thus put all the images inside ... | stackexchange/codereview |
What is the result of std::wstring.length() function, the length in wchar_t(s) or the length in symbols? And why?
TCHAR r2[3];
r2[0] = 0xD834; // D834, DD1E - musical G clef
r2[1] = 0xDD1E; //
r2[2] = 0x0000; // '/0'
std::wstring r = r2;
std::cout << "capacity: " << r.capacity() << std::endl;
std::cout << "length:... | stackexchange/codereview |
import pkg
dir(pkg)
such a statement in python won't show all the classes / functions / subpackages in the package pkg because some of them might be loaded just in time.So what is the best way to explore a package in python?
| stackexchange/codereview |
I have developed on Windows Application. Now i need to send an email (attachment feature included) by Web Service. How can i do that?
Also i need to notify the email before 'n' days. ('n' days is a feature controlled by user)
Let me know if any comment.
Thanks.
| stackexchange/codereview |
My content page looks like this:
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="Basket.aspx.cs" Inherits="Basket" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID=... | stackexchange/codereview |
The discussion to this answer just got me thinking about equality and equivalence of floating point numbers. I am aware that floating point numbers can not always be represented accurately. The question is, are there mathematically equivalent expressions that will yield different results when using floating point arith... | stackexchange/codereview |
The portion of the view that is applicable:
<% @projects.each do |project| %>
<tr>
<td><%= project.name %></td>
<td><%= project.description %></td>
<td><%= link_to 'Show', project %></td>
<% if can? :update, @project %>
<td><%= link_to 'Edit', edit_project_path(project) %></... | stackexchange/codereview |
My email address from which I deliver messages is noreply@domain.com, when I send message with:
mail(:from=>'noreply@domain.com', :to=>"somebody@gmail.com", :subject=>"Welcome!")
from field in Gmail shows noreply, so I have tried using following:
mail(:from=>'domain', :to=>"somebody@gmail.com", :subject=>"Welcome!", :... | stackexchange/codereview |
I used bind all GridViews, DetailViews etc. on my page using an ObjectDataSource (unless it wasn't possible to do so). Recently, I've started binding all my contols programatically. I find this a lot cleaner and easier, though some may disagree.
Binding with a ObjectDataSource obviously has it advantages and disadvant... | stackexchange/codereview |
I am using Weblogic 10g clustered environment to deploy my application. In my application, I have used a class Cache.java to load some properties from database lazily. This is how it works. Cache.java is a singleton class with instance variables as cache objects. For example, one of the instance variables is List<S... | stackexchange/codereview |
I have some problem with handle QML event on touch notebook, events onPressed, onPressAndHold not work, no debug message. I trying event handle through Qt class, but i have failure (connect QML and Qt using QDeclarativeView).
How i can write global event handler whitch register QML touch event on noutbook.
Thanks.
| stackexchange/codereview |
Scenario:
After a user has logged in, a session variable is set confirming their login.
At the top of every page, login session variable is confirmed valid
If it's not, they're booted out.
No persistent cookies are used, only session
Question:
Is this a strong enough security measure by itself, or should I
Set two s... | stackexchange/codereview |
I am very new to WCF/RIA services. I am looking to build an application using PRISM/MEF where I can offer new plug-ins for the application from time to time. Now, my database structure is pretty much static. It will not see many changes during its life (but there still might be a few). The new plug-ins will use the ent... | stackexchange/codereview |
how to create user defined function in java exception handaling
| stackexchange/codereview |
// GET: /Product/Delete/5
public ActionResult Delete(int id)
{
var res = (from r in data.Products where r.ProductID == id select r).FirstOrDefault();
//return View(data.Products.FirstOrDefault(p => p.ProductID == id));
return View(res);
}
//
// POST: /Product/Delete/5
// ... | stackexchange/codereview |
What can JBoss EAP do that JBoss ESP cannot? or vice verse?
Is it correct to say JBoss EAP is a subset of JBoss ESP? Meaning JBoss ESP has all the features JBoss EAP has, plus the SOA stuff?
| stackexchange/codereview |
Can this be done using javascript?
| stackexchange/codereview |
I made a simple button template from the rectangle with "Make into control../Button" command. Now, I need several buttons from that template but each button must have different background image. I tried to do that in Blend4 but when I change the button background, button holds to a template background (or none, whichev... | stackexchange/codereview |
Anyone know of a tool to completely encode a string to URL encoding? Best known example is something to convert space character to %20. I want to do this for every single character. What's a good tool for this (linux)?
thanks everyone for down voting, if i cared what language i would have specified. couldnt find anythi... | stackexchange/codereview |
I'm logging CMAccelerometerData on the iphone. CMAcceleration is a subclass of CMLogItem, which defines a timestamp. The timestamp is very important to me, as I have to match CMAcceleration data to positions obtain via GPS. GPS gives me a NSDate object, which is good; but CMLogItem gives me a number that I cant relate ... | stackexchange/codereview |
I have some code that works fine on my iPod Touch running some 4.0-series iOS as well as the simulator that comes with the iOS SDK 4.1. But when I call [UIViewController dismissModalViewController:] on an iPhone 2 running iOS 3.1.2 it get an infinite recursion, eventually crashing.
I have a view controller that opens ... | stackexchange/codereview |
Please explain the detailed meaning of VALUE used in the GC option :
-XX:AdaptiveSizeThroughPutPolicy
By default value given is 0.
Does this VALUE imply - the number of steps to use heuristics before real data is used?. What are implications of using a high(eg: 50 or 100) or low value (eg: 0)
| stackexchange/codereview |
Possible Duplicate:
How to embed a custom SWF based audio player into facebook wall posts?
I don't know how to do this so please help :)
I want to start posting mp3 links on my and other walls and at one point I saw someone do this and a mp3 player was embeded in facebook to play the audio. When I post a link all I ... | stackexchange/codereview |
i don't have much experience with interfaces in Delphi and Delphi at all.
Example:
IListModel = interface
function At(row, col : Integer) : String;
end;
MyModel = class(TInterfacedObject, IListModel)
public
function At(row, col : Integer) : String;
procedure ManipulateA;
procedure ManipulateBogus;
end;... | stackexchange/codereview |
Does the result of SELECT MAX([ColumnName]) have a column name? I know the result is a view of only one record and I'd thought this view has the original column name as the result column name?
| stackexchange/codereview |
I'm using SMTPClient for sending emails to a SMTP server. But with Send method I can specify any false sender name or email. How can I prevent this?
| stackexchange/codereview |
Using Google Maps API how to determine the driving distance between two locations? Platform -Java
| stackexchange/codereview |
I am currently using "Selenium" to develop web auotomation scripts in Java. I am trying to find a way to capture entire scrolling DIV(html) into an image. Any quick solution ??
Example: https://i.stack.imgur.com/AZduC.png
| stackexchange/codereview |
I have 2 classes - Students and Groups with many-to-many relationship. On a student page, I want to show all his details and list all groups he belongs to, delimited by comma.
This is my Students controller:
class Students extends Controller {
function __construct() {
parent::__construct();
}
function in... | stackexchange/codereview |
wonder if anyone can help;
I have an a two dimensional array which I need to group by any common "job number" element;
Here's an example - I'm just playing with the idea at the moment, The $i is just a counter that iterates through the array results;
$galleryItems[$i][0] = 'example title';//the title
$galleryItems[$i]... | stackexchange/codereview |
I'm looking to apply for the Individual Mac/iOS developer program, and I've some questions about the paid app contract.
I don't know exactly what needs to be done since I haven't apply for it yet, but I do know I will need to fill in some forms to sell apps on the app store.
And I have a feeling that this will become... | stackexchange/codereview |
I am trying to use delegate to call a function, when a specific set of links get click.
I have already used it before in some other page. It was worked there. But, this time i even not able to find, where the problem is.
My links were dynamically generated, they looks like
<a class="thumbLink" href="#" id="My HomeTown-... | stackexchange/codereview |
I was told that this could be done by using SSIS. Can anyone refer me to the right tutorial?
Thanks. :)
| stackexchange/codereview |
Recently I have been working with the xml coding,and the problem happened.
Given the xml like this:
<Colonel id="1">
<Lieutenant_Colonel id="2">
<Secretary id="6"/>
</Lieutenant_Colonel>
<Lieutenant_Colonel id="3">
<Secretary id="7"/>
</Lieutenant_Colonel>
<Secretary id="5"/>
</Colonel>
now the Colon... | stackexchange/codereview |
I am new to Iphone development. I am working on an application which involves two views. I have a camera button in view one which opens up the default Iphone camera. This is achieved by having this code in the IBAction for camera button in ViewOneController:
UIImagePickerController *picker =
[[UIImagePickerController a... | stackexchange/codereview |
I have a JqGrid that's populated by a server-side Spring-powered data. I don't use local property in my JqGrid. Whenever I search, it calls the server-side to call the specified url in the JqGrid configuration. That's good.
But what if I just want to filter out the existing data that the grid is showing? Assuming the g... | stackexchange/codereview |
I'm writing a shell script which iterates over a set of variables, edits a source file line by line according to the current iteration value, then remakes, and finally calls the just compiled binary. After execution the old line is restored.
Here is a snippet:
#!/bin/sh
for i in 0..4; do
perl -i -pe "s/.*/{SUBS[$i]... | stackexchange/codereview |
I am using following CSS code to align Input Boxes, but still nothing seems to work:
.EntryFormDiv.input
{
padding-left: 100px;
margin-left: 100px;
left: 50px;
width: 80px;
text-transform: capitalize;
}
What is the problem? I have added this class name on all the Input definitions.
Edited **
<div id="divBooksEn... | stackexchange/codereview |
What is the best way to create a secure user authentication function? Below is the core of a php function that takes in the username and password and checks it against the database.
I am specifically interested in the query and its return value. Is using the 'else if($query1)' the best way to validate and set the ses... | stackexchange/codereview |
I'm looking for the equivalent of <?php $_SERVER['REMOTE_ADDR'] ?> in Google App Engine and Python.
Thanks!
| stackexchange/codereview |
I'm implementing concrete inheritance in my model. So I'm trying to do (i'm taking example upon jobeet) :
When a user try to post his CV, he'll be redirected on a page on which he will be choosing his main skill (Developper / Network). Both of dev/network inherits from future_employees, cause it has common information... | stackexchange/codereview |
I am trying to implement a custom picker. It has 3 components. Now, I want to gray out some values in the second component based on the first component value selected. I have referred to many sites and tried googling out to disable the values.(To be precise, something like the uidatepicker where if we select feb, 29 an... | stackexchange/codereview |
Downloaded CubicTest and created a project. I get a null pointer exceptions . Any idea what the reason is ?
| stackexchange/codereview |
I have a new set up for software development for iOS devices. I am using MACs for the development and the company may grow from three employees right now to 20 in near future. I want to make the MACs secure so that the client code is safe and does not leave office.
Few ways I can think of a notorious employee trying to... | stackexchange/codereview |
I am using the Google API for showing the corresponding address in the Map.
Recently i added the street view for the map. but what is my problem is if the street view is not existing for the given address it is showing the blank screen.
so instead of that in the info window itself not to show the street view link.
if t... | stackexchange/codereview |
So, the noobie question of the day...
I have an XML file with the following structure:
<result>
<rowSet name="name">
<row name="name1" />
<row name="name2" />
<row name="name3" />
</rowSet>
<rowSet name="type">
<row type="type1" />
<row type="type2" />
<row type="type3" />
</rowSet>
etc... | stackexchange/codereview |
I have a very simple html code:
<body>
<div id="container">
<div id="left">
some text here
</div>
<div id="right">
and some text here
</div>
</div>
</body>
and styles:
div#left {
float: left;
background: #e2e2e... | stackexchange/codereview |
Is it possible to break into debugger when the allocated memory of attached-to process becomes bigger than a certain value?
Preferrably using Visual Studio 2005, but other IDE's/debuggers are an option.
| stackexchange/codereview |
I’ve written my own staticsitemapprovider which builds a dynamic site map. The problem I have is that sometimes pages will have additional parameters in the query string which I need to ignore.
Public Overrides Function FindSiteMapNode(ByVal rawUrl As String) As SiteMapNode
Dim startpos As Integer = 0
Dim... | stackexchange/codereview |
I'm a noob when it comes to basically all forms of storage aside from SharedPreferences and some SQLite. I did some searching and found that JSON+GSON was a fast way to parse Objects and their fields into storable Strings.
So, in my game, I have a Player object which has fields that are also my own classes:
public clas... | stackexchange/codereview |
I'm trying to visualize some graphs and am looking for alternate ways to style the edges. I'm not entirely sure if changing the edge style would improve the representation, but even so I'm curious.
For example:
GraphPlot3D[{2 -> 3, 2 -> 4, 2 -> 5, 3 -> 4, 3 -> 5, 4 -> 5},
EdgeRenderingFunction -> Dotted,
]
Doesn't ... | stackexchange/codereview |
i am trying to develop this app in android that has 3-4 buttons and a list being displayed below them. each button when clicked must reload the list with new contents based on which button was clicked.
each row in the list has a picture and two lines of text.
could some one please suggest me how do I perform the reload... | stackexchange/codereview |
I have several (1 million+) documents, email messages, etc, that I need to index and search through. Each document potentally has a different encoding.
What products (or configuration for the products) do I need to learn and understand to do this properly?
My first guess is something Lucene-based, but this is someth... | stackexchange/codereview |
I have a simple problem , Although i believe its simple , am not able to figure out the same.
Consider i have the below table with exactly same data as given below :
CREATE TABLE #temp
(
link varchar(255),
number INT,
fname varchar(255)
)
insert into #temp VALUES ('abc',1,'f1')
... | stackexchange/codereview |
The Windows desktop gadget I'm developing requires some configuration on first run, so when it detects that it hasn't been configured, I want to immediately open the settings dialog. Is this possible?
| stackexchange/codereview |
I know that I can add more than one project to a solution, but I have a load of pre-developed projects that I want to add and rather than going
Add > Existing Project > Navigate to folder > click on project file
I wondered if there was an easier way to add lots of projects at once.
| stackexchange/codereview |
Greetings StackOverflow'lings,
Let me explain my predicament:
Lets just say I have 3 columns (9 in total as they are merged in numbers of 3) in one row each of the 3 columns has data in it
In the row directly beneath I have 9 columns with each cell having data in it.
The idea is to read the first row with the 3 columns... | stackexchange/codereview |
I have a drupal website with a multi cck field (or how is it called? when you can "add another" field with ahah).
The problem is, when I click add another, everything works fine, but if I wait 5 minutes or so, and I click again, all the ahah fields disapear.
My post is done correctly, but my data response, which should... | stackexchange/codereview |
Do you know a way of implementing something like a Hibernate QBE (Query by Example) in JPA?
For my problem domain the alternative of using it will be to build a SQL query dynamically using some sort of string manipulation, something I would like to avoid.
I know this is not supported by default in the API, but I recog... | stackexchange/codereview |
I know, that I can use Apple Event Object Model for moving and resizing windows of Cocoa applications. But what can I use for Carbon applications?
| stackexchange/codereview |
i need some help with google map api v3 markers.
I got an array which contains coordinates i retrieve from a file. I am trying to traverse the array, and plot them using the markers.
Traversing the array to retrieve the coordinates is not a problem, however, when i start using the coordinates to plot on google map. i r... | stackexchange/codereview |
I am building a completely ajax web app (this is the first web app I have ever created). I am not exactly sure if I am going about it the right way. Any suggestions or places where I can go to find suggestions?
Update:
I currently am using jQuery. I am working on fully learning that. I have designed a UI almost complet... | stackexchange/codereview |
I've got a Java appengine app with remote_api installed as per http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/
<servlet>
<servlet-name>RemoteApi</servlet-name>
<servlet-class>com.google.apphosting.utils.remoteapi.RemoteApiServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-... | stackexchange/codereview |
Usually compilers translate from the language they support to assembly. Or at most to an assembly-like language (bytecode), like GIMPLE/GENERIC for GCC or Python/Java/.NET bytecode.
Wouldn't it be simpler for a compiler translate to a simpler language, which already implement a big subset of their grammar?
For example ... | stackexchange/codereview |
I two forms, Form1, and a UserControl which hosts Form2. Within that UserControl on Form1 I call Form2.Show();. I have also tried Form2.Show(this);. Either way, the focus is not given to the form. I have to click once within the new form to give it focus, and then I can click items within that form.
I figured that cont... | stackexchange/codereview |
I have thousands of SGML documents, some well-formed, some not so well-formed. I need to get at certain ELEMENTS in the documents, but everytime I go to load and try to read them into an XDocument, XMLDocument, or even just a StreamReader, I get different various XMLException errors.
Things like "'[' is an unexpecte... | stackexchange/codereview |
I am using magento 1.4 . Any one please tell me how to send product price alert.
Do i need to change any code for that. If i need to change the code, possible to tell me where exactly to change and what to change?
| stackexchange/codereview |
Suppose that I have a priority queue which removes elements in increasing order, and stored in this queue are the elements 1, 1, 3, 0, 1. The increasing order is 0 then 1 then 3, but there are three element 1s.
When I call remove it will first remove the 0, but if I call remove again will it remove all three 1s at the... | stackexchange/codereview |
Under a corporate apple developer account, is it possible to add more than one bank account to a given paid app and specify which percentage of the commission Apple will pay out the commissions? I'm asking because I'm developing an app with a partner, and we've agreed to split the commissions, so this kind of setup wou... | stackexchange/codereview |
When we do Ceiling(convert(decimal,8.09)) then result is 8 and in Ceiling(convert(float,8.09)) result is 9, explain?
| stackexchange/codereview |
I prefer to my development work in a virtual machine so my computer don't get messy and slow.
However, I always deal with the issue of licencing, even if the windows version on my host and on my VM is the same.
Is there a way to pay less than buying a full licence for every VM I have?
| stackexchange/codereview |
I am trying to call a function which allocates memory for the string and then does something with the string. Here is the basic example which illustrates the problem:
C++:
STDMETHODIMP CFunctionsCollection::Function2 (
BSTR leftString, BSTR rightString, BSTR * conString
)
{
int leftLen = lstrlen(l... | stackexchange/codereview |
I need to find the correct .dll/.exe from where the function enumerated. For this I am using get_libraryName which to me should return file Name(.dll/.exe) in which the function was originally defined.
But It returns every time NULL(BadPtr=0x00000)..
Is there any way out to retrieve the exact file Name from where the f... | stackexchange/codereview |
I was wondering what the best practice is when populating commonly used dropdownlists in ASP.NET MVC. For instance, I have a Country and State select which is used often in my application. It seems dirty to populate viewmodel and bind to that viewmodel from my controller for every single view I want to contain such a d... | stackexchange/codereview |
Suppose I have a function named caller, which will call a function named callee:
void caller()
{
callee();
}
Now caller might be called many times in the application, and you want to make sure callee is only called once. (kind of lazy initialization), you could implement it use a flag:
void caller()
{
static... | stackexchange/codereview |
Cucumber works great for Behavior Driven Development, but I'd like to use shorter directory names. features/step_definitions? Why not features/steps? I suppose there is some way to change this in the cucumber.yml file, but I haven't had any luck finding a .yml file that does.
| stackexchange/codereview |
I need class runtime class declaration from database.
Some class need override field and redeclaration.
models.py
class Staff(object):
name = StringField( verbose_name = "Full name")
age = IntegerField( verbose_name = "Age")
utils.py
def class_changer(class_path, field_key, new_Field):
pass
??????... | stackexchange/codereview |
I'd like to respond to an HTTP POST in an ASP.Net page.
I've found loads of example of sending an WebRequest, and I can successfully pick that up and read it in my Page_Load.
However, I'd like to then put some data back in the Response, but I can't find any examples of how to do this.
The actual requirement is for an e... | stackexchange/codereview |
Just a simple contrast and saturation enhancement.
Nothing fancy.
| stackexchange/codereview |
I have this URLs...
$output = "href=\"/one/two/three\"
href=\"one/two/three\"
src=\"windows.jpg\"
action=\"http://www.google.com/docs\"";
When I apply the regular expression:
$base_url_page = "http://mainserver/";
$output = preg_replace( "/(href|src|action)(\s*)=(\s*)(\"|\')(\/+|\/*)(.*)(\"|\')/ismU", "$1=\"" . $base_... | stackexchange/codereview |
In the code below I want to replace plain ampersands with "and" while ignoring the ampersands that are being used as part of an html entities (ex: ")
I've tested my expression &(?!([\w\n]{2,7}|#[\d]{1,4});) over at http://www.gskinner.com/RegExr/ and it matches what I want.
However, when I run this code, the results ar... | stackexchange/codereview |
I'm busy learning Prism 4 and the in and outs of everything, but I've yet to see a tutorial/walk through on what I want to accomplish. Hoping someone here has or has worked on a similar project.
My application is a basic CRUD application that I've broken down in to separate areas of concern and hence modules. However, ... | stackexchange/codereview |
I am new to computer programming and have some experience programming with python. I am thinking of developing a program that does physics simulations (projectiles, circular motion, damped simple harmonic motion systems etc.) as a hobby project. I would like to write the program that it could be run by a non-technica... | stackexchange/codereview |
Is there any difference between these solutions?
Solution 1:
function doSomething(id, value) {
console.log(value);
//...
}
<input id="theId" value="test" onclick="doSomething(this.id, this.value)" />
...and Solution 2:
function doSomething(id) {
var value = document.getElementById(id).value;
console... | stackexchange/codereview |
I try to create a variable width website, but i have a problem with the images. I want to site to have bigger images and fonts on wider monitors, and smaller for normal ones. The solution i thought about was using percent, but the images (For the buttons, background and header) look kind of bad when they are resized. I... | stackexchange/codereview |
This probably very easy when you know how, but I don't :)
I'm trying to build some code that takes uses opengl/glut. I'm using the cygwin version of cmake opengl etc. The only reference I see to opengl/gult is in the CMakeLists.txt:
find_package(OpenGL REQUIRED)
find_package(GLU REQUIRED)
find_package(GLUT REQUIRED)
... | stackexchange/codereview |
I've got an appengine app with two simple kinds of entities - ParentEntitys and ChildEntitys. Each ParentEntity has a List of owned ChildEntitys.
@PersistenceCapable
public class ParentEntity
{
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;
@Persistent
priva... | stackexchange/codereview |
Im doing a program where u can draw your signature on the phone. Right now it saves one image but I would like to save more than one image since there are more than one customer that needs to sign their package. very thankful for any kind of help.
public void save() {
File sdImageMainDirectory = new File... | stackexchange/codereview |
I am developing a Genetic Algorithm framework and initially decided on the following IIndividual definition:
public interface IIndividual : ICloneable
{
int NumberOfGenes { get; }
double Fitness { get; }
IGene GetGeneAt(int index);
void AddGene(IGene gene);
void SetGeneAt(int index, IGene gene);
... | stackexchange/codereview |
Specifically, how to implement the multiplayer portion? I've been toying around with checkers to exercise my JS/PHP/AJAX muscles and have it working pretty well for one person (or two people on the same computer). But I'm kind of getting stumped when it comes to making it work between two people on two different comp... | stackexchange/codereview |
I have a question about using ugettext and gettext_lazy() for translations.
I learned that in models I should use gettext_lazy(), while in views ugettext.
But are there any other places, where I should use gettext_lazy() too? What about form definitions?
Are there any performance diffrences between them?
Edit:
And one ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.