instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I usually build the application in windows and test /port the application in UNIX using VI
But what is I need to build the application from scratch in unix/linux in shell what option do I have to
Visually debug (break point and such .. ) or syntax helpers? ( c/c++)
| stackexchange/codereview |
How to suppress field depending upon next data field change?
I have datas (two colomns of a table) which is something like as below:
SubItemcode___________IsLock
SODBPCFBX01601G_______N
SODBPCFBX01601G_______N
SODRWFIMX01G017_______N
SODRWFIMX01G017_______N
BG8Wx0191765044_______N
BG8Wx... | stackexchange/codereview |
I have a Perl regex /\W/i which matches all non-alphanumeric characters, but it also matches spaces which I want to ignore. How do I get it to match non-alphanumeric characters except spaces?
| stackexchange/codereview |
Say i have
<h3>
some text
<a href="google.com">google</a>
</h3>
I want to attach a click event to the h3
$("h3").click(function(){ $(this).slideDown(); return false; });
but I also want to preserve the clicking on the actual link. Is there a way to do this with jQuery?
Thanks!
| stackexchange/codereview |
Ive been running eclipse (Helios Build id: 20100617-1415), sonotype maven for eclipse version 2 (0.1.0.20100xxx) for many months without issue.
I can do "mvn install" on the command line, and get a perfect war, and I could run the webapp in eclipse local tomcat no problem.
Then this morning, I started tomcat in eclipse... | stackexchange/codereview |
i am exporting a datasheet from access into sql server 2008. it exports it fine, but it takes a very long amount of time for me to actually see it in SSMS. does anyone know why it takes so long? i dont know how long it takes because it's been about 10 minutes, but i do know that it was created since i was trying to exp... | stackexchange/codereview |
I have a basic view that returns the same columns as a table (give or take 1 field)
in my DAL code, i am returning a list of MyTableObject, however in some cases, i will call the view to return the same data, but from different sources.
List<MyTableObject> tableObjects = new List<MyTableObject>();
if (case1)
tableOb... | stackexchange/codereview |
I'm trying to set up a CTFrame that exactly matches my UITextView's text format in iPad.
First of all, I converted UITextView's text to an attributed string. Then I set up a width and a height of drawing box in which Core Text will draw text.
I succeeded to draw text using Core Text, but UITextView and Core Text show s... | stackexchange/codereview |
I am working on a Railway Portal and would require maintaining a shopping cart of components user has selected, there could be multiple components of different type in the cart. I don't see a value in storing the cart in database, would like to store the final order in DB. Where can I store/hold (temporary) the cart da... | stackexchange/codereview |
I am sure this problem is asked a lot but I can't seem to find anything relevant. I have multiple source files in a C++ project. In typical fashion, there are multiple header files with class and function declarations and associated source files with their definitions. The problem is that when I try to use one of my cl... | stackexchange/codereview |
I uploaded my web application already in my Production Tomcat Web Server.
I am trying to test it already and it works fine on FF/IE7/IE8 but I am having a problem
on display on IE6.
I notice in the status bar that IE6 seems to be downloading the images every now and then.
Even though I did not click anything, it still ... | stackexchange/codereview |
I'm new to jQuery and I need to replace a part of an A HREF attribute in a link. More specifically, a piece of code that will remove the "-h" from "s1600-h" for a lightbox application:
In other words, turn s1600-h to s1600
Also, do I need to use $(function() or $(document).ready(function() before the piece of code?
| stackexchange/codereview |
Do uints take different amounts of memory depending on their value? Or does each uint take the same amount of memory regardless of it's value?
| stackexchange/codereview |
Ok I'm no rookie to this stuff. I know what I'm doing, so please dont take me through the basics. I updated Xcode to the newest version the other day, and now every new project and saved projects from the past that HAVE succesfully been built using its own distribution certificate are no longer succeeding with the foll... | stackexchange/codereview |
NumberFormat/DecimalFormat doesn't seem to parse strings with the "#.0" format (where # is any number) as a double.
The following code illustrates this:
#include <cstdio>
#include <iostream>
#include <unicode/decimfmt.h>
#include <unicode/numfmt.h>
#include <unicode/unistr.h>
#include <unicode/ustream.h>
int main() {
... | stackexchange/codereview |
Scala and Aspects can be used together? Are there benefits in this case?
Thanks
| stackexchange/codereview |
The proper way to iterate is to use iterators. However, I think by erasing, the iterator is invalidated.
Basically what I want to do is:
for(iterator it = begin; it != end; ++it)
{
if(it->somecondition() )
{
erase it
}
}
How could I do this without v[i] method?
Thanks
struct RemoveTimedEvent
{
bo... | stackexchange/codereview |
I'm using the "Alternating Rows" option in Interface Builder to get alternating row colors on an NSTableView. Is there any way to change the colors of the alternating rows?
| stackexchange/codereview |
I have a .war(web app) deployed on Tomcat server. I have another application on jBoss server.
The application on the Tomcat is the start point and a jsp on the jBoss server gets called from the Tomcat app. Then I am planning to set a session on the jBoss server app and when I am done my processing on the jBoss I will ... | stackexchange/codereview |
As a developer What are your thoughts on UI design when Developing 1 mobile app for both iPhone and android..
Since the application will not be developed for a specific mobile device there are two options in regards to UI
build the application using native UI (one for iphone, another for android)
build the application... | stackexchange/codereview |
I always like my figures to be placed in between text as opposed to the top or bottom of the page. I also like to talk about the figure before it is shown. So I am trying to have something like this:
By looking at Figure~\ref{fig:VCO} you can see that blah blah blah.
\begin{figure}[h]
\caption{VCO test circuit}\label{f... | stackexchange/codereview |
I am trying to view a web page, fron an Android app, that requires authentication and get the following message:
----- Android webView error start --------
"You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending WWW.Authenticate header fiel... | stackexchange/codereview |
I really don't know if this is a C# thing or an asp.net thing. I was looking at this article: http://huyrua.wordpress.com/2010/07/13/entity-framework-4-poco-repository-and-specification-pattern/ and ran into this line:
public class GenericRepository<TEntity> : IRepository<TEntity> where TEntity : class
I'm fairly new ... | stackexchange/codereview |
i came across the following fuzzy logic example about fuzzy logic.
Representing Age
Problem 2-1. Fuzzy sets can be used to represent fuzzy concepts. Let U be a reasonable age interval of human beings.
U = {0, 1, 2, 3, ... , 100}
Solution 2-1. This interval can be interpreted with fuzzy sets by setting the universal sp... | stackexchange/codereview |
I have a data.frame that contains historic data by day for several months. I would like to add a forecast to the end of this data.frame.
For example, I can run the following to create a simple example data.frame.
months <- c("2010-10-17","2010-10-18","2010-10-19","2010-10-20")
revenue <- c(10000,11000,10500,9500)
resu... | stackexchange/codereview |
I was wondering if anyone could help me understand why these two criteria do not return the same result sets. To me, it seems weird that SQL Server 2008 R2 wouldn't know to use the offset while constraining the data. Is there a better way to do this? As far as I can tell, Criteria Two is the only way to get the correct... | stackexchange/codereview |
I have one grid view that contains some template columns. In this, the first column contains check boxes named as Read, fourth and fifth column contains asp:link button. If the user clicks on the read check box, both link buttons should be enabled (Initially it is in disabled mode). I used this JavaScript code for disa... | stackexchange/codereview |
I am creating a website with Zend_Form. In my controller, I assign a form object to the view. In the view, I use the following code to render the form:
<?php if ( isset( $this->success ) ): ?>
<div class="message success"><p>Thanks!</p></div>
<?php elseif ( sizeof( $this->form->getMessages( ) ) > 0 ): ?>
<div c... | stackexchange/codereview |
I currently write a module that generates a block. The output should be defined by a template. Nothing special, yet the arguments don't seem to get passed properly.
This is the theme-method:
/* # Theme {{{*/
function browse_by_taxonomy_theme() {
return array(
'browse_by_taxonomy_block' => array(
'template' ... | stackexchange/codereview |
I would like to plot gradient magnitudes of an color image in matlab. Precisely saying i want the gradient in my x-axis and the log of probability density on my y axis. i would request if someone can help me out. Thanks
| stackexchange/codereview |
I have a blog in twitter like twitter.com/myname and I want to get latest tweets of my blog to display on my website. so that my website reader will be updated about my twitter blog.
| stackexchange/codereview |
looking to see if there are some ideas on how I should introduce the idea of a logged-in "user" that effectively 'federates' the data....let me explain.
I have been building my app so far as if there is only one user. Me. All the data and reports are specific to me. I just added authlogic.
I now want to be able to i... | stackexchange/codereview |
Furthering: Database design for dynamic form field validation
How would I model the database when a particular field can have 0 or more validations rules AND that each validation rule is "related" to another rule via AND or OR.
For example, say I have field1 that needs to be minimum of 5 characters AND maximum 10 chara... | stackexchange/codereview |
When a user clicks a link that requires a log in, we currently redirect them to the log-in page ,but we lose the intended URL. What is the best way to account for that URL and redirect the user to the requested page once logged in?
We're using the latest stable version of Cake. Thanks.
--Edit--
Its configured like thi... | stackexchange/codereview |
I'm using NHibernate + Castle.Windsor to add some behaviour to my entities. This means that NHibernate creates entities through Windsor. This means that I must have a default empty constructor so Windsor will be able to instantiate my entities. I don't like this for many reasons, the main one being that I dislike to ha... | stackexchange/codereview |
I came across some code written in C that looks like this:
if (file == NULL)
TRUE; /* <-- What does that mean? */
I think that it is another way of saying:
if (file == NULL);
But am I missing something, and is there a reason to do it the first way as opposed to the second way?
UPDATE:
Doing some digging, TRUE is... | stackexchange/codereview |
I've got strange issue - I hope someone run similar problem before.
I'm trying to cache content from different subdomains connected via wildcard to my django application 'example.com'.
So when I get to subdomain1.example.com. i run differend code in view than excample.com - simple middleware for that like here: Django ... | stackexchange/codereview |
I need fast transmit data from my wcf service to client.
As SO helps, it means good binary serializer\derializer and data through List
But I've got only XML text of DataTable serialized on service. It's big overhead.
Ok I should move to binary encoding of List. I haven't any DTO, just xml of DataTable.
Could you help m... | stackexchange/codereview |
In the checkout process of Magento, I use only the credit card method. In the last step, I need to send all the information collected to an external url at my payment gateway.
All the data is processed by the third party gateway, then redirects to my Magento website with the result of the operation.
What should I do ... | stackexchange/codereview |
I'm wondering if anyone switches to private browsing mode to test sites sans cache?
You know when you have to clear cache to make sure that what you are seing is fresh from the server, surely private browsing is a safe, and faster way to do this, instead of having to go to your settings each time and clearing.
Putting ... | stackexchange/codereview |
Am using Rails version 3.
I want to create a model , in which i have a field called "Page-visits" I want it to hold range as value, eg: (50 .. 100) , (1000 .. 5000) etc. How to achieve this ??
Even if there is no such data-type at present in rails, I would like to know other ways of how to achieve this ?
| stackexchange/codereview |
I am looking for some code, which can do separated text from column description into columns test 1 and test 2
Example
description (price $250, New York, Beautiful house)
What I need
test 1
$250
test2
New York
| stackexchange/codereview |
I am using AdWhirl for my ads and they aren't showing in my app when I run it in the emulator. I heard it sometimes takes a while, so i left it for 10 minutes but still nothing. I have disabled AdSense just to see if it would work with just AdMob, but it didn't help.
In my DDMS it shows this:
It shows the same when Ad... | stackexchange/codereview |
Through COM, one can potentially gain absolute control over a target system. For example: using javascript's ActiveXObject object in IE, one can create certain objects which were designed to have direct access or interaction with system properties and files. One would think common sense dictates users disable ActiveX... | stackexchange/codereview |
Perhaps I'm trying to be too clever for my own good, and I could possibly use a scalar variable to solve this. I'm trying to add 1 to my output from the subquery;
INSERT INTO bookrevisiontbl (revisionnum, bookdate)
SELECT SUM(MAX(revisionnum) + 1), GETDATE() FROM bookrevisiontbl_tbl
However the following error occurs... | stackexchange/codereview |
I am trying to get the path that an NSDocument is being saved to at save time. I tried overriding writeToURL but that would pass me an obscure temp file URL, which was not where it was getting saved. Also asking the document like this [document fileURL] only works after it has been saved. I can get the path when it is ... | stackexchange/codereview |
After fumbling with some keys on my keyboard while trying to get a script to run by clicking on Run in python IDLE I must of did something, because now python will not open. It opens from the command prompt fine, but the normal way it will not open whatsoever. I tried repairing and reinstalling. Still no luck. I am on ... | stackexchange/codereview |
I know the below query isn't valid, but I'm just using it as an example as what I'm trying to achieve.
Basically what I want to do is get a COUNT() of all the rows & then also get a COUNT() of rows with a condition clause in the one query.
Such as..
SELECT
COUNT(*) AS full_amount,
COUNT(address IF NOT NULL),
... | stackexchange/codereview |
This is related to travelling salesman problem. First all permutations need to be generated and then the destination (same as origin) attached. I.e.:
1)
abcd
abdc
....
2)
abcda
abdca
....a
I have all the distances and only need an algorithm to sum them up. I wonder if there is an algorithm (C preferable) I can use for ... | stackexchange/codereview |
I have two projects; A and B, where B needs to use some classes that are in project A. Hence, I added B to A's solution, and in B I added a reference to project A.
Is that sensible? Or should I rather put those classes in a class library?
I see that if I further want to open form/program B from a menu option in pro... | stackexchange/codereview |
This is homework so for those that dont like looking at someone asking questions about homework dont read this post.
I am to create a console application and a windows form in C#. When I run the console application it suppose to popup a windows form with two buttons on it Pressme and Exit. The part I am having a hard t... | stackexchange/codereview |
When I first started developing this project, there was no requirement for generating large files, however it is now a deliverable.
Long story short, GAE just doesn't play nice with any large scale data manipulation or content generation. The lack of file storage aside, even something as simple as generating a pdf wit... | stackexchange/codereview |
I am having an issue with the following code.
It uses the Mini-XML library to extract elements from an xml file.
It compiles and runs fine, except that it is unable to get the last "radius element," returning NULL instead (it crashes if I don't check to see if subnode is not NULL).
//Start loading <ssys> elements
mxml_... | stackexchange/codereview |
I am looking for some design patterns or best practices for configuring web page fields.
My web page has a table, which is dynamically created by my API (Wicket).
Currently all the column names are hard coded in the java but I want to make it externalizable that way I can add/remove/modify fields without modifying ja... | stackexchange/codereview |
I'm testing that a function properly adds data to a db, but I want the test data removed after the test is finished. If the test fails, it quits at the failure and never gets the chance to delete the test rows.
It's the only test that hits the db, so I don't really want to do anything in the tearDown() method.
I'm tes... | stackexchange/codereview |
It seems I am missing something. But ever since .Net 4.0 came out I have been seeing reference to <%: %> syntax for ASP.NET. It seems like it is similar to <%= %> but clearly there is a reason for the new syntax. I tried google but searching <%: %> doesn't seem to return anything. What does the <%: %> syntax do? ... | stackexchange/codereview |
See the code/HTML snipped below. I have an anchor with an "href" which is inside a DIV with an "onclick" event handler. If I click the anchor, the browser opens a new tab and the "onclick" gets executed. In case the user clicked the anchor, I want to supress the execution of "onclick". Returning "false" in an onclick o... | stackexchange/codereview |
I'm trying to compile this project in Delphi 2010, which uses TNetSharingManager. I have imported the type library and tried compiling it, but unfortunately I'm getting an Access Violation in this function:
function TNetSharingManager.GetDefaultInterface: INetSharingManager;
begin
if FIntf = nil then
Connect;
... | stackexchange/codereview |
I'm trying to create a Chrome extension that is a replacement for the Delicious bookmarklet. I know there's already an extension that does it, but the problem with that extension is that after you bookmark a site, the popup window stays open (as opposed to using the bookmarklet, where the popup closes itself after subm... | stackexchange/codereview |
Here is what my code look like
CCSprite *sp = [CCSprite spriteWithFile:@"textureWithOneColorbackground.jpg"];
[self addChild:sp];
// Change the blending factors
[sp setBlendFunc:(ccBlendFunc){GL_ONE, GL_ONE}];
[sp setColor:ccBLACK];
The original texture color is (246,149,32)
The outcome now is (0, 0, 0)
According to... | stackexchange/codereview |
As briefly discussed in this post and in a comment by the same author in this post, it seems as though as of PDF version 1.5 (circa 2003), Adobe is encoding the file format in their native applications (distiller, acrobat, etc.), which renders most open-source libraries unable to parse those files. PDF's generated by ... | stackexchange/codereview |
Is there a way, in C#, to make a Picturebox semi-transparent so that you can actually see through the PictureBox and see what's behind it?
| stackexchange/codereview |
I am using CodeModel inside of a T4 template to generate some code based from an interface. I am able to get the interface methods, parameter names, and parameter types but I can't seem to be able to find out wither the parameter is an out or ref parameter.
http://msdn.microsoft.com/en-us/library/envdte.codeparameter.a... | stackexchange/codereview |
Is there anyway I could round-up numbers within a tuple to two decimal points,
from this:
('string 1', 1234.55555, 5.66666, 'string2')
to this:
('string 1', 1234.56, 5.67, 'string2')
Many thanks in advance.
| stackexchange/codereview |
I'm working on an app that has three table view controllers in a navigation stack. The root view controller and the second VC have toolbars, but I want to add a subview to the second view controller like this. (The color is just there for visualization.)
I want to add the view programmatically, since I haven't been ab... | stackexchange/codereview |
A call CreateIpForwardEntry returns ERROR_INVALID_PARAMETER. The PSDK documentation describes this error as:
The pRoute parameter is NULL,
SetIpForwardEntry is unable to read
from the memory pointed to by pRoute,
or one of the members of the
MIB_IPFORWARDROW structure is invalid.
I know for certain that pRout... | stackexchange/codereview |
Hello fellow stackoverflow members!
I'm very new to the C# language transfer from Java, Obj-C.
It looks pretty same as Java, but I have trouble issue in very simple thing.
I have created two individual class files, Class-A and Class-Human.
Specification for Class-A
it contains the static main method declared.And I've t... | stackexchange/codereview |
I am creating an iphone application in which I have to upload photos using different services.
I am successful in uploading photos with Twitpic & YFrog but not able to do with Plixi.
I am using Oauth ,as Twitter is not allowing Basic authentication.
If anyone has tried with Plixi ,please help me out!!
I have googled a... | stackexchange/codereview |
In my spare time am trying to learn javascript & jQuery. I generally experiment on a website. I want to achieve a faint shadow-effect when some element appears on the page. This gives -
This appears as if the element is above other elements on the page.
and makes this new element something important to look at.
How ... | stackexchange/codereview |
I need a list of towns/cities to be selected in a dropdown menu. I have found this website:
Link
But I require it in a php array, so that I can just loop through it to populate the dropdown. I have searched but cannot find one written in an array, and this one only exports for google earth.
Anyone got a script which do... | stackexchange/codereview |
I have to estimate a simultaneous equation system (regressions) with about 11 equations and 21 variables.
I estimated by 2SLS method in econometric and now I want to estimate it with genetic algorithm. Can any one help me on how to start? Is there any paper related to this(estimation of simultaneous equation with GA)? ... | stackexchange/codereview |
I have an iPhone app and upgraded the target for iPad in Xcode. But now, the app launches in the upper left corner of the iPad very small only. I want to scale it up to the iPad screen but then use the retina display graphics.
There's a lot of code that positions the views on screen. Is there an simple way to let an iP... | stackexchange/codereview |
I have 1 IP number 83.87.163.224 and I have 4 multiple domainnames:
www.alurelingerie.nl - www.aaamsterdam.info - www.webshopdesigners.nl - www.rtps.eu
Every domeinname must redirect to a sub dir on my Apache server. I tried to work with VirtualHost *:80 but I doesn't work... It doens't redirect to the correct subdir..... | stackexchange/codereview |
at some point after I installed Ruby on rails, my terminal on Snow Leopard began executing the configuration (?) procedure for Ruby.
Last login: Thu Oct 14 21:39:51 on ttys002
/Users/Adam/.rvm/rubies/ruby-1.9.2-p0, this may take a while depending on your cpu(s)...
ruby-1.9.2-p0 - #fetching
ruby-1.9.2-p0 - #extracted ... | stackexchange/codereview |
I have the following code to send as audio RTP packet some DTMF digits:
int count=0
for(int j = 0; j < samples; j++)
{
waves = 0;
// dtmf tone 1
waves += sin( ((PI * 2.0f / 8000) * 697.0f) * count );
waves += sin( ((PI * 2.0f / 8000) * 1209.0f) * count);
waves *= 8191.0f; //amplitu... | stackexchange/codereview |
I notice that javascript have several way to set and get attribute with an element.
I am not sure is there any diffrence between them. especially, is there cross browser problems.
| stackexchange/codereview |
imagine you have 2 texfiles (let's say 500kB - 3 MB large): the first is original, the second is the update of this original. How can I find out, what was changed (inserted, deleted) and where the changes took place (in the update file in comparison to original)?
Is there any tool or library somewhere?
Resides this f... | stackexchange/codereview |
I have a function that contains two for loops, and I'm using a variable called count as the counter. I've chosen to recycle the name as the the first loop will finish it's execution completely before the second one begins, so there is no chance of the counters interfering with each other. The G++ compiler has taken ex... | stackexchange/codereview |
I have to get 2 numbers and an operation from a jsp file, using a java bean. After submitting the numbers, take them to a servlet from that Java Bean and return an result of them. Problem is that the java bean fields are never completed with the numbers written in textboxes.
So, I have, index.jsp's body:
<html>
<head>
... | stackexchange/codereview |
I have an Eclipse plugin which I've written using the RAP 1.4m2 target. It runs fine using the Eclipse launcher and Equinox 3.7 (which is the default in Eclipse 3.6) . I have also configured my GlassFish 3 server to use Equinox 3.7 for OSGI. I haven't been able to get my bundle to start in this environment, however. Wh... | stackexchange/codereview |
I've come across a rather charming bug that I'm trying to wrap my head around.
I feel like I've seen this before, but this time I want to understand why this is happening.
I have:
int i;
int debug = 0;
for(i = 0; i < buf_end; i++) {
do_some_buffer_work();
if(something_is_true()) {
do_something_importan... | stackexchange/codereview |
This might sound like a strange question, but bear with me...
I have a dictionary in Python with values like so:
'B': 23.6
'D': 0.6
'F': 35.9
'H': 35.9
I need to do an if-else with these values to do different things depending which one is > 30. The code I have at the moment is along the lines of:
if angles['B'] > 30:... | stackexchange/codereview |
I have acquired a PHP application that has a system class encoded with Ion Cube PHP Encoder.
I copied the files and moved them to a new server, a development one. The first thing that got me was the application was to only work on the domain it was on, so obviously not from localhost or any other server.
I'm guessing s... | stackexchange/codereview |
I want to play Youtube video within my application with url.I tried the following code, but it doesn't work.
NSURL *url = [NSURL URLWithString:@"http://www.youtube.com/v/pGqraZN5U0k&"];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:url];
if (moviePlayer)
{
... | stackexchange/codereview |
I can't figure out why m1 is apparently memoized while m2 is not in the following:
m1 = ((filter odd [1..]) !!)
m2 n = ((filter odd [1..]) !! n)
m1 10000000 takes about 1.5 seconds on the first call, and a fraction of that on subsequent calls (presumably it caches the list), whereas m2 10000000 always takes t... | stackexchange/codereview |
I have a title on a blog goes like this Main Idea, key term, key term, keyterm
I want the main idea and the key terms to have a different font sizes. First thing that came to mind was to search for the first comma and the end of the string and replace that chunk with the same thing but surrounded by span tags with a cl... | stackexchange/codereview |
I'm converting one of my old Perl programs to PHP, but having trouble with PHP's string handling in comparison to Perl.
In Perl, if I wanted to find out if $string contained this, that or the_other I could use:
if ($string =~ /this|that|the_other/){do something here}
Is there an equivalent in PHP?
| stackexchange/codereview |
I am trying to debug a j2ee application in tomcat using Intellij Idea in an OS X 10.6.4 system. I need it specifically to run over a 1.5 JVM and 1.5 JDK so that the jgroups-all component doesn't crash the application through this error:
class: java.lang.ClassNotFoundException: [Lorg.jgroups.Address;
at com.opensym... | stackexchange/codereview |
helper_method is straightforward: it makes some or all of the controller's methods available to the view.
What is helper? Is it the other way around, i.e., it imports helper methods into a file or a module? (Maybe the name helper and helper_method are alike. They may rather instead be share_methods_with_view and impor... | stackexchange/codereview |
i have created an universal application using xcode 3.2.4. in my build setting i have set "target device" as 3.1.2. This application is working fine with iPhone 3G, iPhone 4 and iPod touch 3G. But i am facing "Unsigned" error if i try to install my universal application into my 2G iPhone which have iOS 3.1.3 I have inc... | stackexchange/codereview |
How to shorten the float result I got? I only need 2 digits after the dot. Sorry I really don't know how to explain this better in English...
Thanks
| stackexchange/codereview |
I used to think that in C99, even if the side-effects of functions f and g interfered, and although the expression f() + g() does not contain a sequence point, f and g would contain some, so the behavior would be unspecified: either f() would be called before g(), or g() before f().
I am no longer so sure. What if the ... | stackexchange/codereview |
I'm thinking of something like glib, but possibly a slim version with a minimal foot print. It would need basic utilities such as linked lists, vectors and hash tables. It should also have a minimal runtime footprint.
| stackexchange/codereview |
I want to make a deep copy method. I seeked help here the other day with this issue, but that was for a copy constructor. Now I need a regular method. I have the code created (nonworking), but I'm just not understanding it completely.
public GhostList deepCopy(){
int length=this.getLength();
GhostList j... | stackexchange/codereview |
Following regular manytomany queryset logic gives me errors. I guess since its related to self, I might need to do some extra magic, but i can't figure out what magic.
model:
class Entry(models.Model):
title = models.CharField(max_length=100, verbose_name='title')
related = models.ManyToManyField('sel... | stackexchange/codereview |
First you should be aware that I am a new cake convert.
Ok, from what I can tell when a user try's to visit a url they do not have sufficient privileges for, the ACL redirects them to "/" if Auth has loged them in, and login if the user is not already loged in. Also Auth remembers the requested page and on a successful... | stackexchange/codereview |
I'm trying to write a software plug-in that embeds Python. On Windows the plug-in is technically a DLL (this may be relevant). The Python Windows FAQ says:
1.Do not build Python into your .exe file directly. On Windows, Python must be a DLL to handle importing modules that are themselves DLL’s. (This is the first key ... | stackexchange/codereview |
I've got a library that can export the contents of a VCL grid to XLS format. (Not sure which version of XLS format; that's part of the problem.) It usually works just fine, but in some cases, when I open an XLS that was exported by this library in Excel 2007, it says "Excel found unreadable content in '[myfile.xls]'.... | stackexchange/codereview |
i know this a frequently asked question, but i cant find the solution. I hope u can help me.
i try ti bind imagebutton controls into a gridview.
i want to handle the data for the row where the button was clicked
my aspx file looks like
<asp:ImageButton ID="Button1"
runat="server"
... | stackexchange/codereview |
I am migrating from Symbian to Android. For symbian based nokia mobile phones, the support for accelerometer sensing using java is by the Mobile Sensor API (JSR 256) which is provided in the technical specifications of every nokia mobile phone that supports it.
However, for Android based "HTC Desire" mobile phone, I am... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.