instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In UITableView, I want to delete a row and remove that row on database, but my query of sqlite don't works. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { U...
stackexchange/codereview
I have a file that is supposed to be \n\n delimited, but of course its not. Some of the lines contains spaces after the \n\n. How do I find a remove all spaces after a \n\n that starts a new line but that is before any other character. Sample: \n\nData,Mo re,Data \n\n Some,Li st,Of \n\n\nOther,St uff \n\n\n\n Thi...
stackexchange/codereview
If I pass the derived class testA a PlaceHolder that contains a Hyperlink, with a url that starts with a tilde, it resolves it correctly. However, when I pass testB (identical apart from it inherits from System.Web.UI.UserControl) the same PlaceHolder It renders it literally (doesn't transform / resolve the '~')...
stackexchange/codereview
I'm wondering if my implementation should expect that reentrant mutex's are supported or not. The code is supposed to portable/platform independent. I'm wondering if mutex recursion is common enough that it shouldn't be a concern.
stackexchange/codereview
Interested to know how people usually check to see if Tomcat is running on a Unix environment. I either check that the process is running using ps -ef | grep java ps -ef | grep logging or i check that the port number is active netstat -a | grep 8080 is there a better way of checking that Tomcat is running? The abov...
stackexchange/codereview
Consider a WPF Rectangle filled with some ImageBrush. Now consider an arbitrary axis through rectangle center. I want to apply a 3D-like rotation around the axis employing only 2D transformations. Basically, I want to achieve perspective with "closer" edge of rectangle to appear larger than the "far" edge which should ...
stackexchange/codereview
I got some help on here last night about getting an the index of a collection. Here is the code I'm using. System.Text.StringBuilder sb = new System.Text.StringBuilder(); for (int i = 1; i < _prod.ActiveProductItemCollection.Count; i++) { sb.Append("<script type='t...
stackexchange/codereview
I downloaded the XML Schema for XML Schemas at http://www.w3.org/2001/XMLSchema.xsd. I then used XSD.EXE to create a class from the downloaded file. I called the class schema.cs. I then executed this line of code: XmlSerializer serializer = new XmlSerializer(typeof(schema)); and got this error: The XML element 'annot...
stackexchange/codereview
What I mean is, in the code below: class base { } class derived extends base { } class WTF { public void func(List<base> list) { } public void tryit() { func(new List<base>()); // ok func(new List<derived>()); // not ok } } But if the function simply took an object of base, it co...
stackexchange/codereview
I'm trying to parse values like $15,270.75 with the expression double cost = 0; double.TryParse("$15,270.75", NumberStyles.AllowThousands | NumberStyles.AllowCurrencySymbol | NumberStyles.AllowDecimalPoint, CultureInfo.InvariantCulture, out cost); but have no success
stackexchange/codereview
I try to debug the GWT app in a remote browser (located on other computer than Eclipse instance) for example in VMware environment. Unfortunately while opening address below there is no connection. http://192.168.1.2:8888/app_test.html?gwt.codesvr=192.168.1.2:9997 I've tried adding -Dgwt.args="-bindAddress 0.0.0.0" to...
stackexchange/codereview
I created a sql 2005 stored proc to tell me if the CRID I am searching for is approved by the supervisor. [SuperApproved] is a bit, [CRID] is char(36). Even if the CRID doesn't exist, I am still getting 1. Any help in writing this? USE [cr_Saturn2] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ===============...
stackexchange/codereview
Haskell is a pure functional programming language. My question is: What are the advantages and disadvantages of using Haskell to solve problems involving lots of state, for example GUI programming or game programming? Also a secondary question: what methods are there to handle state in a functional way? Thanks in advan...
stackexchange/codereview
If my gz file does not exist, why doesn't it DIE? $ cat test.pl open(FILE, "zcat dummy.gz |") or die "DIE"; $ ./test.pl zcat: dummy.gz: No such file or directory If I read a file normally, it works as expected: $ cat test2.pl open(FILE, "dummy.gz") or die "DIE"; $ ./test2.pl DIE at ./test.pl line 2. ...
stackexchange/codereview
I wounder if the source code for Twitter android app is released??
stackexchange/codereview
I am helping a company that handles events. They tend to publish all their posts forward dated. by default the wordpress calendar only display up to today How do I overwrite it so it shows all the posts, even the forward dated ones?
stackexchange/codereview
I am looking for the best method for creating a drop down list editor template with MVC. There seem to be various methods but I can't find any method that is best, everyone seems to do it differently. I am using MVC3 with Razor as well, so a method that works with this is preferred.
stackexchange/codereview
I've got an application I've been working on with ruby 1.9.1. I'd like to test the javascript in my UI and the default selenium driver for capybara doesn't support the events I need to test. So I'm going through the process of using rvm to switch the application on to jruby for testing, since apparently celertiy/culer...
stackexchange/codereview
Even though a field is marked as 'editable=False' in the model, I would like the admin page to display it. Currently, it hides the field altogether.. How can this be achieved?
stackexchange/codereview
I ran those code and I got some questions, this kinda got weird. Using String: while(true) { String s = String.valueOf(System.currentTimeMillis()); System.out.println(s); Thread.sleep(10); } Using StringBuilder: StringBuilder s = null; while(true) { s = new StringBuilder(); s.append...
stackexchange/codereview
I wonder how can i read a xml data and transform it to a table in TSQL? For example: <row> <IdInvernadero>8</IdInvernadero> <IdProducto>3</IdProducto> <IdCaracteristica1>8</IdCaracteristica1> <IdCaracteristica2>8</IdCaracteristica2> <Cantidad>25</Cantidad> <Folio>4568457</Folio> </row> <row> ...
stackexchange/codereview
After converting a File to a BinaryString in HTML5 via the FileReader readAsBinaryString() method, is there a way to convert the data back to binary in JavaScript?
stackexchange/codereview
I have a table in SQL Server 2008 R2 consisting of about 400 rows (pretty much nothing) - it has a clustered index on the primary key (which is an identity). The table is referenced via referential integrity (no cascade delete or update) by about 13 other tables. Inserts/Updates/Gets are almost instant - we're talking...
stackexchange/codereview
What does this code actually do? @array = ( 'hai','hello','bar','foo' ) ; print grep (/hai/ , @array ); print grep ("hai",@array ) ; print map (/hai/ , @array ); print map ("hai",@array ) ;
stackexchange/codereview
Anyone know of any guides for this? I'm a complete newbie to weblogic and to container-managed security. What I've done already is: setup an LDAP authenticator in Weblogic created a simple webapp in Eclipse Configure web.xml: Added security-constraint, security-role and login-config elements. The realm name used is "...
stackexchange/codereview
I am connecting to an Analysis Services cube from an Excel Services spreadsheet. SharePoint and SQL Server are configured on separate servers. Am using Excel 2010 / SharePoint 2010 / SQL Server 2008 R2 (RTM) - 10.50.1600.1 (X64). Refreshing all connections (or clicking an item in the slicer) throws an error: "An erro...
stackexchange/codereview
Very strange thing happening: I had a whole bunch of TFrame's (might have been TCustomFrame, don't remember because I made an intermediate class between the 40 odd frames and the parent) that I was inheriting to make up the configuration part of a 'really cool' HL7 formula editor. What was weird, but not to the point, ...
stackexchange/codereview
I'm trying to build a simple extension for Opera 11 and I've hit a massive snag I'm sure most developers meet. In case you don't know, an extension in Opera is just another .html file, with some Javascript if you choose. What I'm having trouble with is getting the HTML source from the CALLING web page and passing it to...
stackexchange/codereview
I have visual studio 2010, and a unit-test project. when i run (debug test in the current context),then stop it,and then change the code, i have to rebuild the project, otherwise the project will run without debugging, and it will use the old code !!! why is that happening ?
stackexchange/codereview
I am trying to configure a dynamic name for my log but i can't: Here is the code in my web.config file: <appender name="RollingFile" type="log4net.Appender.RollingPatternFileAppender"> <file type="log4net.Util.PatternString" value="..l\log\%property{LogName}" /> <appendToFile value="true" /> <rollingStyle value="...
stackexchange/codereview
I have a php backend which is to be used by multiple sites on a server I control. Now rather than having an individual copy in each web root, what is the best method to have each site work from 1 shared backend? (For easy updating of the backend, etc)
stackexchange/codereview
I'm implementing a database where several tables have string data as candidate keys (eg: username) and will be correspondingly indexed. For these fields I want: Case insensitivity when someone queries the table on those keys The initially written case to be preserved somehow so that the application can present the da...
stackexchange/codereview
I'm using a .htaccess to get all documents from an old site to the new one. The old site doesn't support PHP or mod_rewrite. I tried the following code: Redirect 301 / http://www.new.com/archive/ I requested " http://www.new.com/archive/index.html" Which resulted into http://www.new.com/archive/old.com/olddir/&&&/&&&/...
stackexchange/codereview
How do I get a Google API Key if I'm developing a Chrome extension (i.e., address is local)?
stackexchange/codereview
I am trying to use a back_insert_iterator with remove_copy_if using vectors but I have compile errors. Do you know why the code below is wrong? #include <iostream> #include <string> #include <algorithm> #include <cassert> #include <vector> #include <iterator> #include <functional> struct checkRem : std::unary_function...
stackexchange/codereview
I'd like to save the newly entered values, so I could reuse them. However, when I try to do the following, it does not work: // el is a textbox on which .change() was triggered $(el).attr("value", $(el).val()); When the line executes, no errors are generated, yet Firebug doesn't show that the value attribute of el h...
stackexchange/codereview
We have a Blackberry app that is installed by users OTA. The install works fine as long as the user clicks OK on all of the dialog boxes that come up during the process. However, if something else happens during installation (like a phone call or whatever), the user ends up never clicking the dialogs, so the app is ne...
stackexchange/codereview
If I attempt to write two overloads of a method, one accepting an Expression<Func<T>> parameter and another accepting a Func<T>, I will get a compiler error on trying to call the method with a lambda expression because the two signatures create ambiguity. The following would be problematic, for example: Method(() => "H...
stackexchange/codereview
I'm having trouble changing the pinColor for an annotation in MapKit. When I don't try to implement the mapView:viewForAnnotation: method everything works (the annotation is added) but when I try to change the annotation view, the simulator crashes : Here is the code : MapViewController.h #import "MapViewController.h" ...
stackexchange/codereview
i want to make my date valid 16/10/2010 if i parse compiler give me error at runtime. how i can parse it. it is formated as Day/Month/Year
stackexchange/codereview
I installed windows 7 recently & I am new to ASP.NET. I installed visual studio 2008 for developing ASP.NET application. When I run my application, ASP.NET development server runs & my default browser opens automatically but doesn't show my web page. A connection error occurs. Opening the web page with visual studio'...
stackexchange/codereview
I have the following code in a T-Sql query, I am getting the following error message and I am not really sure what is causing the error. I am writing the Pivot statement to be dynamic b/c I do not know the columns that will be returned. Error Message: Msg 8156, Level 16, State 1, Line 9 The column 'Title - Endorsement...
stackexchange/codereview
I have a number of 'items' (mc's) contained in a scrolling mc that can be drag-dropped to other matching mc's. The items names are listed in an array and I wish to assign variables of suitability and feedback to each mc from the array also. I think this is called an associative array? Having some trouble correctly refe...
stackexchange/codereview
I have a problem with my site, or at least I think I have. I use a very simple nearly recursive Javascript function to move two pictures. However, on my four year old computer, this is not a smooth movement. I've reduced the size of the pictures, but... The code is not recursive as I use setTimeout between calls. The c...
stackexchange/codereview
A Submit button for a form located on my page triggers the code below, but I am unsure of how to save the numeric value of a textbox named 'amount' into a php variable which I can use in the below PDO query. I am unsure of the syntax. Thanks in advance! if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] =...
stackexchange/codereview
this may be a simple problem, but i am not able to figure it out. I have structure like this. struct emp { int empid; string fname; } emp e[10]; I have some data in e[10]. e[0].empid = 1 , e[0].fname = "tanenbaum" e[1].empid = 2 , e[1].fname = "knuth" ..... Now if i have given input command line like this: e...
stackexchange/codereview
First off I apologize for not elaborating and clarifying the question first, so I will do that right now. I am currently trying to complete a a lab exercise (topic is on earthquakes) that requires UML class diagram and pseudocode. one of the method required is named the determineclassification() so for the pseudocode i...
stackexchange/codereview
Is there any way in jquery to change the contents of a div based on timer. Assume i have module to give "tips". The contents of the tips should change every 5 seconds. Thanks
stackexchange/codereview
I'm looking to do something like: private static const fooDir : String = "foo"; [Embed(source = foo + "/foobar.mp3")] private var Foo:Class; Flex is only accepting the string if it's written fully out as [Embed(source = "foo/foobar.mp3")]. Is there a way around this?
stackexchange/codereview
I have been trying to figure out why this jQuery script calls the click bind event three times for every one actual click on the '.day-available' element. This is a calendar that updates a <div> next to the calendar. Everything works fine, but I see in Firebug that each ajax url call is being executed three times. I ha...
stackexchange/codereview
I have to create progressbar so that i need the size of a file.so please give me the sample code that i can calculate size of server side file.
stackexchange/codereview
I have an issue where I need to find a string in a file, but when I run the regex.match function it returns the string without any text between "<" and ">" missing. Here is my code and the string returned Original string - [$iif{len("Test")>0,<meta name="Author" content="Test">,""}$] regex Pattern - \[\$[a-zA-Z_0-9\{...
stackexchange/codereview
Following up on my question yesterday to deepcopy an object with events in C# and attach the events of the original object to the Cloned copy is pretty easy, you just set the Event declaration in the Copy = the value in the original. Deep Clone when events are attached How do you do this in VB.Net? (Using .Net 2) I was...
stackexchange/codereview
I'd like write a layout manager for j2me. I already have widgets and panels (panel is a set of widgets in this context). Now I'd like to add dynimc layout management so when i call doLayout on the outer most panel, internal widgets and panels rearrange according device's width and height. I was wondering whether there...
stackexchange/codereview
OK, I have a problem where my calculation never takes place, like it is supposed to. i'm trying to make a computation which solves for the roots of a quadratic equation using the quadratic formula, based on the values of a, b and c entered in a primitive form. Now, let me supply the code for my Model, view and Control...
stackexchange/codereview
I have a public repository on github that I'm having trouble handling pull requests with inside GitExtensions. I've done 3 so far, and I don't think any of them have worked properly or worked where I want them to. On the 19th, I tried to handle a pull request that Yi Jiang created. In GitExtensions, I did a pull wit...
stackexchange/codereview
In my app I need calendar control so I have found out a calendar suitable for my app on the link below: http://blog.webscale.co.in/?p=244 Now I want to integrate that in my project so I am referencing the project into my app but it leads to a crash and console shows exception that unknown CalendarAppDelegate. What sho...
stackexchange/codereview
Here's the situation: We want to have a Search page that takes in an ordered list of Attribute objects, and based on their 'type' (text input, dropdown, checkbox) generates and displays it in the appropriate manner. We'd also need to process the values for these fields in order to filter results. I'm at a loss for how ...
stackexchange/codereview
i want to create a generic class that would accept T. T is an object coming from Entity Framework representing a Table, or a View of that table. properties on both would be the same. I would like to create a generic class, that will accept the table or view, and construct a linq query based on the properties. so i ...
stackexchange/codereview
I'm trying to solve the following issue in reflection. I've a POJO which kind of acts as a metadata for the method signature in TestResponse class. TestResponse has a setDate() methid which takes a Date parameter. I'm trying to make this is a generic code which can accept any method and its signature to set in the resp...
stackexchange/codereview
I have installed the plugin many times before, but this time I keep getting this error: 'Install' has encountered a problem An error occurred while installing the items Eclipse has some memory issues when running on my machine, so I just want to install the bare minimum plugins, etc. Has anyone got any ideas how to ...
stackexchange/codereview
Hi I am using SDK 4.1 to build an iPhone app and I set the target OS to 3.1.3. When I install the app on devices running iOS4.1. everything goes smoothly. When I try to run the app on devices running 3.1.3 I get the stacktrace below. dyld: Symbol not found: _OBJC_CLASS_$_UINib Referenced from: /var/mobile/Applicatio...
stackexchange/codereview
Question Given a Classpath Container I've written as a plugin/extension, how do I add it to the classpath, automatically? Background Ok so I'm an experienced Java Developer but extremely new to writing Eclipse Plugins. I've been googling, following tutorials and reading source code of other plugins for a couple days. ...
stackexchange/codereview
function works perfectly. it makes source code single line. but problem is about Google Adsense ads. their locations get messed up. what might be the reason ? programming language is c# asp.net 4.0 here the function protected override void Render(HtmlTextWriter writer) { if (this.Request.Headers["X-MicrosoftAja...
stackexchange/codereview
I dynamically assigned an array as follows: unsigned char **nonces=new unsigned char*[n_cases] Is there a way to nicely print it out in the immediate window? Alternatively, it would be nice to make the locals window display it properly.
stackexchange/codereview
I've got an interface interface IModule { public function Install(); } and some classes that implement this interface class Module1 implements IModule { public function Install() { return true; } } class Module2 implements IModule { public function Install() { return true; } } ......
stackexchange/codereview
This is my makefile: delay: tc qdisc add dev eth0 root netem delay 0ms test4_s_delay:delay ./a.out 10 10 1 2 3 1 1 20 | tee server_delay.txt However, I am getting the following error on execution of the makefile: root@superwii-laptop:/home/superwii/Desktop/Amogh# make test4_s_delay tc qdisc add dev eth0 root n...
stackexchange/codereview
Suppose I have this simple class: public class Pair { public readonly object first; public readonly object second; public Pair(object first, object second) { this.first = first; this.second = second; } } It would be impossible to generate a cyclic graph of pairs. How would you create a...
stackexchange/codereview
I'm using Rails 3.0.1, HAML 0.3.22, and Mongrel 1.1.5 (and MongoMapper not AR). I'm rendering a list, and each list item is it's own partial. Every time the page renders one of the list item partials takes almost 100X longer to render (and it is an arbitrarily different one each time. Also, needless to say, each item h...
stackexchange/codereview
I am examining a Windows application that uses a database of unknown type. The database consists of several files with file extensions, .i, .iz, .b1, .p and .bi. Is there an API that can be used to view the design, tables and contents of this database? The ambition is to migrate the data to a MySQL environment.
stackexchange/codereview
On my main page, the navigation links are as follows: localhost/inventory/add localhost/inventory/view The code for those are: <a href='add'>Add Record</a> <a href='view'>View Records</a> and my .htaccess file is: RewriteEngine on RewriteRule ^([^/\.]+)/?$ ./index.php?url=$1 [L] RewriteRule ^([^/\.]+)/?/([^/\.]+)/?$...
stackexchange/codereview
I'm trying to write a jQuery widget following the model given here. Here is a snapshot of the widget: (function ($) { $.widget("ui.notification", { _create: function () { if (!this.element.hasClass("ntfn")) { this.element.addClass("ntfn"); } this.elTitle ...
stackexchange/codereview
I'm using Google web toolkit for some project mapping seismic activity of some land area. The request from users is to create a map which marked points. When user will click on some point, more detailed information is shown. So, I need to be able to draw some particular areas on a common image. Areas should be dynamic...
stackexchange/codereview
boolean canModify = UTIL.hasSecurity("PFTMODFY") && something; function name() { I need to pass a value false to something when the page loads. } window.onLoad = name How can i pass a value from JavaScript to JSP on the page load
stackexchange/codereview
I'm trying to interface redmine to IIS 6. It works fine under webrick. So I tried to create a new rails app to reduce the complexity, but that doesn't create the dispatch.fcgi file in the public folder, which leads me to think that my RubyIIS setup is wrong. What am I doing wrong here? I have no idea about ruby or ra...
stackexchange/codereview
Would like to know which direction player hits terrain tile from (just a simple up/down, left/right). Everything I find is either too simple, or is much more complex and seemingly way too much for what I need, like with AABB (granted it's hard to tell, my brain has trouble digesting what amounts to really long equation...
stackexchange/codereview
I have the following script, #!/usr/bin/perl use strict; use warnings; use Net::SSH::Perl; use Expect; my $logs = "logs"; open(LOG,'>>',"$logs") or die "can't logs $!\n"; my $domain = 'domain.com'; my @host = qw/host/; foreach my $host (@host) { my $cmd = "passwd user1"; my $sshost = join('.', $host, $domain)...
stackexchange/codereview
Can anyone please explain me about when to use the initWithNibName and when to use initWithCoder?
stackexchange/codereview
Hi I'm trying to create a static library that can added to any ios project, but I can only get it to work such that if I build the library in ios3, it'll work for ios3 projects but not ios4 and vice versa. The errors I get are: Undefined symbols: ".objc_class_name_UIImage", referenced from: literal-pointer@_O...
stackexchange/codereview
(background) I'm using Java.io.File to do some windows directory searching. Basically the user inputs a directory path and I validate the path with file.isDirectory(). If the path is invalid I ask the user to re-enter a correct path. Once I get a valid directory I proceed with other File operations. (problem) Now the p...
stackexchange/codereview
I have a Merge Replication with ~200 subscribers. I am trying to determine what would be appropriate Identity Range Sizes on some of the tables. You see I inherited a DB structure that was not designed for Replication therefore all table PK's are int IDENTITY's. Unfortunately some of these tables were built WITHOUT ...
stackexchange/codereview
I'm building a big application with a lot of modules, i want to monitor them. Every module has its own different parameters that I'm interested in, ranging from performance, to logical statuses of components. Eventually i need to concentrate all this information, and to be able to display it. Is there a framework i can...
stackexchange/codereview
I want to parse pdf websites. Can anyone say how to extract all the words (word by word) from a pdf file using java. The code below extract content from a pdf file and write it in another pdf file. I want that the program write it in a text file. import java.io.FileOutputStream; import java.io.IOException; import com...
stackexchange/codereview
I''m using swfobject in joomla and generate dynamic xml's (writing a file) to load slideshow to my listings. The problem is only in IE where slideshow do not change from last one when change my listings. It looks like a cache problem tried to add: slideshow.swf?t=" + new Date().getTime(), with no luck :( Code for xml ...
stackexchange/codereview
Ok, so I learnt from How to check if a open file has been updated that I should use a FileSystemWatcher to watch for changes to files. Then now, the question is if I must keep track of many files, do I create 1 watcher for each file? Also, I must somehow dispose of the watcher once the file is closed. Is having a Dict...
stackexchange/codereview
I am trying to install Qt in my CentOS system. While building the library, I'm getting this error: /root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS64 /root/capture/qt-everywhere-opensource-src-4.7.0/bin/qmake: error while loading...
stackexchange/codereview
hi i cannot update a table which has foreign keys on it. in this table, instead of displaying the primary keys of the foreign key, i choose to display their names: this is a simple diagram: Here are my foreign tables: Size Table: sId sName 1 1x1 2 2x2 Brand Table: bId bName 1 brand1 2 brand2 Supplier Ta...
stackexchange/codereview
I was wondering how I can let my iPhone talk to a windows service, so for example when I press a button on the iPhone, a messagebox is shown on the windows machine. Hope somebody has some good tutorials or sample code that will get me going... Thanks in advance!
stackexchange/codereview
I am writing a Windows Service in C# in Visual Studio 2010. My service will require a registry key HKLM\system\currentcontrolset\services\myservicename\parameters. It will also require a custom event source. I can't create either of these from within the service because both of these actions require running elevated on...
stackexchange/codereview
Same in Ruby 1.8.7 and 1.9.2: $ irb ruby-1.8.7-p302 > foo.nil? NameError: undefined local variable or method `foo' for #<Object:0x3794c> from (irb):1 ruby-1.8.7-p302 > @bar.nil? => true ruby-1.8.7-p302 > @@wah.nil? NameError: uninitialized class variable @@wah in Object from (irb):3 why the instance varia...
stackexchange/codereview
I have been told by a professor that you can get a file's last modification time by using utime.h. However, the man page seem to cite that utime() only sets this value. How can I look up the last time a file was changed in C on a UNIX system?
stackexchange/codereview
I want to do something simple on android app. How is it possible to go back to a previous activity. What code do I need to go back to previous activity
stackexchange/codereview
I am looking to create a general knowledgeBase for my customer service department which takes information (my thought is from a mysql database) and populates a page with that information based on the content pulled. Take this site for example: ToastMaster I would like to store a primary title, main content, images, etc...
stackexchange/codereview
I am trying to do something in pyGTk where I build a list of HBoxes: self.keyvalueboxes = [] for keyval in range(1,self.keyvaluelen): self.keyvalueboxes.append(gtk.HBox(False, 5)) But I then want to run over the list and assign A text entry & a label into each one both of which are stored in a list.
stackexchange/codereview
I'm trying to match all occurances of "string" in something like the following sequence except those inside @@ as87dio u8u u7o @string@ ou os8 string os u i.e. the second occurrence should be matched but not the first Can anyone give me a solution?
stackexchange/codereview
Nice quick one for you guys, hope you can help. After a dodgy CMS I created a while ago, my database is full of product 'names' that have either 1, 2 or 3 spaces before the actual name. This is causing me havoc now and I'm wondering if there's a function that will let me remove these pesky spaces in PHP instead of havi...
stackexchange/codereview
This is kind of a follow-up from my other question. When I first heard about generics, it was before the release of Delphi 2009 (Where they introduced it first). I know it was supported in .Net before that, but I have yet to dig in that realm. Reading about generics, I learned that it allowed class to have a variable a...
stackexchange/codereview
I am trying to customise an image for Windows CE6 using platform builder. The image itself is fine. However, my customisation is failing. My project.dat file looks like this: Directory("\Windows\StartUp"):-File("StartUpBat.bat","\Windows\StartUpBat.bat") Directory("\Hard Disk"):-File("RegFlushKey.exe","\Windows\RegFlus...
stackexchange/codereview
I have a Master and Detail table, the Detail linking to the Master record on a FK reference. I need to display all the data from the Master table, and the corresponding number of details for each record, i.e. MASTER TABLE ID Name Age 1 John 15 2 Jane 14 3 Joe 15 DETAIL MasterID Subjects 1 Trigonometry ...
stackexchange/codereview
I'm using Intel C++ Compiler from within Visual Studio 2008. I was experimenting with the Intel quadruple precision type (_Quad). Everything seems to be working fine, except for the debugging. Visual Studio visualiser is unable to peek into _Quad values. What's worse, the visualiser is unable to provide the type inform...
stackexchange/codereview