instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
Possible Duplicate:
@ (at sign) in drupal
I know that sometimes it has to do with error suppression but I'm looking at Drupal code and I can't recognize the syntax:
Example 1:
$batch = array(
'operations' => $operations,
'finished' => '_install_profile_batch_finished',
'title' => st('Installing @drupal', array('@dru... | stackexchange/codereview |
I have a webpage. I want to change the icon on button down (this would be enough for me to understand but I'd be glad if you'd describe a way to animate icon after button click).
| stackexchange/codereview |
I'm writing a quick little money tracking rails app for fun that allows a user to enter their daily bills. I have a user embeds_many :bills.
I'm using Devise for auth. Here's my question. When I fetch current_user each time from my session_id, it's going to pull in my whole user and its embedded docs correct? So as... | stackexchange/codereview |
I'm working on a Chrome Extension that uses WebSQL to store historical data.
Being WebSQL, the DB is stored on the client.
I'd like to add an option to export/import such data so that the user can share/use this data with other users, or with other PCs.
These are my first steps on a client-only database, so I wonder h... | stackexchange/codereview |
In some Google ads I have found that the hyperlink hrefs look like this
href="s-p: Go to XYZ.com"
These work, but I cannot see the code that translates the s-p: bit into an actual url.
What 'veil of ignorance' am I peering behind, please? I would like to know how the conversion is done. What technology is in use here... | stackexchange/codereview |
I'm sure this is a simple question, just can't seem to get it to work right.
I was having some conflicts with jQuery, so I used the aliasing feature mentioned in the official documentation.
jQuery(document).ready(function($){
$('.loadmore').addClass('hidden'); // works fine!
loadmore();
});
function loadmore(){
... | stackexchange/codereview |
I put redirection code on the top of a page which has bootstrapping code below. Does redirection spawn a different process making the redirecting page process as a background process or it kills the current process entirely?
Im using header() for redirection but surprisingly the remaining code below header() which req... | stackexchange/codereview |
In relation to question an eralier question of mine, I have tried and failed to create a class with a NSMuttableArray member variable holding CALayerRefs. Can someone please guide me on how to do that. What I want to do is basically create CALayerRefs or CGLayerRefs or whatever, push them into my layers variable, and t... | stackexchange/codereview |
I came across a jQuery lightbox plug-in called PrettyPhoto. Seems very interesting. At the bottom of documentation I noticed a section about Public API, which I paste in its entirety below:
Version 2.5 introduced an easy to use API. You can now open prettyPhoto from anywere. The public API functions are the following:... | stackexchange/codereview |
So I tried to format this properly the first time, but it published and all the stuff in carets wasn't parsed properly, so I'll try again:
I have been trying to decide what the best way to filter a set of data for a tree view is.
The filters are in the following XML format: using periods instead of carots
Fil... | stackexchange/codereview |
I want to have a multiline textbox to display data in a DataGridView. I found a solution here but that is not working for me. Here is my code that I am trying to fix the problem with:
myDataGridView.Columns["Column1"].DefaultCellStyle.WrapMode = DataGridViewTriState.True;
I noticed that I can scroll inside of the textb... | stackexchange/codereview |
I have the following code which it was provided by Nick in a previous question and it work like a dream.
What I am trying
"I am trying to generate a jquery script to make all tr elements from a table with class top clickeable and when one tr with class top is clicked all tr below with class bt until there is another t... | stackexchange/codereview |
I believe when the EnterpriseLibrary tries to decrypt a RijndaelManaged encrypted string it expects the Initialization Vector to be prepended to the encrypted text. Currently with the code below. I can decrypt the message with out an exception, but I am getting weird characters like:
�猀漀椀搀㴀眀最爀甀戀攀☀甀琀挀㴀㈀ ⴀ ⴀ㈀吀㌀... | stackexchange/codereview |
I'm currently using Paperclip to upload an image and automatically generate a thumbnail. Now I would also like to add a second style that generates a one-pixel-wide image using the left-most column of pixels in the uploaded image (it should also have the same height as the original image). I'll be using the one-pixel-w... | stackexchange/codereview |
I don't know if it "works" or not, but I am concluding this because the code posted here, works (except for what's in the for loop (stupid DOM), but that's not the focus) ONLY after two clicks. I'm assuming this is because it is not getting the XML document till it's created, which is at the end of the first click.
How... | stackexchange/codereview |
My question is about .htaccess
I am using WordPress 3.0.1 as the front end of my web application.
I want most HTTP accesses to follow the normal WordPress flow.
However, I have created a special "Page" in WordPress that has embedded PHP code that powers my web app.
URL's of this form "http://site.com/app/" already go t... | stackexchange/codereview |
If a trailing comma is added to the end of a print statement, the next statement is executed first. Why is this? For example, this executes 10000 ** 10000 before it prints "Hi ":
print "Hi",
print 10000 ** 10000
And this takes a while before printing "Hi Hello":
def sayHello():
for i in [0] * 100000000: pass
p... | stackexchange/codereview |
Is there a way to simulate Smalltalk's doesNotUnderstand or Ruby's method_missing in Javascript?
| stackexchange/codereview |
I have a table that records the name of uploaded documents, up to 14 per record. The columns are named thus:
TABLE tblDocuments
COLUMNS documentID (int, not null, pk)
document1 (varchar(250), null)
document2 (varchar(250), null)
/* and this continues through */
document14 (varchar(250)... | stackexchange/codereview |
I'm trying to something like [view removeFromSuperview] however when I do it appears from what I've seen and what I've read in the apple documentation that the normal behaviour is to remove the superview from view as well (unless I have misread).
I'm wondering how to simply remove a view from the superview, i.e. in the... | stackexchange/codereview |
I need only one replacement of a string within a string, but since string that am intend to replace is repeated in the haystack I need to precise start pointer and how many times replacement should be done. I did not found any mention of start offstet if php's string replace functions.
| stackexchange/codereview |
HI am interested in obtaining getting the Enviroment.UserName in a Wpf Browser application.
But I have run into a SecurityException. What changes should I make obtain the enviroment variables.
Update:
the application is run on my company intranet.
| stackexchange/codereview |
Don't know if there is a better way to do this, so that is the reason for the question. I can check if a service exists on a particular machine with the following code:
bool DoesServiceExist(string serviceName, string machineName)
{
ServiceController controller = null;
try
{
controller = new Service... | stackexchange/codereview |
i have following code
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string.h>
#include <hash_map>
#include <string>
#include <iterator>
#include <ostream>
using namespace std;
struct Equal
{
bool operator()(const char *s1,const char *s2)const
{
return std::strcmp(s1,s2)=... | stackexchange/codereview |
I'm trying to hook up a custom protocol handler to my application on OSX so that I can do test://argument
In my plist I have the following:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLIconFile</key>
<string></string>
... | stackexchange/codereview |
It's a big question but I just need a push in the right direction.
I have a website being released soon. One of the services it provides is image hosting. I'm thinking about writing a desktop app in Java to help facilitate mass uploads as well as forcing me to use Java for real-world experience.
How does java send "re... | stackexchange/codereview |
I have created a SSH/FTP/email user and when I connect to my MTServer using SSH and that user I can't access /home/XXXX/domains/mydomain.com/.
I am using subversion and it's working fine, but I want it to be able to auto update my webpage ( on the MTServer ) everytime I commit.
The post-commit hook works fine, because ... | stackexchange/codereview |
In my program I have a STL set.
set<string> myStrings;
To improve the efficiency of my code I changed it to hold, only pointers. (I don't need actual string copies to be stored.)
set<string*> myStrings;
I have read that it is a good practice to substitute pointers with references when possible. (Of course, only if th... | stackexchange/codereview |
I wanted to check if user has entered the input in particular order or not. Basically i wanted user to input date in format like this
%d/%m/%y %H:%M
Is there any way i can compare string input with the above format in python?
| stackexchange/codereview |
I have the folder called backups. The root is putting backups in that folder.
I want that all the files which are created in that folder should have group write permission.
I know i can use umask but i want to know that will umask work for all the files any where or it will work on particular folder.
e,g i want umask f... | stackexchange/codereview |
I'm working on a Google chrome extension that basically hits our API to do a search and lists the results. We'd like the extension to have elevated API privileges (i.e. so it has access to data a regular user doesn't, and doesn't have the usual 200/requests a day limit), but we're not sure how to secure the API key us... | stackexchange/codereview |
Disclaimer here: I'm really not a programmer. I'm eager to learn, but my experience is pretty much basic on c64 20 years ago and a couple of days of learning Python.
I'm just starting out on a fairly large (for me as a beginner) screen scraping project. So far I have been using python with mechanize+lxml for my browsin... | stackexchange/codereview |
I am planning to develop a very simple java application (not mobile, but desktop apps) that utilizes web services, specifically Foursquare API and Google Map Web Service. I plan to get the users address and then using Google Map to translate the address to lattitude and longitude then feed this result to foursquare API... | stackexchange/codereview |
I'm trying to make an existing FLEX application section-508-compliant, by getting it to work smoothly with the JAWS screen reader. It kinda sorta works, but one immediate problem is that when you first go to the login screen, your cursor ends up in the userid field, but JAWS doesn't read anything useful (like the label... | stackexchange/codereview |
Does anyone know if there is a limit to the number of objects I can put in an S3 bucket? can I put a million, 10 million etc.. all in a single bucket?
| stackexchange/codereview |
I have a Django site that uses the localization middleware in combination with gettext and the trans/blocktrans template tags to show visitors different pages depending on the preferred language in their user agent string (which seems to be the standard way of doing things in Django).
This works great for supported lan... | stackexchange/codereview |
Suppose I type line = line.decode('gb18030;) and get the error
UnicodeDecodeError: 'gb18030' codec can't decode bytes in position 142-143: illegal multibyte sequence
Is there a nice way to automatically get the error bytes? That is, is there a way to get 142 & 143 or line[142:144] from a built-in command or module? Si... | stackexchange/codereview |
Using DevExpress' XtraTreeList, and in my form there is a treelist, a RichTextBox and a
button.
The goal: when the user focuses on a particular root node, and when the button is clicked, the RichTextBox should show the child nodes present in the root nodes. It needs to list the entire child nodes on the RichTextBox.
I... | stackexchange/codereview |
Ok, I ll try to be as concise as possible.
What I want:
I want to build a website that will allow clients to sign up for a small fee and allow them to upload content to their UNIQUE USER FOLDER.
General users will then be able to sign up for free and request to download specific files from various clients (not just o... | stackexchange/codereview |
I wrote a small plugin to handle text-to-input-to-text fields for on-the-fly editing, and it includes arguments that allow a user to run functions at different intervals of the process.
I want the user to be able to click the "actuator" (the element that controls the process), and choose to have an intervening function... | stackexchange/codereview |
I am writing an application that will allow a user to add a component to a particular page in my DB, but am stuck on a little bit of the JS.
I have the form submitting just fine. I am stuck on how to "refresh" the container div that shows all of the current components tied to a page.
I am from a PHP background, so I kn... | stackexchange/codereview |
I am new to ExtJS. In examples, I do not find any one similar to my situation: I have an Array of Object like bellow:
arr = new Array();
obj = new Object();
obj.StringField = "Field1";
obj.IntField = 1;
arr.push(obj);
obj = new Object();
obj.StringField = "Field2"... | stackexchange/codereview |
In the python repl, getting the result of the previously input expression is easy:
>>> 1+2
3
>>> _
3
>>>
Is there a way to do this in the clojure repl?
| stackexchange/codereview |
The problem:
I am in process of implementing a scheduler for my advisor in school. The scheduler supposes to setup a 15 minutes interval time slot from 8:00 AM to 5:00 PM, Monday to Friday. In addition, the advisor will have to specify the start and end dates of the scheduler. The scheduler will also feature an option ... | stackexchange/codereview |
I am not all that familiar with TinyMCE, but I cannot seem to configure it with a height below 100px. I've tried and it seems to always set it as 100px any time it goes below. I only need a few of the buttons and the editor window will likely never go beyond one line, so I am trying to reduce a bit of interface clutter... | stackexchange/codereview |
I just got my first app approved on the App Store (Woohoo!) and it runs slightly differently depending on whether it's installed from my development machine or the App Store. When I install and run the App in release mode from my development machine, the app opens and asks the user if it can use their current location... | stackexchange/codereview |
anyone know how can i do counting if in SQL alchemy like
COUN(IF(table_row = 1 AND table_row2 =2),1,0)
i make something like this,
func.COUNT(func.IF((TransactionMessage.tm_read==0 and TransactionMessage.tm_type==1),1,0)).label('t_message_count'),
But sqlalchemy make 2 seperate if with TransactionMesssage.tm_read,
a... | stackexchange/codereview |
How can we fill PreferenceScreen dynamically (from JAVA).
I have one string array. I want all items to be displayed in second preference screen with checkbox.
Currently I am having CheckBoxPreferencetags for each item in string array in preferences.xml.
Any thoughts on how to do this.
| stackexchange/codereview |
I am trying to create a python script that adds quotations around part of a string, after 3 commas
So if the input data looks like this:
1234,1,1/1/2010,This is a test. One, two, three.
I want python to convert the string to:
1234,1,1/1/2010,"This is a test. One, two, three."
The quotes will always need to be added a... | stackexchange/codereview |
I want to check for a valid network connection. I followed Apple's Reachability example and put my check in applicationDidFinishLaunching
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
if(... | stackexchange/codereview |
I have a photo rails app using paperclip. My model called photo and the request parameter also photo.So when i am trying to upload via curl i use : curl -F "photo[photo]=@/pics/pic.jpg" http://something/photos.xml .
That's works fine! How can i change the photo[photo] parameter to "photo" or "media" or something else? ... | stackexchange/codereview |
Anyone know how I can declare a static method for an xcode class and then use it in my project?
I want to create a Common.h class and then do something like this in one of .m file
Common.MyStaticMethod();
I dont want to have to instantiate and instance of Common
| stackexchange/codereview |
I have a method in my iPhone app that is very repetitive (called over and over and over sequentially). The method is quite bulky and takes about one second to complete.
My question is this: If I was to muti-thread it to run, say 5 method calls on different threads simultaneously, would that be any faster than running ... | stackexchange/codereview |
Below is a simple test program that throws a StackOverflowException when Equals is called. I expected the generic Equals that I got from object to call my IEquatable<MyClass>.Equals, but it does not, it calls itself instead. Why? The parameter type seems ok. Why does it call the generic version in the first place? I am... | stackexchange/codereview |
I'm recieving a Base64 encoded saml assertion from a 3rd party (its signed xml). I cant verify the signature. After close inspection, it appears that when i read in the SAML xml that XmlDocument changes the data. See this code:
string rawXml = Util.DecodeBase64(SAMLResponse);
byte[] b = Encoding.UTF8.GetBytes(rawXml);
... | stackexchange/codereview |
I wanted to compare with best practices when working with an ORM or database tables in asp.net mvc. One of the major questions I have is should I instantiate the model classes directly in controller..not query the database but just use the model class to store the values.
For e.g. If I am using entity framework as mode... | stackexchange/codereview |
1) I have the CoreData.framework imported. In Groups & Files I see it in the Framworks list together with UIKit.framework, Foundation.framework, CoreGraphics.framework.
2) I have this code, I am not sure what this error means
#import <UIKit/UIKit.h>
@interface SQLLiteDemoAppDelegate : NSObject <UIApplicationDelegate> ... | stackexchange/codereview |
I would like to stream music (not random, specific...e.g if i want megadeth - peace sells i should be able to stream it) to the clients from the server. grooveshark came to my mind first, but it doesn't have an open api that i can use. do you know any facilities like grooveshark that has an open api?
| stackexchange/codereview |
There was an official way to do this, from the YouTube folks.
(link to YT official way - NB: now
broken, but YT hasn't (bothered to) correct this page:
http://apiblog.youtube.com/2009/02/youtube-apis-iphone-cool-mobile-apps.html)
In July 2010, they deliberately removed that - it no longer works (I've got an app t... | stackexchange/codereview |
In SSMS is there a way to generate a script for table creation based on the table output by a view?
| stackexchange/codereview |
I am building a Dynamic web site from scratch for the first time so I am new at this.
I need to match this URL:
www.domain.org/world/2.html
with this:
www.domain.org/index.php?html=world&rss=2
For that purpose I am using this rewrite rule:
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?html=$1&rss=$2 [L]
And this s... | stackexchange/codereview |
I'm a designer still trying to code up my first app in Google App Engine as an experiment.
I have got to the point where I want to set up memcache to cache my entire site following the instructions at: http://docs.djangoproject.com/en/dev/topics/cache/#memcached
I am clear that I need to add in my settings.py the follo... | stackexchange/codereview |
Update: The question title can be misleading. This was not Go's fault at all.
See the first comment or the accepted answer.
This following code (well, almost the same) counts page views under Linux allright, but counts them double under Windows.
Can someone figure out why?
package main
import (
"fmt"
... | stackexchange/codereview |
I've googled and researched but am not able to find the best way to iterate through all or some managed objects in my Data Model and update an attribute value in each of them, in my situation, update to the current date. The managed object context and persistent store delegate methods are all in my Application Delegat... | stackexchange/codereview |
I have a separate git repository for document templates that I have no control over but whose contents need to be included as a folder in my final WAR. The versioning of these do not matter and the latest ones should always be used when packaging the war.
Is this possible with Maven or do I need to script something sep... | stackexchange/codereview |
I've been using an older version of cocos2d for iPhone for an existing project - never change a running system. Now I'd like to upgrade to a more recent version and don't know how I should proceed about this.
Just install a newer version? Will the install script overwrite all of the old files and take care of the old t... | stackexchange/codereview |
How to pin point a memory leak in a heap dump using jhat/jvisualvm tool?
I have a heap dump of our application generated using jmap during an "OutOfMemoryError:Java Heap Space error". I used jhat to analyse the dump but the info is too huge and I could not find where the memory leak occurred.Please help me in pin-poin... | stackexchange/codereview |
If I have set the forms authentication timeout to 30 days (in minutes) and I have set the session timeout to 5 mins and I am using a cookie to persist the different session variables .. why does asp.net or IIS always always issue a 302 and redirects to the login page when the session times out ?
(Doing http debugging ... | stackexchange/codereview |
I've never done any Chrome extension development for, but I'd like to monitor how long a certain tab is active showing a page originating from a given domain.
Where should I start? And perhaps there is already an extension tool for this?
| stackexchange/codereview |
In such a function:
<T> void foo(T obj)
The type of obj.getClass() is Class<?> and not Class<? extends T>. Why?
The following code works fine:
String foo = "";
Class<? extends String> fooClass = foo.getClass();
So the signature of T#getClass() seems to return a Class<? extends T>, right?
Why is the signature differen... | stackexchange/codereview |
I'm getting this error when uploading an image on my hosting.
Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
It's always worked before. The only thing that's changed is I had to delete the uploads f... | stackexchange/codereview |
An existing set of JSPs, hard-coded with English field labels, javascript error/info messages, image 'alt' message etc. needs to be multilingualized.
What would be the best way to go about converting these JSPs to use the standard Java Multilingual features (resource bundles, locales etc)?
| stackexchange/codereview |
I have say 10 test cases, and i want to run them from a java class, i can get the Junit's class name only at runtime. Is it possible to do so.
Please help me.
| stackexchange/codereview |
I don't want to do any rounding, straight up, "39%".
So "9.99%" should become "9%".
| stackexchange/codereview |
I knew that you can develop customised code to generate pdf report via SQL Server Reporting Services (web services API).
My question is: can you utilize the same mechanism to convert any HTML code into pdf file?
My team lead wants me to convert html to pdf in this way to try to utilize the existing report services refe... | stackexchange/codereview |
If you populate a drop down list of possible values, you only want the database query to pull two fields, a value and text (like customer ID and Name).
However, your Repository returns POCOs, namely the entire Customer record.
I wouldn't think you should create a POCO for every single DDL list you need, so how does one... | stackexchange/codereview |
</?(?i:script|div|table|frameset|b|frame|iframe|style)(.|\n)*?>
I'm trying to filter certain HTML elements using this regex expression. I also want to filter "b" and "/b" as well but it doesn't seem to work for those.
Thank you.
| stackexchange/codereview |
I don't understand what's going on here.
I have a ListPreference with the entries and entryValues correctly set.
When I go in the prefernces activity and change the value it successfully works (I added a Toast to output the value after changing the option to test).
But when I do the following to compare it, it always e... | stackexchange/codereview |
I have a UITableView with some login form and I manually wrote the configuration values of the UITextFields in this NSArray as NSDictionaries. It is bothering because it's data in the code. I don't want data in my code! And I think that nobody wants that.
Have you ever been in this situation? How would you dispose prop... | stackexchange/codereview |
Possible Duplicate:
What should we do to prepare for 2038?
I don't mean 'people' in the abstract. I mean are you doing anything and if so what?
I am an ancient programmer and recall when I wrote COBOL in the late 70's saying to others in my team "you know - this isn't going to work in 2000". To which the reply was "... | stackexchange/codereview |
I'd like to do something like the following, but because T is essentially just a System.Object this won't work. I know T can be constrained by an interface, but that isn't an option.
public class Vborr<T> where T : struct
{
public Vborr()
{
public T Next()
{
if ( typeof( T ) == typeof( Double ... | stackexchange/codereview |
I'm using Managed C++.
I need to extract the parent directory after OpenFileDialog returns the String^ file path.
System::String^ filestring = openFileDialog1->FileName;
The method that microsoft uses is Directory::GetParent but this must be saved as
System::IO::DirectoryInfo^ WhyIsThisNotAString = Directory:... | stackexchange/codereview |
Here's a common workflow hurdle I encounter often:
master is our "stable" branch
$ git status
# On branch master
nothing to commit (working directory clean)
Create a module on a branch
$ git checkout -b foo
$ echo "hello" > world
$ git add .
$ git commit -m "init commit for foo module"
$ git checkout master
$ git merg... | stackexchange/codereview |
First off let me start by saying that yes I have searched for this in google and in stackoverflow specifically, I have found many answers and tried them all. At this point I believe my only resource is posting the question myself, even if the scenario sounds repeated please be so kind as to try to help.
The situation i... | stackexchange/codereview |
I have a list of lists composed of tuples representing blocks of military times:
[[(1405, 1525)],[(1405,1455),(1605,1655)],[(1505,1555),(1405,1455),(1305,1355)]]
I have a function to compare the times of two tuples:
def doesOverlap(tuple1, tuple2):
#tuples each represent times for courses
#the 0 index for each ... | stackexchange/codereview |
I am attempting to programmatically generate javadocs via an instance of Runtime through the exec() method by passing in the commands necessary to generate javadocs. First of all I am unfamiliar with creating javadocs via the command line and second I am unfamiliar with the exec() method from Runtime. As a test I was a... | stackexchange/codereview |
I have an android app and I want to set an icon. I have set the icon using androidmanifest.xml and that shows the icon inside the app list. However, I want the icon to be displayed while the application is running, also. Any help/hints ?
Thanks.
-
ahsan
| stackexchange/codereview |
I'm creating reports using Java and JasperReports. What I've got is a query that outputs hotel details in order of Hotel Name.
My problem is that, a lot of the time the Hotel Name field doesn't change from row to row. I want to find out how to only print each different hotel name once to stop the report printing unnece... | stackexchange/codereview |
The function is defined as
void bucketsort(Array& A){
size_t numBuckets=A.size();
iarray<List> buckets(numBuckets);
//put in buckets
for(size_t i=0;i!=A.size();i++){
buckets[int(numBuckets*A[i])].push_back(A[i]);
}
////get back from buckets
//for(size_t i=0,head=0;i!=numBuckets;i++){
//size_t bu... | stackexchange/codereview |
when I run the app on server I get:
Could not load file or assembly 'Microsoft.SqlServer.Replication.DLL' or one of its dependencies. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. (Exception from HRESULT: 0x800736B1)
Descript... | stackexchange/codereview |
I'm currently developing a silverlight application with prism. From this application I need to be able to send a command or keystrokes to a client-side application. What is the best way to accomplish this?
Things I'm considering:
Javascript can use an ActiveX object to use DDE. (Limits to IE only)
Javascript can intera... | stackexchange/codereview |
A Product can have lots of things said about it, I'll call them Properties. It can have a brief description. But that description can be in multiple languages. Likewise, it can have multiple Prices, some which are specific to Customers. Given the following data:
Product:
identifier: 123-ABC
Price:
value: $1.... | stackexchange/codereview |
Relevant portion of the .h file:
template<class T, class W>
T inputValidate( T input, W minVal, W maxVal);
Relevant portion of the .cpp file:
T inputValidate( T input, W minVal, W maxVal)
{
if (input < minVal || input > maxVal)
{
cout << "Invalid input! Try again: ";
cin input;
}
return input;
}
I get ... | stackexchange/codereview |
I get this when I run a main.rb file from OSX command line
`require': no such file to load -- EngineAPIWrapper (LoadError)
I have tried putting all the files that it references within the same folder instead of sym links but I still get the problem
if I require 'rubygems' at the top of the main.rb file I get this erro... | stackexchange/codereview |
I have a basic script to upload and manage photos, but there are many things that it lacks.
For some reason photo files like .tif do not get uploaded and there is no automatic re-sizing of different images (vertical or horizontal).
Could someone please suggest some solutions for this?
| stackexchange/codereview |
I suspect I need to add an Ant task somewhere, but where?
| stackexchange/codereview |
Ok, this is funny.
>>> exec("print")
>>> help(exec)
File "<stdin>", line 1
help(exec)
^
SyntaxError: invalid syntax
>>>
looks like exec is a statement, not a function, hence you cannot help() it. Is this expected or a bug? if expected, why? can you reproduce it on python3 ? I have Python 2.6.1 here... | stackexchange/codereview |
I have a composite control that contains a different set of child controls based on the value of one of it's properties at runtime.
Whenever there is a postback, I get the following error:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save ... | stackexchange/codereview |
I am starting a new class project, and I'd like for it to be usable by both .NET 3.5 and 4.0 projects.
If I build it for .NET 3.5, do I need to do anything beyond that? Will it be safely usable by .NET 4.0 projects without having to be compiled for it? Are there any incompatibilities? I know that, as an example, .NET 1... | stackexchange/codereview |
Here is a sample project on github: http://github.com/ripper234/Test-grails-project
I would like to capture the latest revision, and send a link to it to someone, so that even if the project changes later he will see the specific revision I was talking about. I guess forking could do that, but it's overkill.
How do I d... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.