instruction_seed stringlengths 1 35.8k | _source stringclasses 1
value |
|---|---|
I am a little confused as to the steps of reading a file into buffer gradually.
from the MSDN docs
public abstract int Read(
byte[] buffer,
int offset,
int count
)
source from C# Examples
FileStream fileStream = new FileStream(filePath, FileMode.Open, FileAccess.Read);
try
{
int length = (int)fileStre... | stackexchange/codereview |
I am trying to select existing images from a directory. The image files are being renamed dynamically when they are created but the format they currently have cannot be changed. This is an example.
client_2010_10_23_001.jpg
Essentially, the images are names according to upload time and incremented. Perhaps split th... | stackexchange/codereview |
I am trying to do something that should be simple, but think I am just not seeing the answer.
I have a List with several strings.
I would like to bind it to a DevExpress DXGrid.
It appears that the grid is showing the correct number of row, but not displaying my text.
I am using the MVVm patern and have seperated my Vi... | stackexchange/codereview |
I'm trying to implement a smudge tool like one you would find in Gimp or Photoshop. I've tried lots of variations but they all have problems. The basic method I've tried for smudging from position P1 to P2 on an image is:
Copy a rectangle the size of the current brush from P1.
Draw this rectangle at P2 with a low opac... | stackexchange/codereview |
This plugin has been giving me hell! :/ I finally got it to work, but now when I try and position the select box it won't move! Well... I got the box to move but the dropdown menu stays there. It is really annoying!
1000 internetz to someone who can help me:/
elektrikhost.com is the site, look where the domain search i... | stackexchange/codereview |
I have a Date/Time string from facebook graph that i need to convert to a readable date time.
2010-09-17T04:07:36+0000
How can I format it to GMT+8 using php to look like this below.
17 September at 12:07
| stackexchange/codereview |
I'd like to use Javascript (not jquery) to access all items in a <ul> list and remove the active class from everything except my chosen menu item.
Here is the list:
<ul id='flash-menu'>
<li id="menu1" class='something active'>item 1</li>
<li id="menu2" class='somethingelse'>item 2</li>
<li id="menu3" class='somethinge... | stackexchange/codereview |
I've implemented the Game Center into my game. However, one thing bothers me which is how to detect when the Game Center launches the popup to sign in. If the user is quick with their fingers and the network is a bit slow, they are able to start a game before the popup starts, which is fine, but I want to pause the gam... | stackexchange/codereview |
This use to work, I can't tell what I broke... but I suspect it is something to do with the WMAAppManifest / Guid...
When I attempt to Deply/Debug to the WP7 Emulator from VS I get the following popup message: "The application could not be launched for debugging. Verify that the application is installed on the target d... | stackexchange/codereview |
Just curious, Is there or has anyone ever come across a heap / buffer overflow exception in C#?
| stackexchange/codereview |
Apple sometimes uses the Bitwise-Shift operator in their enum definitions. For example, in the CGDirectDisplay.h file which is part of Core Graphics:
enum {
kCGDisplayBeginConfigurationFlag = (1 << 0),
kCGDisplayMovedFlag = (1 << 1),
kCGDisplaySetMainFlag = (1 << 2),
kCGDisplaySetModeFlag ... | stackexchange/codereview |
Is there a PL/SQL function or general technique to quote unqualified identifiers (e.g., mytable) for use in a dynamically constructed SQL query? How about partially or fully qualified identifiers (a.b@c)?
Consider this contrived example:
CREATE PROCEDURE by_the_numbers(COL_NAME VARCHAR, INTVAL INTEGER) IS
...
BEGIN
... | stackexchange/codereview |
import java.lang.reflect.Method;
public class ClassLoadingTester
{
public static void main(String a[]){
try{
ClassLoader loader=new CustomClassLoader();
Class c=loader.loadClass("AddClass");
loader=null;
Object o=c.newInstance();
Method m=c.getMet... | stackexchange/codereview |
Following phaylon's answer to "How can I flexibly add data to Moose objects?", suppose I have the following Moose attribute:
has custom_fields => (
traits => [qw( Hash )],
isa => 'HashRef',
builder => '_build_custom_fields',
handles => {
custom_field => 'accessor',
... | stackexchange/codereview |
I have a Perl script. If it was called direct from the command line, I want to run sub main.
If it was called using require, I want to do nothing and wait for the caller script to call sub job at it's leisure.
| stackexchange/codereview |
In PostgreSQL, what's the simplest way to enforce more than just existence on a foreign key?
For example, given the following tables:
create table "bar"
(
bar_id serial primary key,
status boolean not null
)
create table "foo"
(
foo_id serial primary key,
bar_id integer references "bar"
... | stackexchange/codereview |
I found an elegant solution for that problem here: xsl for-each: add code block every n rows?
I'd like to understand the xslt code and I was wondering if you could help me to understand it by taking a look at the link provided above.
Basically there are 3 <xsl:template>. To me the first 2 ones are enough to achieve th... | stackexchange/codereview |
I use Hudson to do continuous integration on some maven projects. For these projects, I would like to have the pom description used as content for the Hudson job description. is there a solution to automatically have this configured ?
| stackexchange/codereview |
I'm using jQuery mobile 1 alpha 1.
To create a text input for instance in jQuery mobile you add to your HTML
<div data-role='fieldcontain'>
<label for='name'>Text Input:</label>
<input type='text' name='name' id='name' value='' />
</div>
Supposing you assign the above HTML code to a variable $textinput and type $("#s... | stackexchange/codereview |
Why does this script try to install the jre when it doesn't need to? I verified that C:\Windows\System32\java.exe does in fact exist, but this script doesn't see it. The script is targeting XP, Vista, 32 bit, and 64 bit. The script !includes x64.nsh. The reason for the first ElseIf is that the javaw.exe is sometimes in... | stackexchange/codereview |
Hi i need a javascript regex for a name field in my html form. The user should be able to enter multiple names seperated with space. And first character of all names should be a capital. No numbers, special chars. etc.
thank you.
| stackexchange/codereview |
Does anyone know of a flash projector 'project' or 'framework' that uses a new flashPlayer for each window?
We've used mProjector, which works well to a point, but I'm very disappointed in the fileIO patterns they use. It is very buggy with regard to reading and writing files.
mdm zinc uses multiple windows, but it is... | stackexchange/codereview |
How do I make WPF TextBox acted as a compact form?
This means that "label text" inside TextBox is hiding on the click or when there is "real text".
See working prototype
| stackexchange/codereview |
Why can't a C++ compiler recognize that g() and b are inherited members of Superclass as seen in this code:
template<typename T> struct Superclass {
protected:
int b;
void g() {}
};
template<typename T> struct Subclass : public Superclass<T> {
void f() {
g(); // compiler error: uncategorized
b = 3; // c... | stackexchange/codereview |
We have a commercial application that we build on 32-bit CentOS 4.8 (equivalent to Red Hat Enterprise Linux (RHEL) 4 update 8.
The default gcc compiler is at 3.4.6
We are able to run our binary on both 32- and 64-bit CentOS/RHEL 4 and 5 including completely un-updated RHEL 4.
THE QUESTION: If we update to a newer gcc 4... | stackexchange/codereview |
i've written written a code for counting each byte frequency in binary file. Using Linq. Code seem to slow when performing the Linq expression. Its seem hard to implement Parallelism on this kind of logic. To build the freq table over 475MB it took approx 1 mins.
class Program
{
static void Main(string[] args)
... | stackexchange/codereview |
I'm working on a small application in C# which performs speech recognition using Microsoft Speech API.
I need to add some non-english words to grammar, whose pronunciation don't obey english pronunciation rules.
Is it possible specify their pronunciation using International Phonetic Alphabet ?
If yes, which metho... | stackexchange/codereview |
I need to specify, that my member property will return something like dynamic? in C#. Is possible use dynamic data type in F#?
type Data =
| Text of string
| Number of string
| Date of string
with
member x.Value
with get() : dynamic option =
match x with
| Text(valu... | stackexchange/codereview |
I am looking for a free hex editor class/control for C#. Could you recommend a good one?
PS: The only requirement is the control/class should support view/edit file as hex and should be as simple as possible if could.
To be more specific, there should be a interface support loadFile/createFile/saveFile.
I have a sma... | stackexchange/codereview |
10-20 18:40:02.097: ERROR/AndroidRuntime(21851): Uncaught handler: thread pool-1- thread-1 exiting due to uncaught exception
10-20 18:40:02.102: ERROR/AndroidRuntime(21851): java.lang.ExceptionInInitializerError
10-20 18:40:02.102: ERROR/AndroidRuntime(21851): at com.google.android.voicesearch.RecognitionActi... | stackexchange/codereview |
Is there anyway to store image data in X server memory so that rendering of images, (for example in scrolling), is faster and so that round trips to x client can be reduced?
| stackexchange/codereview |
I am having to use the Google AdWords API for a project, I have large chunks working but I am getting frustrated with the documentation. For example I know that a TextAd headline field has a limit of 25 characters and can't have things like ! and ? in it. The documentation makes no mention of it though:
http://code.goo... | stackexchange/codereview |
Is it possible to run cprofile on a mult-threaded python program that forks itself into a daemon process? I know you can make it work on multi thread, but I haven't seen anything on profiling a daemon.
| stackexchange/codereview |
I created a WCF service and one of its methods connects to database to perform some task. when I call the WCF service method from the client (website or console app), I get a login failed error ("login failed", login is from an untrusted domain"). I can connect to the database from the website successfully, but when I ... | stackexchange/codereview |
In order to diagnose a tricky memory corruption bug (memory is getting randomly overwritten) I thought about utilizing Electric Fence + some custom mprotect calls to ensure that the corrupted data structures are only writable when I want them to be written to (and I immediately get a SIGSEGV when they are attempted to ... | stackexchange/codereview |
This is NOT a Programming doubt!
I am going to write a DLL for some application.
I have two options to choose from: C++ or C# In which language I should write DLL?
Does that affects functionality?
I am a completely newbie and Unaware of both C++ and C# (but Some Small programs in C#).
What are Pros and Cons about Writt... | stackexchange/codereview |
I'm a beginner developing apps for Iphone and was wondering if is possible to do the following:
I have an image .png wich is a simple draw of a figure bounded with black edges and empty areas. I wonder if there is a method or a mode to fill the closed empty areas of the image.
Its like as the pot of MSpaint filling.
I... | stackexchange/codereview |
I am developing an AIR app. In the main app I have a module loader 'mainModuleLoader'. I am creating modules as separate mxml files using the <mx:Module> tag. And I am loading such a module in mainModuleLoader dynamically using actionscript. Everything works fine.
For the module which I am creating as mxml files, I wou... | stackexchange/codereview |
I have an iterator (actually a Source.getLines) that's reading an infinite stream of data from a URL. Occasionally the iterator throws a java.io.IOException when there is a connection problem. In such situations, I need to re-connect and re-start the iterator. I want this to be seamless so that the iterator just looks ... | stackexchange/codereview |
How can I shrink a mercurial repository by removing old changesets?
| stackexchange/codereview |
Consider I have defined the following models:
class Tag(models.Model):
name = models.CharField(max_length=20)
class Entry(models.Model):
title = models.CharField(max_length=100)
date = models.DateField()
tags = models.ManyToManyField(Tag)
and the following model form:
class EntryForm(forms.ModelForm):
tags ... | stackexchange/codereview |
Background: I've implemented a stochastic algorithm that requires random ordering for best convergence. Doing so obviously destroys memory locality, however. I've found that by prefetching the next iteration's data, the performance drop is minimized.
I can prefetch n cache lines using _mm_prefetch in a simple, mostly... | stackexchange/codereview |
From time to time I have to add a new value to a enum type in my project.
public enum Day {
SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY,
FILENOTFOUND //this one is new one
}
What I would like is to have a compile time error for every switch I have that is not treating the new value, like this ... | stackexchange/codereview |
I am attempting to emulate a (no longer existing) mainframe report generator in an Access 2003 or Access 2010 environment. The data it generates must match exactly with paper reports from the early 70s. Unfortunately, the earliest years data were run on hardware that used IBM floating point representation instead of IE... | stackexchange/codereview |
I need to detect the 4G capability of the device.
How can I do that?
Thanks for any hints.
| stackexchange/codereview |
I came across these two services separately running in Services.msc -
SQL Server (SQLEXPRESS) - started+Automatic
SQL Server Agent (SQLEXPRESS) - Disabled
Can you please guide why do we need SQL Server Agent (SQLEXPRESS)?
Thank you!
| stackexchange/codereview |
I need to imlement in cocoa, a design that relies on multiple threads.
I started at the CoreFoundation level - I created a CFMessagePort and attached it to the CFRunLoop, but it was very inconvenient as (unlike on other platforms) it needs to have a (systemwide) unique name, and CFMessagePortSendRequest does not proces... | stackexchange/codereview |
I am writing an iPad application (os 3.2) which uses MKMapKit to display moving annotations on the map. Information is retrieved via XML from three different sources and collated together in my Annotation class and then displayed on the Map. This information is coming in every 5 seconds. I had this working fine for ... | stackexchange/codereview |
Is it possible to find memory usage of object in java within application?
I want to have object memory usage to be part of debug output when application runs.
I don't want to connect using external application to VM.
I have a problem that few classes eats up huge amount of memory and causes memory
problems, my app gets... | stackexchange/codereview |
I have performed statistical matching in R. For each case "VAR2002", I have found one or more statistical twin(s) "VAR2004".
In R, I have a data frame "TwinWeight" like this:
VAR2002 VAR2004 Weight
1 2955 1.00000000
2 3961 1.00000000
3 2913 0.33333333
3 ... | stackexchange/codereview |
Hello all
I have tree with nodes. The nodes are constructed by TCP API request response value.
To make less requests I'd like to represent the tree in a cache structure, that each time when TCP request are about to be invoked
it will check the cache first.
What is the best way to do it? I mean the tree cache part, in m... | stackexchange/codereview |
I have 6 tables in an SQL Server 2000 database. The XML contains a similar schema. What I want is to update the records in the database and append the new entries. I am a bit new to this.
| stackexchange/codereview |
When an 8086 or 8088 first powers up, what address does the processor begin executing at? I know the Z80 starts at 0, and the 6809 looks to FFFF for an address to start at, but I have often wondered how the x86 starts off.
EDIT:
This is assuming no BIOS intervention. I.E. if I had my own EEPROM to boot from, where shou... | stackexchange/codereview |
I have a QGraphicsItem (actually, a QDeclarativeItem) and I want it to take up the entire visible space of the QGraphicsView (again, its actually the derived QDeclarativeView class) to which it was added. Normally, you can use QDeclarativeView::setResizeMode(QDeclarativeView::SizeRootObjectToView) and QDeclarativeView ... | stackexchange/codereview |
I am designing a .Net library that exposes methods all of which can be tagged only as helper methods. Takes in PersonID, RoleID etc returns calculated salary, Salary for the entire year, Bonus etc.
Is it ok to design just a static class that has methods like GetSalary(), GetBonus(), GetHistoricSalary().
Or should I ha... | stackexchange/codereview |
I would like to install and use latest version (1.1.1) of the libpcap on CentOS 5.5 machine.
I configured, compiled and installed new libpcap library by:
[dima@localhost libpcap-1.1.1]$ ./configure
[dima@localhost libpcap-1.1.1]$ make
[dima@localhost libpcap-1.1.1]$ sudo make install
But when I'm trying to link with l... | stackexchange/codereview |
i want to write my own download manager using c++(qt4) but i have no idea about that so
please suggest me from where should i start if you know any good tutorial or link the please
post it.
i also want to implement the pause/resume and multiple download features also.
i already know that there is a long list of downl... | stackexchange/codereview |
I'm developing a simple application which is supposed to simply copy another existing executable file and change it's icon. Is this possible to achieve with .NET? I'm asking about icon changing, copying is not a problem.
I have no clues on how and where to start. I've searched on Google, but found only unmanaged C++ co... | stackexchange/codereview |
I'm creating a slider bar, which will be a subclass of JSlider, as part of a logging gui. What I'd like to do is be able to draw some items above the slider bar (e.g. a "volume" display, indicating how much logging info will be spit out by a particular setting). I have overridden the paintComponent() method, but I'm ... | stackexchange/codereview |
Sorry if it's a novice question - I want to parse something defined by
Exp ::= Mandatory_Part Optional_Part0 Optional_Part1
I thought I could do this:
proc::Parser String
proc = do {
;str<-parserMandatoryPart
;str0<-optional(parserOptionalPart0) --(1)
;str1<-optional(parserOptionalPart1) --(2)
;... | stackexchange/codereview |
i'm using asp + asppdf (a component for creating pdf files).
asppdf has a method called SaveHTTP which causes the browser to open the "save-as" dialog for saving the pdf. so the component is sending the pdf as binary data to the browser.
my question: i'd like to load the pdf via xmlhttp + then open that dialog.
loadin... | stackexchange/codereview |
I have a big Joomla website that was moved from .com to .eu domain.
The sites are on one web server.
On the old website there are a lot of links that point directly to oldwebsite.com/somethinghere.
Is there a way with Htaccess file in the old domains folder to redirect
from oldwebsite.com/somethinhere to newwebsite.eu... | stackexchange/codereview |
Has anyone tried using Eloquera DB on WP7? Besides the question of whether it actually works under WP7, how is the performance (if it actually works)? Are there alrernative object-based DBs that anyone can recommend for use with WP7 applications?
| stackexchange/codereview |
I'm attempting to construct a function that will perform a sanity check on the user's response to a number of questions, each of which would ideally be a non-zero integer. How can I construct a function that would be able to accept a parameter of any data type, but only have a single parameter? For example:
bool Sanity... | stackexchange/codereview |
I used to use FeedSmith FeedBurner Plugin for my wordpress. Today, suddenly, my feeds are giving following errors under each Post Title. I recently upgrade to WP 3.0.1 but has been a week.
Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'Array' was giv... | stackexchange/codereview |
I have a MySQL table that looks like this:
Table: Designer
id: integer
name: String
gallery: string
The gallery row can contain a string value like 23,36,45
Now I want to do a query similar to this:
SELECT * FROM Designer WHERE gallery = '36'
I know I kan use LIKE, but that is not precices enough. That co... | stackexchange/codereview |
from Peepcode tutorial 'Meet Sinatra' with shotgun, returns:
undefined methoddefault for Rack::Handler:Module (NoMethodError)
(http://hivelogic.com/articles/meet-sinatra/)
| stackexchange/codereview |
I have about 100 events in one year on my google calendar.
I also have users registered on my webiste.
I want that every day my system checks for upcoming events and send mail to useers for events happenning tomorrow.
I am thinking of setting up cron job that runs every day.
But how can i get the events from Google Cal... | stackexchange/codereview |
It is hackish and myopic to write a new XML schema for a common data situation without considering existing standard schemas. It would be silly, for instance, to write a schema for recording internet bookmarks without considering XBEL.
Yet while a quick search yeilds hundreds of examples of how to write your own DTD, ... | stackexchange/codereview |
The good:
so, I have this binary data file (size - exactly 640631 bytes), and I'm trying to make Java read it.
I have two interchangeable classes implemented as layers for reading that data. One of them uses RandomAccessFile, which works great and all.
The bad:
Another one (the one this question is mostly about) tries ... | stackexchange/codereview |
I have a ListBox which I am using to display the results of various searches. Those searches can occur on many different types of objects and I'm having a bit of trouble getting it to work in all circumstances.
Most of the time I can just set ListBox.ItemSource = List and it's works fine if I also set the DisplayMembe... | stackexchange/codereview |
Lets say I have the following in C
struct address{
char name;
int id;
char address;
};
struct address adrs[40]; //Create arbitrary array of the structure. 40 is example
adrs[0].name = 'a';
id[0] = 1;
...
What is the equivalent way of defining and creating array of a user defined structure.
Th... | stackexchange/codereview |
I'm using webforms ASP.NET, with masterpages. I want to add a LANG attribute to the <title> tag. ASP.NET automatically generates a title tag. I've tried adding my own tag with an ID and runat="server", like this:
<title id="titleBlock" runat="server"></title>
When doing this, I can set an attribute like the follow... | stackexchange/codereview |
Imagine, if you will, a 10x10x10 cube made out of 1x1x1 bricks. Each brick must be accessable by an x,y,z coordinate. For each brick I also need to store a list of names of who own that 'brick'.
As efficiency is an absolute must, I came up with the following idea - A 3d array of vectors.
note- I have made a class which... | stackexchange/codereview |
I have created a custom UITableViewCell where I add a bunch of buttons loaded dynamically to its contentView. These display properly.
When the data which controls what buttons are loaded change and I call reloadData I can see that prepareForReuse is called:
- (void) prepareForReuse {
NSLog(@"prep for reuse");
[... | stackexchange/codereview |
We recently got a localization file the contains Portuguese translations of all the string in our java app. The file they gave me was a .csv file and I use file maker to create .tab file which is what we need for our purposes. Unfortunately none of the accents seem to work. For example the string vocÍ in our localiz... | stackexchange/codereview |
I'm trying to upload image files. When uploading files of sizes of about 40 to 200kb everything is fine. But when I try to upload a file of size 459kb sometimes it gets uploaded and sometimes OutOfMemoryError is shown. I don't think that file size is very large for this error to be thrown. I'm using resin. Is it possib... | stackexchange/codereview |
I wish to use html5 to play 2 different videos back to back. Is there a way to do this within the html5 or do I have to take a javascript route & if so can anyone make any suggestions
Thanks
| stackexchange/codereview |
I have a FlowDocument (inside a RichTextBox) that contains UIElement controls such as CheckBoxes. I need the user to be able to click on the CheckBox to select it to change the controls properties such as label, background color etc.
The problem I have is that when I click it it only checks, or unchecks the CheckBox as... | stackexchange/codereview |
I'm trying to use Location services for the BB, but I need backwards support to OS 4.5xx.
In 4.5 API doc: Locator.geocode(AddressInfo address, Coordinates startCoords) returns an Enumeration.
http://www.blackberry.com/developers/docs/4.6.0api/net/rim/device/api/lbs/Locator.html
In 5.0 API doc: Locator.geocode(AddressIn... | stackexchange/codereview |
How do I get my byte array to a string that handles the Swedish letters å ä ö?
I do this at the moment:
NSString *hexString = [NSString stringWithFormat:@"%c", resData[i]];
(resData contains ascii characters)
But when I use the hexString in my output label I get jibberish for all non English chars.
How can I make a sel... | stackexchange/codereview |
Example:
IF OBJECT_ID('T1') IS NOT NULL
DROP TABLE T1;
GO
CREATE TABLE T1 (id int PRIMARY KEY, timestamp);
GO
INSERT INTO T1(id) VALUES (1);
GO
declare @v timestamp;
INSERT INTO T1(id) OUTPUT inserted.timestamp as v VALUES (10);
select @v
How can I get the inserted.timestamp into variable @v?
| stackexchange/codereview |
I have a page that has a position:fixed div at the top:0px and bottom:0px (making a header and footer). When either the header or footer has "focus", I am able to use PageDown, PageUp, Home, End, and Spacebar to scroll the page. But if I click within the main "content" div and try to use those keys, it no longer works.... | stackexchange/codereview |
Making a simple Java code for Blackjack and need some advice.
OK I am trying to make this loop and stop when I say "stay"
any suggestions??
while ( name4.equals("stay") )
{
System.out.print( "Would you like to hit or stay? " );
String name4 = keyboard.next();
total2 = total+number4;
number4 = rand... | stackexchange/codereview |
I'm trying to prevent a custom tooltip from disappearing. I've tried three runs at this, borrowing from the usual suspects: Peter Dehann, MonkeyPatch and others. As you can see from the code below I'd like to stay within the tool tip paradigm and not go to popups.
Can anyone suggest a way to persist a tooltip? The... | stackexchange/codereview |
I'm having problem on using soap
I get an error:
Fault code: soap:Server
Fault string: Server was unable to process request. ---> ERROR: Could not authenticate user.
How to fix this? I dont know why this error appears. the last time i check my code its ok but now i got that error.
thanks
| stackexchange/codereview |
i am writing a screen capture application in Qt4 with c++. I have a problem when tuning on dual screens. I am unable to get an image with the second screen. I tried a c# application and that will grab all the desktops in one image and i could extract from there each screen desktop image.
Here is the c# code
using S... | stackexchange/codereview |
I'm trying to use CAGradientLayer and getting an unhelpful compile error. Can't figure out whats wrong. All I'm doing so far is:
CAGradientLayer *gradient = [CAGradientLayer layer];
I've imported <QuartzCore/QuartzCore.h> and I'm getting the warning >
_OBJC_CLASS_$CAGradientLayer referenced from: objc-class-ref-to-CA... | stackexchange/codereview |
I am having trouble compile an applicant again the Florist library. Turns out I have a larger issue with florist (same error results from both newest 2010 Adacore GPL download and 2009 version in Debian's archive). Florist has some low-level issues but when I look through the generated files it seems to be including e... | stackexchange/codereview |
I am creating a store with ASP.NET 4.0 MVC and C# and am fairly new to it.
I have come to creating the View page that displays the products within a certain category.
On the specific category page I want to have the product list and also want the category name with its relevant description taken from the database.
Curr... | stackexchange/codereview |
I am having trouble with the following script:
After setting my $pageurl variable it loses its value for the first time I try to call it and then it regains its value the second time I call it.
In the beginning IF structure I set the variable $pageurl to the page variable in my querystring. This works fine, but later ... | stackexchange/codereview |
We need email server for our .net application below are requirements, all options i know of kind of blackbox which sends and receives email for accounts, working it through api is not much intended.
Basic requirement is send email + check status of email every 5 min to verify has it made it through.
Service requirement... | stackexchange/codereview |
My app will create an object. That object will continuously run one of its method, let's say batch processing pictures.
If its method is running, and I release the object and it is dealloced, will iOs automatically deal with the method of the object? for example, automatically stop running the method of the object and... | stackexchange/codereview |
I want to format a number using ToString(CultureInfo.InvariantCulture) and also to 5 decimal places, which can be done using ToString("N5"). How can I do both together?
| stackexchange/codereview |
I need to sync the WebDB of an extension I'm building, and was thinking about using a GoogleDocs spreadsheet as storage, so the extension should be able to read/write the "file" to keep the sync. (each line of the spreadsheet would be a DB record )
Is this feasible, or there are perhaps better solutions?
| stackexchange/codereview |
I'm a total noob on Wix (and installers in general) so please forgive me.
My goal is to be able to traverse a directory, search for all, say, *.exe files and copy them to a predefined destination folder. Thing is, I don't know what these files are and their names so I can't type them out one by one in the wxs file... h... | stackexchange/codereview |
Hey guys,
I'm new to jQuery/js and having a hard time figuring this out.
There are two fields in a form of mine i want to do some calculations with, what i tried is this:
jQuery.fn.calculateit = function(){
var one = $("#one").val();
var two = $("#two").val();
//total
var total = one + two;
$("#t... | stackexchange/codereview |
Unfortunately, I've never had a senior developper or mentor to show me some of the best practices. So I develop sites (php/mysql) on my Windows machine with WAMP, I test in hidden (password restricted) folders on the production server and finally move sites to production folder.
I would like to have a more fluid/practi... | stackexchange/codereview |
Installed GitWeb and CGit to tryout web interfaces to my Git/Gitosis repositories. Runing on Fedora 13 and my Gitosis is working great. I installed gitweb and cgit and setup the configs to point to my repositories but neither gitweb or cgi will list the repositories. Gitweb shows the gitweb page but shows:
404 - ... | stackexchange/codereview |
>>> myList[1]
'from form'
>>> myList[1].append(s)
Traceback (most recent call last):
File "<pyshell#144>", line 1, in <module>
myList[1].append(s)
AttributeError: 'str' object has no attribute 'append'
>>>
Why is myList[1] considered a 'str' object? mList[1] returns the first item in the list 'from form' but I ... | stackexchange/codereview |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.