instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
To implement an open hash table in C++, I thought I'd define a vector that contains pointers to vectors containing data. For the sake of simplicity, let's say I want a hash table that can store ints. I assumed I needed a vector< vector<int>* > for that. The resulting data structure could look something like this: [ind...
stackexchange/codereview
I have a table Administrator with only one column, adminId which is the primary-key. Because of business rules it has to be this way. I'd like to understand once and for all how I can write stored procedures that insert values in tables like this. I am using SQL Server and T-SQL and tried using SCOPE_IDENTITY() but th...
stackexchange/codereview
In postgreSQL, how can i return a table containing 0 if my table is empty and a table containing 1 if my table has rows? I need to do it in SQL, not using any other language
stackexchange/codereview
Many tutorials say that when i have to pass data from controller to view the best way is to create a flattern viewMoldel. This solution came to solve also other problems (like the eager loading problem). My concern is that when i create a flatten viewModel I lose all the informations that I store in the entities via an...
stackexchange/codereview
I'm trying to localize my Core Data model in order to display better error messages. I followed the instructions on http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdUsingMOM.html without success. My model file is v8.xcdatamodel, so my strings file is v8Model.string. I want to h...
stackexchange/codereview
I have created several DataTemplates for some of the DataTypes in my pet project. These data templates are really cool as they work like magic, magically transforming the look of the instances of the data types whenever and wherever they show up in the UI. Now I want to be able to change the DataTemplate for these Data...
stackexchange/codereview
I'm using C# and working on a Winform program, when a users clicks in a textbox and presses the backspace button I want to clear the textbox rather than delete one character at a time. How can I do this? Many thanks Steve
stackexchange/codereview
I need to checkout the files modified by developers. I tried Date command but it check-out the whole project. But i need only modified file for my patch with directory structure. Is there any way to checkout those files.
stackexchange/codereview
I have a View with one UITextView in the top half, one UIImageView on the bottom half and a button in the middle, between them. What I'm trying to do is every time I press the button, the UITextView must change the text (it gets it from a sqlite db). I managed to do that, but now I want to animate the text change. So I...
stackexchange/codereview
I wonder if it can be done in 10 to 15 minutes? Is there a quickest method? Is the most elegant and robust solution possibly a different one?
stackexchange/codereview
I have a page that, thanks to jQuery will automatically click the "Run Report" button under certain conditions. So, when the user goes to the page via the menu, they wait for x seconds and the results are returned. This works great... However, I want to add an animation because some users are not aware anything is go...
stackexchange/codereview
I'm just starting out in Flex development and want to know how Zend / Flex and CodeIgniter / Flex stack up. I'm a PHP developer, and know CI pretty well but haven't used Zend, but it seems to be the framework used most often in tutorials and the book I've got. Basically I don't want to start down one path, only to disc...
stackexchange/codereview
I have to make an array of 100 numbers and then shuffle the first 20 randomly to have 2 different arrays; A and B. For this assignment I have to check wether the first 20 numbers from Array A are a subset of the first 20 numbers af Array B Up until now I have this: import java.util.Random; public class opgave6 { publ...
stackexchange/codereview
I have a class with some function like: void workerFunc(int ClassVariable) { boost::posix_time::seconds workTime(classVariableA); std::cout << "Worker: running" << std::endl; // Pretend to do something useful... boost::this_thread::sleep(workTime); std::cout << ClassVariable << std::...
stackexchange/codereview
I am having problems with passing arguments to a function and the called function not returning control back to the function that initially called it. Basically, I am reading in a text file which contains usernames and passwords into an array. Then using a foreach loop I am passing the username and password to another ...
stackexchange/codereview
<input type="text" name="testinput" /> <script language="JavaScript"> new tcal ({ // form name 'formname': 'testform', // input name 'controlname': 'testinput' }); </script> <form id="form2" runat="server"> <div style="height: 897px"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </a...
stackexchange/codereview
I have one project collection and several team projects underneath. One of the team projects is for a now redundant project and I want to hide this or inactivate it so it no longer shows up in the list of available team projects in the collection. Is there a way of achieving this without deleting the team project?
stackexchange/codereview
I receive this error when ever I attempt to save on the existing file: the process can not access the file because it is being used by another process It works when a file doesn't exist, but when I attempt to write in it again the error shows up. I'm not accessing or using the file that time. here is the code: string...
stackexchange/codereview
Can anyone direct me to an tutorials which will help me in reading the tweets using android sdk for a a specific user. All I want to accomplish is read the tweets and display it preferably using JSON output of tweeter api. I don't need to post any tweets. I am newbie to sdk. Any help on this is greatly appreciated. T...
stackexchange/codereview
I'd like to generate a fancy font text image using GD. I have found: <?php // Settings $sText = 'This is just a test!'.@$_GET['t']; // Text of heading $sFont = 'Bryant-Bold.ttf'; // Default font for headings $sMain = @$_GET['c'] ? $_GET['c'] : 0xF2AB27; // Get a font or default it // Calcuate the width of the image $a...
stackexchange/codereview
My Javascript code goes something like this Var Mainurl=”http://localhost/Employee/SearchEmployee.aspx?” var url = { "eid" :empID, "DOB" : dob, "Gender" : gender, "Category" : category, "IsActive" :isActive }; window.open(Mainurl + Ext.urlEncode(url), 'Search Employee', "status=0, toolbar=0, location=0, menubar=0,...
stackexchange/codereview
Good day all I am having trouble deleting the associations between two objects without deleting the objects in NHibernate. My mapping file: <?xml version="1.0" encoding="utf-8" ?> <property name="Name" column="[SiteGroupName]"/> <many-to-one name="ClientInfo" column="[ClientID]"/> <set name="internalSites" table="...
stackexchange/codereview
I have UTF-8 everywhere so why does Page.last.url.encoding return "ASCII-8BIT"? My database.yml: development: adapter: mysql username: root encoding: utf8 database: recipebook mysql: CREATE TABLE `pages` ( `id` int(11) NOT NULL AUTO_INCREMENT, `url` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL, `use...
stackexchange/codereview
I have a JavaScript code that adds new XHTML to already existing page (DOM tree). My page elements are dynamic, so adding new elements causes changes in other elements size. I have a custom scroll bar implementation that depends on those sizes and needs to be reset every time they change. I call the reset method shortl...
stackexchange/codereview
I'm making a Tic-Tac-Toe program. I plan to use minimax with it. I made a tree with space for all possible game sequences and I'm looking for a way to populate it. I currently have this type: typedef struct name { char grid [3] [3]; struct name * child [9]; } node; and I'm looking for a way to fill grid just l...
stackexchange/codereview
I am trying to figure out how to accomplish the following: Handle client-side click event of button - prevent postback if result of javascript call is false (e.g. onclick="js:return IsThisAllowed()") Javascript method will return true or false, depending on result of call to generated web service method using ScriptMa...
stackexchange/codereview
I am new to XML. I want to read the following XML on the basis of request name. Please help me on how to read the below XML in Java - <?xml version="1.0"?> <config> <Request name="ValidateEmailRequest"> <requestqueue>emailrequest</requestqueue> <responsequeue>emailresponse</responseq...
stackexchange/codereview
I am using ASP.NET 3.5 and i used earlier 1.1 i am having difficulty to find where can i attach/declare the page init event ? In 1.1 there was auto generated code which used to have initialization code. Where we can add the page init method. So i am confused please help.
stackexchange/codereview
Is it possible to set the PHP version value, say 4.0+ and have PHPStorm highlight functions that wouldn't work with the oldest version? For example, for PHP4 this should highlight static function etc. I have a PHP installation on my PC but I don't want to install an older PHP version for every small script I have to pr...
stackexchange/codereview
I am looking to make a tool that allows me to basically edit images as you could in MS Paint. I can currently draw shapes and pens on my image but i don't know how to: - Crop - Save New Image with Bitmap - Zoom in & Out on Image - Stretch Image Out - Rotate the Image If anyone could help with any part of this que...
stackexchange/codereview
I have two questions: How to make a delay in C#, I want to call a function after x Seconds when the program start, but the other things in the program should go on is it possible to call a function or a statement only when the program runs in debug mode?
stackexchange/codereview
I'm facing a problem with firefox versions < 3.6 and I'd like to get a fix for that. My issue is update_panel related, but I couldn't find any information on similar issues and can't really name the problem as it occurs rarely ( and not on localhost) : "the updatepanels freezes and doesn't react" My problem is that I ...
stackexchange/codereview
Since moving to a new server (and updating to Rails 3.0.1) I'm experiencing a permissions error on my server. ActionView::Template::Error (Permission denied - /var/www/myapp/releases/20101106093931/public/stylesheets/.permissions_check.81834140.9998.761303): /var/www app is set to CHMOD 755 (recursively). The erro oc...
stackexchange/codereview
I tried to redirect standart output (cout) to a file, for debugging purposes std::ofstream traceFile; traceFile.open("c:/path/file.txt"); std::streambuf* fileBuff = traceFile.rdbuf(); std::cout.rdbuf(fileBuff); std::cout << std::unitbuff; std::cout << "disk is written\n"; But calling cout from a new thread make the...
stackexchange/codereview
I want to show related video's in flowplayer at the end of the video.
stackexchange/codereview
According to this article, we have to call GdiPlusUnload before unloading dlls. According to other articles, we also have to call dxInitializeGDIPlus and dxFinalizeGDIPlus. We have a lot of dlls, all build with developer express runtime packages. Do we have to call these procedures in all dlls using devexpress componen...
stackexchange/codereview
I want to automate Excel using Perl to do the following task(s): For a list of Excel .xls files, do the following: Open the file Set Format to CSV Save the file under the original filename and directory, but replace the extension "xls" with "csv" Close the file End I found how to open files, even how to save t...
stackexchange/codereview
Hello I have a very simple question, how do we query by field name?? I am using the regular query method, but I want to learn how it is done by one of the cakePHP methods, which would look like $this->Model->find('/*something like a query*/'). I am presently using the query method like $this->Model->query('select fiel...
stackexchange/codereview
I have two view controllers: LocationsViewController, and SettingsViewController. LocationsViewController conforms to the SettingsViewControllerDelegate protocol. That protocol contains only 1 method: // SettingsViewControllerDelegate.h - (void)settingsViewControllerDidFinish:(SettingsViewController *)controller; When...
stackexchange/codereview
I think a picture will serve me best: Any Ideas? My web app works just fine. I don't really use the web site administration tool, I just taught I'd play with it and discovered that the security tab doesn't work and I can't figure out why. I'm using my own membership and role provider which do make use of Structurem...
stackexchange/codereview
Im trying to make use of an email-ext plugin for hudson that was developed by chetan here. It allows for rich text email to be used in the content of email notifications from hudson. The problem is I cant seem to upload the .hpi file I go to Hudson -> Manage Hudson -> Manage Plugins -> Advanced browse to .hpi file then...
stackexchange/codereview
A string variable in Java can take one of the three values type=start, type=data, type=end .. what would be the best way to make sure it never gets set to any other value except start or data or end ??
stackexchange/codereview
I have a AutoCAD 2008 plugin written in VB.NET. This plugin uses mostly the COM interface for accessing ACAD objects. I'm currently switching from the COM interface to the managed interface and have the following question: How can I get the matching managed ACAD object from a given COM ACAD object. Example: I have a Ac...
stackexchange/codereview
Is it possible to change the URL of an iframe without leaving the page. I.e. Ajax If so how can this be done. Thanks so much
stackexchange/codereview
I have a question describd below: I have UITextView showing following content: Maybe it's because he doesn't settle. [Give funny anecdote about something the groom did not settle for. It should not be related to dating or marriage.] Or maybe it's something else. I can't put my finger on it, but I just never ...
stackexchange/codereview
I have written an Sdk that is used by a WPF client, and takes care of calling WCF services and caching. These WCF services are called using the ChannelFactory, so I don't have service references. To do that, I created a factory that handles opening and closing ChannelFactory and ClientChannel as follows: public class P...
stackexchange/codereview
Whenever I print something inside the servlet and call it by the web browser, it returns a new page containing that text. Is there a way to print the text on the current page using Ajax? I'm very new to web applications and servlets.
stackexchange/codereview
I have an xml string like this and I want to get attribute value of "name" in a loop for each element. How do I do that? I am using javax.xml.parsers library. <xml> <Item type="ItemHeader" name="Plan Features" id="id_1"/> <Item type="Deductible" name="Deductible" id="a">Calendar Year <Item type="Text" ...
stackexchange/codereview
I get the following error when trying to compile the following. (oops it didnt paste first try) C:\Users\Owner\Desktop\Study\C++\Assignment 1\Codeblocks\Assignment2\travelLength.h|24|error: multiple types in one declaration| In the past I've always thought this to be a missing ";", however there is nothing missing this...
stackexchange/codereview
I'm planning on opening up an in app store and I'd like to give existing users some of the items for free. I thought of releasing an update which would store some informaion the first time the app is used, then release the "real" update that'd look if the app was purchased before, however, it's likely that not everyon...
stackexchange/codereview
I am loading scripts and style-sheets dynamically from javascript like this. The problem is that browser does not wait for the script to load. consider i have a function named functionToBeCalled() inside a script file named script-file.js i have a function to load script file. <script type="text/javascript"> var lis...
stackexchange/codereview
Nowadays , i was reading the APUE.and i found the function defined as below: void (*signal(int signo, void (*func)(int)))(int); i was confused, i know signal is pointer to a function and the last (int) is his parameter. i did not know what is (int signo,void (*func)(int)).
stackexchange/codereview
What are pros and cons of Anemic Domain Model in your experience? Despite what wiki says. Update: I'm after answers that are based on experiences of this pattern applied in large scale enterprise applications!
stackexchange/codereview
I am using a textbox in lieu of a button in a MS Access 2003 form. When I hover over the textbox, the cursor changes to an insertion point. Is there any way to keep the cursor a mouse (and keep the textbox clickable- so the "enabled" property can't be set to "no")?
stackexchange/codereview
This isn't the exact use scenario but I was wondering if it was possible to get the value passed to the switch statement without having to retype what is in the switch() part. Example : switch(someObject.withSomevalue*(Math.random()*11)) { case 1 : alert("one"); // more cases here default: alert(theNumberT...
stackexchange/codereview
I am using Asp.Net web-application. Could you please help me to understand how exactly to create UL menu with ListView control such as : <ul> <li><a href="#">Item #1</a> <ul> <li><a href="#">SubItem #1</a> </ul> </li> </ul> Binding via DataSource works fine but cannot create tree and I need exactly HTML tr...
stackexchange/codereview
I'm not sure why I can't do this in Scilab. -->foo=zeros(500); -->foo(300) !--error 21 Invalid index. Why do I get the 'Invalid index' error? I thought I had initialized foo as an array with 500 elements, each of which was set to 0?
stackexchange/codereview
I have contemplating how to handle paper document input in Webapps for some time. The main problem is how to unify metadata and a scanned PDF. For the sake of this example I will present a hypothetical Expense Claim Application. Approaches I have considered so far: Web 1.0, Open a webpage, create an expense claim & en...
stackexchange/codereview
I have a table with multiple columns but I need only 2. select id, department from tbl If I want to use distinct, how do I do that? This is not working: select id, distinct department from tbl
stackexchange/codereview
I'm trying to produce a multiple select list with selected options based from a php array, in jquery. I can't seem to get it working, this is my code: My select list: <select name="modules[]" id="modules" class="inputbox" size="10" multiple="multiple"> <option value="1">Module 01</option> <option value="2">Module 0...
stackexchange/codereview
I have added a module to show the some set of images with text as showcase in the homepage using module creator everything goes fine. And while editing i want to show the already uploaded image on that particular banner. How it is possible in the custom module of magento.
stackexchange/codereview
As usual in android, each time the screen is flipped to portrait/landscape mode an Activity runs through life-cycle from onSaveInstanceState to onDestroy and then is recreated. In my Activity there's a ButtonText which can be changed by the user. It's reseted to the initial state, but I have to save the last state some...
stackexchange/codereview
How do I change the size of TTPhotoView as it shows up in full screen by default. My user interface design requires me to decrease the size of TTPhotoView, probably to one-third of the screen size? So, is there anyway to achieve this? Is there any method in particular that I should override?
stackexchange/codereview
I have another question kind of relative to this but I'd like to separate them for clarity reasons. I stumbled upon a problem where I couldn't insert a new row in a table because it only had one column and that column was incrementally increased and PK. However, creating a new object of that Set in Entity Framework was...
stackexchange/codereview
I can't get a jQuery UI modal dialog it to work as in the demo! Consider this recipe: <html> <head> <script type="text/javascript" src="/javascripts/jquery.js"></script> <script type="text/javascript" src="/javascripts/jquery-ui.js"></script> </head> <body> <p>First open a modal <a href="" onclick="$(...
stackexchange/codereview
Say I'm making a project and I have most the project in a namespace named Project. I define a class inside the namespace Project named MainProject. In the source file, to implement the class, do I do 'using namespace Project;' or do I wrap it in a 'namespace Project { ... }' nest?
stackexchange/codereview
Is there any free installer allow user to seamlessly install a software that could also install Windows service? There are a few ways like sc.exe but in Windows Vista and 7, they are denied by default unless they user grant themselves as administrator. Hope there a software make life easy for developers. I did tried a ...
stackexchange/codereview
This is just the continuation of this post. I'm coming from ASP.NET world. In ASP.NET I had a few options to store the session: "In proc" and "Out Proc" which mean the session will be serialized and stored either in database or in Session management service. This practice is also relevant to load balancing if I don't w...
stackexchange/codereview
I have created an Anouncement list in MOSS 2007 and I am showing the Announcements webpart on the home page. But the webpart is not displaying complete data. Is there anyway i can increase the length of the data shown. Please advise. My client wants to see the complete information and I donot know how to do it. **for e...
stackexchange/codereview
i got this code while ($aResult = mysql_fetch_array($result)) { $sResult[$aResult[userID]] = $aResult; } but i want to know is there a faster way to put everything from $aresult in the sresult global?
stackexchange/codereview
I am currently working on a project and I am stuck. As per client requirements a small modification was made to an existing form. Imagine the HTML page as follows: I have added a new form element named Business Type and there are 10 options in that. The user needs to select an option or multiple options and submit a...
stackexchange/codereview
Can anyone guide me how to code the arrow line in different direction. wa and wl is positive the rectangle will be on top of the x-axis. Below example shown if wl is negative and wa is positive. The code below shown how i code the rectangle shape. x1 is the varaible to state where to start at x axis. e1 is the length ...
stackexchange/codereview
Problem : I am having this exception being thrown, while I am trying to Validate a Business Object named StudyEnvironment using Sprint.NET Validation from config file. 'StudyEnvironment' node cannot be resolved for the specified context [Validation.Models.StudyEnvironment]. Below are steps to reproduce exception, it's...
stackexchange/codereview
How do parseInt() and Number() behave differently when converting strings to numbers?
stackexchange/codereview
There is this question i ran into, how can we find the ip address of the ICMP reply message in GNU/Linux?
stackexchange/codereview
Is it possible to use socket_create/socket_connect over SSL in non-blocking mode? I'm currently using \fsockopen() which natively supports an 'ssl://' prefix. However, fsockopen() will block until the connection has been made. This is undesirable in a script that can have around 50 simultaneous sockets waiting to be re...
stackexchange/codereview
I have been trying to get this program to work but so far having no luck. I cannot find where I am doing wrong. I'm not sure if there's something wrong with the code, or debugging. I'm trying to be notified if a new SMS arrives. Here is my program: package Technicaljar.SMSBroadcastReceiver; import android.content.Broa...
stackexchange/codereview
It's just what the question asks. Also, all I have is the PID, and the shell I am running the command from is not necessarily the shell that initially invoked the process. Any ideas?
stackexchange/codereview
I was trying to Validate characters (the extended ones) and i see that in various PC's they have in deferent places the extended characters. I meane we are not see the same ASCII code number for a certain character (not in Latins). Now My issue is what i have to do when my program starts to use always a certain ASCII c...
stackexchange/codereview
I asked this question on superuser, and got the tumbleweed badge for it (13 views in 10 days), so I figured here might be the right place. There are several versions of python installed in my windows machine. I want to be able to switch easily between the versions being used as default. I experimented and used winexplo...
stackexchange/codereview
My requirement is to provide a shared memory file between 32 bit and 64 bit processes. This file can be created by any of the process depends upon who comes first. - I am still not sure if this is possible and if so, any pitfalls later? - some info got from google: Memory-Mapped Files 32-bit applications can only sha...
stackexchange/codereview
IF I have a query like: Then while doing it, should I write each entry from the table to get the output. like Now How I get all the entries of my table flight. I have 2 columns in it..
stackexchange/codereview
I need to connect to a webservice from my iOS app however I can't figure out how to connect to it and what classes I need to use etc. I can't give the real URL but this is what I can say - when I open the following in the browser it asks for a username and password. I think it might be PHP or Java? http://IPADDRESS/Xml...
stackexchange/codereview
Inside a compiled LINQ query as a condition part, I was using Datetime.Now . It used to give me irrelevant results. I think it used to store same Datetime.Now value for few subsequent calls. To solve this issue I send Datetime.Now as a value parameter to the compiled query and it is working fine. Old Code event.E...
stackexchange/codereview
I am going to design a new compiler.I want to know that how do i use RE to identify the characters.what would be the grammer?How do i implement it?
stackexchange/codereview
I'm gonna use JQuery files in my custom ServerControl , thus I have to add below line within Head tag. <script type="text/javascript" src="jquery-1.4.3.min.js"></script> How can I do it in ServerControl with C#
stackexchange/codereview
So I Just got a recommendation from Amazon for LINQ to Objects Using C# 4.0: Using and Extending LINQ to Objects and Parallel LINQ (PLINQ). It says that the book introduces using the dynamic keyword with Linq, which got me thinking: What kind of awesomeness could you do with the dynamic keyword that you couldn't do wit...
stackexchange/codereview
I run some TAP Tests using TAP::Formatter::HTML. This CPAN module generates beautiful dynamic HTML Reports, but I want to use the number of passed tests, failed tests etc - to insert them into a database after all tests completed. The code below does not work. It prints nothing to the console. I admit, for lines 10 an...
stackexchange/codereview
Is there a programming language which can consume the following input: m = 1; n = 2/0; print(n); print(m); and successfully print "1" on the screen? Maturity of that language and quality of implementation doesn't matter much. EDIT: Don't take question explanation literally. I'm not interested in division by 0. I try t...
stackexchange/codereview
I wanted to write a code that would delete a given character from a string. I have come up with the following snippet. Now, while this does my work, it is giving me a worst case complexity of O(n^2). Can anyone help me on improving this. #include<iostream.h> #include<conio.h> #include<stdio.h> void Push(char *, int i...
stackexchange/codereview
I am quite new in ASP.net MVC model and having a bit problem here (absolutely newbie). My problem is i cannot access the ViewData via client-side java script to render a table using the data from my server side. I having a main menu at the top consist of several link button, after the user click on it, it will change t...
stackexchange/codereview
I have two SQLite tables I want to compare. To set up the tables: CREATE TABLE A (Value); CREATE TABLE B (Value); INSERT INTO A VALUES (1); INSERT INTO A VALUES (1); INSERT INTO B VALUES (2); INSERT INTO B VALUES (1); The closest I got with comparing two tables is using the SQL below: SELECT 'A' AS Diff, * FROM (SEL...
stackexchange/codereview
I am trying to use OmniAuth to handle the OAuth flow for a small-ish Sinatra app. I can get 37signals Oauth to work perfectly, however I'm trying to create a strategy for Freshbooks Oauth as well. Unfortunately Freshbooks require OAuth requests to go to a user specific subdomain. I'm acquiring the subdomain as an input...
stackexchange/codereview
So I have a QTreeView witdget connected to a model, and the same model connected to a QDataWidgetMapper object which connects to a few LineEdits. My problem is that I can't figure out how to change the QDataWidgetMapper index when I click on another item in the QTreeView... I tried this connect: i = QtCore.QModelIndex...
stackexchange/codereview
According to the msdn documentation, as you can see on the diagram, a server control's "Data binding events" occurs after all "control changed events". So in the case of a DetailsView control, the ItemInserted event would happen before the database operation? Obviously this cannot be correct?
stackexchange/codereview
I am looking for a way to write to a text file in C#. I have created a form that has a textbox for firstname, lastname, phone number, date of birth. When a user hits the button I would like that info wrote out to a text file. The examples I have found don't really tell me how. So that's why I am asking on here.
stackexchange/codereview
I am looking for a way to focus any window from it window number/id in Mac OS. All ideas are welcome even methods using private methods. Thanks in advance for your hep, regards,
stackexchange/codereview
This is a mini project for DBMS course. My task is to develop a Database for management of passenger trains. I'm designing tables for Customers, Trains, Ticket Booking (via Telephone & Internet), Origins and Destinations. He said, we are free to incorporate other features in our Database Model. Some of the features tha...
stackexchange/codereview
Hi i'm working through an ordering system, i've got the placing an order done and its going into the database fine, but i'm struggling to think how to let the user edit the order once its been inserted. This is how i grab the order from the page and send it to a PHP insert script: $('#submit').live('click',function(){ ...
stackexchange/codereview
I am trying to create a helloworld program using only masm and not masm32 libs. Here is the code snippet: .386 .model flat, stdcall option casemap :none extrn MessageBox : PROC extrn ExitProcess : PROC .data HelloWorld db "Hello There!", 0 .code start: lea eax, HelloWorld mov ebx, 0 ...
stackexchange/codereview