instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I've got notification embedded in user. In Mongoid, how would I achieve a similar query. The query below is done using Mongdb: MONGODB site_name_development['users'].update( {"_id"=>BSON::ObjectId('4ce694e672357e015a000014'), "notifications._id"=>BSON::ObjectId('4ce694e672357e015a000017')}, {"$set"=>{"notificatio...
stackexchange/codereview
I have group of check-boxes and corresponding text-boxes with them. I can get each checkbox one by one, but how do I get the group of textboxes so I can validate them? Here is my javascript code below: function validate_orderform(proform) { var flag=0; for (var i = 0; i < proform.chk.length; i++) { if ...
stackexchange/codereview
I am retrieving a column from a table using an SqlDataSource in ASP.NET/C#, which contains multiple 'values' separated by commas. I'd like to be able to separate this values into multiple columns in my GridView, and also allow them to update them. Is this easy to accomplish? Thanks
stackexchange/codereview
Given HTML like the following, how can I get the last row to take up the remaining height, and have the n-1 first rows to take up just as much height as they need? This seems to work as is in Chrome, but not in Firefox2 or IE6/7/8. <table> <tr> <td rowspan="5"><div style="border: 1px solid #cdcdcd; width: 100px; ...
stackexchange/codereview
I would like to know how can i fetch the a waveform from any music file format in order to visualize it using some kind of gui. i would like to use already written libraries instead of writing my own. any ideas? thanks!
stackexchange/codereview
I have a project which I've used Castle Active Record as the DAL technology. My object relationships are like this... A Route contains many Waypoints. What I want to do is add a waypoint to a route without retrieving the route from the database but I can't quite work out how to do it. I already know the route ID so t...
stackexchange/codereview
On return of a JSON file I can't seem to be able to detect how many results are returned. The problem seems to be with the JSON file returning a diffrent number of items each time. At times it will return 1 item, then at other it will return more than 1. You see, I'm trying to get the very first result from the JSON fi...
stackexchange/codereview
I have master SQL server with DB Central and a lot of satellite SQL servers with DB Client. I need to collect data from log tables(LogTable) on Client(each client has own ID in log table) to one big table on Central(LogTableCentral). Data must go only from Client to Central On each Client I want to have only data for...
stackexchange/codereview
Now that I have Subsonic working, I decided to add another class and accomplish what I originally set out to do. This entity class has just two properties, an ID property (type Guid) and a Name property (type String). When I create an instance of the class, I set the Guid (using System.Guid.NewGuid()) so it has a value...
stackexchange/codereview
I want to create the following table-like element in my page: I used to do it using <table>...<table> tags , but now I am switching all my sites to CSS and I'm using DIVs and such. I would like to know what is the "best" way to achieve this kind of an element (is it still the <table> tag?). I don't want to create jus...
stackexchange/codereview
See title. I need a regular expression to replace newlines with wrapping <p> tags. I tried this: var pattern = new RegExp("{(?:^|(?:\x0d\x0a){2,}|\x0a{2,}¦\x0d{2,})(.+?)(?=(?:(\x0d\x0a){2,}|\x0d{2,}|\x0a{2,}|$))}"); var notesRet = notes.replace(pattern, "</p>$3<p>"); var html = notesRet; But it didn't work. Any ideas?...
stackexchange/codereview
I'm developing an app on my Macbook debugging it on my iPhone4. The app make use of camera, internet connections, and normal stuffs. Today I'm trying to debug it on an iPod Touch 2G and on an iPhone 3G......but it always install the app on the device, it says "running" but before the app il really launched I get a "EXC...
stackexchange/codereview
Is there anyway to get a session object from a sessionID? I have a small project using a Flash upload to let a user upload their file to the server, but the problem is that Flash has some error when sending the session and cookie (in Firefox or Chrome, but not IE), so I found a solution to fix this problem: sending the...
stackexchange/codereview
What im trying to do is to set up smail mail server with lamson (lamsonproject.org). Its working very well, but i have problem with setting return path and for that reason, bounces are going to 'From' address and therefore not reaching my mail server. Lamson uses pythons smtplib to send mails out. The "talk" between my...
stackexchange/codereview
I am thinking about relative vs absolute positioning in CSS. Is there actually any point in using relative positioning if you have a fixed-width layout? Philip
stackexchange/codereview
I have a set of patch files which was used to patch the Linux 2.6.29 kernel for supporting my custom functionality. I would like to know if it is possible to use the same patch files to patch my new kernel (linux 2.6.32) for getting the same functionality. Thanks & Regards, Sen
stackexchange/codereview
I have a single table that can refer to one other member in the table as a parent. That parent could also refer to one other row as its parent...and so on. id col1 col2 parentID 1 foo bar NULL 2 blah boo 1 3 fob far 2 4 wob lob NULL I would lik...
stackexchange/codereview
How can I use jQuery UI to display an always-visible datepicker widget?
stackexchange/codereview
I am currently developing a Game where the player can shoot bullets to destroy asteroids. At the moment, this code for collision detection is hitting 1 or 2 asteroids, but not all that appear on screen. I think there is a flaw in the following code, but I'm not sure where. public void CollisionDetection() { for (in...
stackexchange/codereview
Can I use DrawBitmap with display independant pixels on android? If not, is there a suitable alternative? Thanks.
stackexchange/codereview
I'm developing an iPad app with 4.1 and deployment-target 3.2. I have a UITableViewController which adds a new View to the main view if a row becomes selected. In the UIViewController of the new view I've following code in the viewDidLoad method: - (void)viewDidLoad { MPMoviePlayerController* player = [[MPMoviePlayer...
stackexchange/codereview
I'm new to ASP.Net MVC and have a question regarding a master detail input form. My database has a Child Table with foreign key relationships to the Physician, Immunization and Parent Table. I've used Linq to SQL to create my model. I've created the controller and view for Child. The user will come to the form and su...
stackexchange/codereview
I am attempting to migrate a .net 2.0 application from Windows Server 2003 to windows server 2008. I am receiving the error - The specified module could not be found. (Exception from HRESULT: 0x8007007E) It seems like there is a dll missing however I cannot seem to find out which one. I copied the entire application o...
stackexchange/codereview
i'm currently working on my personal Wait Dialog implementation, wich supports task progress update and task cancellation. ATM it is something like: public partial class WaitDialog : Form { WaitDialog() { InitializeComponent(); } public static WaitDialog Instance { get { return Wait...
stackexchange/codereview
I am doing a homework assignment that reads in a book. First, a line is read in and a pointer made to point at that line. Then a paragraph function reads in lines and stores their address into a array of pointers. Now, I am on reading a chapter (a paragraph recognized by the next line being broke). It should call get...
stackexchange/codereview
I'm starting to learn googleapp engine and use python. Whenever i create a new project, should i always include whole bunch of configuration and python files like these, abhilash@abhilash:~/python_resources/google_appengine$ ls appcfg.py bulkload_client.py demos google LICENSE README ...
stackexchange/codereview
I am looking for a regex to find out the given word sequence has any special characters. For example. In this input string "test?test"; I would like to find out the words got "test(any special char(s) including space)test"
stackexchange/codereview
I have a table that has date and datasize. When I export the list its data appears as 11/1/10|1 11/2/10|2 11/3/10|16 I simply want to create a line graph from this data, but when I see if it's plotted or not the graph is never plotted, also is there a way to change the x axis from a 0-100 numbering to the dates ...
stackexchange/codereview
I have this rewrite rule: RewriteRule ^/([0-9])+$ http://<domain>/$1/ [L] And when I got to the site and type: http://<domain>/596 I am expecting it to redirect me to http://<domain>/596/ However, it is redirecting me to: http://<domain>/6/ What am I doing wrong here? Thanks! :-) Eric
stackexchange/codereview
I have used font-family in css as simsun. But there is no font in my system called simsun but I have to know what the font is taken by a browser to display.
stackexchange/codereview
My problem is that when I try to submit a form with jQuery Form plugin (http://jquery.malsup.com/form/), with contentType: script, I get "Save as" pop-up on IEs, that tries to save my response script. Example code: $("#vendor_edit").ajaxForm({dataType: "script"}); Response is JavaScript, that is properly executed on a...
stackexchange/codereview
Basically I want to take a URLString and break out all variables and their values and Post them to another page with a redirect to taht page.. How do i pull this off without having a form and actuall submitting etc... This is what i got.. string url = "http://www.blah.com/xyz.aspx"; StringBuilder postData ...
stackexchange/codereview
I basically want a clickable logo in my pdf. How do I create an Anchor using an Image?
stackexchange/codereview
With the following jQuery.ajax response... {"ysearchresponse": {"responsecode":"200","totalhits":"0","deephits":"0","count":"0","start":"0"}} How do I do a comparison on "totalhits" in order to execute the error: function() when totalhits == "0" ?
stackexchange/codereview
I'm using cufon with jCarousel. The Carousel has five items in it and rotates right to left -- they go off the screen to the left, in other words. You can see it here. http://www.foursquare.org/site/test If I leave the carousel on default behavior, it gets to the 5th slide and then slides back to the right fast, and ev...
stackexchange/codereview
quick question here. I'm wondering how to create a 2D vector from user input. For a project, I am storing my "board" as a 2D vector, and the user will enter the height and width of it, as well as perhaps the starting configuration. If my board is stored as: vector<vector<int> > myBoard( width, vector<int> (height) );...
stackexchange/codereview
I have a class like: class bla_bla extends WP_Widget { function boo(){ return 'something'; } ... } (it's a WordPress widget) How can I access the boo() function from outside the class? I want to assign the value returned by that function to a variable, like $var = boo();
stackexchange/codereview
We are looking to train R with structures like: age, data1, data2, ... dataN, actions where N depends on the amount of data we have about a person. Our goal is to determine how likely is it that another person would generate actions by querying on all the data we have him/her. age, data1, data2, ...dataM where M could...
stackexchange/codereview
I am new to perl scripting. Can some one tell me how to find the last indexof substring in a string which is repeat several times in the string. Actully I want to extract the file name from a give path $outFile = "C:\\AOTITS\\BackOffice\\CSVFiles\\test.txt"; If I can find the last string of the '\' I cand extract the...
stackexchange/codereview
I'm looking to create roles like user / admin on signup to different controllers. I'm looking for official methods of it. Thank you.
stackexchange/codereview
I've been debugging a browser plugin lately. The debugging process goes like this: 1) Build new plugin and register it with regsvr32. 2) Run browser. 3) Attach to browser process with visual studio. Whenever I attach to the browser process I never get any symbols in my call stacks... Breakpoints work however... But I r...
stackexchange/codereview
I am trying to save some values in the onSaveInstanceState(Bundle) method of my activty by following the example here: Saving Android Activity state using Save Instance State But it doesnt seem to load it from the Oncreate(). the bundle object is always null but whenever i call another activity, it does indeed go into ...
stackexchange/codereview
I have a website which runs under two different subdomains, let's call them foo.mydomain.com and bar.mydomain.com I'd like to have users share their login session between these two domains. That's why I set this in web.xml <authentication mode="Forms"> <forms timeout="50000000" loginUrl="~/Login/Login.aspx...
stackexchange/codereview
I'm having some trouble with COM Interop, the situation is as follows: A 32-Bit COM Exe Server (that was programmed in C++) offers a class with some member functions that deal with 3rd party hardware (This hardware also ties the COM Exe Server to 32-Bit, since the manufacturer doesn't support 64-Bit). I want to use the...
stackexchange/codereview
Is it possible in C# to have some sort of check list when compiling to ensure parameters to functions are certain values? For example, can I check that the parameter of this function is always greater than 10 at compile time? void SomeFunction(1); <--- Compile error here
stackexchange/codereview
I have a URL like this http://subdomain.domain.com/xyz-200_some_information I want to convert this URL to following URL using smarty. http://www.domain.com/xyz-200_some_information That is, need to replace subdomain with www subdomain is not fixed, there may be more more subdomains. I'm looking for a smarty based sol...
stackexchange/codereview
I am trying to give a non-root user the ability to run mercurial commands from the shell. When I log in as the user and type "hg", I get this message: abort: couldn't find mercurial libraries in [/usr/local/bin /usr/lib/python24.zip /usr/lib/python2.4 /usr/lib/python2.4/plat-linux2 /usr/lib/python2.4/lib-tk /usr/li...
stackexchange/codereview
I developed android application and put .apk on my website which runs on LAMP and I wish to enable somehow OTA (over the air) installation of my application, by simply providing URL to Android device. How can I do it? Scenario I wish to produce is (if someone didn't understand me correctly) that user scanns QR code of ...
stackexchange/codereview
i use HttpRuntime.Cache.Insert to insert data into cache. i have the function 'onremove' as the cacheitemremovedcallback - when the cache expires (after 15 minutes) it releases data in cache and calls 'onremove' that insert the data again to the cache. everytime i want to use the data in the cache i check that the data...
stackexchange/codereview
On Android platform, I wanna make myapp hidden on process killer and I wanna hide myapp on installed app list also. Is it possible?
stackexchange/codereview
Hi how would I select all link when they have the following id. <a id="List_ctl01_link3" class="content" href=link1.aspx"> <a id="List_ctl02_link3" class="content" href=link2.aspx"> <a id="List_ctl03_link3" class="content" href=link3.aspx"> <a id="List_ctl04_link3" class="content" href=link4.aspx"> And so on... Please...
stackexchange/codereview
We are creating a simple website but with heave user logins (about 25000 concurrent users). How can I calculate no. of instances required to support it?
stackexchange/codereview
In JavaScript, there are various methods for accessing the user’s text selection, and creating text selections (or ranges) — see http://www.quirksmode.org/dom/range_intro.html. As per that page, you can programmatically create a range, and access the text within that. But doing this doesn’t change the user’s text selec...
stackexchange/codereview
Object reference not set to an instance of an object. i am getting this error on line by line validation.can any one help me.............?
stackexchange/codereview
I am developing a GUI to launch an external long-term running background program. This background program can be given input command via stdin and use stdout and stderr to keep printing out output and error messages. I use a wx.TextCtrl object inside the GUI to give input and print output. My current code is as follows...
stackexchange/codereview
I am trying to open an InputDialog inside the execute() method of a custom command. It looks as follows: public class MyCommand extends CompoundCommand{ ... execute(){ try { ... super.execute(); }catch(Exception e){ InputDialog myDialog = ... myDialog.open(); ...
stackexchange/codereview
We have integration with several vendor for showing our product catalouge. Every-time, we have to customizing the view according to the provided templates by Vendor. I have find following points after analyzing all the templates i.e. as follows: Commonly, i have found out there are total 6 different type of blocks. L...
stackexchange/codereview
In my app, I snap a picture, display it, and detect for faces. Is there a way, for when the user hits the 'Detect Faces' button, for me to have the app delay for a few seconds, and have a popup box with the dialog: 'Detecting...' show up? Also, can I get a tiny animation below it (like an hourglass, or a spinning cir...
stackexchange/codereview
So I'm trying to get the column names from the sql results using the method fetch_fields. But that returns it in this odd way: > for keys in e.fetch_fields.each do > puts keys > end #<Mysql::Field:0x1c2a7bc> #<Mysql::Field:0x1c2a780> #<Mysql::Field:0x1c2a744> => [#<Mysql::Field:name>, #<Mysql::Field:address>, ...
stackexchange/codereview
I have a dictionary with objects as keys. How can I check if specific object is available in the dictionary?
stackexchange/codereview
What are some common hidden things that can bottleneck multithreading/parallelism in Jython? I have some parallel code (using Python's threading library) that won't scale past 3-4 CPUs, and I'm sure it's not because of any of these obvious pitfalls: Explicit locks Calling library code that requires synchronization (T...
stackexchange/codereview
I am using pollingDuplexHttpBinding and it is working fine as long as i copy paste the web.config from msdn article :- MSDN article However when i try to manually configure my service using WCF configuration editor, it doesn't work. The option pollingDuplexHttpBinding doesn't show up under endpoints in Binding drop dow...
stackexchange/codereview
In c++ enviroment, How can I open a file for the sake of merge it to a gzip file, I need to add part of the file to gzip file, can any body help? thank first!
stackexchange/codereview
Which apple mobile devices have a magnetometer? I thought that the iPod touch had one but I think I am mistaken. Do all devices with GPS have a magnetometer? Do all devices with a magnetometer have a GPS?
stackexchange/codereview
I am using the popular jFlow content slider on the Wordpress site I am developing. I have managed to get the look I want using css, but I cannot get the bannercontent div that shows a post's text about the thumbnail image to hide the post's not currently active. Sounds confusing, but if you look at http://www.thurstone...
stackexchange/codereview
I want to find whether an uploaded mov file is a video or not through asp.net(c#) code. This is to prevent uploads after changing the extension to .mov. Any one please help me out to solve the above issue...
stackexchange/codereview
I want to create a new folder named with the filename of the file used for the input. Example: If I use my new service with the file "test (test).jpg" I want to automatically create a folder named "test (test)".
stackexchange/codereview
I want to resize an ImageView on doubleTapEvent. A code example will be really helpful.
stackexchange/codereview
Am working on a project where we have a Bing map being resized depending on whether or not a panel is shown/hidden on the left-hand side of the map. Because of this, and Microsoft's terms preventing overlaying anything over the logo/copyright, etc, I'm using the VEMap.resize method to resize the map, and then am moving...
stackexchange/codereview
I'm trying a simple F# script that will find pythagoras. Here's the code: open System let FindHypotenuse a b = Math.Sqrt(Math.Pow(a, 2.0) + Math.Pow(b, 2.0)) FindHypotenuse(2.0, 3.0) Any suggestions?
stackexchange/codereview
I am trying to use afterfinish callback to set focus on a text field after a prototype's Effect and I am not getting this javascript right. Can someone help me? <%= link_to_function "Enter Data" do |page | page.visual_effect :appear , 'section1', :afterFinish => "document.getElementById('name').focus()...
stackexchange/codereview
I'm going to implement RESTful user authentication against an LDAP directory in my Rails app using net-ldap. I've already verified that this works, but where do you put this in a Rails app? Does that go in some kind of helper? In my UsersController? Here's an example of some authentication code: require 'rubygems' requ...
stackexchange/codereview
I need to be able to play a video received over RTSP AND save it to disc (well, the SD card) at the same time. This is a live stream, so I cannot download the entire file first and then play it. I must play and record simultaneously. I can record video from the on board camera using MediaRecorder, and I can receive an ...
stackexchange/codereview
Hey, I was wondering if someone knows a good way to scale an image while maintaining aspect ratio, and then center it with respect to a specified fixed crop area. The first part is straight forward (resizing while maintaining ratio), just need help with the second part. Here is a link to something that does this with ...
stackexchange/codereview
I want to read in a list of information from a specified url that will eventually be put into a database. I want to use a 2d array to simulate the rows and columns of the database. How would I accomplish this with cold fusion? example file: blah|stuff|123123 wurd|noise|123121
stackexchange/codereview
I'm trying to make an Ajax call on all <a> elements inside the id #filter which don't have the class .noAjax and somehow i can't get it to work. could someone have a look at my syntax please? $("#filter").not($("a.noAjax")).delegate("ul#portfolio-list li a", "click", function() { if ($.browser.msie) { locat...
stackexchange/codereview
I am having issues getting this cast to work. The compiler tells me value aNumber is not a member of object Char def runCastTest() { val aNumber = 97 val aChar = (Char)aNumber println(aChar) // Should be 'a' } What am I doing wrong?
stackexchange/codereview
The following code seems reasonable to me. It should create the object and then use the dynamic features to let me assign any properties I like. However the compiler says that "ExpandoObject does not contain a definition for Test". To which I say, "I know, that's the freaking point!" dynamic example = new ExpandoObject...
stackexchange/codereview
I have the following XML Schema <xsd:complexType name="SimpleThing"> <xsd:choice maxOccurs="unbounded"> <xsd:group ref="simpleContent" /> </xsd:choice> </xsd:complexType> <xsd:complexType name="ExtendedThing"> <xsd:complexContent> <xsd:extension base="SimpleThing"> <xsd:choice m...
stackexchange/codereview
I'm using Apache's Xerces2-j to parse my XSD. I am trying to get the datatype information for the element / attribute declarations in the XSD. Here's an example XSD: <xs:element name="Pretzel"> ... <xs:attribute name="Flavor" type="xs:string"/> <xs:attribute name="ProductID" type="xs:nonNegativeInteger"/> ...
stackexchange/codereview
i want to merge a PHP DOMDocument in another.. //this creates the DOM which will be imported function element_index(..) { $skrit=new DOMDocument(); $skrit->loadXML('<krits:kriti xmlns:krits="http://test.de/krits">..</krits:kriti>'); return $skrit; } function crawl_xml($element) { //thats the line where to get the resu...
stackexchange/codereview
I want to apply branding to a sharepoint 2010 blog site which is a sub site of our internet. I'm trying to achieve this by creating a custom blog site template based on the original blog site template. So I followed the following blog post. http://www.sharepointbits.com/blog/sharepoint-2010-custom-site-templates.html A...
stackexchange/codereview
I have a solution where i pass a collection of items from a source to a presenter. When the source is updated I want to be able to notify the presenter to show the new result. What comes to mind is to make a ChangeNotification class, pass it along with the result and have that class notify the presenter. Now as I see ...
stackexchange/codereview
If you have something like this: #include <iostream> template<typename T> class A { public: void func() { T::func(); } }; class B : public A<B> { public: virtual void func() { std::cout << "into func"; } }; class C : public B { }; int main() { C c; c.func(); return 0; ...
stackexchange/codereview
I've created a (domain-specific) language based on XML that I hope will be widely used. To "implement" it I'm using an xsd file. Until now I've used an url like this as the xml-language namespace : http://languagemainsite.org/lang/1.0/ Now, I'm not sure it's the best way to choose the namespace, for long term: Maybe ...
stackexchange/codereview
I am using EF 4 and have used the "Update Model from Database" option to import a view into the model. What I would like to be able to do now is choose "Generate Database from Model" and have EF script out the view correctly. My experience is that it creates a table instead of a view. Is there any way to accomplish th...
stackexchange/codereview
In an Android application, how do you start a new activity (GUI) when a button in another activity is clicked, and how do you pass data between these two activities?
stackexchange/codereview
I'm new to using and writing unit tests, but I've become convinced that they can help me write better code and ultimately save me time. I understand that DUnit is well integrated into Delphi 2006 and newer. Does anyone know of any good resources for writing unit tests with DUnit and possibly an introduction to unit tes...
stackexchange/codereview
I need to write a very simple python function which accepts a date in Excel format (an integer of days elapsed since 1st Jan 1900). I convert that to a python datetime.date object, and finally I'd like to format that as a shortened string date (e.g. "Jan10" or "Mar11") - basically the date in MmmYY format. dt.strftime(...
stackexchange/codereview
VB.NET 2010, .NET 4 Hello all, I'm by no means a good programmer and I'm just trying to wrap my head around some of this stuff, so please forgive me if this is a dumb question. I want the following to produce a message box that says "2", not "5": Public Class SomeClass Private SomeInt As Integer = 5 Private SomeLis...
stackexchange/codereview
I am making a SQL script editor / executor component for my application, very similar in nature to the SQL Server Management Studio or ye old Query Analyzer. I'm using C#, .NET Framework 3.5 SP1. My issue is that I would like to have the component parse the SQL to determine whether it should use SqlCommand.ExecuteNon...
stackexchange/codereview
I've been trying to get the new colorpicker from the toolkit working in my app, without success... Here is sample code that is supposed to pick up the color of the window background to populate current color, and upon new selection, is supposed to change the background color to the selected color... <Window x:Class="Wp...
stackexchange/codereview
Is there any difference between the following 2? 1 separate php code from html <html> <body> <?php // php code 1 ... ?> <div> ... </div> <?php // php code 2 ... ?> <div> ... </div> <?php // php code 3 ... ?> </body> </html> 2 everything inside php <?php echo "<html>"; ehco "<body>"; // php code 1 ... echo...
stackexchange/codereview
I am defining set of regex in xml file and then I will read them from xml file to match them with string. Now problem is if I want to define them in xml file then there should one special character which distinguish them. But that character must not use in regex like if I use $ to distinguish set of regex then there wi...
stackexchange/codereview
I want to deploy a Website which i have created using Microsoft Visual Studio 2008 Express Edition onto a remote server having Microsoft Windows Server 2008. I don't know anything about deployment. I want to know what are the things required on the Server in order to make the website work for all the client machines. i...
stackexchange/codereview
I want to perform syntax highlighting in jEditorPane. It allows me to perform single line syntax highlighting but if the XML tag is split into two or more line it does not work. Below is the code i am using for Syntax highlighting. Help me out with this. Thanks..... public class XmlView extends PlainView { private...
stackexchange/codereview
I have a gridview. The Gridview is in an update panel. I added a dropdownlist in a template column of the gridview. I have autopostback set to true. I have code working in the selectedindexchanged event all of that works great now I want to add a javascript confirm prompt on client-side change of the dropdowns I have...
stackexchange/codereview
I have a form with a couple of text areas and then about 20 input fields. The input fields are created dynamically, using a loop and are created from values in my db (countries) My code is: $options = ''; $country_code = ''; $query = $DB->query("SELECT country_code, country_id, IF(country_code = ".$country_code."', ''...
stackexchange/codereview
Grettings to you everybody! Here me still finding problem with implementing storekit framework. When i run the code on my device, it sends the request but the didReceiveResponse is not getting called.am i doing wrong in my code? Please guide me up...Thanks for any help - (void)viewDidLoad { NSLog(@"View is loaded");...
stackexchange/codereview
My apologies but I am a complete novice. Hopefully a quick one for you guys, though I can't find the answer anywhere. If I create a reference to a form in another form do I end up with two lots of the form in memory or two markers for the same form in memory. I'd like to beable to reference controls on the other fo...
stackexchange/codereview