instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I made a project, all the settings are default. When i run it in Debug mode (Build config = Debug) and face with exception - it dumps to my custom logging mechanism whith error line number, but when i run Release build - the same exception is logged without line number, only method throwing and call stack are logged. I...
stackexchange/codereview
Just wondering what the best practice is in HTML. I have noticed that I tend to removed the width and height attributes, because they are a pain when I tweak an image, so best to only use if necessary. Is this best practice? I am I incurring performance issue? Is this legacy stuff?
stackexchange/codereview
my first query SELECT ID FROM wp_posts WHERE post_type = 'post' AND post_status = 'publish' AND ID IN (Select object_id FROM wp_term_relationships, wp_terms WHERE wp_term_relationships.term_taxonomy_id =18) ORDER BY post_date DESC produce result 31 and 28 and my second query SELECT ID FROM wp_posts ...
stackexchange/codereview
Edit: answered, was a syntax error, see below for fixed code... Hi all, long time reader, first time asker. The below code is always allowing form submission, even given that I've overidden the return value at the end of the function, outside of any conditional statements. Form submission is only disallowed if there is...
stackexchange/codereview
Ive always wondered this but never had the chance to research it. What sort of algorithms are use in SQL? Naturally you search and compare for basic statements, what search algorithms? Sorting? and for other functions like Join's etc. I know there is no clear cut answer to this questions but the idea is to gather a gen...
stackexchange/codereview
This functionality works in a separate project (just not in my three column layout) and I'm wondering if I'm suppressing the 'load' by something that I've done in my css. I've posted this on jsfiddle: http://jsfiddle.net/FhpE7/8/
stackexchange/codereview
i have a control on a winform called chart1. i would like to know whether chart1.DataSource is empty how do i check it?
stackexchange/codereview
I'm sure I'm doing alot wrong here, but specifically I'm trying to pull some info from a form and combine it into a url I can then .load(): $(document).ready(function() { origin = $('#origin').val(); destination = $('#destination').val(); weekDay = $('#weekday').val(); fullSchedule = origin+'_'+destina...
stackexchange/codereview
I don't know what I did, but suddenly my scripts and content folders return a 404 for all items. I thought maybe it was folder permissions, since I put the project in a folder under "my documents". I ran VS as an administrator and I still have an issue with the style. I ran in debug mode and there are no errors poppin...
stackexchange/codereview
I have a browser control embeded in a C# windows app. I want to grab the original HTML that the url contained (not the one rendered, which could have been modified by javascript) - same as what would be in view source code in IE. Any suggestions?
stackexchange/codereview
I'm new to iPhone development and try to create a simple address book. The contact data is stored in an SQLite database and presented in a UITableView (just like in the Contacts app). When the user taps on a name in the table, a detail view becomes visible. There's a delete button that deletes the contact. The problem ...
stackexchange/codereview
I'm having some trouble with this. I am reading in some text and trying to extract prices from it. That I am fine with, but I am trying to write some code to determine the name of the currency from the symbol in the text with if statements similar to these if ($curr eq "\$"){ print CURRENCY "Currency: Dollars($curr)\n"...
stackexchange/codereview
I've written a MySQL statment to select the next item using the items created timestamp, but I have a problem with it when two or more items have the exact same timestamp. To make things more confusing the item ID and created dates are not always in order, see the dummy data below. ID | created ~~~~~~~~~~~~ 10 |...
stackexchange/codereview
I want to know why and where should we use the enumerators,i have a set of images i want to assign numbers to each and put it in a enum and i want to set the number instead of entire filename when i want to set the image ,just like MessageBoxIcon enum Thanks
stackexchange/codereview
Just find that Console.WriteLine can handle null string correctly like Console.WriteLine((string)null); Can I assume that most class library handle null reference correctly?
stackexchange/codereview
Assume a distributed communication system where client and server communicate via a stateless channel. The client sends requests to the server and the server does processing and keeps internal records for each client. Server sends back notifications to the clients as various events happen to the system, as needed. The ...
stackexchange/codereview
It's quite easy for me to study html/css, as it's openly available. But I can't do the same with PHP/AJAX (and MySQL). I'm trying to learn both, but there's not much good code to find. Any tips where I can find some (to read and to use)?
stackexchange/codereview
Is there a way to capture when a website title changes from a Firefox extension?
stackexchange/codereview
I have Access as my back end. Student is the database name and its path is c:\Project\student.mdb And am having few tables in it. When i click a command button in vb.net a new table must be created in the path mentioned. And it should have the fields I declare. What s the query I need to use ? Is it possible to do lik...
stackexchange/codereview
I have several templates that have been created with Adobe Dreamweaver CS5. If I create pages based on those templates via Dreamweaver, they render perfectly. They also rendered perfectly in pages created using Adobe Contribute CS4. However, my users have upgraded to Contribute CS5, and strangely Contribute is adding t...
stackexchange/codereview
i would like to implement the typical three layer architecture. My current approach looks as follows DAL - with EF 4.0 and repositories for each of my entities. access through interfaces I was thinking of using POCO objects. My first question would be where should i put those files? In an assembly which is referenced...
stackexchange/codereview
I'm using stored procedures and DataContext to insert data to SQL Server database (ASP.NET 4 + SQL Server 2005 database, GoDaddy hosting) But after inserting russian text I see smth like this - '??????' If I insert constant text I'm using following construction - N'russian_text' and it works fine. Of course, I need to ...
stackexchange/codereview
Given W3C's HTML5 spec for the submit button: A button element must have both a start tag and an end tag. what's an example of a submit button with a start and end tag? <button type="submit"> <button type="submit" /> <button type="submit" ></button> 2 & 3 None of the above Is the answer the same for other "singleto...
stackexchange/codereview
As the name suggests, a query with multiple or will be faster or a query with multiple query joined with union will be faster? I have joined only two tables to make it simple but there can be more tables in join. for example, select isbn, booktitle from book as b left join publisher as p on b.publisherid =...
stackexchange/codereview
the previous app had been took just 2 hours ?
stackexchange/codereview
I am new in android. I need to access wsdl webservice with android. If anybody have tried it please help me.
stackexchange/codereview
I have installed cygwin on a windows 2003 server, I added the openssh package, set up the neccesary enviroment variables, run the following commands mkpasswd -l > /etc/passwd mkgroup -l > /etc/group ssh-host-config ssh-user-config I've started the SSH service but when i run ssh -v localhost i get the following debug...
stackexchange/codereview
More of a "best practice" question with regards to good application design. I have an application that has a number of popover controllers, each with different content. My first instinct was to create a new TableViewController for the content of each popover. Is this the best way to go about things? I was wondering if...
stackexchange/codereview
private void button1_Click(object sender, EventArgs e) { PROGRESS_BAR.Minimum = 0; PROGRESS_BAR.Maximum = 100; PROGRESS_BAR.Value = 0; for (int i = 0; i < 100; i++) { Thread t = new Thread(new ThreadStart(updateProgressBar)); t.IsBackground = true...
stackexchange/codereview
Anyone know how to list all members of a facebook group? I'm trying to get "/groupid/members", but that only returns one... Cheers!
stackexchange/codereview
I'm looking to do some very basic micro benchmarking of small code paths, such as tight loops, that I've written in C++. I'm running on Linux and OSX, and using GCC. What facilities are there for sub millisecond accuracy? I am thinking a simple test of running the code path many times (several tens of millions?) will g...
stackexchange/codereview
I have <div id="editform"></div>. I have certain html currently in it. How do I clear that html and insert completely different html in it? I tried this but it did not work: document.getElementById('editform').innerHTML = ""; document.getElementById('editform').innerHTML = "<input type=\"text\" placeholder=\"Title\" ...
stackexchange/codereview
My Situation put simply is that if i have a textbox, lets call it A. when i update the value in this text box it should update a label - B. when B changes then it should update another label C. so, effectively i wish to emply binding in the form of C bind to B which binds to A. i have tried the following but C never ge...
stackexchange/codereview
(HELIOS Eclipse, m2eclipse is installed from the update site) I am creating a new web application: File->New->Other->Maven->Maven Project, Next, Next, then selected maven-archetype-webapp, added a Group Id and Artifact Id. Now in the newly created project I want to add a new java package: right click on , new -> packa...
stackexchange/codereview
I use gnumake version GNU Make 3.81 under cygwin on windows. Cygwin version is CYGWIN_NT-6.1-WOW64 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin In my makefile used to build the source, when i say VERBOSE=yes, i still do not see detailed commands and options used to compile,link the code. So basically VEROBSE=yes behav...
stackexchange/codereview
I've developed a simple windows forms application to capture the windows of a video chat application (inbound, aka Remote, and outbound, aka Local). I use unmanaged Windows API code for this. Here is the Capture code: // Set Local Window localHandle = FindWindow(null, "local"); // Backup parent window for local prevLoc...
stackexchange/codereview
I am converting a C program to C# and using MS Visual Studio 2005. In C program the arguments are passed as CProg.exe DataFile < ParameterFile > OutPutFile When I use above parameters in my project settings of C project, it works fine. Standard Input device is now redirected to "ParameterFile" and standard output devi...
stackexchange/codereview
It is a silly question I admit. So, apologies if this wastes your time but I just cannot find out a solution. A WinForm Application which has a Class Library. I use Log4Net dll for logging information. On Button_Click, I call a function in the Class Library which might throw an error. So, I have the contents of the f...
stackexchange/codereview
Here is my code: object = {'name' : String} object = {'age' : Number} typeof object.name // 'function' typeof object.age // 'function' Is it possible to check that object.name is a String and object.age is a Number? Using typeof only gives me back 'function'.
stackexchange/codereview
We have a number of services (mostly console applications) running across several remote computers. I need to implement some form of a watchdog to make sure all these services are running as expected. Some services are executed via Windows Task Scheduler, and some are long-running apps. What would be the best way of l...
stackexchange/codereview
d = {'id': 'ccccc', 'school': [{'s_id': '12', 'city': 'xxx'}, {'s_id': '11', 'city':'yy'}]} I want to filter it using s_id. Suppose if some one want to filter the s_id = 11 it should return {'s_id': '11', 'city':'yy'}. Please answer using the filter keyword.
stackexchange/codereview
this error is trown by the following TEST. If i test the DataLayer, the database gets updated and everything works. however the mock keeps sending out this error. i have a similar test that does work with almost the exact code (on the InsertRPAData). the only diffrence i can see is that the XMLDataEntity is a diffrent ...
stackexchange/codereview
I need to enable caching in my asp.net application, but I do not want to use the webserver's memory for holding cache objects. If I add the page directive for output caching will the page be stored in the asp.net cache object? Thanks!
stackexchange/codereview
I have installed VS2008 SP1 and now when I compiled solution (a mix of C++ and managed C++ projects) it takes much more time to embed the manifest into .dll. Is it a known issue? Any workarounds/directions please.
stackexchange/codereview
By default, many of you know, IE has a 2px border around the body tag. IE considers this border as outside of the regular page. Basically, this means that the document origin is actually at [borderLeftWidth, borderTopWidth]. This poses problems when doing calculations in JavaScript that require both clientXY and screen...
stackexchange/codereview
I want to let the user input their own town/city and country, so I want to allow alphabets and a comma only in between city and country, below is what I came up with but it doesn't work with the second expression '/[a-zA-Z\s]\,[a-zA-Z\s]/' the first one is imperfect, bcos it allow as many commas as you want to put in...
stackexchange/codereview
I have a sorted list of dictionaries returned by a remote API call (tipically the response is less than 4 MByte. I would like to split this list in chunks where the MAX allowed size of the resulted single chunk is 1 MByte.* The resulted list of chunks need to preserve the initial sorting; these chunks then will be seri...
stackexchange/codereview
I know that one of the big things about Java is that it is platform independent in the sense that you can make a Java application and have it run in Windows, Linux, Mac, and so forth, as long as you don't use libraries specific to one OS, and as long as you have a JVM installed for the appropriate OS to interpret thing...
stackexchange/codereview
I'm working with CALS tables which has multiple colspec elements with tgroup element as a parent. In xpath 2.0 the following works: colspec/substring-before( @colwidth , '*' ) In xpath 1.0 it complains: Unexpected token - "substring-before( @colwid" There has to be a way to accomplish this. I need to sum the number v...
stackexchange/codereview
I am trying to write a simple low pass filter using scipy, but I need help defining the parameters. I have 3.5 million records in the time series data that needs to be filtered, and the data is sampled at 1000 hz. I am using signal.firwin and signal.lfilter from the scipy library. The parameters I am choosing in the co...
stackexchange/codereview
e n " Automatically detect file types. set nocompatible " We don't want vi compatibility. " Add recently accessed projects menu (project plugin) set viminfo^=! " Minibuffer Explorer Settings let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:min...
stackexchange/codereview
I need some help getting the right hex colors to my dev team. I have done some research but it seems less then obvious for how i achieve this here is the image http://dl.dropbox.com/u/2982102/stack%20overflow.png you will see what we need the segment control to look like. We dont need it perfect but we are trying to g...
stackexchange/codereview
I am trying to swap two elements in an array like this deck = [] (deck << (1..52).to_a << 'A' << 'B').flatten! p deck deck[deck.index("A")], deck[deck.index("B")] = deck[deck.index("B")], deck[deck.index("A")] #swap "A" and "B" p deck But it doesnt swap. If i do this, however: deck[52], deck[53] = deck[53], deck[52] ...
stackexchange/codereview
I currently have datepicker only allowing Fridays. I would like to continue to only allow Fridays, but modify this code to disable one date: 12-31-2010 (which happens to be Friday). I have seen code examples on how to disable dates, but I do not know how to add this functionality into my current code without breaking...
stackexchange/codereview
Say I have a Currency class public class Currency { string Name; // eg "US Dollars" string Symbol; // eg "$" decimal Rate; // eg 1.7 } So, symbol is $, £, ..etc i.e. it's going to be a single character. I used string simply because it makes translation to/from views easier, but is there any reason why ...
stackexchange/codereview
All in context of Tibco EMS 5.* and .NET API I've to work along existing model of message processing, in which in a loop: connection is created / open session is created / open message consumer is created receive method is called if message != null then we consume it and either commit or rollback the transaction (on...
stackexchange/codereview
I have recordsets in my MySQL database like this (in german): Karrieren im Portrait: Interview mit Thorsten Franck – „Ich liebe Produkte“ Now when I get the data with the MySQL connector reader and write it into an xml file I get just this: Karrieren im Portrait: Interview mit Thorsten Franck Ich liebe Produkte As...
stackexchange/codereview
Task: We have Wikipedia English page and need to retrieve the same page address in Russian. I know the Semantic Web solution - use simple query to DbPedia, but I am curious whether there are traditional solutions. I have asked the same question in semanticoverflow.com where Toby Inkster suggested to parse http://en.wi...
stackexchange/codereview
Anyone know if the Google Maps Geocoding service can return results including locations that start with the search term when it finds an exact match for the search term? Here's my example In Australia if I search for the term "Bass", I get exactly one result because there is one town in Australia called Bass. But I als...
stackexchange/codereview
I know how to get a file from a ftp server, with the method dataWithContentsOfURL. Now I want a put a file on the ftp server, how I can do this?
stackexchange/codereview
I have a program to calculate a weighted product (I adapted from another program I found). But I can't figure out how to initialize the total_data part of the product_state struct to one so that I don't always end up with a product of zero. Right now it's keeping the default zero value so that all of the values I pass ...
stackexchange/codereview
It seems that design by contract has limit to express specification. For example, i tried to express Stack FILO property with contract, but didn't get an idea. Anybody can help? I think the root cause is that precondition/postcondition/invariant are assertations without side effects. It leads to the checking of FILO pr...
stackexchange/codereview
Just thought I'd share this in case anyone else has run into this. I did something similar today and it took me a while to figure out why this was causing a problem at runtime. This code: Public Class foo Public bar As String = "blah" End Class Public Sub DoInline() Dim o As New foo Dim f As Func(Of String) Wi...
stackexchange/codereview
I have a tagged file which could have the following records # <test> <code> abcd </code> </test> <test> efgh </test> How do I extract one piece of test tag at a time .. which means I want to extract the test tag in both the situations above, whether it has only content or other nested tags too ...
stackexchange/codereview
We use Wicket as our front end framework and until now our application is pure Java. However, I would like to start using a bit of Scala on some of our new classes. The old code would stay in Java. After installing the maven-scala-plugin, scala-library, scalatest dependencies and downloading them I had to face the pro...
stackexchange/codereview
I have deployed an SSRS 2008 R2 project into our SharePoint Integration. This worked no problem. I then wanted to add report parts. I converted the DataSource and DataSets to Shared Components and re-deployed. No problem. I then selected the parts that I wanted to publish. Now when I deploy the project I get the ...
stackexchange/codereview
I am currently writing a program that is a sort of VoIP client. I am trying to establish a connection between 2 clients and send and receive data, that is recorded from microphone. I am currently using files but it looks like an awful implementation: The recorder starts recording to a temporary file. A timer kicks in, ...
stackexchange/codereview
I had the cunning idea of using a dynamic variable to test the results of a method that returns an anonymous type - more specifically it returns a JsonResult, which as json looks like this { "newData" : [ 1120741.2697475906, 826527.64681837813 ], "oldData" : [ 1849870.2326665826, 1763440.5884212805 ...
stackexchange/codereview
I have problem with Struts2 select UI tag. Firefox doesn't show selected item. I have code in JSP: <s:select list="allCategories" value="2" listKey="id" listValue="categoryName" name="selectedCategory" key="shortcut.add.category" required="true" /> It renders into: <select gtbfieldid="49" name="selectedCategory" id=...
stackexchange/codereview
In my application we have requirement where in we have to do System.IO operation on depth longer than 256 characters and in this scenario all the System.IO API's are failing. We are using below API's. System.IO.Path.Combine() System.IO.Path.GetDirectoryName() System.IO.Path.GetFileName() System.IO.Path.GetPathRoot() S...
stackexchange/codereview
This is another Google App Engine Datastore question. Let’s say my app tracks a bunch of rats and how much cheese they’ve eaten. Each Rat entity has a series of Meal entities -- each tracks when the rat ate and how many slices of cheese (slices property). Each Rat also has a total_slices property that is updated when...
stackexchange/codereview
In SQL Server or maybe other databases, if a column is auto increment int type, the table can remember the highest value even if the record has been deleted.Let's say you have a table whose with some records previously deleted, and then you use SELECT MAX([ColumnName]), it might return a value associated with a deleted...
stackexchange/codereview
Here is the scenerio: On application open the user is asked to open a "Project" Inside a project there are processes, categories, tasks, documents and notes. There are a few more, but lets keep it simple. Most of the items above are lists that are bound to grids or treeviews. Each of them have a separate database table...
stackexchange/codereview
I am trying to achieve simple effects here and there. Please look this code and tell me if I can achieve the same thing with a better approach. I am trying to show a zoom button when I hover over the image and another layer which is black but faded to degree to get this common fade effect. First that's my html sample:...
stackexchange/codereview
i want to bulid an web service application using java. main theme is i want to create a student database and users of the system will view a particular students information based on their authentication. for example an student can view his detail information but can't view detail info of another student. my problem i...
stackexchange/codereview
Making a bash script, and I am trying to figure out a way to find out what my symbolic link points to. Right now, I am doing it with this, but this only works if my symlink is in the current directory. Is there a way to find out what my symlink is pointing to if it is in another directory? ls -l "symlink" | cut -d'>'...
stackexchange/codereview
I am making an AS3 project in FB4. In our workflow, we have artists compile art into SWC files which the I then link as 'Referenced Libraries' in FB4. Then I set the "Link Type" of the SWC files to "external" instead of merged into code. This should create SWFs corresponding to the SWC files in the output folder, righ...
stackexchange/codereview
login.aspx if (IsPostBack == false) { //destroy any login information Session["password"] = "false"; Session["login"] = "false"; Session.Abandon(); Session.RemoveAll(); } if (TextBox2.Text == main_password) {//then he is website server admin Sess...
stackexchange/codereview
I have a requirement below and I am struggling with javascript, In a table I am showing different plans(Medical, Dental, Vision , there can be multiple plans ..I mean Medical 1, Medical 2, Dental 1, Dental 2) and for each plan I am showing radio buttons to either select that plan or waive that plan. Based on their sel...
stackexchange/codereview
i am doing a project wherein i have to extract nouns adjectives noun phrases and verbs from text files(.doc) format. i have a corpus of around 75 such files. i have accessed net to find about it and i came across POS tagging in python using nltk. as my project is in c# (using visual studio 2008) i need a code to do so....
stackexchange/codereview
I have a WPF tree (bound to XML data). An excerpt is given below: (Well shoot, i can't post a picture because my reputation isn't high enough yet. If my rep gets up to 10, I'll post it. Other wise just imagine a regular tree view with some plus and minus icons at a few of items on various levels) And because I need t...
stackexchange/codereview
I have noticed that using the post_thumbnail() function in Wordpress inserts the image including the img-tag. Is there a way to have it insert ONLY the src of that image? Sofar i have tried this $image = get_the_post_thumbnail( $post->ID, 'thumbnail' ); echo $image; but it just exports the same. Any ideas? thanks in a...
stackexchange/codereview
I have a fairly simple Flex SWC module that is compiled via the Maven Flexmojos plugin. This module also uses the flexmojos:generate goal during the generate-sources phase to create Actionscript3 equivalents of my Java services & domain classes. The regular sources are housed in src/main/flex and the generated source...
stackexchange/codereview
I have worked a lot on improving how my code runs (and it's "beauty"), but when is the time to stop fixing, and start working on the UI? Microsoft (in my opinion) seems to go with the nice-code, while Apple goes with nice UI (although Apple's developer examples do have very nice code). I'm bad at balancing, when is it ...
stackexchange/codereview
I downloaded Oracle with Java EE. I uploaded my project from uni then ran my SessionBean and I obtained this error message... starting weblogic with Java version: java version "1.6.0_18" Java(TM) SE Runtime Environment (build 1.6.0_18-b07) Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode) Starting WLS with lin...
stackexchange/codereview
Here's the deal: $ gem -v 1.3.7 $ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2010-08-18 patchlevel 0) [x86_64-darwin10.4.0] - INSTALLATION DIRECTORY: /Users/harriett/.rvm/gems/ruby-1.9.2-p0@rails3tutorial - RUBY EXECUTABLE: /Users/harriett/.rvm/rubies/ruby-1.9.2-p0/bin...
stackexchange/codereview
I have two branches, default and branch1. By mistake one person in our team merged branch1 with default. The content in branch1 is not yet ready to merge with default (it contains a major rework of the build & deploy environment). We did an experiment with 'hg backout', backing out the merge (not sure this is the right...
stackexchange/codereview
Consider: #ifndef __t__ENTITY_H #define __t__ENTITY_H #include "../graphics/animation.h" namespace t { namespace entity { namespace type { enum Enum { GFX = 0, SFX, PFX, AI, MAX }; } //template <class T> class Entity { public: Entity(unsigne...
stackexchange/codereview
When using forms based authentication in Sharepoint 2010, suppose user is logged in with username "admin" and our custom membership provider name is "FBAProvider"... After logging in with this account, logged in user name is displayed like "i:0#.|FBAProvider|admin". How can make it display as it should be like just "ad...
stackexchange/codereview
Have the following (non-straightforward) T-SQL query, which i'm trying to convert to LINQ (to be used in a L2SQL expression): declare @IdAddress int = 481887 select * from ( select top 3 p.* from tblProCon p inner join vwAddressExpanded a on p.IdPrimaryCity = a.IdPrimaryCity where a.AddressType =...
stackexchange/codereview
I'm unable to delete a folder in Windows with the following code: SHFILEOPSTRUCT shfo = { NULL, FO_DELETE, path, NULL, FOF_SILENT | FOF_NOERRORUI | FOF_NOCONFIRMATION, FALSE, NULL, NULL }; SHFileOperation(&shfo); I need to use SHFileOperation instead of RemoveDirectory because I need t...
stackexchange/codereview
i want to start and stop the timer whenever user taps .. and timer must be looks like "12:34:57" this format ... any ideas how to build the timer ... Thanks in advance..
stackexchange/codereview
Environment: GlassFish 3.0.1, NetBeans 6.9, JDK 6u21 Problem: Unable to run app-client that is accessing an EJB A bugreport can be found under http://netbeans.org/bugzilla/show_bug.cgi?id=183488 with the corresponding tutorial http://netbeans.org/kb/docs/javaee/entappclient.html . I understand now how the Remote interf...
stackexchange/codereview
I have an iframe and I want to clear it, so I set its src to about:blank Then I wondered, does this work in all browsers?
stackexchange/codereview
I am new to android programming, so i have a question regarding how to open any document such as .doc, .docx, .ppt, etc. in android. I also need to implement preview functionality, wherein the file should be downloaded temporarily and user can see the file opened just by a single click. How does dropbox does this? Is t...
stackexchange/codereview
We are previously using Mono 1.2.4 and now we upgraded to 2.8. The keep alive property was true. After the upgrade we check our application which parse n number of resumes, Which fails and prompts a pop-up that "the underlying connection was closed. A connection that was expected to be kept alive was closed by the se...
stackexchange/codereview
My description paragraph contains ("" and ') but when I try to save data, slash(\) get saved in database before these characters. I am using mysql_real_escape_string($_POST['des'],$link); but that is not working.
stackexchange/codereview
I am using the JQuery plugin jsTree, http://www.jstree.com/ I am able to expand the whole tree with the following method: $("#tree").jstree("open_all"); and also a specific node: $("#tree").jstree("open_node", $('#childNode')); I am having difficulty opening a branch of the tree, open branch opens it fine but does no...
stackexchange/codereview
Is it possible to give border to UIIMage instead of UIImageView?
stackexchange/codereview
In PHP Manual, there is a note: Note: If this function is not used to escape data, the query is vulnerable to SQL Injection Attacks. Is this enough to anti sql injection? If not, could you give an example and a good solution to anti sql injection?
stackexchange/codereview