instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I want to declare a couple of types
(internal to a class templated on K and V and providing some caching behaviour):
typedef std::map<
long long,
typename key_to_value_type::iterator // Ooops... not declared yet
> timestamp_to_key_type;
typedef std::map<
K,
std::pair<V,typename timestamp_to_key_type::iterator... | stackexchange/codereview |
I am trying to set a system property in tomcat config file so it can be read by System.getProperty() code. This is probably a simple task but I am not able to figure this out. Here is want I tried with no success.
Modified context.xml in tomcat settings.
<Context>
....
<Parameter name="run.mode" value="test... | stackexchange/codereview |
Is it possible to get objects from a list according to their indexes at one shot? For example I have a List<string> alist. I have an integer List List<int> indexes which has indexes. Is it possible to get a result list from the original list which equals the indexes in the array.
I am looking for something like List<st... | stackexchange/codereview |
I am getting the value from web service <span and </p> like paragraph tag and span can anybody tell how to escape the character
| stackexchange/codereview |
I have an app which contains an activity which is a MapviewActivity and is mostly a mapview.
However I have noticed that the start up time of the activity is really slow and causes a lag from the moment the button is pressed to go in to the map activity. I feel this creates a bad user experience and would like to avoid... | stackexchange/codereview |
Please explain the meaning of this statement
. ./ab_project_setup.ksh $(pwd)
| stackexchange/codereview |
<enclosure length="30367" type="image/jpeg" leadimage="true" caption="aaa" url="http://link1.jpg" />
<enclosure length="30367" type="image/jpeg" leadimage="false" caption="bbb" url="http://link2.jpg" />
how i can change in a string, all this line:
<enclosure length="30367" type="image/jpeg" leadimage="true" capti... | stackexchange/codereview |
Is it possible to view what textures are currently being loaded into the RAM of the Graphics Card? For instance, if you open 2-3 highly intensive 3D games, is it possible to view the textures of these games in the RAM of the Graphics Card?
| stackexchange/codereview |
If I have my own library projects, which style should I use to #include the headers from them in my application? Are there strict rules, and do the two actually have different meanings to the compiler/preprocessor or is it about standards only?
| stackexchange/codereview |
I'm using Zend Framework and I feel that I need a good ORM to work with. I don't know much of Zend Framework, I just know how to do the basics. I expect to work together with both Doctrine and Zend Framework
But to sget started, I'm going to try a simple Doctrine project (no ZF) to get used to the application. Then I'l... | stackexchange/codereview |
I have the following linq query
var ret = from u in MenuHeaders
.Include("MenuHeaderItems.MenuItem")
select u;
I need to select ONLY menu headers which exist for certain users, which belong to a certain role given a user id.
So, the relational path would be something like this...
MenuHeader R... | stackexchange/codereview |
Create a new scala project
add library reference to scalaz
create a new package
create a scala file in the package
set encoding to UTF-8
paste the content of the bifunctor example
adjust the package in the file
It works in intellij. With eclipse i get 8 errors like this:
';' expected but something found
in the li... | stackexchange/codereview |
Ok, so I'm trying to figure out why junit is failing during my ANT build when I try to run a class that extends a SeleneseTestCase. I can run the test manually without an issue. It's only when I try building and running it with ANT I get this problem.
I'm using Eclipse on the Mac with the latest version of:
selenium-j... | stackexchange/codereview |
We're porting our USB device dll's to use the generic WinUsb.
However, WinUsb doesn't support multiple concurrent application accss to the same device (Same VID & PID).
I wanted to know if there is a way to implement this concurrent access using WinUsb?
I read about filter drivers & services.
1. I don't want to use a f... | stackexchange/codereview |
I have a tab bar in my application. In this I have three tabs. It will call three activities. In activities I have the list view. If I click the list view, it will call different activities other than tab activities. Can anybody tell me how to display the tab bar for other activities and give an example?
Thanks in adva... | stackexchange/codereview |
I have a guide where each chapter is located in a separate LI of a UL. I am trying to use the jQuery Clone function to search through the parent UL that contains all of these 'chapter' LIs, and return those chapters that contain specific text.
Right now, I'm getting odd results, likely because it's copying elements at... | stackexchange/codereview |
I'd like to add a constraint to a route parameter that I have. The route pattern is:
{region}/{controller}/{action}
where {region} should only be UK or US.
How can I do this? Is there a regex I can apply here, or some other means of defining this?
| stackexchange/codereview |
I've got an iPhone app under development that I plan on using for research purposes. As testers use the app on my development phone, it stores analytics data in a local database (right now SQLite, but I'm not opposed to migrating to CoreData).
After testing is done, I need to be able to copy this analytics database off... | stackexchange/codereview |
I found some hint in Toplink
Query query = em.createQuery("SELECT e FROM Employee e ORDER BY e.lastName ASC, e.firstName ASC");
query.setHint("eclipselink.cursor.scrollable", true);
ScrollableCursor scrollableCursor = (ScrollableCursor)query.getSingleResult();
List<Employee> emps = scrollableCursor.next(10);
is there ... | stackexchange/codereview |
I want to know what the role and aria-* attributes are for in HTML5. Thanks.
| stackexchange/codereview |
When creating a Saas product, the database is the biggest issue when it comes to scaling.
From my research, it seems Django provides a more built-in robust way to vertically partition the database.
Rails has some gems that you can use, but its not something that ships with the Rails framework and your really at the mer... | stackexchange/codereview |
In Visual Studio, there are formatting rules found in the options menu that specify things such as where to include line breaks, how many spaces to use when tabbing (or to use tabs instead of spaces, etc.)
Is there a way to push these rules to each programmer's machine using a domain policy or some other way?
| stackexchange/codereview |
<?php
for ($i = 'a'; $i <= 'z'; $i++)
echo "$i\n";
This snippet gives the following output (newlines are replaced by spaces):
a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad ae af ag ah ai aj ak al am an ao ap aq ar as at au av aw ax ay az ba bb bc bd be bf bg bh bi bj bk bl bm bn bo bp bq br bs b... | stackexchange/codereview |
I am trying to implement a slideshow using jQuery
I have a button called SlideShow and clicking it would trigger the slide show.
I display a set of thumbnails:
<div class="pics">
<img u="bob" id="pic1" src="/photos/thumbs/file1.jpg" class="apt" f="file1.jpg">
<img u="rob" id="pic2" src="/photos/thumbs/file2.jpg" cla... | stackexchange/codereview |
As you know the iPhone guidelines discourage loading UIImages that are greater than 1024x1024.
The size of the images that I would have to load varies, and I would like to check the size of the image I am about to load; however using the .size property of UIImage requires the image to be loaded... which is exactly what... | stackexchange/codereview |
I'm making a web application and would like to have a secure area where you can only sign in with your finger print. My original idea was to just use a usb barcode reader and you scan that, and it outputs the ID into a text box, but that's not very secure. So I want to use a USB fingerprint reader to maybe generate a h... | stackexchange/codereview |
I'm making "something" (I don't know how to define it yet), and what does is create a pptx presentation and some slides... but I'm facing some problems: I can't change the background color/image of my slides and textboxes... and I can't figure it out... Can anyone help me?
| stackexchange/codereview |
What is the regular expression to check a cost has been provided correctly:
Number must be greater than or equal to 0.01
Number must be less than or equal to 99.99
Possible matches are:
9 | 23.3 | 25.69
Not allowed:
| 2.
| stackexchange/codereview |
Using scala I have added about 100000 nodes to a linked list. When I use the function length, for example mylist.length. I get a 'java.lang.StackOverflowError' error, is my list to big to process? The list is only string objects.
| stackexchange/codereview |
I need to reference my db.rb file that is lower in the directory tree.
/folder1/test.rb
/db.rb
/database.yml
running:
ruby db.rb
doesn't return an error.
In test.rb I did:
require '../db.rb'
and I get an error:
../db.rb:7:in `initialize': No such file or directory - database.yml (Errno::ENOENT)
from ../db.rb:7:i... | stackexchange/codereview |
i have 2 tabels in my database "forum_traad" and "forum_kommentare" but they have the same row "indhold" so when i try to join forum_traad and forum_kommentare and i wanna echo the "indhold" row from "forum_traad" it echo the "indhold" from "forum_kommentare", what can i do?
my view:
<div id="forum">
<?php
if($q... | stackexchange/codereview |
I'm writing a simple web server in C on Linux.
I have to add the last modified time of a file that will be transferred to the client(browser),
I analysed how some websites and find out that they all present the time in format:
Fri, 12 Nov 2010 16:02:54 GMT,
my question is, can I transfer a time_t value to something s... | stackexchange/codereview |
I'm working on a 100% ExtJS application; the browser downloads all the JavaScript and a single HTML file once; everything runs in the browser after that.
When all the panels are rendered at startup (i.e., when Ext.onReady() fires) I need some panels to be hidden depending on the user's permissions. Is there a common/be... | stackexchange/codereview |
I am working on an image processing project using Matlab. We should run our program (intended to be an application) on a cell phone.We were then asked to convert our code into C or C++ language so we get a feel of how long it would take for execution and then choose a platform. So far we didn't figure out how to do thi... | stackexchange/codereview |
I have a form inside a while loop in PHP. There is action="javascript:block_grade($id)", but when i alert(id) or alert(lvl) in the block_grade function, I receive the same numbers from all the the loops?
This is inside my loop:
echo '<form action="javascript:block_grade('.$show['id'].')" method="post">';
echo 'Change b... | stackexchange/codereview |
The Problem:
I have a forms project which instantiates a class that is defined in a separate dll project. When running the forms application which uses this dll everything runs perfectly fine, however, when I set a breakpoint to inspect objects of types that are defined in the dll project I get errors in my watch win... | stackexchange/codereview |
yester day was my first attempt. I am trying to catch the variable "time" in the following "new.xml" file
<?xml version="1.0" standalone=no>
<main>
<ToDo time="1">
<Item priority="1"> Go to the <bold>Toy store!</bold></Item>
<Item priority="2"> Do bills</Item>
</ToDo>
<ToDo time="2">
<Item priority="1"> Go to ... | stackexchange/codereview |
I am programming a script to upload images to my application. Are the following security steps enough to make the application safe from the script side?
Disable PHP from running inside the upload folder using .httaccess.
Do not allow upload if the file name contains string "php".
Allow only extensions: jpg,jpeg,gif ... | stackexchange/codereview |
I've this url:
http://localhost/alignment/?page_id=52&q=2
I want to get the portion: ?page_id=52 , how can I do that?
| stackexchange/codereview |
Is there an equivalent function to string format in XSLT?
I'm working on a multi-lingual site in umbraco. I'm not aware of what languages will be needed, butbeing as they are, one language could order the words differently e.g.
English "Your query 'Duncan' matched 5 results." could translate word for word to
"5 resul... | stackexchange/codereview |
I have an ajax call that goes out to my rails server. Depending on the content type my rails server either responds with HTML or JSON. This works fine on the iPhone browser and on desktop browsers like chrome, etc. However on the Android browser somehow my server is not recognizing the content type. I don't think the o... | stackexchange/codereview |
This was a question posed some time back: jQuery validate plugin : accept letters only?
I'm using the validate plugin from http://bassistance.de/jquery-plugins/jquery-plugin-validation/
What i'm trying to find is a way to make some of my form fields accept letters only, no numbers, special chars etc...
The question was... | stackexchange/codereview |
Using AS3
I have in my code a button to stop and remove the swf, but I would like to have in addition to unload a child swf when it plays it's last frame automatically - not using a button.
Here is my code on the main timeline:
var loader:Loader;
var closer:close;
norton_btn.addEventListener(MouseEvent.CLICK, NortonD... | stackexchange/codereview |
Whenever i click on the link created by users.create_login_url(), i get an error (shown below). When deployed, the thing works, but doesn't work locally.
What is wrong?
Here's the code:
import random
import os
from google.appengine.api import users
from google.appengine.ext import webapp, db
from google.appengine.ext.... | stackexchange/codereview |
In Android if I have an edit text and the user entered 123456789012, how could I get the program to insert a dash every 4th character. ie: 1234-5678-9012?
I guess you need to say something along the lines of:-
a=Characters 1~4, b=Characters 5~8, c=Characters 9-12, Result = a + "-" + b + "-" + c. But I am unsure of how... | stackexchange/codereview |
I need to fetch a node set containing elements that refer to exactly two other elements. I can't figure out how to do it in a single XPath expression.
My (simplified) source XML looks like this:
<group>
<id>1337</id>
</group>
<group>
<id>1338</id>
</group>
<member>
<id>31415</id>
<groupId>1337</groupId>
</m... | stackexchange/codereview |
I created a .net C++ dll, which I then converted to a tlb file for use in a native C++ application. I referenced other external dll's in my dll. Now, I am trying to deploy, and want to copy over the referenced dll's to the deployment computer. Where do they reside in my .net C++ project?
| stackexchange/codereview |
I am new to Ajax. i wanna submit a form through Ajax and save the data sent to the database.
Something like the Facebook Status update - where text area is disabled and then submited. once its saved in the database it comes back and updates the status message on the top. and again the text area is enabled.
this is my f... | stackexchange/codereview |
Possible Duplicate:
When do you use POST and when do you use GET?
I know the basic difference between GET and POST methods. That is we can see the URL parameters in case of GET and can't see the URL parameters in case of POST. Of course we can pass huge amounts of data by POST which is not possible through GET.
Are ... | stackexchange/codereview |
I can trigger an event using onLastSecond function but I want a few more seconds earlier. Can it receive a parameter that identifies the seconds during which the event is triggered?
| stackexchange/codereview |
Is it possible to detect the browser zoom level when the user changed the zoom level of browser, and the default zoom level using javascript. I need to call different xml files according to the zoom level change.
| stackexchange/codereview |
Is there an open-source implementation in any programming language to detect running handwriting in English and convert them to text ?
| stackexchange/codereview |
I downloaded the .ply files in the Stanford 3D scanning repository, and am using Stanford's code from that page (ply.h, plyfile.c) to parse them. However, looking at this code, I see that it's rife with mallocs that are never freed. I could close my eyes and look the other way, but it makes my teeth itch.
I can think o... | stackexchange/codereview |
Is there any way to share Bluetooth pairing information between two slave nodes in a mesh network? For instance, if Person1 pairs a phone to Node1 and leaves the scannable area. Sometime later, when Person1 enters Node2's scannable area, can the pairing information be used to connect directly to Person1 again? Without ... | stackexchange/codereview |
I'm porting an old 32-bit COM server to 64-bit architecture.
Many functions take buffer addresses and offsets as parameters, as __int3264 and __int3264 pointers. The problem is that this type is not automatically generated as __int64 in x64 since the interfaces are IDispatch-inherited, and __int3264 is not supported w... | stackexchange/codereview |
i have 2 asp.net textboxes on a page. using jquery how can i update the text of the second one when the first one changes.
Has to be jquery using asp.net textboxes
e.g. as user types 'hello' into first box the second box will automatically fill with the same text. should happen as user types and not when user leaves ... | stackexchange/codereview |
What is the best way to reference DLL (without copying localy into the projet) when creating a project from a "Template" project in VS.net 2010? Because, as known, project template can only make a template for a Project, not solution.
UPDATE
My question were not clear :
I want to know how to a project, lets say "Projec... | stackexchange/codereview |
In my web application I have an image uploading module. I want to check the uploaded file whether it's an image file or any other file. I am using Java in server side.
The image is read as BufferedImage in java and then I am writing it to disk with ImageIO.write()
How shall I check the BufferedImage, whether it's reall... | stackexchange/codereview |
I'm attempting to call startActivity(myIntent) from the click of a menu button but my application crashes at that point.
The same startActivity call works fine from a regular button click, so, I assume the menu button is missing information about the context? Or maybe I'm totally off the mark here.
So... what's the cor... | stackexchange/codereview |
We are clueless about why my client is encountering a Java Security exception in Safari. Could anyone help?
The exception occurs reliably in Safari on Windows. This involves a Java applet. The exception also occurs with Firefox and IE8 on Windows Vista.
Here are the steps to reproduce:
Open Safari on Windows
Click ... | stackexchange/codereview |
Owasp recommends the synchronizer token pattern to defend against cross-site-request-forgery. If the webpage is sent over HTTP, then a man-in-the-middle will be able to intercept the token. How much of a problem is this?
| stackexchange/codereview |
I want to delete all the files it created and roll back any changes made, but not necessarily to the database, but more to the config files.
I'd like to automatically delete all the resource mappings for the model/controller deleted in the routes.rb file and everywhere else that changes might have been made?
| stackexchange/codereview |
I am working on a program that downloads images from a URL to a bitmapimageand displays it. Next I try to save the bitmapimage to the harddrive using jpegbitmapencoder. The file is successfully created but the actual jpeg image is empty or 1 black pixel.
public Guid SavePhoto(string istrImagePath)
{
ImagePath = ist... | stackexchange/codereview |
Reading documentation online, I'm getting confused how to properly define multiple JavaScript variables on a single line.
If I want to condense the following code, what's the proper JavaScript "strict" way to define multiple javascript variables on a single line?
var a = 0;
var b = 0;
Is it:
var a = b = 0;
or
var a =... | stackexchange/codereview |
The question may at first sound silly, but maybe it isn't at all.
Java is not the Java language, most people know that, since you can program Java with lots of other langauges like Scala or Groovy
Java is not a concrete VM implementation since there are other implementation out there, not only SUN's, Microsoft's or IB... | stackexchange/codereview |
How can I include a tikzpicture on every page?
I would like to create a complicated document template (page should be framed, and have a table to hold document information both in the header and footer).
I was thinking of using something like:
\begin{tikzpicture}[remember picture,overlay]
% complicated layout sho... | stackexchange/codereview |
I'd like to write a method that checks where the argument is null, and if it is, returns a new object of that type. it looks like:
public static <T> T checkNull(T obj) {
if (null == obj) return someHowCreateTheObjectWithTypeT();
else return obj;
}
After some struggling and digging, I still can't get a way to a... | stackexchange/codereview |
What is the best practice for storing/retrieving API keys in rails3?
Should I create my own application yaml and access it through there? If so, how?
Sorry for the noob question...
| stackexchange/codereview |
We have a database of many many rows in sqlite3. We are utilizing the FMDB Wrapper for SQLite3 to show data in a UITableView. It is preferred that we do not use Pagination as this doent feel very normal for an iPhone/iPad application. We were hoping that if we MUST do so we could do so in the form of 400 or so records.... | stackexchange/codereview |
Can anyone explain this?
Project.includes([:user, :company])
This executes 3 queries, one to fetch projects, one to fetch users for those projects and one to fetch companies.
Project.select("name").includes([:user, :company])
This executes 3 queries, and completely ignores the select bit.
Project.select("user.name").... | stackexchange/codereview |
Can someone in simple term explain how tunneling works? How can a virus install itself in the interrupt handler chain in order to avoid scanners?
| stackexchange/codereview |
I am making an Android app, and I need to connect to a remote database with a webservice.
I will receive an XML file from the webservice with the results of my SELECT query (various rows in some cases).
I don't know much about XML or web services, I only know that I will receive an XML file and that I have to parse it ... | stackexchange/codereview |
I have to create a small panel like thing with a border.
This should contain a text, an image that describes the text and a button.
On clicking that button I have to do some operations also.
Which widget is suitable for this?
Can anyone suggests any idea?
| stackexchange/codereview |
I would like to know if stackoverflow has api's that can be used as plug-ins to be put on other websites ?
Lets say in another forum , a guy posts a question , is it possible to use any api and transfer the question to stackoverflow and then transfer the answers back to the forum ?
| stackexchange/codereview |
How would you compile actionscript code whose main class is inside a package using mxmlc command line compiler? Consider the following -
com.nuaavee::MainClass
com.nuaavee.utility::SomeUtility
MainClass imports SomeUtility class.
Is there a way to compile these classes keeping MainClass as the main class to generate a... | stackexchange/codereview |
I have 2 datasets loaded with data from two xml files having the same
schema. The files contain data from yesterday and today. I'd like to merge
both datasets in such a way that the resulting dataset should have all the
today's data overriding yestrerday's data.
CATCH: the today's
dataset contains only the daily change... | stackexchange/codereview |
So I created a function (C++)
void CaptureFrame(char* buffer, int w, int h, int bytespan)
{
/* get a frame */
if(!cvGrabFrame(capture)){ // capture a frame
printf("Could not grab a frame\n\7");
//exit(0);
}
CVframe =cvRetrieveFrame(capture); // retrieve the captured frame
/* always che... | stackexchange/codereview |
I have been playing with the code from the create pdf tutorial on the iphonesdk site and I am stumped. I can create a pdf when I pass a float to NSString*text but when I try to take the value from a UITextField it comes up with an "input" undeclared. "input" is the name of the textfield which is properly declared and h... | stackexchange/codereview |
How I'm suppose to implement a macro that would do something like this:
//pseudocode
#define CHOOSE(X) if(X) expand to "" and if !X expand to return nullptr;
Edit
template<class SomePolicy>
struct M
{
template<class Policy = SomePolicy>
typename std::enable_if<IsThrow<Policy>::value,void>::type fnc()
{
}
template... | stackexchange/codereview |
how to validate decimal numbers in PHP. I looked at is_numeric() but that won't work for me:
bool is_numeric ( mixed var )
Finds whether the given variable is
numeric. Numeric strings consist of
optional sign, any number of digits,
optional decimal part and optional
exponential part. Thus +0123.45e6 is a
va... | stackexchange/codereview |
I am curious, what are the differences between Domain Driven Design and Model Driven Architecture? I have the impression they have certain similarities.
Could you enlighten me?
Thanks
| stackexchange/codereview |
I am trying to add NOT NULL and a DEFAULT to an existing table.
To do this, I am using a transitional table to populate any NULL values.
Table1 has the NULL column, Table2 has the improved design.
CREATE TABLE table1 (
CustomerID INT
, CartID NULL);
CREATE TABLE table2 (
CustomerID INT
, CartID NOT NULL DE... | stackexchange/codereview |
I've been working on a simple program in C# in which a Ball [X,Y] cordinates are periodical incremented.
I've managed to implement a collision detection method, but I'm trying to determine how to reflect the ball at an angle oposed bouncing it back along the same linear path.
dx = -dx //This bounces the ball back alon... | stackexchange/codereview |
I have the following lines of code in C#
that gets data using DataTables
This is pretty generic and helps me with multiple tables.
object obj = ((DataRowView)editingElement.DataContext).Row[this.SelectedValuePath];
I want to change this statement to a generic LINQ statement so that i can use it with multiple LINQ tab... | stackexchange/codereview |
I've to INSERT a lot of rows (more than 1.000.000.000) to a SQL Server data base. The table has an AI Id, two varchar(80) cols and a smalldatetime with GETDATE as default value. The last one is just for auditory, but necesary.
I'd like to know the best (fastest) way to INSERT the rows. I've been reading about BULK INSE... | stackexchange/codereview |
Given a solitary <li /> I need to increase it's size. Font-size works only in firefox, IE just shows it as same size.
Can I change the LI size another way, or set it's image? Please note (and I know this is bad) there is no UL element, it is invalid markup as it is part of an older system which the design means the U... | stackexchange/codereview |
I'm looking for an SQL query that gives me all rows where ColumnX contains any lowercase letter (e.g. "1234aaaa5789"). Same for uppercase.
| stackexchange/codereview |
By default, files saved to the internal storage are private to your application and other applications cannot access them (nor can the user).
I am able to see the file "/data/data/package_name/files/ in file explore in DDMS, but when i attached the above file URI using imageUri in email , then i saw that attached file ... | stackexchange/codereview |
If I am clustering 2 nodes together, from my experimenting and reading up online I understand that Node A will be like a "master" node and Node B will copy the tables over if I want them to. (Otherwise it will just access them remotely.)
What happens though if Node B goes down? Does it just recopy the data that's be... | stackexchange/codereview |
I have just installed django-admin-tools app. But I can't able to move "Quick links" box to anywhere. Is there any way to the 'Quick links' box to the right side of admin interface?
| stackexchange/codereview |
I have an object gui_project which has an attribute .namespace, which is a namespace dict. (i.e. a dict from strings to objects.)
(This is used in an IDE-like program to let the user define his own object in a Python shell.)
I want to pickle this gui_project, along with the namespace. Problem is, some objects in the na... | stackexchange/codereview |
http://jsfiddle.net/hL6rT/1/
I've created div with a absolute positioned image inside it the idea is to fade the image in and out like a pulse. All went well until IE8 showed up.
See the link for code. Works fine in FF, that is to say the div fades in and out in a continuous loop. But in IE8 it fades in and out once an... | stackexchange/codereview |
I am trying, unsuccessfully, to "shift" a bitmap. By "shift", I mean: if I have a 500x300 and I shift it 50 pixels to the right, the result should be a 500x300 bitmap where every pixel has been shifted 50 pixels to the left, and the 50 right most pixels are blank. So, the new image is the same as the old one except ... | stackexchange/codereview |
I'm using QDox to parse java sources. I have a problem with this interface:
import test.Word;
public interface Spellable {
/**
* Checks the spell of the word in a given language
*/
public boolean checkSpell (Word word);
}
At the moment of parsing the Word type I need to know where the path in the fi... | stackexchange/codereview |
Are there implications of auto incrementing the AssemblyVersion or the AssemblyFileVersion of a Silverlight app? Are those values used by the Silverlight runtime or IIS at some point?
Related to this is the 'version' of the xap's only defined by the aspx page code..such as:
<param name="source" value="ClientBin/myApp... | stackexchange/codereview |
I have a property which is declared as:
@property(nonatomic,retain) DateClass *dateClass;
I have this piece of code where I need to copy a new instance into it:
//Do I need to release dateClass here first before assigning new instance?
self.dateClass = [self getOtherDateClass];
...
-(DateClass*) getOtherDateClass
{
... | stackexchange/codereview |
Alright I have a tiny framework that I hope to open source soon and I'm trying to implement namespacing so that controllers and models don't need appended text. Here's the basic code logic:
url request
htaccess reroutes to index.php which initiates the framework
framework parses route & determines which controller/act... | stackexchange/codereview |
How to solve this compilation problem?
1>tmpxft_00001548_00000000-14_buildSURFDescriptorsGPU.ii
1>Compiling...
1>getMatchesGPU.cpp
1>utils.cpp
1>surf.cpp
1>main.cpp
1>C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\common\inc\cutil_inline_runtime.h(61) : warning C4005: 'MIN' : macro redefinition
1> ... | stackexchange/codereview |
I am trying to authenticate users in an internet banking server using netbeans.
I really need the java code for enabling them to authenticate themselves using certificates, over an SSL connection.
Thanks a lot,
G.G.
| stackexchange/codereview |
I am writing a simple chat server, and I want to keep it as simple as possible. My server listed below only receives connections and stores them in the clients set. Incoming messages are then broadcasted to all clients on that Server. The server works with no problem, but on the client side, the RemoteActor stops my pr... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.