instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
How do I use JSON in java servlet? Using the URL, to pass parameters from a POST servlet, the JSON would respond based on the URL parameters.
stackexchange/codereview
Surely this has got to be easy; I'm just not having any luck with it. How would I get the TabPage of a given TabControl whose tab contains a given Point? For example, if I'm handling the MouseUp event and I want to know which tab the mouse was over when it was released. I tried GetChildAtPoint, but that seems to always...
stackexchange/codereview
I want to have achieve something similar to Java Tiles framework using only client side technologies (no server side includes). I would like to have one page, eg layout.html which will contain layout definition. Content placeholder in that page would be empty #content div tag. I would like to have different content inj...
stackexchange/codereview
I created a brand new WpfApplication, referenced netTiers classes, stuck a DataGrid on MainWindow, and set DataGrid.ItemsSource = DataRepository.SomeViewProvider.GetAll(). This causes the returned VList to be successfully bound and displayed. After i run the program, clicking one of the datagrid headers orders by that...
stackexchange/codereview
Below is the Code <? include('config.php'); // table name $tbl_name=temp_members_db; // Random confirmation code $confirm_code=md5(uniqid(rand())); // values sent from form $name=$_POST['name']; $email=$_POST['email']; $country=$_POST['country']; // Insert data into database $sql="INSERT INTO $tbl_name(confirm...
stackexchange/codereview
I have been asked to build a web application to report on information stored in another system. The other system is locked down but will allow me to export data as a csv file. I'd like to use an html form on my application so that people (the night shift!) can import data from the other system to my web application. ...
stackexchange/codereview
RewriteRule oferte-cel-mai-bun-pret(-(apartamente|garsoniere|case|vile|birouri|spatii-comerciale|spatii-industriale|mini-hoteluri-pensiuni|ferme|proprietati-speciale|terenuri-intravilane|terenuri-extravilane))?(-(([0-9+])-([a-z-+]+)+))?-(vanzare|inchiriere)/([a-z-+]+)(/pagina-(([0-9]+)+))?(/)?$ index.php?seo[]=anunturi...
stackexchange/codereview
I have a hash, where the keys and values are from matches in a regular expression. I'm having difficulty extracting the values given the keys. In the interest of brevity and honing in on the problem, my first version of this post I attempted to strip down my program to only the relevant parts, but it wasn't enough, so ...
stackexchange/codereview
I am using MS Test to test one of my controller's actions. This method uses the ConfigurationManger to read appSettigns from the web.config. For some reason ConfigurationMangager is not able to find the appsettings. In NUNIT I would just make sure to add a copy of the webconfig file to the test project so that it is av...
stackexchange/codereview
Folks -- I am getting the following exception and can't explain why. The number of objects to persist are usually small (<10), but I get a DeadlineExceededException intermittently when using makepersistentall from the persistencemanager. The http request code also handles other queries into the datastore prior to the ...
stackexchange/codereview
Let's say I want to perform a quick HTTP post to a website within my android app. If I were to set up the http client and send the post all in the onCreate method of the main screen (inside the UI thread) just for testing purposes, what would I use to quickly see what the response is to the post? I tried something quic...
stackexchange/codereview
Do ASP.NET Session[string key] data need to be encrypted to be secure? If such data always stays on the server, doesn't that make it safe to store credit card information, passwords, etc. there, as long as the data were sent via SSL from the client?
stackexchange/codereview
I'm needing to implement some RESTful webservices for a client in a Grails app and I want to use the jaxrs plugin but I am having a heck of a time finding information on how to implement security that isn't realm based (tomcat-users.xml). I am using the spring-security-core plugin and I'd like to utilize it to authent...
stackexchange/codereview
I am trying to figure out what the best method would be for me to use to parse word phrases passed to me and build different groupings based on those phrases. Example XML: <root> <keyword value=""My First Phrase""/> <keyword value=""My First Phrase Again""/> <keyword value=""My First Phrase Again and Again""...
stackexchange/codereview
I am having a problem with the asp:Menu control. A menu control 2 levels deep does not play well with internet explorer on https. I continually get an annoying popup. I think in order to fix this I need to override a function in an automatically included script file. change this function PopOut_Show(panelId, hideScroll...
stackexchange/codereview
I have a SVN project at work that looks like this: Repository project |-- docs |-- scripts `-- app |-- trunk |-- branches | `-- development `-- tags |-- Release_1.0 |-- ... `-- Release_5.3 I want my working folder like this: Working cop...
stackexchange/codereview
I make an effort never to allow warnings to stay in my code, so usually when they occur I don't actually want to run my application because I did something stupid. Therefore, I've tried to get in the habit of hitting Command-B to check warnings out before I run, but I slip a lot and hit Command-R instead. Is there a ...
stackexchange/codereview
I have an array {{".txt|.doc|.docx", "100000"}, {".xls|.xlsx|.xxx" , "10000"}, ".npp", "100000"} I am trying to find a way to run a foreach loop on each member of the array in a loop while also checking the first member as a string not an array. The code will search for all docs greater than 10000 bytes, as long as the...
stackexchange/codereview
The script block begins with $('#map#{shop.id}')..... in content_for :in_script doesn't work. def edit_country_fields_template(city, shop) content_tag(:div, :class => "item") do "<div id='map#{shop.id}' class='map'></div>".html_safe + if shop.geocoded? content_for :in_script do $('#map#{sho...
stackexchange/codereview
I have been trying to get a specific layout for more than two days now and really struck with it, what am trying to achieve is: To have a layout like the following LISTVIEW A VIEW LISTVIEW B VIEW LISTVIEW C (VIEWS are basically for headers) Can any one help to sort out this task?
stackexchange/codereview
I have a page with 2 links on it. The page URL is example.com/all Now the 2 links on the page, one goes to example.com/all/list and the other to example.com/all/map What I want is when the user lands on example.com/all, class for the href link needs to be 'current' When I click on example/all/map the map link needs to ...
stackexchange/codereview
I have a 32-bit C++ program that gathers diagnostic data to help troubleshoot our software. I'd like it to export a certain subtree of the registry - something like: regedit.exe /e ExportResult.reg HKEY_LOCAL_MACHINE\SubTreeIWantToExport The problem is Regedit will likely require priviledges elevation on Vista and abo...
stackexchange/codereview
I want to know how can we perform action when mouse is double clicked in a component.
stackexchange/codereview
If I have a given rectangle, with the width w, height h and angle r How large does another rectangle which contains all points of the rotated rectangle need to be? I would need this to perform fast bounding box checks for a 2D physics engine I am making
stackexchange/codereview
I am using teleriks gridview in an mvvm silverlight project. I am struggling to get the editing of a row working. If I double click a cell I am able to change the text of that row. I have a command for a save button. but when I look at my ObservableCollection prog I do not see the changes. so I went and changed everyth...
stackexchange/codereview
It is a good choice to use JSP with Wicket at long term? There is also another tool that allows to work with Wicket? Thanks
stackexchange/codereview
So are there any available in the SL4? I need to display some sort of info when no data is presented in the ListBox and/Or DataGrid when they are empty. If anyone is familiar with any of these and can provide examples or links, I would appreciate it. Thanks, Voodoo
stackexchange/codereview
Please could you tell me how I could find out if multitasking is enabled on the iPhone. I am using Xcode.
stackexchange/codereview
Is there any other way to get List<foo> directly from ValueCollection. Current I am using below code Dictionary<string,List<foo>> dic; List<foo> list= new List<foo>(); foreach (List<foo> var in dic.Values) { list.AddRange(var); } OR List<List<foo>> list= new List<List<foo>>(dic.Values); ...
stackexchange/codereview
Is it possible to generate Doctrine 2 entities, with the relevant docblock annotations, from an existing database schema?
stackexchange/codereview
For starters this is apart of my current homework assignment for my Data Structures class. I am not asking for answers, I am asking for help. I have a stack class that is implementing a Linked List instead of an array. I am currently trying to write my pop() function. I have a node for my theBack part of the stack. I a...
stackexchange/codereview
I have two sites running off the same base code. Each site has different requirements for which functions different user types can see. For example, one site says anyone can view the News page but on the other only logged in users with a value in the user profile of 'Manager" can see the news. So the first level of...
stackexchange/codereview
If you Google "iphone data protection apis" you'll see a zillion hits based on press releases. If you check out http://support.apple.com/kb/HT4175 you can see Apple making the indication directly. Where are/what are these APIs? I've used the old crypto APIs before iOS4, so they're not those. These APIs are supposed to ...
stackexchange/codereview
Can anyone tell me a brief summary about the features of VSTS 2010. I want a brief introduction on : Class Designer, Static Code Analysis, Code Profiling, Unit Testing with code coverage, Test Impact Analysis and Intellitrace.
stackexchange/codereview
I have a master page that has two content sections like this (left some parts out): <head runat="server"> <link href="/Content/Site.css" rel="stylesheet" type="text/css" /> <asp:ContentPlaceHolder runat="server" ID="HeadContent" /> </head> <body> <div id="content"> <div id="main"> <asp:...
stackexchange/codereview
I'm using async wcf calls inside a loop (say the loops runs for 45 iterations) ServiceClient client = ServiceClientFactory.Instance().GetServiceClient(); for (int count = 0; count < 45; count++) { client.BeginSendCount(textBox1.Text, client_SendCountCompleted , client); }...
stackexchange/codereview
I am working with mysql5 and hibernate. I am running my application in tomcat application server. if i stop mysqld service for some seconds, i am getting exception: java.sql.SQLException: Unable to connect to any hosts due to exception: java.net.ConnectException: Connection refused: connect If i will start service agai...
stackexchange/codereview
I have to include an external whitelabel site within an iframe on my page. There are numerous pages on the external site and they vary considerably in height. I need to adjust the height of my iframe to accommodate this. I can get the height of the first page loaded into the iframe (using PHP), but no way of getting su...
stackexchange/codereview
is it possible to create a custom JSTL tag that accepts a non-string attribute? I would like to create a tag that would be handle pagination using PagedListHolder from Spring MVC. <%@tag body-content="scriptless" description="basic page template" pageEncoding="UTF-8"%> <%-- The list of normal or fragment attributes ca...
stackexchange/codereview
I would like to do something similar to this psuedo-SQL: SELECT COUNT(A.SKU) FROM TableA as A WHERE a.sku NOT IN TableB
stackexchange/codereview
Hello i have this pager added with success on Firefox but not visible in IE8. Please take a look with Firefox first and then with IE8 at : http://www.poshsunglasses.net/Chanel-sunglasses.asp Any idea? is driving me crazy ... Thank you
stackexchange/codereview
I have an .mdf file on my local box. I have SQL Server 2008 Express and SQL Management Studio 2008 Express installed on my local box. How in the world do I import this .mdf file as a new database into my SQL Server? This seems like a ridiculously common task that must be performed thousands of times a day across the gl...
stackexchange/codereview
I am given a page url like 'http://abc.com/test.php?a=1&b=2&c=3'. Now I have been told to change the value of b to 5 so that it becomes 'http://abc.com/test.php?a=1&b=5&c=3'. i.e change from http://abc.com/test.php?a=1&b=2&c=3 to http://abc.com/test.php?a=1&b=5&c=3 Note: variable b here can refer to any name.
stackexchange/codereview
I'm having some trouble with BNF. I can't tell what seems to be the standard way of doing things (if there is one), and whether or not there are types like char or int or whatever already built in. However, my main problem is not understand how the part of the BNF in curly braces works. Given something like: exp ...
stackexchange/codereview
I'm trying to show the boroughs and postcodes a particular town in is. My database is fairly well structured, with a table such as town, postcode and borough. There are also tables for each of the relationships town_postcode & town_borough. Ideally I want the data returned as: "Abbey Wood", "SE2", "Bexley, Greenwich" "...
stackexchange/codereview
My question is sort of similar to this one I want to check if a DELETE query will fail because of a constraint violation. I'd like to do this on database level because I think letting it fail and catching the error is ugly. Another option is "manually" checking for it using SELECT queries to see if there are constraint...
stackexchange/codereview
I have a couple of Tables already supplied in the form MainRecord Record ID Details Textual Information 1 AAAAAAA ... some text referring to Oxford St Giles... 2 BBBBBBB ... some text referring Oxford.... 3 CCCCCCC ... some text referring to Oxford St Aldate... and support...
stackexchange/codereview
Is there any common function (in apache commons or similar) to make maps from query-parameter-like strings? To specific: Variant a (Querystring) s="a=1&b=3" => Utils.mapFunction(s, '&', '=') => (Hash)Map { a:1; b:3 } Variant b (Cachecontrol-Header) s="max-age=3600;must-revalidate" => Utils.mapFunction(s, ';', '='...
stackexchange/codereview
I'm trying to write a MQL query to format a search result in freebase (the "output" parameter in the search API). I essentially want to find the (simple) values of all the properties of a given search result (without knowing anything about the types of the result a priori). By "simple", I mean only the default properti...
stackexchange/codereview
I'm not sure what the best practice is when attempting to "do something" with a form as a result of a user interaction - I'm certainly open to an alternative if it's the best practice. There's an MXML event property called "enter" that applies to s:TextInput which calls an AS event handler when the user presses the Ent...
stackexchange/codereview
Google says that: displayObject.hitTest(stage.mouseX, stage.mouseY, true) is the way to test for the mouse being over a DisplayObject. This works if my movie is displayed at 100% scale. But if maximise my browser window so the Flash movie changes scale, it all goes to pieces. Does anyone have a way to fix this, pleas...
stackexchange/codereview
I'm new to java development and have started out using eclipse, what other tools should I be looking at? I'm coming from TextMate and Vim so its a big change, any advice?
stackexchange/codereview
My probel is that images in my Gallery are bleeding in into each other once I begin scrolling towards the next image. I am using a android.widget.Gallery connected to a custom adapter I extended from BaseAdapter. The adapter's GetView() method is like this public View getView(int position, View convertView, ViewGroup p...
stackexchange/codereview
I am trying to run the program nbtstat.exe(located in c:\windows\system32) from a ruby script. The problem is that it appears that Windows 7(64-bit) is hiding the program from the ruby script(it works fine in Vista). For example, Nbtstat command: "nbtstat" Dir command: dir "C:\Windows\System32\n*.exe" If I run the nbt...
stackexchange/codereview
Initially I created UITableViewController class without xib file but now i need Xib file for some action on tableView. here i can't link the new created xib file with UITableViewController Class. please help me for this issue. how can i make the link between xib and class.
stackexchange/codereview
I have a drupal website. I want to generate an Iframe with content from my drupal site, that other sites can embed. How I think this can be achieved: Method 1: Create a php script that is autonomous from the drupal engine. Import the configuration file and hence gain access to the database. Generate the content as a s...
stackexchange/codereview
Anybody know how to use validation in custom search dialog that looks like validation in edit/add forms?
stackexchange/codereview
till know, i was aware of the fact is, we cant play background process in iPhone, but with 4.0 + we can do it. i have a doubt, suppose we develop and music player application, which need to be play audio continiously, while the application has been closed. Is this possible. For example, the inbuilt music player of iPho...
stackexchange/codereview
Here is my code. You have to kindly look does it suffer from 'same origin policy' in this shape. The domain for HTML is (http://127.0.0.1/jqload.html) & php file (http://127.0.0.1/conn_sql.php). This is json format : [{"options":"smart_exp"},{"options":"user_int"},{"options":"blahblah"}] I actually want to append js...
stackexchange/codereview
Would like to post the value of a dynamic selection menu when the OnChange event is called. My code is currently this: <form action="test4.php" method="POST" name="itemform"> <select name="input_name" id="input_name" onChange="this.form.submit();"> <?php while($row = mysql_fetch_array($result)) echo "<optio...
stackexchange/codereview
What CSS measurement unit should I use for the dimensions (widths, heights, margins, paddings, fonts, etc.) of an embedded HTML resource that should run both on iPhone and iPad? Or should I use alternate CSS styles for iPhone/iPad instead? I would like the content of this resource to look well on both devices, without...
stackexchange/codereview
I have a line of text and a small image, which I am trying to align vertically within the line. My goal is to align the vertical center of the image with the x-height (or half of the height of a capital letter) from the baseline of the text. I can't figure out any way to do this. The closest thing that I know of is: ve...
stackexchange/codereview
in one web application, user will enter login and password. User is created in WebLogic server 10.3 I need to authenticat user in weblogic server. I was searching on google, i found there is some sample code on http://dev.bea.com/code for authentication through JAAS. I tried to access that web page but it seems page h...
stackexchange/codereview
I have built the code below but i can't get it to work for more than one on the page as i'm telling it all elements should be inside the parent selector its loaded on but when there is 2 it completely breaks jQuery.fn.carousel = function(op){ return this.each(function(){ // merge the options over-top of the default...
stackexchange/codereview
I am new to coding and need help understanding what is wrong with my logic and or syntax in the following method... The program is supposed to return the max and min values of an array. My goal was to have two variables (max and min) outside of the method, so that as the method ran through the array the values would ...
stackexchange/codereview
I'm curious - is it possible to ahieve in PHP: 1) Send image file to server 2) Process image = detect edges and create simple strokes basing on the edges 3) Save file on server / send it to user's browser / whatever Here is some "sample" file ;P (as You can see it wasn't made using any edge detection enabled program, b...
stackexchange/codereview
I have loaded a string from a html.file, and I have writen it to a yaml file with the plugin ya2yaml: - title: 'What a wonderful day!' body: ... # main contents here and I will load the .yml file by YAML::parse_file method. but "\n" in the string will cause load problems, so I tried to gsub all "\n" to "", ...
stackexchange/codereview
I have a UIViewController with a UITextField that uses a custom 'DONE' button when the keyboardType is set to NumberPad. I've used code similar to this - http://www.neoos.ch/news/46-development/54-uikeyboardtypenumberpad-and-the-missing-return-key However, My problem is that the custom keyboard remains everywhere in o...
stackexchange/codereview
Does anyone know of an example / tutorial of one? I want to control the x-min and x-max values of an xy plot (for mpl) using mouse clicks / drag & drop in wxPython- Thx in advance. --DM
stackexchange/codereview
rails (3.0.1) fakefs (0.2.1) paperclip (2.3.4) rspec (2.0.1) I am testing my model with rspec. Since this is a test, I want to prevent any file creations under the public directory as paperclip normally does. I am thinking this workaround is to use fakefs. Although I implemented this http://trevorturk.com/2008/12/11/e...
stackexchange/codereview
I am trying to implement multiple choice questions within my web application. I have datalist within a datalist. First datalist contains questions, second datalist contains choice, only one choice should be selectable at a time. I am using radio button. Even though I have set RadioButton.GroupName property, I can't mak...
stackexchange/codereview
Within my iPhone application I periodically make calls to a webservice, providing the endpoint with a list of numeric IDs. The webservice then returns information relating to the IDs it receives. This is all well and good. However, I would like to be able to provide functionality whereby the user will receive a local/p...
stackexchange/codereview
Apache 2.2.17 PHP 5.3.3 Currently, my app doesn't use gzip, but I would like it to. However, I'm not sure of a few things: I know that IE6 has problems with it; no need to go back over those here. What benefits/drawbacks are there to implementing this in Apache (mod_deflate) vs PHP? Do they basically produce the same ...
stackexchange/codereview
I'm in the process of programmatically recreating an overlay icon so to present text on the taskbar icon. I did this: GlyphRunDrawing gDrawing = new GlyphRunDrawing(Brushes.Black, iconOverlayText.ToGlyphRun()); Window.TaskbarItemInfo = new System.Windows.Shel...
stackexchange/codereview
The JavaScript script works with Chrome and Firefox but not in Safari. The code is: $(document).ready(function(){ $(window).load(function() { myVariable.start(); }); This generates: ReferenceError: can't find variable: myVariable The variable is defined in another JavaScript page that is inclu...
stackexchange/codereview
Trying to wrap an tag around an image, addClass and input src of img as href of tag: $(document).ready(function() { $(".new img").each(function() { var src = $(this).attr('src').addClass('image'); var a = $('<a/>').attr('href', src); $(this).wrap(a); }); }); My HTML: <img class="new" src="pic0.png" titl...
stackexchange/codereview
Currently in code i have used an object factory to return me a processor based of a string tag, which has severed its purpose up until now. using Core; using Data; public static class TagProcessorFactory { public static ITagProcessor GetProcessor(string tag) { switch (tag) { case "gps0": retu...
stackexchange/codereview
I have a file in the following format: [s1,s2,s3,s4,...] SOME_TEXT (per line) For example: [dog,cat,monkey] 1,2,3 [a,b,c,d,e,f] 13,4,6 the brackets are included. let's say I have another field like this, which contains two lines: [banana,cat2,monkey2] 1,2,3 [a2,b2,c2,d,e,f] 13,4,6 I want to take two files of t...
stackexchange/codereview
I have for example table cars table cars( producer varchar(30), model varchar(30), price integer, start datetime, end datetime) and I need to return data from table using criterions ( based on one criterion , or two or all of them ). Is there any way to dynamically create linq question (just one linq query, not to cre...
stackexchange/codereview
var user = new User() { Username = "a", Password = "b", }; user.Save(); Console.WriteLine(user.ID) // prints "504" Console.WriteLine(user.IsLoaded()) // prints "false" If the ID property is automatically set on Save(), I would expect IsLoaded() to also be set (to true). Why is it my responsibility t...
stackexchange/codereview
I am trying to create a Razor web helper something like this : @helper DisplayForm() { @Html.EditorForModel(); } But this gives the error "CS0103: The name 'Html' does not exist in the current context". Is there any way to reference html helpers within web helpers?
stackexchange/codereview
how to set the zindex value of the child div's greater than parent div. where parent zindex differs.
stackexchange/codereview
I'm trying to read from a file while it still opened for witing. How it can be done? Thanks, Eyal.
stackexchange/codereview
I'm in need of very specific class, I would really like to know if there is existing one, so I don't have to re-implement it. I have a set of items. Each item has a numeric value associated whit it - weight. Weight of each item is unique within set. Items must be sorted by weight. Weight can be modified for each item, ...
stackexchange/codereview
I have a Collection of type ObservableCollection<Dictionary<string, object>> and one of its properties is 'Group'. How do I write a linq to query all items where "Group == 'SomeGroup'"? I want a list that I can bind to a silverlight grid.
stackexchange/codereview
I have published my ASP.Net MVC 2 application. I have a login service which works localy but when I try to do the same things online I have a problem. I had to edit the web.config file to point to the database on the web server. Also i hade to provide a username and password to access this database but i haven't set an...
stackexchange/codereview
I have already searched SO and google, I am not declaring the same variable in two places nor am I including something in a weird way..that I know of. The insert method should be working fine, it's a pre-written method(i guess that could be wrong too.. lol). This is the error I get. Error: error C2872: 'range_error' :...
stackexchange/codereview
I have an ASP.net page. That has an Ajax Toolkit Tab Control. That has tabs. That have custom ascx controls I wrote. I have a text box that perform a search action. It is declared like this: <asp:TextBox ID="txtPrereqSearch" runat="server" ontextchanged="txtPrereqSearch_TextChanged"></asp:...
stackexchange/codereview
I have an input type="range" that is bigger then its parent. I want to make it scroll when the slider-thumb exits the parent width. Here is an example, when you exceed the parent width there should be a scroll. How can I do that? http://jsbin.com/ikemo4/edit Please note that input type="range" will only work in WebKit ...
stackexchange/codereview
I have a list of urls (1000+) which have been stored for over a year now. I want to run through and verify them all to see if they still exist. What is the best / quickest way to check them all and return a list of ones which do not return a site?
stackexchange/codereview
I am in the process of making a feature that consists of multiple items. Currently it contains a Feature.xml file with 4 ElementManifest entries; two for a specific contenttype (Field definitions and FieldRefs), one for some webparts and the last is for a custom pagelayout. All of that is working fine. I have altered t...
stackexchange/codereview
Hey guys (: I'm currently working on this project which consists of zoom function. Now, I am facing this problem where the zoom function that used by me required four mouse events, which are Mouse wheel, Mouse left button up, down etc. However, I am trying to make it like when a button is clicked, the zoom function can...
stackexchange/codereview
I'd like to build a "feed" for recent activity related to a specific section of my site. I haven't used memcache before, but I'm thinking of something like this: When a new piece of information is submitted to the site, assign a unique key to it and also add it to memcache. Add this key to the end of an existing list...
stackexchange/codereview
How can I apply Required Attribute like validation to the following without knowing how many elements will be in each collection: public class MyViewPageViewModel { [Required] public List<int> IntCollection { get; set; } [Required] public Dictionary<int, string> IntAndStringAllValueCollection { get; set; } ...
stackexchange/codereview
I want to add an automatic favorites feature that works like this: I have a detail view with a cell name and a unchecked star. User taps on the unchecked star, star is checked and the specific cell name is added to another view. At anytime the user can go to the detailview and tap the star again and the star becomes un...
stackexchange/codereview
I want to validate a System.DateTime value before I add it as a parameter to my SqlCommand instance. The MSDN documentation for the SqlDbType enumeration says: Date and time data ranging in value from January 1, 1753 to December 31, 9999 to an accuracy of 3.33 milliseconds. To validate the value, I'm using public reado...
stackexchange/codereview
I'm trying to find some simple way of queueing tasks on a thread that is NOT the UI-thread. I have a BroadcastReceiver that responds to Intents each time an image is taken, and notifies my Service each time that happens. The Service will have to do some processing (scaling and rotating an image) and I would like to do ...
stackexchange/codereview
I am trying to run a php function based on a button click using jquery but not through a POST. It is a function that is using array data that was printed on the form. Is this possible?
stackexchange/codereview
I have a results database like this patient integer rdate date rvalue integer rtype vchar Patients have (0 .. n) BP measurements on a given date. I need to find those patients who last visit included a BP measurement, and on that visit the diastolic BP < 90 and the systolic BP < 140. I can get the last visit like thi...
stackexchange/codereview
I'm trying to deploy an app on Heroku, and I haven't gotten it running yet. I see the Rails 500 page ("We're sorry, but something went wrong"), but when I heroku logs I see nothing interesting: ==> exceptional.log <== # Logfile created on Tue Nov 02 11:27:18 -0700 2010 by logger.rb [INFO] (init.rb:21) Tue Nov 02 18:27...
stackexchange/codereview