instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I need a flood fill algorithm to fill existing raster shapes with various colors and fill patterns. From what I know, the QuickFill algorithm is the best way to do a flood fill. I've found a number of implementations, but they are all in C++ and use Windows SDK functions. The problem is that I need a .NET implementatio...
stackexchange/codereview
I'm trying to send message using tibrvsend command. The scenarios is like below , I've server running on network , I'm able to ping the server Ip address and able to connect using remote desktop connection. On the server i'm listening to the subject tibrvlisten -service 7541 -network ;239.193.1.110 MY.SUBJECT From...
stackexchange/codereview
I have a webproject in J2ee , now there are some files which can be access directly by typing thier URL and some files which cannot be accessed EG files under folder admin/xyz.js are Not accesble but files under folder common/xyz.js is accessable now i want to remove this and make all files accessable due to some re...
stackexchange/codereview
I'm using L2S for database operations in my asp.net mvc application I have following simple query in my repository (from pt in db.oaProjectTasks where pt.ProjectID == ProjectID join t in db.oaTasks on pt.TaskID equals t.TaskID where t.ParentTaskID == null ...
stackexchange/codereview
I have an IEnumerable<GridItem> items containing a list of thousands of items, each item containing some seriously complex calculated properties. To keep performance up, the list can be viewed one page (20 records) at a time in a webpage grid. PROBLEM If you want to display the grid's paging information to the user...
stackexchange/codereview
In my application ,i have a order page which contains products which we can order.If i order a product the CartTotal becomes changed(nothing but the amount is assigned to the span element).If i am not ordering any products the CartTotal will be nothing(span content is nothing) as follows, Cart Total: but when i open th...
stackexchange/codereview
These last weeks, I found myself using a lot of const everywhere. Not only in methods or arguments declarations, but even for temporary variables. Let me illustrate with a simple function. I used to write: // A dummy function that sums some computation results unsigned int sum_results(const Operation& p1, const Operati...
stackexchange/codereview
I'm more of a designer by trade, but I can usually hold my own in HTML,CSS, and Javascript. This problem has been bugging me for a few days though. I'm developing a new wordpress site for myself using MAMP on OS X and I'm trying to add some jQuery magic to spice some things up. For some reason I can't get the files to...
stackexchange/codereview
I've stumbled upon pexpect and my impression is that it looks roughly similar to fabric. I've tried to find some comparison, without success, so I'm asking here--in case someone has experience with both tools. Is my impression (that they are roughly equivalent) correct, or it's just how it looks on the surface ?
stackexchange/codereview
I need to limit the input length of some of my text boxes. I'd like to link them to whatever the database length limit is in case the DBA decides to increase the max length directly in the database. Anyone have any clue on how this is done?
stackexchange/codereview
I am trying get Javascript popup calendar control to work which doesnt work. I am getting an error "Microsoft JScript runtime error: 'window.opener.document.forms(...).control' is null or not an object". Here is my event, protected void Change_Date(System.Object sender, System.EventArgs e) { string strScript = "...
stackexchange/codereview
I see parseInt() and parseFloat() when I hit TAB in the console. I can just type: parseInt('123asd'); But where are these located?
stackexchange/codereview
I'm trying to figure out the difference between ASP.NET and ASP.NET MVC. Mode-View-Controller called a MVC is a development model/pattern/programming model, right? It is just a way the code can be written by a developer to have full control over the code. If that is the case what are MVC 1, MVC 2 etc. released by Micro...
stackexchange/codereview
Are there any examples on how to use the Threading portion of MVVM Light? What is the advantage of using the MVVMLight.threading over normal .net threading?
stackexchange/codereview
I have an ilist with 6 records, something like this 1st Row time 11:00 location: Bangalore 2nd Row time 11:00 Location NULL .... I have to eliminate the 2nd row which has location null for the same time (11:00) Like this, I will be having thousands of records, from which i need to eliminate this. any solution ?
stackexchange/codereview
In Eclipse is there any way that given a class with a list of defined setters, that you can list these out before populating them? For example: public class Test { private String valueA; private String valueB; private String valueC; private String valueD; public void setValueA(String val) { this.valueA =...
stackexchange/codereview
I have an issue in IE6 (no surprise) where button elements are hovering in IE6 rather than being positioned correctly in Firefox, Chrome and Opera. This seems only to occur when clicking a non-selected tab. The CSS and JS are the latest versions of JQuery UI. Has anyone experienced this issue? [Edit] My apologies, I fo...
stackexchange/codereview
I have JavaScript in my template file, because of the smarty can't include the file and I have W3C problem validation: addMarker({$item->lat}, {$item->lng}, '<div style="height: 280px;">dfdsfsd</div>'); Error element not allowed. Is there a way to escape it somehow?
stackexchange/codereview
What is your recommendation of writing a web crawler in Ruby? Any lib better than mechanize?
stackexchange/codereview
The question sums it up quite well, anyway, superfluous details are never that superfluous. I want to create Apache Forrest documents using groovy.xml.MarkupBuilder. I obviously want my documents to be not only well-formed, but also valid according to Forrest DTD. How can I ensure that ?
stackexchange/codereview
Ok, I am not having much luck with this. I am new to Entity Framework, and have been fighting with this one little thing since yesterday. Here are my tables: Clients (id, clientname) Projects (id, projectname, clientid) Tasks (id, taskname, projectid, statusid) TaskStatuses (id, statusname) In code I am only working ...
stackexchange/codereview
First off, sorry if this is too subjective, I just didnt know how else/where to ask. Anyway, in the light of all my recent questions, I'm getting ready to release an Android app soon, and most of the testing has been done on my phone, the Droid. I really dont have the money to test on "multiple" devices, nor do I know ...
stackexchange/codereview
Can anyone tell me what happened to the Html.Serialize function mentioned in the url below. It's not recognized when I try and use it in a MVC2 web app within Visual Studio 2010. http://weblogs.asp.net/shijuvarghese/archive/2010/03/06/persisting-model-state-in-asp-net-mvc-using-html-serialize.aspx EDIT - I'm using visu...
stackexchange/codereview
When I press the sleep button on my Droid, my activity's oncreate is getting called. Why is that happening? Why would the OS want to call OnCreate when the device is going to sleep? Is there any way to stop it, or at least know it's because the phone was put to sleep?
stackexchange/codereview
I Know this question has been asked and answered but i have a different problem. I have a app out right now that wont load images that are higher than 5mp but loads smaller ones. Im not sure if its 5mp or over 1mb, Im pretty sure its mp though, I have tested. How can I load pictures that are all sizes? My code is below...
stackexchange/codereview
I have implemented the following class class graph { friend ostream& operator<< (ostream&, graph&); public: graph() { } ~graph() { clearMap(); } class node { friend ostream& operator<< (ostream&, const graph::node&); public: node() { } node(const node&); node(luint ...
stackexchange/codereview
int main() { string line; char buff[10]; for(int i=0; i<10;i++) { cin.get(buff[i]); cout.put(buff[i]); if(i==10) { ofstream file; file.open("TEXT",ios::out); for (i=0 ; i<10 ;i++) file << buff[i] << endl; file.close(); } } } this code is not flush...
stackexchange/codereview
I have a test more or less like this: class FormDefinitionTest < ActiveSupport::TestCase context "a form_definition" do setup do @definition = SeedData.form_definition # ... I've purposely added a raise "blah" somewhere down the road and I get this error: RuntimeError: blah test/unit/form_definitio...
stackexchange/codereview
I'm trying to write a simple Python script for my mobile phone to periodically load a web page using urrlib2. In fact I don't really care about the server response, I'd only like to pass some values in the URL to the PHP. The problem is that Python for S60 uses the old 2.5.4 Python core, which seems to have a memory le...
stackexchange/codereview
I'm using game center to set up a custom leaderboard, when it comes to retrieving the data for my UITableView, I only get the playerID property for each entry, but not a much more useful alias property which I want to use to display who got each score. I don't understand why Apple has done it like this, surely a score...
stackexchange/codereview
Although it is comparatively hard to write in C++ than in Pascal I'm really attracted by multi-platform support of Qt. I can connect to an MSSQL server running on Win2003 server from Linux or I can connect to a PostGreSQL server running on Linux. That made a plus when comparing with Delphi. I'm trying to write sample ...
stackexchange/codereview
I'm trying to figure out what to do here. I have customer data in two different 3rd party apps that I need to organize into some reasonable data structure before making changes. I currently have two sub-classes of customer, one for each 3rd party app. Public MustInherit Class Customer Public ID as String P...
stackexchange/codereview
In my college, students sign up for classes online. It is a large university so people add and drop classes frequently. I made a simple script to alert me when people drop classes that I want to add. The program runs a loop that calls wget on the webpage where my class sits, waits 5 seconds, calls wget again, and then ...
stackexchange/codereview
Let's say I have the following table with hundreds of toys of various colors... --------------------------- ITEM | COST | COLOR --------------------------- 1 | 12.00 | BLUE 2 | 10.98 | RED 3 | 9.34 | BLUE 4 | 11.33 | WHITE 5 | 8.00 | YELLOW . | . | . . ...
stackexchange/codereview
Generally speaking - is it possible to draw with javascript two diagonal lines inside of a specific div on a website? It should basically look like a placeholder image … e.g. http://wightwildflowers.com/assets/images/placeholder.png I'm just curious. If it's possible how would it be done?
stackexchange/codereview
I'm doing an insert from a C# .NET app into an Oracle database. The query that is failing looks something like: INSERT INTO staging (create_date) VALUES ('16-Nov-1999') When I run it from SQL Navigator, it runs fine. Through .NET, the database throws: ORA-01858: a non-numeric character was found where a numeric was ...
stackexchange/codereview
I have problem with key bindings. I can't set key for "+". Can somebody help me, what should I write in xaml and what should I write in .cs ???
stackexchange/codereview
I'm updating the value of a virtual attribute in my view but this is not being reflected in the model instance. For example: MyModel.erb attr_accessor_with_default :hello_world, false View.html.erb <%= @mymodel.hello_world %><br/> <% if ( @mymodel.hello_world == false ) @mymodel.hello_world = true end...
stackexchange/codereview
I'm totally lost with superview, loadView(), viewDidLoad(), viewWillAppear(). Eventually, I want to set my controller's frame to superview's bounds and utilize [self.view bounds] at my viewDidLoad(). (maybe this is impossible?) here's the code snippet that gives me grief.. // add the controller's view to the scroll v...
stackexchange/codereview
Basically I need to find all the ids with more than 1 name so the output should be (2,a)(2,b)(4,a)(4,b)(4,c) id name 1 a 2 a 2 b 3 c 3 c 4 a 4 b 4 c I got a query working select * from (select distinct * from test) t group by t.id having count(*) > 1 But I think there might be a simpler solution, so yeah, is there ...
stackexchange/codereview
With the help of ActionScript or HTML5?
stackexchange/codereview
Consider a string with an apostrophe that needs to be inserted into a SQLite table. INSERT INTO myTable ( table_Title TEXT ) VALUES ( 'world's' ) How can you markup or escape the apostrophe in the value in the INSERT statement?
stackexchange/codereview
I open a popup window and would like to call the function on the parent window from the popup window. I would like this to work with IE, FF and Chrome. I am able to get it to work with IE, by using window.opener, but the same doesnt work on Chrome. Could you please help me on this? Regards Abishek
stackexchange/codereview
I am new to GPS.If i send "hotels" in label , any free webservice is available to see them as map?any tutorial please? is there any free webservice to give location name if i give current latitude & longitude values?
stackexchange/codereview
My MVC2 web project is deployed using the VS 2010 "web deploy" feature. It used to run fine but now it is timing out more often than not with this error message: Web deployment task failed.((10/11/2010 1:01:59 a.m.) An error occurred when the request was processed on the remote computer.) (10/11/2010 1:01:59 a.m.) An...
stackexchange/codereview
I am trying to get the most recent item created by a specific user by CAML query but it seems to return all the data created by everyone. Help please. Here's my code: string lifestyleQuery = @"<Where><Eq><FieldRef Name='Author' /><Value Type='Text'>" + _id + @"</Value></Eq></Where>";
stackexchange/codereview
I've just installed Python 2.6.6 from sources and what I get: >>> import hashlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.6/hashlib.py", line 136, in <module> md5 = __get_builtin_constructor('md5') File "/usr/local/lib/python2.6/hashlib.py", line 63, ...
stackexchange/codereview
I have a very simple and easy question, but I do not know how to do it. I am on a ubuntu machine, logged in via ssh. I want to edit my vim so that I dont have to keep typing :set number or :colorscheme elflord. I would like it to remember that information. When browsing around I found out that I need to change a .v...
stackexchange/codereview
I am currently writing a coding style guideline for junior devlopers, and I am curious if anyone uses list of common variable names (for basic concepts), to limit confusion in codebase? For example: for email address: email (and not: mail, e-mail, address, *mail_address* ...) for database name: dbname (and not: db, d...
stackexchange/codereview
I'm working on a google maps loader (using the google maps javascript API). I want to dynamically add points to a path as and when they come available. Edit: The webpage and javascript are stored and loaded locally and not through a web server. To this end I have created an external javascript file in which I put the...
stackexchange/codereview
I need to be able to add and remove an arbitrary number of points to an array. In C++ I could do this easily using vector which allows me to add and remove items of any type. I know I could store structs in an NSMutableArray using the NSValue class, but I would prefer a faster method than creating and destroy NSValue ...
stackexchange/codereview
I'm involved with a legacy BlackBerry appplication, where the COD install file is about 5 MB in size (mostly from embedded images and such). Is this size anything to be concerned about? Should a BlackBerry app generally be smaller in size, and why?
stackexchange/codereview
I have a user control, call it MyUserControl. MyUserControl is made up of a single grid with one row and multiple columns. There is a single textBox in each column and each column's width is set to *. Now I added three instances of MyUserControl to a grid in another control (_myUserControl1,2,3). What I want to do i...
stackexchange/codereview
I was experimenting with the STL algorithms and more specific with the for_each function. I tried a simple use case for concatenating a vector of strings. Note that this is probably not a good and/or efficient code. Take a look at the boost::algorithm::join function, if you really want to concatenate a vector of string...
stackexchange/codereview
I have a function with an absurd number of return points, and I don't want to caveman each one, and I don't want to next through the function. Is there any way I can do something like finish, except have it stop on the return statement?
stackexchange/codereview
I am stuck at a point while trying to export some data into Excel. Here is my code List<String> headers = new ArrayList<String>(); ////////////////////////////////////////////// /// Added some headers in between to the list /////////////////////////////////////////////// HSSFCell[] cell = new HSSFCell[...
stackexchange/codereview
I'm trying to compile a python project into an executable. To test this, I've got Py2Exe installed, and am trying to do their Hello.py test. Here is hello.py: print "Hello World!" Here is my setup.py: from distutils.core import setup import py2exe setup(console=['hello.py']) I do the following on the command line: p...
stackexchange/codereview
with t as( select xmltype('< ROWSET> < ROW> < DEPTNO>10 < /DEPTNO> < NAME>ACCOUNTING< /NAME> < LOC>NEW YORK< /LOC> < /ROW> < ROW> < DEPTNO>20< /DEPTNO> < DNAME>RESEARCH< /DNAME> < LOC>DALLAS< /LOC> < /ROW> < ROW> < DEPTNO>30< /DEPTNO> < DNAME>SALES</DNAME> < LOC>CHICAGO < /LOC> </ROW> < ROW> ...
stackexchange/codereview
Greetings, I'm trying to simply display a blank textfield (I know), but it's not working? I must be making some simple error. Here is my app.js: Titanium.UI.setBackgroundColor('#FFF'); var win1=Titanium.UI.createWindow({ title:'Login', backgroundColor:'#FFF' }); var uname = Titanium.UI.createTextField({ ...
stackexchange/codereview
While studying a software methodologies, I often see disclaimers along the lines of "This methodology requires a mature development team." Which development methodologies are specifically geared towards immature development teams? I'd assume this is where most teams should start. Let's define an immature team as a tea...
stackexchange/codereview
I'm trying to increment a sequence in sqlite3. Basically, I'm using the sequence as a key into another system, and I have multiple DB's which are generating conflicts. i.e. I have 2 DB's both creating entries with the same sequence number. They both create a 15, which I use as a key to another system. I'd like t...
stackexchange/codereview
I have a rather peculiar problem, when i'm working on Python in Max OSX terminal, my tab key no longer indents, it now inserts a ./ It seems it is auto-completing directories, if I press tab twice it lists directories, if i type in part of a directory and press tab it autocompletes. I understand this is a standard fun...
stackexchange/codereview
I am working on a program which have to read from txt files. I know that there's a function called fopen("myfile.txt","rt"), but what if I have 10 files? Do i need to call the function 10 times (a call for every file)?
stackexchange/codereview
Here is my problem: There are n companies distributing products. All products should be distributed in k days Distributing products of company Ci should be consecutive - it means that it can be distributed on days 2,3,4,5 but not 2,3,6,7 number of distributed products by company Ci on day j should be less than (or eq...
stackexchange/codereview
I've this code: #include <ftw.h> #include <stdio.h> #include <string.h> int nftw_stat(const char *path, const struct stat *stat, int flags, struct FTW *ftw) { if (strcmp(path, "/home/pf/.gvfs\0") == 0) { printf("nftw()\n"); printf("mode = %d\n", stat->st_mode); printf("size = ...
stackexchange/codereview
I have a string which could contain several different values, among them are. EDITED for clarity: var test could equal FW21002-185 or FW21002-181-0001 or abcdefg or 245-453-654 or FW21002-181-00012 I would like to remove all characters after and including the last - only if that string contains four characters after ...
stackexchange/codereview
I've been searching for quite some time for a rough equivalent of Zoomify (zoomify.com) for jQuery-- that is, a zoomable image viewer with slider. I'm aware of AjaxZoom, but I find the interface clunky, and the feature set beyond what I really need. Through this site, I found jQuery gzoom which is much closer to what I...
stackexchange/codereview
How can i get the current product code ID to be added to the current row "imgsample" cell? An example can be found here: http://www.jsfiddle.net/bpApd/3/ var counter = 0; //Order Form $("#add").click(function() { counter++; var cln = $('#ordertable tbody>tr:last').clone(true); cln.find(...
stackexchange/codereview
started a new rails 3 app. I have aded a couple of migrations which were generated through Scaffold. Nothing is output to the console when I run "rake db:migrate", even when I run "rake --verbose db:migrate" here is a sample migration class CreateBicycles < ActiveRecord::Migration def self.up create_table :bicycl...
stackexchange/codereview
I've been struggling for a couple of weeks trying to get a .epub file to dynamically "paginate" into multiple UIWebviews on the iPad to make an enhanced ebook app. If anyone has downloaded the Adderall Diaries app, or used the app "eReader", we want that style of pagination. I've seen lots of hacks and workarounds to g...
stackexchange/codereview
I've seen similar questions on one complex join vs multiple queries, in which case the answers is always "it depends" haha, but I was wondering if I could get input on direction. Hopefully it won't be too complicated to explain. I am displaying a page that has to pull information from about 3-4 different tables. Let'...
stackexchange/codereview
I am displaying a custom marker on my Google Map. They are placed fine, but they have this funny shadow. How can I remove the shadow? @Override public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when) { super.draw(canvas, mapView, shadow); // ---translate the GeoPo...
stackexchange/codereview
Well, I've been learning Objective-C for a while now, and I don't get why creating an NSArray would be beneficial for you. It's just a collection of some stuff right? Why can't you just use them without making an NSArray. Or can you use the objects in it in the implementation of every one of your methods (even if it's ...
stackexchange/codereview
I am new to ClickOnce deployment and at first glance it seems a great way to maintain .NET applications updated with ease. I am developing a simple application that stores information on a .mdb database and over some XML files. I understood how to use the "data" folder with ClickOnce, and I am developing the part of my...
stackexchange/codereview
is there any similar syntax to this in mysql: insert into database2.table1 (column1, column2) select column4, column5 from database2.table1;
stackexchange/codereview
as discussed in an other thread How to avoid cmd.exe interpreting shell special characters like < > ^ it is not easy to get all parameters from the command line. A simple set var=%1 set "var=%~1" are not enough, if you have a request like myBatch.bat abc"&"^&def I have one solution, but it needs a temporary file, an...
stackexchange/codereview
Is there any explanation of this strange behavior of defined constant? I have 1 file (config.php) which hold predefined value of directories, something like this $dir = array ( 'core_dir' => 'includes', 'admin_dir' => 'admin', 'upload_dir' => 'uploads', 'template_dir' => 'templates' ); define(...
stackexchange/codereview
I need to read and write BLOB data to a database. Here is my structure table #define CREATE_TABLE_USERS_SQL "CREATE TABLE IF NOT EXISTS %@ ( \ UserID INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, \ Name VARCHAR(50), \ Image BLOB);" How can I insert it into database, and then retrieve from it? Environment: iPhone SDK...
stackexchange/codereview
I'm developing a Firefox extension which places a button in the status bar. When the button is clicked, the extension injects some Javascript into the current page. This Javascript has a function that I would like to invoke with some parameters. I've managed injecting the code, I've inspected the page through Firebug...
stackexchange/codereview
I am using zend framework. I have added a new check box element for form. Example check box with values abc xyz When a checkbox is checked i want to append a textboxes next to each checkbox that is checked (after the close of label tag). I am trying to use jquery for this purpose. Can any one please help me on this iss...
stackexchange/codereview
I need some guidance from you all.. I want to start making iphone/ipad apps using Sencha Touch but i dunno HTML,javascript,XML or CSS. Is there any book or tutorials available for the startup??? Is it mandatory to be master in javascript or HTML or CSS to use sencha touch???
stackexchange/codereview
Normally I use: gem install rails I can install Rails on Windows, but by default, I guess the latest version, version 3.0.3 is installed. So if I want to install some other version of Rails, let's say 3.0.1, how can I do it?
stackexchange/codereview
Is it possible to run a timer when an application goes in background on iphone.
stackexchange/codereview
In my JSF 1.2 webapp I have a page with a <h:commandButton> that invokes an action method on a backing bean. This action will cause data to be removed/replaced in the database, so I want to avoid any situations where the user accidentally clicks on the command button. I would like to implement a simple "Are you sure?" ...
stackexchange/codereview
I've created an object, and now I'm trying to create an array full of these objects. I've tried a few different things with no success. How can I do this?
stackexchange/codereview
I need to copy my Solr index into PosgreSQL for another project. Is there an easy way to dump the index into a plain text file (something like pg_dump) or to iterate through each primary key so I can download them one by one?
stackexchange/codereview
Currently i am using Telerik grid which filters are applied to each column. I am binding the SQL result set to grid. If the result set is empty from the database while binding, I should disable the filter option in the grid. How can i achive the same through ASPX or Code behind using C#. Does Telerik Grid have any pro...
stackexchange/codereview
I'm writing extension methods for testing values for my unit-test. A naïve example would be: public static void ShouldBeTrue(this bool value) { if(!value) { throw new AssertFailedException("Expected true"); } } And using it in a test: someBool.ShouldBeTrue(); Everything works, except that the line...
stackexchange/codereview
I have this dilemma. I'm developing a web services. It has to return a list of supported languages. Languages are stored in an enum. Is it better to return (from web method) an enum array or covert it to string and return a string array. Maybe I'd prefer string array so the client doesn't have to mess with custom objec...
stackexchange/codereview
i was asked by an interviewer regarding sql server. the scenario was we have table with million or records. table has primary key, clustered and non clustered keys as well. still the data is fetching late. what do we need in this case? Please kindly give me the answer. regards, murli
stackexchange/codereview
Why this (copied from boost site ) gives me an error?! in VS 2010 Ultimate: #include <boost\test\unit_test.hpp> #define BOOST_TEST_MODULE MyTest int add( int i, int j ) { return i+j; } BOOST_AUTO_TEST_CASE( my_test ) { // seven ways to detect and report the same error: BOOST_CHECK( add( 2,2 ) == 4 ); ...
stackexchange/codereview
Hi I have added some format on textbox like $0.00 now what i wants is to remove the format on focus and then select the value of text box code is : $("#controlId").focus(function(){ $(this).val(this.val().replace(/\$/g, '')); $(this).select(); }); this is working fine in IE and firefox but not in Google Chrome....
stackexchange/codereview
I am trying to setup vim to skip adding eol on last line or eof, i have tried this :set binary :set noeol :w which is not perfect cause binary override filetype for later use. Any other option to set this, i don't need newline on last line.
stackexchange/codereview
I obviously can't determine whether a fragment of HTML is valid without knowing what the rest of the document looks like (at a minimum, I would need a doctype in order to know which rules I'm validating against). But given the following HTML5 fragment: <article><header></article>My header</header><p>My text</p></articl...
stackexchange/codereview
We have a report viewer and it adds the following jscript into the aspx file: //<![CDATA[ Sys.Application.add_init(function() { if (typeof Microsoft == 'undefined' || typeof Microsoft.Reporting == 'undefined' || typeof Microsoft.Reporting.WebFormsClient == 'undefined' || typeof Microsoft.Reporting.WebForms...
stackexchange/codereview
PHP code: <?php $data=$_POST['data']; echo $data; ?> When I do that, the HTML page that Python prints notifies me that PHP did not receive any value in $data I.e: Error in $name; undefined index However, when I send the data as GET (http://localhost/mine.php?data=data) and change the PHP method from POST to GET ($da...
stackexchange/codereview
trying to follow example in the expert f# book, and having an issue with the workflows...the code is as follows: type Attempt<'a> = option<'a> let succeed x = Some (x) let fail = None let bind p rest = match p with | None -> fail | Some r -> rest r let delay f = f() type AttemptBuilder()...
stackexchange/codereview
I am unsure of how to proceed. I have 3 div tags layed out like so (well this is a simplified version anyways): <div class="gray" style="margin-left:auto;margin-right:auto;width:100px;overflow:auto;"> <div class="orange"></div> <div class="blue"></div> </div> I would like to move orange to the left of gray using css s...
stackexchange/codereview
I have a simple ASP.Net web service / script method that returns a JSON object which is then modified and send back to the page during post back - I need to be able to deserialise this object: public class MyWebPage : Page { [WebMethod] [ScriptMethod] public static MyClass MyWebMethod() { // Exa...
stackexchange/codereview
For my web application, I am creating a namespace in JavaScript like so: var com = {example: {}}; com.example.func1 = function(args) { ... } com.example.func2 = function(args) { ... } com.example.func3 = function(args) { ... } I also want to create "private" (I know this doesn't exist in JS) namespace variables but am...
stackexchange/codereview