instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Currently, we are using GetHttpRequestData().headers to get real IP address of User. However, we are facing following issue. when we try to call SOAP web service request, we receive following error Premature end of file. I already searched the web and found out that there is bug in ColdFusion 8.0.
I don't know if this... | stackexchange/codereview |
can anyone help me out.
By implementing countermeasures in solving the concurrency problem I got troubled with passing timestamps (rowversion) between Powerbuilder 7 datawindow and SQLServer 2008 (both ways) using insert and update stored procedures.
The connection is serviced by ODBC, not native. Most of my attempts ... | stackexchange/codereview |
Ok. So the problem is here..
on this address i have this url:
_http://localhost/blog
img src='image/b.jpg'
and everything goes fine.. because i have my image in "image" folder... browser asking image with this url "_http://localhost/image/b.jpg"
but if i got to:
_http://locahost/blog/otherfolder/
then browser start loo... | stackexchange/codereview |
I'm building a WPF application which is based on the MVVM pattern.
Later on we are going to build a Silverlight application of the same type, and also a Web application.
I want to use my ViewModels in all three UI:s, so my idea was to move the vm:s to a class library, but then I lost my ICommands, is there an easy wa... | stackexchange/codereview |
I usually write this:
if ($myvar == null)
but sometimes I read this:
if (null == $myvar)
I remember somebody told me the latter is better but I don't remember why.
Do you know which is better and why?
Thanks,
Dan
| stackexchange/codereview |
I've installed .net 4.0 as well as XNA 4.0 . A while ago I used Microsoft.DirectX to play some music and now when I try to redo the work, I can't find the reference. Did the new changes on the platform modify or moved something in the references?
| stackexchange/codereview |
I'm writing my first app with animations and I'm getting into some troubles. I have a ViewController which creates programmatically a certain number of UIView added as subviews.
Now, when I touch one of these views I'd like to move it in one direction (up, right, down, left) but only if in this direction there isn't an... | stackexchange/codereview |
Is it possible to select a point and simply delete it off the graph so that the image can be saved without that point?
| stackexchange/codereview |
I would like to know whether anyone knows about a library or code that will accept a PL/SQL string and thow error if there is any PL/SQL injection. Most of the open source projects in the internet are created in PHP.
| stackexchange/codereview |
There is a large project, and I need to see the hierarchy of Units which each file references in it's USES clause.
ex.
Project Source (program.dpk)
HelperUnit Forms ThirdPartyUnit
MyUtils MyConsts MyDownload ... | stackexchange/codereview |
I tried to compile a sample from the Boost.Preprocessor library which is:
#include <boost/preprocessor/seq/insert.hpp>
#define SEQ (a)(b)(d)
BOOST_PP_SEQ_INSERT(SEQ, 2, c) // expands to (a)(b)(c)(d)
on Visual Studio 2008 and I get the error error C2065: 'b' : undeclared identifier
Is there a problem with the sample or... | stackexchange/codereview |
This ones a bit odd so I'll try and explain it first in plain English. I have three tables.
TBL_PROFILE
TBL_LANGUAGES
TBL_LANGUAGES_LINK
where the relationship is TBL_PROFILE --> TBL_LANGUAGE_LINK <-- TBL_LANGUAGES
so if a person speaks 3 languages, they would have three entries in TBL_LANGUAGE_LINK.
Basically I'm pass... | stackexchange/codereview |
I have a generic method like this (simplified version):
public static TResult PartialInference<T, TResult>(Func<T, TResult> action, object param)
{
return action((T)param);
}
In the above, param is of type object on purpose. This is part of the requirement.
When I fill in the types, I can call it like this:
var te... | stackexchange/codereview |
The whole idea is the following, I get monthly reports in excel files about large number of companies with couple of columns of data such as their closing share price for month, rating, p/e, and maybe one more column. Each company is sorted by a unique company ID, but from month to month the reports will contain about ... | stackexchange/codereview |
I've got a list that looks like this:
<li class = "current_parent level-0">
<a> Parent Link </a>
<ul class= "children">
<li class = "level-1">
<a> Link to child </a>
</li>
<li class = "level-1 current_page_item">
<a> Link to child </a>
</li>
<li class = "level-1">
... | stackexchange/codereview |
I have a problem trying to get my head around using UTF8 with Poco::XML::XMLWriter. In the following code example, everything works fine when the input contains ASCII characters. However, occasionally the string in wordmapIt->first contains a non-ASCII value, such as a character -105 occurring in the middle of a string... | stackexchange/codereview |
I'm having an issue using multiple XML namespaces in a XHTML document. Specifically, I'm trying to use Wicket and Nitobi in the same document.
The code looks something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:... | stackexchange/codereview |
I'm developing a slot machine game. The player insert amount of money and makes a bet to play. And the goal of the game is to obtain as many rows, columns, and diagonals as possible of the same symbol. In the above example, obtained a profit when the upper and lower line have equal symbols, partly 2x lines. Depending ... | stackexchange/codereview |
I have two autocomplete scripts, one of them makes use of (A) php/mysql/html/jquery and the other makes use of (B) html/jquery/json.
I know that since they're using different technologies they might not be able to be compared directly, but from your own experience and from what you can gather from the pages these scrip... | stackexchange/codereview |
I need an encript arithmetic, which encript text to text.
the input text could be unicode, and the output should be a-z A-Z 0-9 - . (64 char max)
and it could be decrypt to unicode again.
it should implement in javascript and python.
If there is already some library could do this, great, if there is not, could you tell... | stackexchange/codereview |
<form name="aspnetForm" method="post" action="/Web/Test.aspx" id="aspnetForm">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKMTY1NDU2MTA1... | stackexchange/codereview |
When we write a method, say an easy one like
void myMethod()
{
// code here
//
}
and we call it from within Main(), it's done essentially this way:
Program myProgram = new Program ();
myProgram.myMethod();
Obviously, myProgram is entirely arbitrary (taking into consideration, of course, coding con... | stackexchange/codereview |
Let's say I have a Students table on my main page, with Country, Name, Age columns.
Suppose I want to have a dropdown box that lets users filter students by country, and also a search box that lets users search for students with a particular name.
I know how to create the country dropdown filter by itself:
<% form_tag(... | stackexchange/codereview |
I would like SQLAlchemy to create an FTS3 table during .create_all(). What special options do I need to add so it knows to CREATE VIRTUAL TABLE ... USING FTS3(tokenizer=...)?
| stackexchange/codereview |
To clarify my question, let's start off with an example program:
#include <stdio.h>
#pragma pack(push,1)
struct cc {
unsigned int a : 3;
unsigned int b : 16;
unsigned int c : 1;
unsigned int d : 1;
unsigned int e : 1;
unsigned int f : 1;
unsigned int g : 1;
unsigne... | stackexchange/codereview |
I am trying to parse a list of data out of a file using python - however I don't want to extract any data that is commented out. An example of the way the data is structured is:
#commented out block
uncommented block
# commented block
I am trying to only retrieve the middle item, so am trying to exclude the items wi... | stackexchange/codereview |
I have a PHP page that has an error, but if I go back, it works fine.
I can't redirect because the page can be accessed from two different places.
How can I make a JavaScript that loads automatically when the page loads?
Thanks,
Sebastian
EDIT
that wouldn't work.
is there a way to get the url of history.go(-2)?
thanks,... | stackexchange/codereview |
I am trying to get around a compile error ("Bound mismatch: ...") relating to dynamic enum lookup.
Basically I want to achieve something like this:
String enumName = whatever.getEnumName();
Class<? extends Enum<?>> enumClass = whatever.getEnumClass();
Enum<?> enumValue = Enum.valueOf(enumClass, enumName);
Whatever I d... | stackexchange/codereview |
I've got a ControllerView which will initialize a set of Images-Classes.
Here the basic-initialization in the Image-Class:
- (id)initWithImage: (UIImage *) anImage {
if ((self = [super initWithImage:anImage]))
{
}
return self;
}
How can I inform the ControllerView, when an image has been loaded ?
How could the ... | stackexchange/codereview |
I understand the basic idea of java's String interning, but I'm trying to figure out which situations it happens in, and which I would need to do my own flyweighting.
Somewhat related:
Java Strings: “String s = new String(”silly“);”
The best alternative for String flyweight implementation in Java never quite got answ... | stackexchange/codereview |
I have a WCF service that exposes 1 method GetNextObjectInList(int id) which hits a DB.
The WCF service works, more or less, like this:
public class MyService : IDisposable
{
public MyService()
{
this.IntializeDBConnection();
}
public int GetNextObjectInList(int id)
{
/* uses DB... | stackexchange/codereview |
I just want group only permissions - I don't need user based permissions. The cake 1.3 manual (http://book.cakephp.org/view/1646/x11-2-4-1-Group-only-ACL) says:
In case we want simplified per-group
only permissions, we need to implement
bindNode() in User model.
function bindNode($user) {
return array('Group'... | stackexchange/codereview |
I am developing a simple iPhone application. I want to set the shadow color for the title of a UIButton in the nib.
Can someone help me in finding the set shadow color for the title in the nib?
Thanks and Regards,
Deepa
| stackexchange/codereview |
I am creating a deep mutable copy of a dictionary but for some reason am getting a leak. I've tried this:
NSMutableDictionary *mutableCopy = (NSMutableDictionary *)CFPropertyListCreateDeepCopy(kCFAllocatorDefault, sectionedDictionaryByFirstLetter, kCFPropertyListMutableContainers);
self.copyOfSectionedDictionaryByFirst... | stackexchange/codereview |
I have a datagrid with sorting. I set enable sorting to true, but that makes every column sortable. Is there a simple way to make it so that only one column header can be clicked for sorting? I feel like there should be a simple and quick fix for this, but who knows.
some code:
<asp:GridView ID="ProductsGrid" r... | stackexchange/codereview |
I am looking to write a void* buffer to a MemoryStream in a C++/CLI. As I don't think this is possible directly, alternatively I would like to convert this buffer to an array<byte>^ in order to be able to call Stream.Write(). I've looked at Marshal but then I am having trouble coverting void* to System::IntPtr. Any hel... | stackexchange/codereview |
I want to write a Java BlackBerry application that runs on startup and stays running in the background, but gives the user an indication that it is running with an icon in the corner of the homescreen. What techniques can I use?
| stackexchange/codereview |
locationManager = (LocationManager)context.getSystemService(context.LOCATION_SERVICE);
Location location = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);
Geocoder geocoder = new Geocoder(context);
List <Address> myLocation = null;
try {
myLocation = geocoder.getFromLocation(location.getLatitude... | stackexchange/codereview |
Is there a memory leak in the following code example as I have allocated memory on the heap for name which hasn't been freed? If I add free(person->name); before the free(person); line then I get a runtime error in VS "CRT detected that the application wrote to memory after end of heap buffer".
header.h:
#ifndef HEADE... | stackexchange/codereview |
I am currently working on a website which allows a prospect to generate a quote and purchase a policy. After they submit their payment the application should generate a policy number.
I was given a block of policy numbers to use incrementally. For this example, let's say 0100800 - 0100999. If I have two or more p... | stackexchange/codereview |
I used to have this code in Visual Basic:
rpt.ParameterFields.GetItemByName("RowDate").AddCurrentValue CDate("2010-03-19")
and I cannot figure out into what I have to convert date to make eatable for COM.
Any suggestions?
| stackexchange/codereview |
Anyone know if there is a keystroke shortcut or option to autogenerate a try/catch block around a statement in Visual Studio 2010? I can see what exceptions are thrown if I look at the overlay documentation when I hover over a statement. I'd like to right click -> generate try/catch, as it would save a lot of time in h... | stackexchange/codereview |
I was wondering if you have a website with a dozen different types of listings (Shops, Restaurants, Clubs, Hotels, Events) that require different fields, is there a benefit of creating a table with columns defined like so
Example Shop:
shop_id | name | X | Y | city | district | area | metro | station | address | phone ... | stackexchange/codereview |
I started off naming my jQuery objects like $this.
Then, I decided I didn't want to do it anymore.
I just borrowed a large chunk of code from an old project. It is from the $ prefix days, and it is irking me!
What regex can I use in my IDE to get rid of the $ prefixes on my variables?
| stackexchange/codereview |
I'm implementing HTML sanitization for form fields, on the beforeSave() method of a model. But it doesn't work.
Example:
public function beforeSave()
{
$this->anAttribute = 'somevalue';
var_dump( $this->anAttribute );
}
somevalue is actually outputted, but it never gets to the DB, so in between beforeSave() and sav... | stackexchange/codereview |
I have a Rails 3 App.
When the user is not signed in... I want devise to show non-signed in pages: SignIn, register, about us, blog etc...
When a user is signed in I want it to go to the web app
where do I make this switch and how do I set it up? thanks
| stackexchange/codereview |
I am trying to do inverse kinematics for a serial chain of arbitrarily many links.
In the following paper, I have found an example for how to calculate the Jacobian matrix.
Entry (i, j) = v[j] * (s[i] - p[j])
where:
v[j] is the unit vector of the axis of
rotation for joint j
s[i] is the position (int world
coords... | stackexchange/codereview |
I have a HTML table thus:
<table id="tablesorter-demo" class="tablesorter" border="0" cellpadding="0" cellspacing="1">
<thead>
<tr>
<th>Checkbox</th>
<th>Price delta</th>
<th>Price range</th>
<th>Price brackets</th>
</tr>
</thead>
<tbody>
... | stackexchange/codereview |
I have a problem in solving this.
= link_to "Bounced", bounced_email_path(@email)
Bounces
%span
= @email.bounces_count
I want the Bounces, span and other lines within the link tag.
The above code ends up in an error:
syntax error, unexpected kENSURE, expecting $end".
| stackexchange/codereview |
I've got an TabActivity implementing TabContentFactory, which starts an AsyncTask in onCreate() to fetch the data for the tabs. When the AsyncTask has finished, onPostExecute() could directly update the UI-elements, right? Meaning, since that method runs in the UI-Thread no further thread-synchronization would be requi... | stackexchange/codereview |
i have created a dll with tframe .
how can i load it inside my application, i dont like to use bpls , i only want to destribute exe and dlls with my app
| stackexchange/codereview |
I wrote a web crawler in Python 2.6 using the Bing API that searches for certain documents and then downloads them for classification later. I've been using string methods and urllib.urlretrieve() to download results whose URL ends in .pdf, .ps etc., but I run into trouble when the document is 'hidden' behind a URL lik... | stackexchange/codereview |
I'm trying to create something similar to a for-loop with the recursive idiom I've seen across the web. My implementation is with a parameter that tells what to print. I use the Eclipse built-in XSL transformator and I can't for the life of me see why it gives a StackOverflowException:
<!--
Loops recursively to pr... | stackexchange/codereview |
First off, I don't know much (quite nothing) about PHP. I'm more familiar with CSS.
I'm making use of Ben Ward script Tumblr2Wordpress (here's the script on GitHub) to export my Tumblr blog in XML (so I can import it in my Wordpress blog). This script reads tumblr's API, queries elements, do a bit of formatting and exp... | stackexchange/codereview |
I'm having a heckuva time figuring out how to translate a simple SQL LEFT OUTER JOIN with a two condition where clause into a working Linq-to-Entities query. There are only two tables. I need values for all rows from Table1, regardless of matches in Table2, but the WHERE clause uses fields from Table2. In SQL, the t... | stackexchange/codereview |
Is there a way to trigger a custom script (or open a windows app) after a user imports the deployment package using IIS and completes the installation?
Any help?
| stackexchange/codereview |
I have just tested my DirectX game on a Windows 2000 SP4 system but it won't receive any mouse clicks!
This is how I check for mouse clicks :
unsigned int mButtons = 0;
if (GetKeyState(VK_LBUTTON) < 0) mButtons |= HIDBoss::MOUSE_LEFT;
if (GetKeyState(VK_RBUTTON) < 0) mButtons |= HIDBoss::MOUSE_RIGHT;
if... | stackexchange/codereview |
UPDATE
MRT
SET
Date = MR.Date
FROM
MRT
JOIN MR on MR.SKU = MRT.SKU
HERE Is where i would like to do an order by min(mr.Date)
All I get is an incorrect Syntax error.
I have to set the date = the smallest mr.date
| stackexchange/codereview |
I have two tables which are related as HABTM:
Groups(id, name)
Streams(id, Stream)
Connecting table:
groups_streams(id, group_id, stream_id)
There is another model called Users which HasOne Group.
From the User controller I am trying to get the streams related to the User's Group.
$streams = $this->User->Group->fin... | stackexchange/codereview |
I have a 2 converter.
Boolean to Visibility(Bool2Visible) - This converter convert Boolean value to Visibility enum
Invert Boolean(InvertBool) - this converter invert Boolean value
My xaml is here
<stackpanel Name="A"
visibility="{Binding isTrue,Converter={StaticResource Bool2Visible}}"/>
<stackpanel Name=... | stackexchange/codereview |
I have a father process and a child process, the second created with fork, the child receive from the father a char s[] (s can be something like "cd Music" ), i extract Music from "cd Music" using strtok, but when chdir(dir) executes i get "No such file or directory". But if i test chdir("Music") i get no error. I want... | stackexchange/codereview |
In the attached code sample, keyboard events just don't work.
The control never reaches handleKeyDown, no matter which key I press.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Canvas creationComplete="initIt()" id="can1">
<mx:Label text="it's ... | stackexchange/codereview |
I've several .csv files (~10) and need to merge them together into a single file horizontally. Each file has the same number of rows (~300) and 4 header lines which are not necessarily identical, but should not be merged (only take the header lines from the first .csv file). The tokens in the lines are comma separated ... | stackexchange/codereview |
I'm starting a new project which in simple terms will have a UI layer based on asp.net mvc 2, a business layer and a data access layer. Simple 3-tier design.
The UI layer though will be customized for the client, e.g. menus along the top, or down the left or maybe different static pages, etc.
All the core features will... | stackexchange/codereview |
I have a COM component, implemented in C++ with ATL, that uses overlapped socket I/O. Right after the connection is made to the server, it starts an overlapped read on the socket, with code like this:
// Pass pointer to this instance as hEvent parameter, for use by callback
m_recvOverlapped.hEvent = reinterpret_cast<H... | stackexchange/codereview |
Here is my code. When I click the link Comment, a inputTextarea and commandButton suppose to appear
<h:outputLink id="link" value="javascript:void(0)">
<h:outputText value="Comment"/>
<p:effect type="fade" event="click" for="reply">
<f:param name="mode" value="'show'"/>
... | stackexchange/codereview |
I have found a problem trying to install an ad hoc distribution on my itunes.
1) I have distribution certificate
2) I have distribution profile
3) I have add entitlements.plist, although from what I read this is no longer required. it looks like the plist does not even have a get-task-allow bool anymore to set. I hav... | stackexchange/codereview |
I have a value thats 5 bits in length. 4 bits determine the number and the 5th bit determines the sign, there by holding any value between -16 and +15. How can I accomplish sign extending from a constant bit width in C#? I know in C, I can use something like the follow to accomplish this:
int x; // convert this from us... | stackexchange/codereview |
Apologies for all the simple questions but they are born of my sudden and unplanned migration from flex 3 to flex 4.
Ok I have a combo box which I would like to show a list of selectable check boxes.
<s:ComboBox x="181" y="-7" width="233" id="dropISLIST" itemRenderer="IsListFilterCheckBox" dataProvider="{GetIsList.la... | stackexchange/codereview |
As a Ruby/Rails non-pro, I often want to check out the code for a rails method to see how it's implemented...
For example, I was using "form_for", and I wanted to check out the code to see how it works. The slightly lame way I did this was to just google "rails form_for" which takes me to http://api.rubyonrails.org/cl... | stackexchange/codereview |
I'm a completely new to C++ and I'm having a very stupid problem.
I have a Graph class and I need to create a copy constructor for it. This is my class:
#include <igraph.h>
#include <iostream>
using namespace std;
class Graph {
public:
Graph(int N); // contructor
~Graph(); // destructor
Graph(const Graph&... | stackexchange/codereview |
Using WiX, what's the simplest way to disable the Next button on a page until the user has entered a well-formed GUID in an Edit (textbox) control?
I expect the answer to be Condition elements within the Next button control, but I can't figure out what the conditions would be. Do conditions support regular expression m... | stackexchange/codereview |
Is there an easy way to parse a simple math expression represented as a string such as (x+(2*x)/(1-x)), provide a value for x, and get a result?
I looked at the VSAEngine per several online examples, however, I am getting a warning that this assembly has been deprecated and not to use it.
If it makes any differences, I... | stackexchange/codereview |
I would like to create a Zend_Form with nested checkboxes. I'm sure that it's possible, but I don't remember how to do it. This is what it would look like:
[x] Top level checkbox 1
[ ] Sub level 1
[x] Sub level 2
[ ] Top level 2
[ ] Sub level 1
[ ] Sub level 2
How would I achieve this result?
| stackexchange/codereview |
I'm trying to center a div in my page but I have a very particular layout that doesn't let me center it with regular margin: auto properties. What I have is, basically this:
HTML:
<div id="container">
<div id="sidebar">
some text
</div>
</div id="content">
some text
</div>
</div>
CSS:
#... | stackexchange/codereview |
Do you know any book, blog, tutorial which explains in a detailed way the use of some open source projects? Maybe you have written such a tutorial, example of open source libraries, and your final product is great for a beginner to understand it.
I'm in the learning stage of OOP and I really need to learn by examples. ... | stackexchange/codereview |
with google maps API v2 we can maximize the infowindow by specifying maxTitle property. Can anyone show me how we can maximize the infowindow with v3 of google map api.
Thanks
| stackexchange/codereview |
I have a worksheet which contains some financial data to be transferred to accounting system.
Can say I know some things about programming, but Excel macros are little too much for me, so please suggest some (even partial) solutions to my problem. Thanks!
Master workbook columns are:
Name
Account
Date
Followup
Amount
... | stackexchange/codereview |
I've have asked these questions before with no proper answer. I hope I'll get some response here.
I'm developing an instant messenger in python and I'd like to handle video/audio streaming with VLC. Tha basic idea right now is that in each IM client I'm running one VLC instance that acts as a server that streams to al... | stackexchange/codereview |
I'm trying to do a simple PowerShell script to access the registry and I'm doing it like this:
Foreach ($key in Get-Childitem HKLM:\SYSTEM\CurrentControlSet\Control\Class\"{4D36E972-E325-11CE-BFC1-08002BE10318}") {
$key.name
}
There's a bunch of keys that are just digits (the ones I want) but then there's one name... | stackexchange/codereview |
Okay, so I'm fairly new to CakePHP. This is the setup:
I've got a Model (Reservation), and a controller, (ReservationController).
I'm trying to provide a simple add() functionality.
The request url is: www.example.com/reservations/add/3
Where 3 is the ID of the event this reservation is for.
So far, so good. The proble... | stackexchange/codereview |
I have 5 classes that are part of a point of sales program:
Customer, Technician, Order, Ticket, Service
Each Order has one customer and many tickets. Each Ticket has on technician and many services.
How should I make the associations so that I can do the following lookup:
customer.order.find_by_date(10/20/2010... | stackexchange/codereview |
#include <iostream>
using namespace std;
main(){
int i = 5;
cout << i++ << i--<< ++i << --i << i << endl;
}
The above program compiled with g++ gives output :
45555
While the following program:
int x=20,y=35;
x =y++ + y + x++ + y++;
cout << x<< endl << y;
gives result as
126
37
Can anyone please explain th... | stackexchange/codereview |
Is this usage of Python tempfile.NamedTemporaryFile secure (i.e. devoid security issues of deprecated tempfile.mktemp)?
def mktemp2():
"""Create and close an empty temporary file.
Return the temporary filename"""
tf = tempfile.NamedTemporaryFile(delete=False)
tfilename = tf.name
tf.close()
retur... | stackexchange/codereview |
I am going to design a Data Warehouse and I heard about materialized views. Actually I want to create a view and it should update automatically when base tables are changed. Can anyone explain with a query example?
| stackexchange/codereview |
I've seen all kinds of solutions for extending cfcs in parent folders with access to parent files or the CF administration, but I have not seen a workable solution to extend a cfc in a "shared"/sibling folder without access to parent folders.
This solution requires access to parent folders? (Not sure what these mappin... | stackexchange/codereview |
I need to use the stack data structure to save strings. But this stack will be accessed from multiple threads. So my question is, how do I use the ConcurrentStack to add data from multiple threads?
| stackexchange/codereview |
I am trying to figure out how to reference a parameterized interface as an annotation attribute:
public class Example {
public interface MyService<T extends Number> {
T someNumber();
}
public class BaseServiceImpl<T extends Number> implements MyService<T> {
@Override
public T someNu... | stackexchange/codereview |
Both methods put the gem into the project's folder to be a self-contained project. Is there advantage / disadvantage of these methods or one better than the other method?
(the project is a Rails 2.2 project, so can't use Bundler)
| stackexchange/codereview |
Using struts2, is there a way to trigger an action to occur at specified intervals?
Currently I am writing action classes that perform tasks that need to run at specified intervals and curling the url at the times I need to. Is there a better way to do this than invoking an http request like this?
| stackexchange/codereview |
Is it possible to increase number of login attempts before blocking an account for a certain user or role in Drupal? (not for all users)
Or even never block a certain user regardless of number of login failures?
Thanks.
| stackexchange/codereview |
I have VS 2010 on Windows 7. I create a new project, chose c++ language, Win32 project, DLL, Export symbols, then finish. Now when I compile the project without any changes to what VS generates, I get...
LINK : fatal error LNK1181: cannot open input file " ■/.obj"
I also have VS 2008 install on the same machine. I f... | stackexchange/codereview |
It seems like a big deal is made out of boxing and unboxing. Are there so many uses of the object type that we really have to be super aware of this?
What are very practical instances when boxing/unboxing is needed?
| stackexchange/codereview |
Does anybody know which mean this error java.io.NotSerializableException: org.jboss.resource.adapter.jdbc.xa.XAManagedConnection, this throws when i'm to pass a java.sql.Connection to my service
| stackexchange/codereview |
Possible Duplicate:
Which DOCTYPE declaration should we use?
I have read a number of books on DOCTYPE declaration and the three variations; strict, transitional and frameset.
but is still not able to fully understand their difference and indeed is not sure which variation I should use when creating my website; in pa... | stackexchange/codereview |
Could you please help me to understand the difference from a private method and a protected one.
Following http://msdn.microsoft.com/en-us/library/ba0a1yw2%28v=VS.71%29.aspx
I am not able to understand it, specially the phrase "Private: Access is limited to the containing type."
Thanks for your help. Bye!
| stackexchange/codereview |
I have installed a python application with this setup.py:
#!/usr/bin/env python
from distutils.core import setup
from libyouandme import APP_NAME, APP_DESCRIPTION, APP_VERSION, APP_AUTHORS, APP_HOMEPAGE, APP_LICENSE
setup(
name=APP_NAME.replace(" ","-").lower(),
version=APP_VERSION,
description=APP_DESCRI... | stackexchange/codereview |
For instance if I called WriteFile to the end of a file, and later I wanted to delete the written bytes, how could I do this? Do I have to read the file's contents into a buffer, re-create the file, and write the desired bytes, or is there an easier way?
| stackexchange/codereview |
As in, the value as the end where it says "X dollars converts to Y russian ruble" (after the two Digits new Decimal Format) - the problem is that it can be russian ruble, british pound, or euro. How can I differentiate? (text inserted at line in question)
import java.awt.*;
import java.applet.*;
import java.awt.event.*... | stackexchange/codereview |
I have a lot of small images like that I want to compose into a PNG file (for CSS sprites) like . I'm using Photoshop to do this, but I think there should be a tool to compose images—even better, to give me every image's position in pixels.
Is this possible?
| stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.