instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Hello fellow stack over flow members. I'm studying for compiler class. I did understand Top-Down Parser should avoid left-recursion, and transform into right-recursion way. Questions are, a) am I understanding right Top-Down Parser is equal to LL and Bottom-Up Parser is equal to LR ? b) I've found out left-recursion i...
stackexchange/codereview
I have a running LWP::UserAgent that should be applied on following URL: http://dms-schule.bildung.hessen.de/suchen/suche_schul_db.html?show_school=5503 This runs with many many similar targets see the following endings: html?show_school=5503 html?show_school=9002 html?show_school=5512 I want to do this with use LWP:...
stackexchange/codereview
Check out my jsfiddle demo, if e.which == 1 then when you left click the h2 it will e.which == 2 or e.which == 3 then it wont work. 2 is the middle mouse button, and 3 is the right mouse button. i found this too: JQuery provides an e.which attribute, returning 1, 2, 3 for left, middle, and right click respectively. So...
stackexchange/codereview
I'm developing a mobile Flash application (not an AIR app) running in the browser. According to Adobe: Flash Player 10.1 provides support for use of native device virtual keyboards with TextField support if no physical keyboard is detected. A virtual keyboard is automatically raised and lowered in response t...
stackexchange/codereview
I'm trying to select some data from a MySQL database. I have a table containing business details, and a seperate one containing a list of trades. As we have multiple trades business_details id | business_name | trade_id | package_id 1 | Happy News | 12 | 1 This is the main table, contains the business nam...
stackexchange/codereview
I'm making a restaurant menu using custom post types for the different menu sections. I used the excellent Custom Post Types UI plugin and the Verve Meta Boxes plugin. I'm then flowing them out into separate loops with several segments of the below code: <?php $hotfood = get_posts( array('post_type' => 'hotfood...
stackexchange/codereview
I've just started working with Qt Creator and I want to write the UI. My question is: what is the best way to write it? By drag and drop from widget box or writing code? I've dragged some widgets and I saw that not all of build in QWidget like QIcon and QMultiLineEdit are in the widget box. How to add them? Thanks!
stackexchange/codereview
I'm currently just exploring JSF 2 in the Java EE 6 stack. I find quite a bit of limitations with JSF and the way ManagedBeans are used is very counter-intuitive / odd: It seems that, in order to execute an action event, you have to use <h:commandLink> tag. Thats all well if I was for example, posting form data. Howeve...
stackexchange/codereview
I've got a DropDownList in ASP.NET that has a ListItem that requires being disabled... but I DON'T mean Enable="False". And I also don't want to disable the entire DropDownList, just one specific ListItem. What I'm talking about is written in HTML as disabled="disabled", like so: <option disabled="disabled" value="-1"...
stackexchange/codereview
Every thing run well in Standalone mode and when going to the pseudo-distributed mode, the HDFS works well, I can put files to HDFS and browse it. And I also checked that there is one DataNode in the live nodes lists. However, when I run bin/hadoop jar hadoop-*-examples.jar grep input output 'dfs[a-z.]+', the program j...
stackexchange/codereview
I have a drupal mustisite installation and Im using drupal domain access module. I have sites like www.abc.com and www.cde.com pointing to the same codebase. However, while redirect for abc.com to www.abc.com works, redirect for cde.com to www.cde.com doesnt work? Any idea on how to fix it? Im redirecting using htacc...
stackexchange/codereview
I have a webBrowser Control. HTML inside webBrowser control displays some small images (4kb each). However when I run my application, Images are not loaded in to webBrowser Control. Also I have used javascript function to keep refreshing page at some interval. function StartTimer(MS){ TimerObj = setTimeout("window.l...
stackexchange/codereview
so how? my app is running at 60FPS, but i want 30.
stackexchange/codereview
I have four UIImageViews lined up in a row and I want to be able to move the images from left to right. Is there a way to bound the movement to the x-axis (along the image centers) i.e. moving them only left and right? Similar to moving the icons around the screens on an iPhone. I've added a UIPanGestureRecognizer to...
stackexchange/codereview
I just finished an app that allowed users to store lists of serial numbers in a tableview. The way the app stores the numbers is by storing in an NSMutableDictionary then writing to a persistence plist file. The app ran perfectly fine during testing. However, I just built and packaged the app for ad-hoc distribution, a...
stackexchange/codereview
I'm trying to get json data from a django view (login required) into a new android app I'm working on. I would like to authenticate the user against the django login and keep the cookie/session for all the django view calls to get data from the server. I did some googling but nothing helped me, even if I guess it shou...
stackexchange/codereview
I need a tool that allows me to parse a config file and request some data from it. The format of the config file is free (it can be INI, XML, and so on) but the more human-friendly, the better. Here is a sample config file (using XML, but it could be anything: i don't mind the format): <?xml version="1.0" encoding="UTF...
stackexchange/codereview
I need to display multiple instances of a basketDetailsView.xaml within a region placed in basketView.xaml, but I'm getting the following errormessage when i debug my code: "An exception occurred while creating a region with name 'basketRegion'. The exception was: System.InvalidOperationException: ItemsControl's ItemsS...
stackexchange/codereview
I'm trying to write a VBScript that will export and import the code modules from an Access MDB file to text files. From within the app I can loop through the DAO Container & Documents and use the 'undocumented' Application.SaveAsText method, but can I do it externally?
stackexchange/codereview
I have a complex Model public class ComplexModel { public UserModel userModel; public ExtraInfoModel extraModel; } where UserModel may have required fields as in: public class UserModel { [Required] public string email; } how do I validate ComplexModel to make sure that the data annotations on it...
stackexchange/codereview
I was just wondering what other cool web service API out there that we can use besides the following: 1. Foursquare 2. Facebook 3. Twitter 4. Google & Bing Map 5. NetFlix 6. LinkedIn What other ones can you find?
stackexchange/codereview
I am using flex4, I am seeking the answer to create multi window web application. My application is some sort of complex, currently I only know using PopupManager to create a new window. Should I create each MXML for each window that I want to instantiate? And then load the mxml and put it into the stage? Is there any ...
stackexchange/codereview
I want to read in a string and parse it with sscanf. Although i don't want to read in any spaces in the beginning. Sample string. @a Bear Tiger sscanf(strLine, "@%1s %64s %64s", dir, name1, name2); I have that. Problem is if the line goes in as say @a Bear Tiger Should be: @a Bear Tiger that it will want to...
stackexchange/codereview
I seem to be having having an issue with String.indexOf(String s)/String.lastIndexOf(String s) in my GWT2 app when running it on a tomcat server. The following code is in a Presenter (client side). It works perfectly when running via the GWT Eclipse plugin, but returns "" when the app is deployed to a tomcat6 server. ...
stackexchange/codereview
When I output a whole table into an output file named 'Arshan.txt' this command works well but I can not access the output file created. When I access /usr/local/mysql/data it says permission denied. Any help will be appreciated.
stackexchange/codereview
I am updating an old MFC application that used WinHelp so that it now uses HtmlHelp. I've changed the constructor of CWinApp-based class so that it calls EnableHtmlHelp(). Then I've changed the old calls from WinHelp( IDH_CONTENTS, HELP_CONTEXT) to HtmlHelp( IDH_CONTENTS, HH_HELP_CONTEXT). Unfortunately, whenever I try...
stackexchange/codereview
I need to write a program / script to change the account name and password on certain services running on a remote server. I intend to do it with Powershell. Is that the best solution or is there something else that would be more suitable? A quick google search brought up this script: $account="domain\userName" $passwo...
stackexchange/codereview
Suppose you have a certain template that takes a parameter class template <typename ConnectorClass> struct myClass { } I want to add a BOOST_ASSERT_MSG to validate that ConnectorClass implements a certain method of signature returnType MethodName(param1, param2) How should i write the assert condition in this case?...
stackexchange/codereview
i want to create an image handler that will resize and serve images to my application, how do i call the handler on mvc?
stackexchange/codereview
I am fixing up a friends website, and he has an advertisement that takes up the entire background (body). Currently, the background image is set using CSS (background-image): body { background-attachment:scroll; background-color:#000000; background-image:url("http://gunshyassassin.com/wp-content/uploads/2010/10/gunshy_...
stackexchange/codereview
Feeling pretty brain-dead right now. I can, of course, brute-force this, but I feel like there has to be a simple function to return this number. Concerning native functions, I'm using PHP and/or Python. For example: there exists containers that hold X (5) breadsticks each, and I need to feed Y (25) people Z (3) brea...
stackexchange/codereview
I have a C++ Windows service, and I would like to access an executable in the same directory as the service's executable (via the system function). I'd imagine to do this I'll need to find that directory, so that I can refer to the target executable's path. How can I find the directory in which the service is installed...
stackexchange/codereview
I'm dismissing a modal view controller and then immediately presenting another one, but the latter never happens. Here's the code: [self dismissModalViewControllerAnimated:YES]; UIImagePickerController *picker = [[UIImagePickerController alloc] init]; picker.delegate = self; picker.sourceType = UIImagePickerContr...
stackexchange/codereview
Newbie here...I am just going through, what is clearly, an old rails tutorial. To create a form they have the following code: <%= start_form_tag(:action => 'create')%> <%= text_field(:album, :title) %><br /> <%= text_field(:album, :artist) %><br /> <%= text_field(:album, :genre) %><br /> ...
stackexchange/codereview
The Question I'd like to add a new TR in a table after a given matched set, or instead, at the end of the table if the matched set is empty. Given the following html: <table id="blax"> <thead> </thead> <tbody> <tr class="alpha"> <td>some stuff</td> <td>more stuff</td> </tr> ...
stackexchange/codereview
I want to do something like for field in field_list: my_table.field = new_value Couldn't find any documentation on how to do the above with a variable.
stackexchange/codereview
I've been grabbing attribute options from Magento like so: <?php if ($attribute->usesSource()) { $options = $attribute->getSource()->getAllOptions(false); } ?> It's been working fine until I tried to get the options for the built in 'color' attribute -- I got the following error: PHP Fatal error: Call to a memb...
stackexchange/codereview
I notice that when I include a reference to an external CSS file in my HTML file in Visual Studio 2010, I get a very nice list of possible values for the 'media' attribute. (The options are all, aural, braille, handheld, print, projection, screen, tty, & tv ... if you're interested) Is there a system level enum with ...
stackexchange/codereview
I am trying to find duration of an mp4 file using direct show component of windows using the Dotnet wrapper(directShow-lib 2005). But the method i used was GetDuration of IMediaSeeking interface. But this returns zero as duration. After searching i found the following statement: "It doesn't matter whether it's in a con...
stackexchange/codereview
I'm trying to split a string using the split function but there isn't always a value between tokens. Ex: ABC,123,,,,,,XYZ I don't want to skip the multiple tokens though. These values are in specific positions in the string. However, when I do a split, and then try to step through my resulting array, I get "Use of uni...
stackexchange/codereview
I have installed hudson on Ubuntu server and then run java -jar hudson.war, giving me this exception error message: Status Code: 500 Exception: The error below occurred during context initialisation, so no further requests can be processed: java.lang.ExceptionInInitializerError at java.lang.Class.initial...
stackexchange/codereview
I have video files, that I want to pad with a random number of extra bytes, in order to create a different md5 checksum. Is there a way to do that, and keep them playable?
stackexchange/codereview
Saw the following code snippet and I have problems to understand how it works. class Month { public: static const Month Jan() { return 1; } ... static const Month Dec() { return 12; } int asInt() const { return monthNumber; } private: Month(int number) : monthNumber(number) {} const int monthNu...
stackexchange/codereview
When adding objects to an NSArray using "initWithObjects" can anyone confirm for me that the items are retained. I am pretty sure they are, but can't find it mentioned anywhere with regards to initWithObjects? // CREATE DRINKS Coffee *drink1 = [[Coffee alloc] initWithName:@"Flat White"]; Coffee *drink2 = [[Coffee alloc...
stackexchange/codereview
If I try to apply min-width, max-width to a floating div so that it expands to max-width when the right content is hidden does not work. But, if I use table and 2 tds in it, the left td will expand to 100% if the right td is hidden. Can I achieve this table effect with floated divs?
stackexchange/codereview
I have a query that uses left joins like so: SELECT a.id, a.username, a.date_created, a.contact_id, a.role_id, c.first_name, c.middle_initial, c.last_name, c.email, r.role FROM accounts AS a LEFT JOIN contacts AS c ON a.contact_id = c.id LEFT JOIN roles AS r ON a.role_id = r.id WHERE ( MATCH (a.username, c.first_name...
stackexchange/codereview
I've just added a header to my ListView and I have to change a bunch of code because the header essentially becomes position 0 (Meaning the Cursor indices of my CursorAdapter do not line up with the indicies of the list. They are off by 1 now). Why? This seems a bit silly to me. The only reason I can come up with is...
stackexchange/codereview
i have written the code for geocoding..but unfortunately it does not work ie nothing is displayed on screen...i am attaching the code...can someone please tell me what is the fault in the code..thanks public class geocoder extends Activity { // private TextView output; private LocationManager mgr; /** Called whe...
stackexchange/codereview
I used FileInfo.LastWriteTime to know when was the exact last time where a certain file, let's say "c:\temp\test_file.txt" was changed. It works great when someone is actually opens the file, make changes and then save - the FileInfo.LastWriteTime for this path is being updated with the time the file was changed. But w...
stackexchange/codereview
How can I monitor a directory, and send an email whenever a new file is created? I currently have a script running daily which uses find to search for all files in a directory with a last modified date newer than an empty timestamp file: #!/bin/bash folderToWatch="/Path/to/files" files=files.$$ find $folderToWatch/* -n...
stackexchange/codereview
take a look at this Code. i want the Left & Right Box (DIVs) to appear in one line.. how to do it
stackexchange/codereview
I'm trying to use what's below as a DataTemplate for items bound in a ListBox. It looks fine, except for the text in the "Title" textbox. It truncates, just as it's supposed to, but for those titles that are long enough to be truncated, the very right edge, right where the text is being cut off, is colored slightly f...
stackexchange/codereview
I'm guessing afterInsertRow is the method to use, and I've already got extra data for each row (read/unread), with the key "readStatus". What I do no want is to be transversing the DOM after grid has completed to add a css class to row based on some cell value. Any suggestions? Add-on: If this is the cell data: {"cell"...
stackexchange/codereview
Is there any way that I can let the user select an image from a google images search and convert it into a UIImage?
stackexchange/codereview
I'm working with the following XML <AEDControl ControlGU="17fed98c-8128-4c6b-9b50-3dbe73889b9d" ControlLabel="Posting Status" TypeGU="6b4d08b1-6340-450c-beae-517b7d84e717" ControlDescription=""> <Elements> <Element ElementGU="2da346d1-2e05-4aa3-9bae-5aa9b3b75d5c" ...
stackexchange/codereview
I'm working with WPF and I can't achieve an animation. I have a rectangle which rotates from x degree with a render transform origin from 0,0. I want this rectangle to rotates from y degrees with a render transform origin from 0,1 after 2 seconds. Of course I want to keep the rectangle position for the second animation...
stackexchange/codereview
HI, I am trying to send a simple notification using system.net.mail.mailmessage. I just pass the string as the message body. But problem is even though multi-line message been send have the correct "\r\n" format info in string. The mail opened in outlook will displayed as a long single line. But view source in outlook ...
stackexchange/codereview
Hey all, I am trying this code below to be placed into my own HTML layout for export to a PDF. SELECT DISTINCT i.InvoiceNumber as 'Invoice', '$' + CONVERT(varchar(50),round((CONVERT(int,Points) * .1),0)) AS 'Amount', '$' + CONVERT(varchar(50), 1.50) AS 'Fee' FROM tblHGP HGP, OrderDetails OD, tblInvoices i J...
stackexchange/codereview
This is the statement which I am referering the below code $.ajaxSetup ({ cache: false}); I have a PHP script which produces JSON. I am consuming this json using: $.getJSON ("GetDetails.php?id=123", $("#formname").serialize(), function(data){ **$.ajaxSetup ({ cache: false});** ...
stackexchange/codereview
I want to have a combox inside of a grid cell, but not an EditableGrid. What I don't like about the EditableGrid is that you have to first click on the cell to show the combobox and then you make your selection in the combobox. I want it so that the combobox always shows in the cell. There doesn't seem to be an easy...
stackexchange/codereview
I have this C++ code: #include <iostream> using namespace std; struct MyItem { int value; MyItem* nextItem; }; int main() { MyItem item = new MyItem; return 0; } And I get the error: error: conversion from `MyItem*' to non-scalar type `MyItem' requested Compiling with g++. What does that mean? And what...
stackexchange/codereview
I created a ruby application and the application.html.erb is never loaded (looking at webrick output, I never get "Rendered CLASS/index.html.erb within layouts/application", but "Rendered CLASS/index.html.erb") CLASS.html.erb never gets loaded either. Only when explicitly specifying "render :file => 'layouts/applicatio...
stackexchange/codereview
I have a Perl script that reads data from an Excel (xls) binary file. But the client that sends us these files has started sending us XLSX format files at times. I've updated the script to be able to read those as well. However, the client sometimes likes to name the XLSX files with an .xls extension, which currentl...
stackexchange/codereview
can we check folder permission on remote machine using c#.
stackexchange/codereview
Python disables MSCRT assertions for debug mode during the initialization of exceptions module when it is built in debug mode. At least from the source code, I can see Python 2.6.5 doing this for _MSC_VER >= 1400 i.e. Visual C++ 2005. Does anyone know why?
stackexchange/codereview
Tested on Access 2003 Pro (build 11.8321.8324) SP3. Steps to reproduce: create a new database. create a new form. put a button on the form. paste the following code in the button's Click event procedure: Debug.Print Workspaces.Count Debug.Print CurrentDb.Name close the code editor and form, saving changes. do not ...
stackexchange/codereview
I have a asp.net web application that uses Entity Framework. The application data layer uses a method outlined by Jordan Van Gogh found here. In a nutshell, this method uses one shared objectcontext instance per http request and is disposed of using a AspNetObjectContextDisposalModule that inherits IHttpModule. I hav...
stackexchange/codereview
I want to override the default activity transition in Android with something a bit fancier. What I want to do can't be done with the XML set that one would typically use, so I can't use overridePendingTransition because it only accepts integer references to XML-based animation resources. What I'd like to do instead is ...
stackexchange/codereview
So, I'm both new to Java and to creating android apps, but not new to programming. I've read through most of the developer.android.com site, but I haven't been able to find this: I want to make sure that a certain activity isn't running more than once at the same time. So we have a task somewhat like this: Activity A) ...
stackexchange/codereview
My scenario, how to convert List<KeyValuePair<string, string>> into IDictionary<string, string>?
stackexchange/codereview
Cheers, We started implementing biometrics authentication in our web system and came to a doubt. We're going to use a third-party solution for performing it which is going to be called via a web service. There are going to be four kinds of authentication: Regular one: username/password Challenge Fingerprint Cellphone ...
stackexchange/codereview
I have make one cron job as below <?php echo "HI"; ?> When i ran it using cron job it give me error "?php directory not found" Please help me regarding this. Thanks in advance. Kanji
stackexchange/codereview
is there any good reason not to use XML-RPC for an object-broker server/client architecture? Maybe something like "no it's already outfashioned, there is X for that now". To give you more details: I want to build a framework which allows for standardized interaction and the exchange of results between many little tools...
stackexchange/codereview
Is it possible to access the metadata of an image captured by UIImagePickerController in iOS? I understand this can be done with AssetLibrary framework for images captured by the camera application (or otherwise present in the iPhone photo library), but can a developer access any of the metadata/exif info from within a...
stackexchange/codereview
i'm going to explain the flow of what i need: the checkout process is the same, now, in the last step, i'm doing POST to an external URL, where all the data is processed, i wait to the response of the external server, after process it, i make the correspondient step, 1- Save the order in the db or 2- Give an error mess...
stackexchange/codereview
I new to c# and windows form programming. Here is the problem i am trying to solve. I have to write an application that uses an multiple instance of an ActiveX control. Therefore, I dragged as many control as necessary to my Form. Now my problem is that i'd like to add some personalised methods to this activeX. The log...
stackexchange/codereview
I am trying to run a unit test with N-unit in a project. The project has the .edmx file in it, so it's not a multi-project problem that I see a lot of people. I kept all the defaults from what was auto generated by the Tool. My Web.config file appears to have the connection string in the <connectionStrings>: <connectio...
stackexchange/codereview
Im reading a book "Pragmatics: Hello Android" and copy the code word for word and syntax is all correct because i get no errors but it does not do what i tell it to do on the onAnimationEnd.. it suppose to take me to my next activity but since that was not working i changed it to something simple like txtView.setText("...
stackexchange/codereview
Thanks in advance i have made one attribute with option of yes/no i want to show this in product grid at admin side i made the column in the grid and put the following code <?php $this->addColumn('approvedcustomer', array( 'header'=> Mage::helper('catalog')->__('UrgeStatus'), ...
stackexchange/codereview
I have an address on my site like so: http://www.example.com/lookup?q=http%3A%2F%2Fgigaom.com%2F2010%2F10%2F10%2Fangry-birds-for-windows7-phone-dont-count-on-it%2F In this example, the dot in the 'gigaom.com' part of the query string is screwing with lighttpd and my rewrite rules. I get a 404 with the dot in, no 404 if...
stackexchange/codereview
Is it possible to embed a YouTube video on your own website using HTML5, so it can be played on Safari on iPhone without Flash?
stackexchange/codereview
GWT 2.0.4 seems to have removed support for the -style argument: Unknown argument: -style PRETTY How can I get DevMode to generate readable Javascript output so that I can use Firebug to usefully profile it?
stackexchange/codereview
I would like to know how I can reproduce the following query as map reduce or any juice function from MongoMapper or MongoID: Event.find(:all,:select=>'events.company,SUM(price) as total_price', :group=> 'company',:order => ' total_price DESC, created_at DESC')
stackexchange/codereview
I'm using Google analytics in my flash app. It works perfectly, but the time to publich the app came and I'm using an external swf. as preloader, which only consists in an small progress bar and summons my Flash app once it's completely loaded. Now i'm getting this error: Error #1009: Error #1009: Cannot access a prope...
stackexchange/codereview
SELECT COUNT( sendbook.id ) AS total, SUM( sendbook.num ) AS num, ( SELECT COUNT( sendbook.id ) FROM sendbook INNER JOIN clients ON clients.id = sendbook.clientid WHERE sendbook.issueid = '29' AND clients.area >1000 AND clients.area <2000 ) AS area1000, ( SELECT COUNT( sendbook.id ) FROM sendbook INNER JOIN clients O...
stackexchange/codereview
I have a custom control which contains a list of objects. The control is instantiated by the visual designer and then configured in code. The control is a grid which displays a list of entities. I have an initialise method like this. public void Initialise(ISession session, Type type, ICollection<IPersistentObject> o...
stackexchange/codereview
Im running this example given on zendcasts and i seem to be getting a "Illegal Token" error. An error occurred Application error Exception information: Message: Illegal Token Stack trace: #0 /Applications/Zend/Zend Studio - 7.2.1/plugins/org.zend.php.framework.resource_7.2.0.v20100324-1300/resources/ZendFramework-...
stackexchange/codereview
I've gone thru my app using build/analyze and been able to resolve all issues. but running under leak tool it detects a leak and says it comes from tvc:viewDidLoad where tvc is a tableViewController it further references NSArray -> sectionlist it shows a malloc refct=1 then a retain refct=2 then a release refct=...
stackexchange/codereview
Is there way in svn diff or any other tool(linux based) to show only whitespace/tabs changes ?. Purpose, I dont want those diffs to be checked in. I can put back those lines to same state before check in if a tool could catch those diffs. Thanks,
stackexchange/codereview
I have two wav files that I want to mix together to form one wav file. They are both the same samples format etc... Been searching google endlessly. I would prefer to do it using the wave module in python. How can this be done?
stackexchange/codereview
First of all: A quite similar problem has been posted and somehow solved already, but is still not answering my specific problem. More about this later. In words: I have a base class which provides some methods to all childs, but doesn't contain any property. My child is inheriting these methods, which should be used t...
stackexchange/codereview
Got a fresh Win7 machine with VS2005 installed. I tried to start a MyApp.exe that is built with manifest that says in Manifest.bin: ... <assemblyIdentity type="win32" name="Microsoft.VC80.MFC" version="8.0.50727.4053" processorArchitecture="x86" publicKeyToken="1fc8b3b9a1e18e3b"> </assemblyIdentity> ... and the result...
stackexchange/codereview
Does anyone has idea how to access HREF from the below object: SimpleXMLElement Object (    [@attributes] => Array        (            [title] => Preview            [rel] => enclosure            [type] => image/jpeg            [href] => http://a1.phobos.apple.com/us/r1000/008/Purple/94/ee/38/mzl.fupornmt.320x480-...
stackexchange/codereview
We have a client that wants to use a third party shopping cart on their website, but the URL we'd have to send our clients to looks pretty ugly and there is no way to do any skinning. The client brought up using an iFrame to keep the shopping cart on their website. If both sites had SSL so that at least the padlock wou...
stackexchange/codereview
I have written an ANTLR 3 grammar for parsing TaskJuggler III bookings files (see below). On line project prj "Sample project" "1.0" 2010-10-24-00:00-+0200 - 2010-11-23-09:00-+0100 { I'm getting following errors: line 1:42 mismatched character '-' expecting set '0'..'9' line 1:48 mismatched character ':' expecting s...
stackexchange/codereview
I am using TeXnicCenter to edit a LaTeX document. I now want to remove a certain tag (say, emph{blabla}} which occurs multiple times in my document , but not tag's content (so in this example, I want to remove all emphasization). What is the easiest way to do so? May also be using another program easily available on Wi...
stackexchange/codereview
Given my registration page: <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server"> <ContentTemplate> <span class="defHead">Thank You!</span><br /><br /> You are now registered on our system.<br /><br /> </ContentTemplate> ...
stackexchange/codereview
I am launching a windows process (wrote in C++ but I don't have sources) from Java code in the following way: Process p1 = Runtime.getRuntime().exec(cmdAndParams); p1.waitFor(); My problem is that the waitFor() method never ends. Thus I tried to launch the process in a simple shell and it ends correctly with many pr...
stackexchange/codereview
If the following pieces of code execute in the order in which I have put them, can I be sure that thread 1 is awoken first by thread 3, later followed by thread 2? main: sem_init(&x,0,0); thread 1: sem_wait(&x); thread 2: sem_wait(&x); thread 3: sem_post(&x);
stackexchange/codereview
I want to create simple application that detects language(using Google API) of phrase and send it to corresponded search engine. For example, if search query is in Russian then I need to redirect it to Yandex.ru in all other cases to Google. That's how I do this: def get(self): ...
stackexchange/codereview