instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
My way: code <form> <input type="text" value=""> <input type="submit" value="submit"> type a space and press Submit </form> $('form').submit(function(){ if($('input').val() == ' ') { alert($('input').val().length); } return false; }); But I'd like to solve this problem using CSS3 select...
stackexchange/codereview
I am trying to send push notifications to myself. I have copied the code from Apple. But I am getting the error no valid 'aps-environment' entitlement string found for application. I made a new project with the same code (without adding entitlements.plist)and it's working fine. so it's not the problem of my provisionin...
stackexchange/codereview
I am using Asp.Net MVC 2, and trying to iterate through the metadata to add input controls to grid columns. Most attributes like DisplayAttribute, StringLength attribute, etc are not populated by the default modelmetadata provider. 1- I think these attributes are going to be supported in MVC3, right? 2- Is there a cust...
stackexchange/codereview
I have a list that is automatically populated from an XML DataSource using bindings. Each XML record contains a title, a description and a URL Each UI row contains a title and a description. When onclick is called on the title, I would like to call the openURL with the URL specified in the DataSource. Is it possible to...
stackexchange/codereview
in my database there is a table has 3 FK to other 3 tables i want to select the data in this table + data in the other 3 tables when the FK value = the PK values in the other tables
stackexchange/codereview
How new twitter manage to make every page of users has 9 pagerank? In the old one each page was perceived as a different page and therefore has different pageranks.
stackexchange/codereview
I've got some buttons that have toggle set to true. I'm trying to re-set the button's state to unselected. But, I can't access the button directly like: button.selected=false. I'm accessing the HBox's children which are the buttons. UIComonent doesn't have a selected property. So, how do I de-select the toggle in this...
stackexchange/codereview
I've created a few archetypes for a project that work fine for now, but I'd like to be able to verify that the code generated from the archetypes continues to work in the future. What I'd like is a phase of the archetype build that takes the archetype just created, runs mvn archetype:generate on it, and then runs mvn v...
stackexchange/codereview
The task is to format numbers, currency amounts and dates as unicode strings in a locale-aware manner. First naive attempt with numbers gave hope: Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >...
stackexchange/codereview
I just added an ElementHost to a windows Form(There are some other c# code in the Form). Then it gave me the error "The calling thread must be STA, because many UI components require this." I changed the thread to STA, but it blocked other things...is there anyway to make the elementhost work without touching any other...
stackexchange/codereview
I'm moving an application that uses django_cms from one server, where everything worked, to another and have spent the last 4 hours trying to find the cause of this error. A suggestions very welcome! mod_wsgi (pid=21972): Exception occurred within WSGI script '/var/www/vhosts/compdoctest.com/django/compdoc/django.wsg...
stackexchange/codereview
I am trying to work out how to populate Foo from FooConfig: class Bar { int A; int B; } class Foo { Bar BarValues; Bar BarErrorValues; } class FooConfig { int A; int B; int AError; int BError; } FooConfig is essentially a flattened version of Foo. I can populate the BarValues easily with Auto...
stackexchange/codereview
Given the code below, what is the difference between the way position0 is initialized and the way position1 is initialized? Are they equivalent? If not, what is the difference? class Program { static void Main(string[] args) { Position position0 = new Position() { x=3, y=4 }; Position positio...
stackexchange/codereview
I am trying to create 2 forms, which the user can select by clicking form1 and formt2. When the user select between form1 and form2. I want form2 to remember the value of form1 and pass on the value of the selected form for submission How can this be done in the most simplest way? Thanks
stackexchange/codereview
I have Flex/Parsley/Blazeds application deployed on weblogic 9.x. The following error appears in the weblogic logs the very first time I try connect to server side java class using remoting. After the first time the application works fine...bizzarre any ideas would be appreacited thanks. FaultEvent fault=[RPC Fault ...
stackexchange/codereview
Suppose I am given a weighted, connected graph. I'd like to find a list of edges that can be removed from the graph leaving it split into two components and so that the sum of the weights of the removed edges is small. Ideally I'd like to have the minimal sum, but I'd settle for a reasonable approximation. This seems l...
stackexchange/codereview
I have an app that uses OpenGL-ES and an EAGLContext within a UIView - very much like Apple's GLPaint sample code app. It might be significant that I see this bug on my iPhone 4 but not on my iPad. Mostly, this works very well. However, I am getting GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT_OES from glCheckFramebufferStatus...
stackexchange/codereview
Please give me some keyworkds to toggle between 2g and 3g in Android by code. If you have code snippets. Please give me. Thanks for all Nguyen Dai Son
stackexchange/codereview
I have an issue where we are merging a website with Wordpress. The website has a ton of news stories in a "/news" directory that we need to keep. When we add the CMS at say "/wordpress" we can set the base URL to the root of the directory so when we make a new post in the category "news", the link for it is "/news/this...
stackexchange/codereview
I am trying to overload the ostream << operator in my Matrix class, but I keep getting the following error: Expected constructor, destructor, or type conversion before token & Matrix::ostream& operator<<(const Matrix& matrix) { for (int r = 0; r < matrix.getNumrows(); r++) { cout << matrix.getPoint(r, 0); f...
stackexchange/codereview
I have a command button on a winform. So, if I have something like: myButton.Click += MyHandler1; myButton.Click += MyHandler2; myButton.Click += MyHandler3; How can I tell if any particular MyHandler has already been added to the Click event so it doesn't get added again somewhere else in my code? I've read how you c...
stackexchange/codereview
I am trying sort the text file using the UNIX sort command (GNU 5.97 or 7.4) according to ASCII code. The lines in the file have a single column, which is used as the key in sort. chr1:110170896:NM_004037:0:1:0/1 chr1:110170897:NM_004037:0:1:0/1 chr11:10325325:chr11:0:1:0/1 chr11::0325325:chr11:0:1:0/1 The ascii code ...
stackexchange/codereview
I cannot figure out the correct combination of command line switches and parameters to feed to XPerf.exe to get it to load the WPF ETW provider (Microsoft-Windows-WPF? a42c77db-874f-422e-9b44-6d89fe2bd3e5? E13B77A8-14B6-11DE-8069-001B212B5009}?) and listen for a specific event (WClientInputMessage). Can anyone give an...
stackexchange/codereview
I did some reading about composition through articles in Java World: http://www.javaworld.com/javaworld/jw-11-1998/jw-11-techniques.html?page=1 On that article, it guides how to do inheritance without using extends keyword. I am doing that. Is that ok? It seems to work for me. Here is the code: Examples of inheritance...
stackexchange/codereview
I tried to install apsw on another system, we got a multitude of errors, depending on how we installed it. First off, installing via exe gave us a "This application is not a valid win32 program" When we manually installed it from my system, we got a "ImportError: DLL load failed: %1 is not a valid Win32 application." A...
stackexchange/codereview
We have multiple war files packaged in an ear file. Some of the wars are using pure JDBC and we want to use hibernate for new wars (modules). We are using spring 2.5.6, hibernate 3.0 and jboss 4.2 server. We have following configuration for transactionmanager. <bean id="dataSource" class="org.springframework.jn...
stackexchange/codereview
I have a class with code (simplified): namespace CustomerData { public class InsertCustomer { public string name { get; set; } public string customerID { get; set; } public string Add() { //Insert into a database //Condition to check if the insert was successfull if...
stackexchange/codereview
This is probably pretty basic, but I'm a beginner in PHP - I have one table for categories (cat_id is the primary key & cat_name is the only other field), and another table for posts which uses the cat_id as a foreign key. My question is when creating a form for a user to submit a new post, how do I get the list of alr...
stackexchange/codereview
What is the regular expression to allow for numbers between -90.0 and +90.0? The numbers in between can be floating or whole numbers.
stackexchange/codereview
how to redirect traffic only when the visitor first arrive? I prefer in php would be nice, or javascript is also fine.
stackexchange/codereview
I'm running into an issue casting a VARCHAR in one table into a DATETIME and then using it in a comparison. The format ('2010-09-02 10:38:31.000') seems to be correct on all of the records, and I can select the data without any problems. However, if I try to use the new datetime in the WHERE clause, I get the error: Co...
stackexchange/codereview
I've built an interactive disc for a camp for the last few years which was basically a custom video, audio, photo player and PDF viewer. In the past, I've built it as a Windows Projector, but this year, I'd like to move to Adobe AIR. I was wondering about a few things in regards to AIR's capabilities and distribution. ...
stackexchange/codereview
XmlNodeList list = null; list = xmlResult.SelectNodes("/sitecore /result /item [scWebsitePath='"+sitecoreContextItemPath+"' and scTemplateId='"+templateId+"' ...
stackexchange/codereview
I have a searchfield which allows a member to enter a portion of a customer name and have results returned in the same manner as a facebook drop down search would do. I am running into a few roadblocks though: When the textbox is cleared OR the member clicks anywhere else on the screen, the results being returned are ...
stackexchange/codereview
DELETE is supposed to be idempotent. If I DELETE http://example.com/account/123 it's going to delete the account. If I do it again would I expect a 404, since the account no longer exists? What if I attempt to DELETE an account that has never existed?
stackexchange/codereview
Now when Ganesh Sittampalam shed some light on GHC RTS memory management I have another question: what means exist to check, how much of allocated memory is "bound" and how much of it is not used at the moment?
stackexchange/codereview
Is it possible to use nose to run a single test concurrently (across multiple processes) and aggregate the result in to a single pass/fail result? We have the need to run the same test multiple times concurrently to ensure resource locking isn't being affected. If nose can't do this, is there a specific testing/design ...
stackexchange/codereview
I like to use bash aliases to customize bash commands. Is there a way to override the bash alias settings, or should I rename the aliases to something different than the original command. eg: my .bash_aliases includes alias ls='ls -ltr' If I want to only retrieve the file name, do I need to rename the alias to somethi...
stackexchange/codereview
I'm aware of the -skip parameter, but is there any way to tell MSDeploy to skip multiple directories? Invoking the parameter multiple times does not appear to work.
stackexchange/codereview
is there any flag in php to determine if my JS / CSS being called from? What I mean is, To determine if the JS is being called from <script type="text/javascript" src="http://www.example.net/assets/js/jsGeneratedFrom.php"></script> or from the user directly hit http://www.example.net/assets/js/jsGeneratedFrom.php from ...
stackexchange/codereview
try { some code } catch() { some code } finally { some code } try { some code } catch() { some code } finally { some code } I know that if an exception is thrown in the first try block, then the first finally block will be executed. What about the second finally block? Also, if you want to di...
stackexchange/codereview
template<typename Type> class List { public: List(void); ~List(void); ... } which inherited by template<typename Type> class LinkedList : public List<Type> { public: LinkedList(void); ~LinkedList(void); ... } but when I List<int>* list = new LinkedList<int>(); there comes error LNK2019: unresolved e...
stackexchange/codereview
Initially this demo application I'm working on had just one page with a simple form to login <form action="/Login/AuthenticateUser" method="post"> <label for="username_or_email">Username or email</label> <input id="handle" name="handle" type="text" value=""> <label for="password">Password</label...
stackexchange/codereview
The skeleton of the code is a_kernel.cu __constant__ unsigned char carray[256]; a.cu #include <a_kernel.cu> ... unsigned char h_carray[256]; ... cudaMemcpyToSymbol("carray", h_carray, 256); The system configuration is Windows7 64bit CUDA toolkit 3.1, SDK 3.1 GeForce GTX 460 rules file in SDK 3.1 I've got invalid dev...
stackexchange/codereview
Edit - migrated to ui Stack Exchange (please close this question) Do you find it necessary/worthwhile to make a user repeat his password in a registration form, assuming that form includes an email address? Pros: I imagine there are quite a few cases where users mistype their password in the registration form. Cons: If...
stackexchange/codereview
I want to open new child activity in the parent LinearLayout. Just similar like Tabs. is this possible?
stackexchange/codereview
I am calling WCF service from web application. It works fine for local webservice. When service deployed to dev server, it gives me above error. Webservice returns List of custom objects in xml format. [OperationContract()] [WebInvoke(Method = "POST", UriTemplate = "/track/get", ResponseFormat = WebMessageFormat.Xm...
stackexchange/codereview
I need to put cs value inside the bracket for the object client. I have already handle the cs variable like this: CString cs (bar_->GetHostName()); But still fail to put the value inside this below code: WinHttpClient client(/* dont know what value to put here */); client.SendHttpRequest(); Error message: Error ...
stackexchange/codereview
When the user has javascript disabled, I would like to make the ajax.beginform not do anything at all, instead of submitting a regular full-page post request. What is a proper way to accomplish this?
stackexchange/codereview
I have a webservice client created using cxf. When I run from eclipse I dont get any errors. But when I create a jar out of the files and run it from cmd prompt , I get NoclassDef exception or ClassNot found exception. I have set the classpath, java home correct. 1. Exception Exception in thread "main" java.lang.NoCla...
stackexchange/codereview
I have a .NET web service returning the following JSON: {"command":"getqcardjson","valuesets":[{"datatable":"eaa65990-8f88-45e0-966b-610858ad4cb6","values":[{"Id":"eaa65990-8f88-45e0-966b-610858ad4cb6","InternalName":"Alpha Profile","TableName":"Alpha Profile","OnMainMenu":"","DefaultDataSourceId":"bb4d1622-2e48-40b6-b...
stackexchange/codereview
Basically i am looking for the difference between asp injection and sql injection on a asp webpage and what are the different types of asp injection other than sql injection
stackexchange/codereview
ok here is my issue... user habtm groups(roles) i have views for admins, boardmembers, managers, and vps. so when an user have just one role the app reads the role and we're going fine... BUT when he/she/it have two or more roles it just take the first one and dissmiss the others... the questions how should i manage...
stackexchange/codereview
I am wanting to save some app state data for when the user is quitting the app. I am thinking that I should be using the applicationWillTerminate method inside of my appDelegate, but when I try and do anything there, it's not doing anything: - (void) applicationWillTerminate:(UIApplication *)application { NSLog(@"test"...
stackexchange/codereview
This is what i want to achieve. I have navigation panel on left and content panel on right. when user click links on left navigation panel , ajax calls made and content panel got rendered. With current implementation, content got change based on the link i clicked. however i found content still don't get change when ...
stackexchange/codereview
I have the following code in a rendering, running on multiple environments: <li class="formWWW"> <span class="formNumber"><sc:text field="Form Number" /></span> <h4><sc:link field="URL"><sc:text field="Title" /></sc:link></h4> <p><xsl:value-of select="sc:fld('Description', .)" /></p> </li> The issue I'm ha...
stackexchange/codereview
I've also heard that Go insert them too, but they followed a different approach How does Javascript insert semicolons while interpreting?
stackexchange/codereview
I'm looking to parse a xml file using Python and I was wondering if there was any way of automating the task over manually walking through all xml nodes/attributes using xml.dom.minidom library. Essentially what would be sweet is if I could load a xml schema for the xml file I am reading then have that automatically ge...
stackexchange/codereview
I'm doing something that seems like it could be improved, but I don't have sufficient skill to improve it. Can you help? Given: vector<Base*> stuff; const vector<MetaData>& metaDataContainer = Config.getMetaData(); for(vector<MetaData>::const_iterator i = metaDataContainer.begin(), end = metaDataContainer.end(); i != ...
stackexchange/codereview
I'm trying to use migratordotnet for existing database. My database has around 100 tables and I'm trying to generate initial migration. I've tried using C:\migrations>Migrator.Console.exe SqlServer "Data Source=.\sqlexpress;Initial Catalog=my_database;Integrated Security = True;" MigracijeBaze.dll -dump InitialMigrati...
stackexchange/codereview
I want to make DB but I just know MySQL and PostgreSQL. Can you tell what kind of DB server? I want to know what DB server for make some web or for make some application (VB, Delphi).
stackexchange/codereview
I'm having difficulties closing an email message that I have raised. The email opens nicely, but once it is opened it will not close as the mailComposeController:mailer didFinishWithResult:result error:error handler never gets invoked. As far as I can tell I have all the bits in place to be able to do this. Anyone an...
stackexchange/codereview
I am trying to read the unknown contents of a text file into a 2D array and have it come out looking like: M [0] [0]=2 M [0] [1]=1 M [0] [2]=0 M [1] [0]=0 M [1] [1]=1 M [1] [2]=3 M [2] [0]=8 M [2] [1]=9 M [2] [2]=1 M [3] [0]=3 M [3] [1]=5 M [3] [2]=2 when the text file looks like this: 2 1 0 0 1 3 8 9 1 3 5 2 -2 3 -1 ...
stackexchange/codereview
I'm writing a custom WebDav integration for our website and in IE I can use new ActiveXObject to open e.g. Word from javascript then open a file. It's got to be like this to enable the applications WebDav integration, I can't just use a link. We support Firefox as a browser however and new ActiveXObject doesn't work. I...
stackexchange/codereview
I`ve recently been trying to get text wrapping working within a WPF (C/4.0) DataGrid, and no matter which solution I implement (All use some form of TextBlock inside a template with wrapping) it confuses the auto height of the grid and results in excessive white space (Set to Yellow for visibility sake) at the bottom o...
stackexchange/codereview
I apologise for the pretty terrible title - and the poor quality post - but what I basically want to do is this: for I in 1 2 3 4 echo $VAR$I # echo the contents of $VAR1, $VAR2, $VAR3, etc. Obviously the above does not work - it will (I think) try and echo the variable called $VAR$I Is this possible in Bash?
stackexchange/codereview
I have an NHibernate object that is a superclass (let's call it "Super"), and a subclass that inherits from it (let's say it's called "Sub"). <class name="Super" table="SuperThings"> <id name="Id" type="System.Int32" column="SuperId"> <generator class="identity" /> </id> <joined-subclass name="Sub...
stackexchange/codereview
I am trying to programmability check the output of a tcp stream. I am able to get the results of the tcp stream by turning on debug in HTTPConnection but how do I read the data and evaluate it with say a regular expression. I keep getting "TypeError: expected string or buffer". Is there a way to convert the result t...
stackexchange/codereview
I'm trying to find a way to accomplish a xsd schema to datastore roundtrip, with minimum effort. I used jaxb to build my object model from schemas, now I would like to store these objects based on JPA (or JDO or something else?). Is it possible, to auto enhance the objects with the missing annotations based on the JA...
stackexchange/codereview
In my website I wrote that code: protected void Page_Load(object sender, EventArgs e){ LinkButton lbtnTopicAddress = new LinkButton(); lbtnTopicAddress.Click += lbtnSpecificTopic1_Click;} protected void lbtnSpecificTopic1_Click(object sender, EventArgs e){ Server.Transfer("~/SpecificTopic.aspx)" } But when I press...
stackexchange/codereview
The Play framework documentation is kind of weak when it comes to module creation. How does one creates a Module ? I've read that large applications could be split across several modules, how ? What can/can't be done with a module ? (any access to low level api ?) Can a play module expose abstract JPA classes ? What's...
stackexchange/codereview
Are we suppose to describe such scenario: Lets suppose that we have a fnc: void delete(int value); And now, am I suppose to describe scenario when user supplies value of type not convertible to int? It won't even compile, so what's the point?
stackexchange/codereview
my client is saying that she couldn't register on our website and getting error When she was registering, she would enter all the information, and when she would click through, an error message would tell her that the name field only allowed letters and not numbers. She wasn't entering any numbers. Could this be a pro...
stackexchange/codereview
I have a php script that generates php and javascript wrapper classes that handle json marshalling based on a configuration file. My initial plan was to have a single config file that generates all the classes used by the application. However, my team lead suggested I use a separate file for each feature, to avoid crea...
stackexchange/codereview
Is there a way for setting a number of maximum visible rows for a listview?
stackexchange/codereview
Any good alternative for Spy++ that allows sending messages to windows? Thanks
stackexchange/codereview
Often, a simple of ArrayAdapter does what I want and during early development I will provide the android.R.simple_list_item_1 for the view id required by the ArrayAdapter constructor. Is it possible to provide a customized view which is based on the android.R.simple_list_item_1 to the ArrayAdapter constructor? I do no...
stackexchange/codereview
In interface builder I have created a UIVIew (the view of a UIViewController) containing a UIScrollView. The UIScrollView is set up in a way that it will resize depending on the orientation of the iPad. When I launch the application in portrait mode, the view initially has a width and height of the portrait orientation...
stackexchange/codereview
I've been set the challenge of creating a basic text file search engine in PHP in a very limited time, having little to no previous programming knowledge its quite a task! Here is what we have so far, it does manage to return the document((s) - if more than one with same amount) with the highest number of occurrences o...
stackexchange/codereview
I have to send data to some external service in xml format. They have provided xml schema as below, <?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www. w3.org/2001/XMLSchema"> <xs:element name="TRANSACTION"> <xs:complexType> <xs:seque...
stackexchange/codereview
I have a JavaScript overlay that consists of several input text search criteria. When the user presses the enter key in any of those inputs, I want to mimic the behaviour of the search button. I know how to handle the enter key if there is only one input. I define the input as: <input type=\"text\" class=\"txtOrgNmFil...
stackexchange/codereview
Rewrite this to minimize the assignment statements /* Build the list {1, 2, 3} in the heap and store its head pointer in a local stack variable. Returns the head pointer to the caller. */ struct node* BuildOneTwoThree() { struct node* head = NULL; struct node* second = NULL; struct node* third = NULL; head = malloc(...
stackexchange/codereview
I'm looking for a terminal UI library providing widgets like buttons, checkboxes and so on, that is compatible with python3. I've tried: pycdk (pyrex does not work with python3, and porting it is a mess) urwid (does not work with python3, it has a port but not working well with new curses interface). Does anyone know...
stackexchange/codereview
I would like to know if someone can recommend a tutorial to organize my project, or to explain how to do it. In my project I need these modules: a) Core (entities classes + daos) b) Backend (gwt module where the users can admin their app data, the user must logu in) c) Widgets (gwt module that loads an id in the url an...
stackexchange/codereview
I want to create a web directory site, and I need to get these site screenshots. How to get a site screenshot quickly using PHP? I tried IECAPT,webscreencapture, khtml2png, but they are all slowly. And they all get screenshot one url by one url. Is IECAPT depends on a ie browser? if it is, why it can not open many ie t...
stackexchange/codereview
I am making a Navigation-Based Application for the IPhone and I start off with a big list of names (about 100) and I was wondering what would be the quickest and most efficient way to alter the content according to what name the user tapped on in the list. Right now I change the content according to what the title is ...
stackexchange/codereview
I am currently working on a multi-threaded game application for the Android platform... so far so good... I just got over a bug in my application which caused it to restart on orientation change (fixed by designating a specific orientation depending on the availability of a hardware keyboard or not, which is important ...
stackexchange/codereview
I have a Python module that I want to dynamically import given only a string of the module name. Normally I use importlib or __import__ and this works quite well given that I know which objects I want to import from the module, but is there a way to do the equivalent of import * dynamically. Or is there a better approa...
stackexchange/codereview
I'm looking for a good solution for an autocomplete/autosuggest jQuery plugin. The ones I have found stops auto-completing/suggesting after a value is selected. I'm trying to mimic Google Suggest. For example, say I provide the following options: aaa bbb ccc When user type in a, the user should be presented with aaa....
stackexchange/codereview
I was just curious as to whether or not there's a library that converts mathematical expressions (non latex) to crisp looking images like wolfram alpha does. For example, (n^2+5x+3)/n should output this.
stackexchange/codereview
$router->map('people_companies_add_owner', 'people/add/:is_owner','null', array('controller' => 'companies', 'action' => 'add','is_owner'=>'1')); $router->map('people_companies_add_client', 'people/add/:is_owner','null', array('controller' => 'companies', 'action' => 'add','is_owner'=>'0')); which calls controller...
stackexchange/codereview
Firefox and Chrome support adding dir attribute to an option element, i.e. <select> <option dir="rtl">some text</option> <option dir="ltr">some text</option> </select> This, however, does not seem to work in Internet Explorer 7 or 8. Did anyone manage to get some kind of a solution for this?
stackexchange/codereview
I have a PictureBox it serves as a canvas. A List<RectangleObj> the array size of aprox 8000. The "RectangleObj" is a simple rectangle class, once you invoke its Draw(Graphic g) method it will draw the border using g.DrawRectangle(...) and, fill the rectangle with an alpha transparency using g.FillRectangle(...) In ...
stackexchange/codereview
I am trying to build a product that shows users interactive maps and helps them navigate through a shopping mall. For that I am thinking of building a content management system(in Flex 4) so that map creation and shops identification process can be streamlined and non-technical users can use it. Any ideas on where to s...
stackexchange/codereview
Is anyone aware of the reasons why the following line of T-SQL code works (under SQL Server 2008)? SELECT cast(2 as real(10)) I expect the server to complain in the very same way it does when I attempt this: declare @x real(10) set @x = 4.1234567 select @x and I get: Msg 2716, Level 16, State 1, Line 16 Column, para...
stackexchange/codereview
What's the best way to create a "Is my site down?" in Ruby? How should I do it to check it using HTTP(s) and Ping? Thanks.
stackexchange/codereview
Hello I'm building a web application (online store) where an admin can upload a new product. One of the input type is a file (image of the product) I want the images of the products to be stored in a folder, and each product will have an image associated in the database table. My question is, how does input type=file w...
stackexchange/codereview
Currently I'm in the process of evaluating CouchDB for a new project. Key constraint for this project is strong privacy. There need to be resources that are readable by exactly two users. One usecase may be something similar to Direct Messages (DMs) on Twitter. Another usecase would be User / SuperUser access level. I ...
stackexchange/codereview
I'm having a problem understanding how to read in a string to a structure member array. I have a structure called 'customer' and a member called 'char last_name[20]'. I prompt the user to enter in his last name and that last name is to be stored in the 'last_name[20]' variable. The condition is that I have to use a do....
stackexchange/codereview
I've researched this scenario for a few hours now but cannot seem to find anything that addresses it directly. I have lots of optional parameters passed into a stored proc. I want to return a recordset that is filtered by none, one or more of the optional params passed into the stored proc. I'm trying to produce a sing...
stackexchange/codereview