instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
The catch is that I cannot use atoi or any other function like that (I'm pretty sure we're supposed to rely on mathematical operations).
int num;
scanf("%d",&num);
if(/* num is not integer */) {
printf("enter integer");
return;
}
I've tried:
(num*2)/2 == num
num%1==0
if(scanf("%d",&num)!=1)
but none of these... | stackexchange/codereview |
So I have a UINavController in my app and am trying to execute a method when the user presses the back button. I have searched everywhere and can only find bits and pieces that don't really make sense out of context.
Is there a way to implement some sort of check that catches when the user presses the back button to... | stackexchange/codereview |
I have about 14 projects (different solution files) that are sitting on local dev box. Just got connected with TFS 2010. How do I move these projects to TFS 2010 (without getting vss involved)?
| stackexchange/codereview |
After setting up the following protocol, I have noticed that I am getting a warning when I try and access properties from the object:
// PROTOCOL
@protocol PetProtocol <NSObject>
- (void)printType;
@end
// CLASS
#import "PetProtocol.h"
@interface Animal : NSObject <PetProtocol> {
NSString *type;
}
@property (nona... | stackexchange/codereview |
session = get_current_session()
a1 = session.has_key('account.logged') # is true
session2 = Session(sid=session.sid)
a2 = session2.has_key('account.logged') # is false
why a2 is not equal to a1?
solution: it must be saved to datastore:
How to get current session with only the SID?
| stackexchange/codereview |
I have a long list of countries like this:
<option value="Afghanistan" >Afghanistan</option>
<option value="Afrique du Sud" >Afrique du Sud</option>
<option value="Albanie" >Albanie</option>
And I'd like to cut out all the HTML code, so that I'm left with:
Afghanistan
Afrique du sud
Albanie
I'm using Geany, which all... | stackexchange/codereview |
I am using Chronic to parse time and it is returning this error:
ArgumentError in EventsController#create
comparison of Date with ActiveSupport::TimeWithZone failed
This is because since Rails 2.1 the database and Ruby are on different timezones.
How can I convert my statement to work ?
def set_dates
unless self.... | stackexchange/codereview |
Possible Duplicate:
PHP APIs for Hotmail, Gmail and Yahoo?
hi guys
how is it possible to login hotmail through curl-php for obtaining the contact list?
pleaze show me an example code
| stackexchange/codereview |
I'm reformatting this question to be shorter and to the point. If I run a bunch of different custom objects through BinaryFormatter's Serialize method, I will get a bunch of serialized binary files. What is the best way to merge these binary files/retrieve them using Save/Load functionality in my app?
| stackexchange/codereview |
I have a table in SQL Sever 2005 where many of the columns contain only NULL or 0 or 0.0.
I want a query to find the names of every column in that table that have a SUM greater than 0 i.e. the table contains at least one row where its value is not null and is greater than zero.
Thanks.
| stackexchange/codereview |
How do I go about setting texts/images into a Image and Content View I have in an xml?
I have something like:
tv.setText("Random Number: " + Math.random());
if (currentHour > 8 && currentHour < 22) {
tv.setText("Random number:" + random + "%");
but I want the displayed text (tv) to be displayed in a new xml... | stackexchange/codereview |
Using MySQL for basic storage of system/user data. I need to store/search messages (adding webmail functionality), and have analytic (on the fly reports/graphs from current and historical data, so kind of a data wearhouse) + this means i need to store historical data.
So the question is:
1) Do I use MySQL for everythin... | stackexchange/codereview |
I am using Exim. I am trying to "send" all emails to a rails controller, but unfortunately I have no experience with Piping emails. Any help with the configuration of Exim is welcome. What i want is that Exim should forward all emails that are going to "bounce", because no such user exists, to the script
| stackexchange/codereview |
In Visual Basic, if you are going to change multiple properties of a single object, there's a With/End With statement:
Dim myObject as Object
// ' Rather than writing:
myObject.property1 = something
myObject.property2 = something2
// ' You can write:
with myObject
.property1 = something
.property2 = something2... | stackexchange/codereview |
I'm trying to pass parameter of short type to C++ unmanaged function imported from DLL. In my C++ DLL code I have a following function:
__declspec(dllexport)void ChangeIcon(char *executableFile, char *iconFile,
UINT16 imageCount)
{
// Some code, doesn't matter
}
In C# managed code I import this function with t... | stackexchange/codereview |
I was wondering if someone has had experience with the llvm/tools - lli interpreter/JIT-compiler (cf. http://llvm.org/docs/GettingStarted.html#tools). I am interested in any information that you can provide (speed, complexity, implementations, etc.).
Thanks.
UPDATE:
Okay how would bitcode execution be compared to LuaJI... | stackexchange/codereview |
I’d like to load a page into frame with key binding using ‘Ctrl’ and ‘H’ buttons from a keyboard. I can load page. It is working now. I am wondering if I can just override UriSource link with what it is now into frame. I assign UriSources in XML and I need to override one instance instead of introducing new UriSource t... | stackexchange/codereview |
I have a problem. The click event that summons a greybox form is broken after a div is refreshed. How to I rebind the function to the refreshed content, that includes the links that will re-fire the greybox? I am assuming I have to re-initialize the functions after the click event. I am a newbie so thans for your help.... | stackexchange/codereview |
I have an IOS Web App that can't be scrolled. For that reason I want to deactivate scrolling. To do this, I use an element's ontouchmove attribute and have it call a function that uses element.preventDefault.
However, I am unable to detect any touching event when it starts on a textarea or input element, even when the ... | stackexchange/codereview |
We have a very large legacy system which is built using complicated batch files. Our CruiseControl.NET server simply calls the batch files and checks the return code, which works fine and produces a successful build.
Sometimes however the batch file doesn't seem to return properly after a successful build, and CruiseC... | stackexchange/codereview |
I think Javascript has a mechanism that allows to bubbling events from top down and down up. What's the equivalent in .NET WINFORM (not ASP.NET) ?
Events/Delegates in .NET automates the Observer/Design Pattern by avoiding the subject to handle the message update sending to subscribers so I can't see any fundamental rea... | stackexchange/codereview |
This is more or less copy pasted from boost docs and I keep getting an error (actually alot of errors)
I'm trying to make sure that a template class is only used with numbers using boost.
This is an exercise in boost, rather than making a template class that only uses numbers.
#include <boost/utility/enable_if.hpp>
#in... | stackexchange/codereview |
I find myself revisit areas of my project and refine them again. This usually happens when I begin something from scratch and as I understand it better my code and techniques become better, hence I go back over what I've done and make it stronger. Is this normal or I'm just inexperienced? How often do you revisit your ... | stackexchange/codereview |
Is there a way to check if a file is encrypted?
| stackexchange/codereview |
I'm going to insert data into a table like so:
Insert Into MyTable (Field1, Field2)
Values ('test', 5)
When that insert occurs, the new row is going to have an identify value in the ID column. If have a variable called @ID in my T-SQL code, how do I populate @ID with the result of the T-SQL Insert?
Decla... | stackexchange/codereview |
I want to animate the ShadowOffset of my layer with CATransaction. But the shadow appears
without animation:
[CATransaction begin];
[CATransaction setValue:[NSNumber numberWithFloat:1.2]forKey:kCATransactionAnimationDuration];
[CATransaction setValue:[NSNumber numberWithBool:NO] forKey:kCATransactionDisableActions];
lo... | stackexchange/codereview |
emacs 23.2
I have just installed emacs on a 10.1" screen netbook.
However, when I compile my source code the compilation window always opens in a horizontal buffer below my source code buffer.
At work I use a 15" screen and the compilation opens up in a vertical window, which is what I like.
However, on my 10.1", is t... | stackexchange/codereview |
When we import tables from password protected Access database, do it import the passwords too.
How can we make the SQL server database password protected?
Thanks
Furqan
| stackexchange/codereview |
Any solutions can sync two mysql database for two remote machine? i have to sync periodically
thanks
| stackexchange/codereview |
I have a method, marked as @Transactional.
It consists of several functions, one of them uses JDBC and the second one - Hibernate, third - JDBC.
The problem is that changes, made by Hibernate function are not visible in the last functions, that works with JDBC.
@Transactional
void update() {
jdbcUpdate1();
hibernat... | stackexchange/codereview |
in my iphone application i have to send direct message throughout twitter,
the problem is that twitter had changed the authentication from basic authentication to oauth
and tutorial on the Web are out of date
so i use SAOauthTwitterEngine for the authentication part and all ok. but these classes don't use the api, so ... | stackexchange/codereview |
My question is pretty simple, but I am having a bad time finding a solution.
I want to be able to get all the queues in the server (or session, that would also be ok). Is that possible?
My situation is the following:
I am new to openMQ, Glassfish, activeMQ and so on. I developed a monitoring system for activeMQ in whic... | stackexchange/codereview |
We've upgraded yesterday our App (easy.go) on the Android Market and after that we have got several messages from HTC Tattoo and Sony Ericsson XPeria mini users, that they can't see application on Android Market.
We are not you using Copy Protection when uploading to the market, so I guess, it couldn't be a problem.
Th... | stackexchange/codereview |
I am quite quite new to SQL server. I tried to create a database in SQL Server Management Studio Express. It has created the database but I did not find Import option in the menu when I right-clocked my Database, It should have been in Tasks, but it is not there. I want to use this databse in vb.net application.
1)... | stackexchange/codereview |
Our website needs to give out data to the world. This is open-source data that we have stored, and we want it to make it publicly available. It's about 2 million records.
We've implemented the search of these records using Lucene, which is fine, however we'd like to show an individual record (say the user clicks on it ... | stackexchange/codereview |
My current app is using URLs like:
/philsturgeon
/philsturgeon/trip_slug
I have trips attached to users in my model like so:
class Trip < ActiveRecord::Base
belongs_to :user
def to_param
"#{user.username}-#{slug}"
end
end
Now I have been told about to_param which seems awesome. It means I can use ... | stackexchange/codereview |
I am having trouble parsing a SOAP response.
Here is my code:
require 'rubygems'
require 'savon'
client = Savon::Client.new "http://1.2.3.4/xyz/abcd/fsds.wsdl"
res = client.query_unpaid_assesments do |soap,wsse|
soap.namespaces["xmlns:SOAP-ENV"] = "http://schemas.xmlsoap.org/soap/envelope/"
soap.namespaces["xmlns... | stackexchange/codereview |
I am looking for some good, free data modeler programs for Linux that are painless to install and work with SQLAlchemy. Any ideas?
| stackexchange/codereview |
A script on my page is causing an infinite loop in FireFox.
Here is the Javascript:
function expandMothersRings(new_height)
{
window.scrollTo(0, 0);
$('#mr-container').animate({
height: new_height
}, 100, function() {
// Animation complete.
});
}
This is being called via ExternalInterfa... | stackexchange/codereview |
What are some generic methods for optimizing a program in Java, in terms of speed. I am using a DOM Parser to parse an XML file and then store certain words in an ArrayList, remove any duplicates then spell check those words by creating Google search URL's for each word, get the html document, locate the corrected word... | stackexchange/codereview |
Can JAX-WS map an XML schema date (xs:dateTime), including its time zone, to a Java Calendar?
| stackexchange/codereview |
Are jQuery events blocking?
For example does calling the following method return immediately?
$("body").trigger("myEventName", myValue);
My testing seems to suggest they are. If this is correct does this mean I can return values from my custom events?
var myResult = $("body").trigger("myEventName", myValue);
Clearly ... | stackexchange/codereview |
I am interested in knowing if its even possible.
One example is the variable already exists.
foo = 1;
var bar = 'foo';
if('foo' == 1)?
Is there a way to do that.
Is there a way to say something like bar == foo.variablename
| stackexchange/codereview |
(In case you do not know, "TC++PL" stands for "The C++ Programming Language", a book written by the inventor of C++, Bjarne Stroustrup.)
I only have the third edition and was just wondering how C++ looked in the first and second editions. Obviously the third edition is the only one to cover ISO standard C++, but what a... | stackexchange/codereview |
In ,models i have
class pick:
t1 =models.DateTimeField(auto_now_add=True)
In views.
The date variable is in the format s="2010-01-01"
How o query the for the date now
pick.objects.filter(t1=date(s))
| stackexchange/codereview |
I am using Qt to construct an application. My MainWindow consists of an image of a map which I would like to be resized to the fit the window. This means when the window gets smaller the image gets smaller and vice versa. When the user selects a point on that image I want to remove this feature. I am new to Qt and have... | stackexchange/codereview |
I'm making a game and I need to be able to ship some data about the game's various ships and details about them that the app will use. I'm looking for what the ideal way to do this would be. Now I've narrowed it down to using either SQLite, Core Data, or Property Lists. Now the thing I want to keep in mind as well is m... | stackexchange/codereview |
One of the features I love in Perl is the LISP-inspired (?) ability to filter content out of a list of things with the simple syntax
@result_list = grep { test($_) } @unfiltered_list;
where test function will be applied to all the items of @unfiltered_list to produce the @result_list.
Is that a feature that exists in ... | stackexchange/codereview |
Goal: Get javascript to work concurrently with Ajax.Updater (prototype.js)
Purpose: I am creating a website that displays a list of servers, and updates server status's every 10 seconds (without refreshing the page). So I use the Ajax.Updater to call a function every 10 seconds to update every server's status.
(Pleas... | stackexchange/codereview |
Greeting ,
I am enable to find out any method to implement SSL services with Qt 4.2.3 version .I am presently restricted to use 4.2.3 version , can't use 4.3 or later version . Please suggest me any way to come out from this problem .
| stackexchange/codereview |
I am trying to deploy the following code in my View-Based app, but I am getting the following errors when I try to run it:
GPSViewController.h
CLLocationManager *lm;
CLLocation *firstLocation;
CLLocation *secondLocation;
CLLocationDistance *distance;
NSString *distanceString;
GPSViewController.m
firstLocation = [[[CLL... | stackexchange/codereview |
I was reading up on functional languages and i wondered how i would implement 'tries' in a pure functional language. So i decided to try to do it in F#
But i couldnt get half of the basics. I couldnt figure out how to use a random number, how to use return/continue (at first i thought i was doing a multi statement if w... | stackexchange/codereview |
I’ve recently stuck at a problem. Here is the thing, I’m trying to get a float object from NSArray that holds it, and all I can get is (null). Obviously not the thing that I want to receive. Look at the snippet of code:
h = [[NSMutableArray alloc] initWithObjects:[NSNumber numberWithFloat:1.0],[NSNumber numberWithFloat... | stackexchange/codereview |
Is there a way to create a new code window in Visual Studio 2010 that is also a tabbed container for other code windows.
As far as I can see the windows will only stack on top of each other once they're undocked from the main window and will only tab when placed back on the original Visual Studio screen.
I find this ... | stackexchange/codereview |
I'm trying to calculate some numbers in an iPhone application.
int i = 12;
int o = (60 / (i * 50)) * 1000;
I would expect o to be 100 (that's milliseconds) in this example but it equals 0 as displayed by NSLog(@"%d", o).
This also equals 0.
int o = 60 / (i * 50) * 1000;
This equals 250,000, which is straight left-to-... | stackexchange/codereview |
We are in the process of migrating an ASP Classic/ASP.NET application from IIS 6 to IIS 7.5. Most things run just fine in classic mode but we are having alot of problems with how errors are handled by IIS 7.5. We do our error reporting using a classic ASP page where we capture the error information here then redirect t... | stackexchange/codereview |
I have a number of different programs where I create Excel instances and control them via OLE automation. In some cases the user can also work with these instances through Excel UI (which may involve opening other workbooks), in others they remain hidden.
Problems arise when the user double-clicks an Excel file in Wind... | stackexchange/codereview |
I haven't been able to find an answer to this online. Is there a way to use 9-slice scaling with images loaded at runtime?
To clarify, let's say that I build an application that lets a user skin a button with whatever image they want. This would be an image that's not embedded with the swf. Is there a way to set that ... | stackexchange/codereview |
I have created a custom SOAPHeader and Service with methods. While I was trying to consume the service, I was able to create the SOAPHeader and assign its property. But the proxy(SOAPClient) is missing the HeaderValue property.
My web method is expecting this Header as a parameter instead of property of the proxy.
Cli... | stackexchange/codereview |
This is using Scala 2.8 Actors. I have a long running job which can be parallelized. It consists of about 650,000 units of work. I divide it into 2600 different separate subtasks, and for each of these I create a new actor:
actor {
val range = (0L to total by limit)
val latch = new CountDownLatch(range.length)
ra... | stackexchange/codereview |
I'm doing some basic sql on a few tables I have, using a union(rightly or wrongly)
but I need remove the duplicates. Any ideas?
select * from calls
left join users a on calls.assigned_to= a.user_id
where a.dept = 4
union
select * from calls
left join users r on calls.requestor_id= r.user_id
where r.dept = 4
| stackexchange/codereview |
I have a fairly straight-forward scenario that I am trying to solve but I'm hitting a few brick walls with Windsor - perhaps I'm trying to solve the problem in wrong way?
I have a type called Foo as follows:
public class Foo
{
[NonSerialized]
private IBar bar;
public IBar Bar
{
get { return thi... | stackexchange/codereview |
How can I remove a button in Android, or make it invisible?
| stackexchange/codereview |
Is there any option to gain counted combinations of all elements in one SQL query, without using temp tables or procedures?
Consider these three tables:
products (id, product_name)
transactions (id, date)
transaction_has_product (id, product_id, transaction_id)
Sample data
products
1 AAA
2 BBB
3 CCC
transact... | stackexchange/codereview |
My Mac battery ran out while I was running a Rails 3 app, and after I plugged my Mac in and restarted it, I tried running my Rails app's development server (using mysql for the database). Upon trying to update something, I got "Errno::ECONNREFUSED (Connection refused - connect(2))". It turns out that I get this every t... | stackexchange/codereview |
When designing an internation registration form how should I be asking for a user's information. Should name be [First, Last] or [Common, Surname] or simply [Name]. Does first and last name make sense for all names?
When asking for state and zipcode what would alternative terminology be, should I even be collecting thi... | stackexchange/codereview |
I'm doing performance tuning on a Silverlight WP7 game and I'm observing a weird behavior when running in the Emulator (I have no real device, so I can't tell if it's an emulator artifact).
I am using a Storyboard as main game loop timer, I update the rendering in the Completed event, then restart the animation. The pr... | stackexchange/codereview |
I want a supervisor override capability for my application.
I want to provide a username login prompt (including domain). If the user is in the approved list and the password correct, show advanced controls.
What .NET code / functions allow this?
NOTE: VB.net answers preferred. C# also accepted.
EDIT: Please note the... | stackexchange/codereview |
I want to copy Table DOG from DB ANIMAL1 and copy/create the data to Table DOG in DB ANIMAL2.
The Table needs to duplicate all rows (Primary Key) ID as well.
How do I go about that?
Thanks.
| stackexchange/codereview |
Suppose I have entity graph like
People ->Student
then in xaml, I have following kind of binding(People is property of VM):
<TextBox Text="{Binding People.Name, Mode=TwoWay}" />
<TextBox Text="{Binding People.Student.StudentNo, Mode=TwoWay}" /> <!-- this bounding is not working -->
in VM, implementing IEditableOb... | stackexchange/codereview |
I have <%= f.label :cost, "Cost (£/m)" %> in a form. When the form is rendered the "£" sign comes out as �. I am using utf-8 encoding. Why is this happening?
| stackexchange/codereview |
Hopefully, this is a newbie question with a quick answer...
I am attempting to add a simple preferences file in a new Android project (New -> Android XML File), but it doesn't appear to be working correctly.
There is no root element to choose from when I select the Preference type layout. If I press Finish, it doesn't... | stackexchange/codereview |
I am given a string of characters, in which every consequent pair of characters comprises an edge. What I mean by that is this is the string: ABBCAD. Edges of the string are:
A->B
B->C
A->D
Shortest path distance is A->D
The task at hand is to build up a Directed Acyclic Graph in memory from the string using the above... | stackexchange/codereview |
I'm attempting to serve video files from ASP.NET MVC to iPhone clients. The video is formatted properly, and if I have it in a publicly accessible web directory it works fine.
The core issue from what I've read is that the iPhone requires you to have a resume-ready download environment that lets you filter your byte ra... | stackexchange/codereview |
I'm testing out the feasibility of using OpenRasta as a viable alternative to ASP.NET MVC.
However, I've run into a stumbling block regarding authentication.
Let me be clear, "Open Digest Authentication" is NOT an option at this point.
I've read that Scott Littlewood created a basic authentication fork for OpenRasta an... | stackexchange/codereview |
I have 2 link tables in a MS Access database. One of the link tables links to a table in a Sybase database and the other links to a SQL Server database.
The tables structures are same and has the same data too, barring a few rows.
I tried the 'Find unmatched rows' query wizard to compare the two tables and find the num... | stackexchange/codereview |
Is there a way I can inject menu items into itunes or detect when menu items are pressed. I have an itunes plugin that executes code when iTunes launches, but how can I use that to detect menu item clicks or possibly inject new menu item options? For example adding a new contextual menu item when you right click on a l... | stackexchange/codereview |
I'm pretty new at Rails, so don't kill me if this a stupid question =P
I have the following models:
class Profile < ActiveRecord::Base
has_and_belongs_to_many :sectors
has_and_belongs_to_many :languages
class Sector < ActiveRecord::Base
has_and_belongs_to_many :profiles
end
class Language < ActiveRecord::Base
has... | stackexchange/codereview |
It appears that Dynamic Linq doesn't implement the String.Split method.
Is there a way achieve the same results with Dynamic Linq ?
| stackexchange/codereview |
I'm trying to change the icon of external executable programmatically. I've googled and found much information about this problem using C++. Basically, I need to use BeginUpdateResource, UpdateResource and EndUpdateResource. The problem is - I don't know what to pass to UpdateResource in C#.
Here's the code I have so f... | stackexchange/codereview |
I am trying to change a variable that is outside of a function, from within a function. Because if the date that the function is checking is over a certain amount I need it to change the year for the date in the beginning of the code.
$var = "01-01-10";
function checkdate() {
if ("Condition") {
$var = ... | stackexchange/codereview |
I have a Python script (running Python v2.6 or v2.7) that runs on Linux and also AIX.
I'd like to be able to debug this script from Windows. I'd like to use PyScripter if possible.
If it is not possible to use PyScripter, what other combination of IDE + debugger would you recommend? I would prefer something easy to s... | stackexchange/codereview |
Getting the following error:
ActionController::RoutingError (No route matches "/public/images/download.png" with {:method=>:get}):
| stackexchange/codereview |
I'm attempting to use Kohana's regex() database method with ORM to search for a word. I was using the like() method originally, but the results weren't what I wanted. Basically what I need to do is search a phrase for a certain word. I've used basic regular expressions like this before, but I must be doing something wr... | stackexchange/codereview |
Some third party software uses a "staging" table for various imports, so that anything we try to import can be validated through their business logic. Any table in the system can be a target, and it is standard practice to assign col1 as the "type" of import you are performing.
All the columns in the table are gener... | stackexchange/codereview |
Please check my J Query program. I have much parameter inputs in a IF Statements so Is there any way that it will toggle each argument? My Current Program is working fine but I need more combinations . For example there are four combination so 4*4 = 16 Combination for each IF so is there any solution to minimize parsi... | stackexchange/codereview |
I'm not looking for exact code here, just a direction on what to look for and what I should be reading about so I can figure this out.
I have a layout that I would like to remain static, with only the listview changing depending on what's selected from the list. I've reloaded data in the list, but I would like the fan... | stackexchange/codereview |
I have a couple classes extending builtin datetime.*
Is there any good reason to not overload + (MyTime.__radd___) so MyDate + MyTime returns a MyDateTime?
| stackexchange/codereview |
The first time I open one of my child forms from the main form it opens normally. If I close the first instance of the child form and then reopen it however I get a crash the first time I try to call CreateGraphics() outside of the OnPaint() method. The exception I get is: "Cannot access a disposed object. Object ... | stackexchange/codereview |
I Have a problem to make a cm to foot/inch converter in C#, this is what a got:
<asp:textbox id="txtFoot" runat="server"></asp:textbox>
<asp:textbox id="txtInches" runat="server"></asp:textbox>
<asp:Button id="btnAdd" runat="server" text="Count" onclick="btnAdd_Click" />
<br />
<asp:Label ID="lblResult" runat="serv... | stackexchange/codereview |
Given i have a list of items in my DB and their respective translation in i18n file.
i18n file:
basic_categories:
item_1: Z
item_2: A
item_3: F
on the view:
<% @basic_categories.each do |category| %>
<%= t("basic_categories.#{category.name}") %>
<% end %>
How can i sort this list f... | stackexchange/codereview |
is it possible to set an SQLite Database as datasource in Dashcode? And how? I'm referring to the "Mobile Safari Web Application Tutorial" (http://developer.apple.com/library/mac/#documentation/AppleApplications/Conceptual/Dashcode_UserGuide/Contents/Resources/en.lproj/MakingaWebApp/MakingaWebApp.html#//apple_ref/doc/u... | stackexchange/codereview |
I'm passing a variable i from a view to a template. When I'm printing {{ subject.i.id }} then it is not working.
# the view
return render_to_response(
'feedback/feedback.html',
{'subjects': subject_list, 'n': n, 'list': sub_list, 'i': 0},
context_instance=RequestContext(request))
# the tem... | stackexchange/codereview |
I have made a gallery script that loads from xml a large image, text, and 3 thumbnails.
I am having trouble getting the thumbnails to load for some reason.
I have it so that the three thumbnails should be the previous image, the current image, and the next image. Except when you click on the current image it should loa... | stackexchange/codereview |
I'm currently using a ListView in my webformsapplication. This ListView generates a table with (currently) three columns. "Username", "Organization" and "Locked". These are represented with string, string and checkbox respectively. The checkbox should postback on change, but that is (possibly) for another question...
S... | stackexchange/codereview |
I have a listbox on silverlight page, the datacontext of the page is set to an instance -- TestQuestions, please see the code below. The listbox uses a DataTemplate and its ItemSource is 'Answers' which is a property of the page's DataContext, everything works fine until I try to bind to 'ShowAnswer', a property on the... | stackexchange/codereview |
Should the X.509 certificates used in WCF client and WCF service be signed by certificate authority (VeriSign)? Or they can be signed by Windows Root authority?
| stackexchange/codereview |
This code below can migrate the two variables from one file into the other.
<?php
$file = 'somefile.txt';
// Open the file to get existing content
$current = fopen($file,'a');
// Append a new person to the file
$firstname .= "aiden\n";
$secondname .= "dawn\n";
$currentContent = file_get_contents($file);
// Write the co... | stackexchange/codereview |
Hi I'm new in ruby and rails and I want to create a new attribute email for the model Account.
Down below is the test for my new attribute. The test is a copy of the name attribute test but i figured that they will be working in a similar way.
it "should have a email field" do
@account.email = "email"
@account =... | stackexchange/codereview |
How do I navigate to a specific page programmatically. Basically I have an app with a scrollView populated with a bunch of subviews (tableViews in this case). When clicking on a subview it zooms in and the user can edit and navigate the table, however when I zoom back out I reload the entire view in case there were any... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.