instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have a user control that contains a repeater, which in turn is nested in a default.aspx. When a user clicks a specific link on the page, the ajax post function is called which posts data to a method on default.aspx. All good so far! This method then calls a method within the user control, passing in the data, which i...
stackexchange/codereview
I am unable to understand how the following query brings the appropriate result please explain me this Consider the following relation schema for an airline database. customer(id, name, age, gender) onFlight(id, flightNo, flightDate) flightInfo(flightNo, fromCity, toCity, startTime, duration . Flights (flightNo, fligh...
stackexchange/codereview
When I use webclient.downloadfileAsync and have a web exception, I found there is an empty file written. when I use webclient.downloadfile, there is no such empty file. How can I make the downloadfileAsync behave the same as downloadfile?
stackexchange/codereview
I am populating a drop down with javascript and its working well in every browser except, of course, Internet Explorer (all versions even 8). The following is the function which populates the dropdown: function updateDropDown(divId, dropdownId) { var containerDiv = document.getElementById(divId); var checkboxes...
stackexchange/codereview
TITLE: Microsoft SQL Server Management Studio Express Restore failed for Server 'WIN-4TNI5VVBQ0P\SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperation...
stackexchange/codereview
I have a batch file which runs an oSQL command (below). oSQL -U devUID -P testPwd -S testServer -d testDb -Q "EXEC [dbo].[sprocTEST]" When I run this batch file on systems which do not have sqlserver installed, it throws an error. "odbc driver manager data source name not found and no default driver specified osql"...
stackexchange/codereview
is it possible to create instances of a class programmatically? for example, I will need to create anywhere from 10-20 forms programmatically so I will do: Form graphs = new Form1(dateStart.Value.ToShortDateString(), dateEnd.Value.ToShortDateString(),cbQCValues.Text,cbAnalytes.Text,cbInstruments.Text); however the...
stackexchange/codereview
I wrote a simple program solving the Readers-Writers problem using semaphores. It runs perfectly on Linux os, but when I run it on my Mac osX I get unexpected results and I can't figure out why. My Program: #include <semaphore.h> #include <sys/types.h> #include <stdio.h> #include <pthread.h> #include <unistd.h> voi...
stackexchange/codereview
I am creating a large text file, the first line is a summary which depends on the contents. I am currently inserting a summary line that contains what I expect the summary to be, and after creating the file I compare this with what was actually written. If the information is different I overwrite the initial summary. C...
stackexchange/codereview
I have a PS1 file with multiple Powershell functions in it. I need to create a static DLL that reads all the functions and their definitions in memory. It then invokes one of these functions when a user calls the DLL and passes in the function name as well as the parameters for the function. My question is, is it poss...
stackexchange/codereview
hello I wanted to know whats the best way to send sql results to a javascript function. I have two dropdown lists and i want to populate the second one according to the first one. both dropdown lists arre populated from a mysql database. fillcourses is the javascript function but i dont know how to pass the result arra...
stackexchange/codereview
I need to quickly wrap some security around an existing ASP.Net 2.0 web app. After thinking about it for a moment, I remembered that Microsoft created that Membership and Roles paradigm a couple of years back, and that Visual Studio could essentially create everything for you. Thus I forged forward using the built in ...
stackexchange/codereview
I know that they provide a quick reference, but as the code grows they can lead to hundreds of files changing just due to version/history updates. This leads/relates to my other question: Is there a way to prevent code comments to be marked as changes in the diffs obtained from version control? (CVS/SVN)
stackexchange/codereview
am new to Python packaging and am trying to work out which flags I need to get something uploaded properly into PyPi. distribute seems to building things them deleting them straight away. How do I stop that from happening? Here is the traceback: tim@falcon:~/Code/slate$ python setup.py sdist running sdist running egg_i...
stackexchange/codereview
Looking for an extremely straight-forward, basic tutorial on how to do file upload using MVC 2.0, from how to do the form, the controller, the save as, routing, and any IO stuff. The form is simply a browse button, and, the files would be uploaded to "e:\data" folder. Please help! Thanks!
stackexchange/codereview
Wikipedia page for rainbow tables says: "this use of multiple reduction functions approximately doubles the speed of lookups." Assuming the "Average" position in the chain, we take a hash and run it through a 9 iteration chain... The original table runs it through 4 reductions and 4 hashes and finds the end of the chai...
stackexchange/codereview
i wrote a qt application for linux. The application is supposed to run at startup- which i did with a desktop entry. but i need it to be more complicated: there is a checkbox that the user supposed to check in order to choose whether the application will run at startup or not. how do i suppose to save his prefference?...
stackexchange/codereview
This code asks the user for data and subsequently a number: $ cat read.c #include<stdio.h> #include<stdlib.h> #define MAX 10 int main() { char* c = (char*) malloc(MAX * sizeof(char)); int num; printf("Enter data (max: %d chars):\n", MAX); fgets(c, MAX, stdin); // how do I discard all that is there...
stackexchange/codereview
What are the main features of hibernate one must know? I guess people misunderstood my question. Here are the features I know : save/update query (hql or criteria) lazy/eager loading transaction Are there others?
stackexchange/codereview
Is there any open source library with some sort of Glowworm swarm optimization (GSO) algorithm implementation? I would like to implement it based on description http://www.springerlink.com/content/y065470472612847. Any suggestions?
stackexchange/codereview
In the sample code, RIM treats bitmaps as if they are in 565 RGB format, instead of the usual 8888 ARGB format you get on desktops, For example: net.rim.device.api.system.Bitmap bitmap = net.rim.device.api.system.Bitmap.getBitmapResource( "BlackBerry.png" ); GLUtils.glTexImage2D(gl, 0, GL10.GL_RGB, GL10.GL_UNSIGNED_S...
stackexchange/codereview
I want to generate a class from an XML XSD Schema, just as you can do with the Xsd.exe tool. E.g. XSD.exe /namespace:Generated.Xsd_1 /classes /outputdir:..\Classes Is there a way to do this by using classes in the .NET Framework instead of using the standalone tool?
stackexchange/codereview
I am developing one Android application which communicate with Wifi network. I want to know the name of the wifi socket in Android Device. i searched in google but nothing help me. I heard android device used RFCOMM socket for Bluetooth communication. Is RFCOMM socket used for Wifi communication? Thanks in advance...
stackexchange/codereview
as far as I know, there is no simple way in Android to generate a beep (equivalent to Console.Beep(int frequency, int length) in .NET). The only one that looked promising - ToneGenerator class, can generate only a limited selection of tones. Do I have to generate a waveform by hand, push its data to AudioTrack and play...
stackexchange/codereview
I am using a dijit.form.TextBox for a login form but cannot make browser-saved passwords appear in it like they would in a standard HTML input field. Is there any way of doing this?
stackexchange/codereview
Situation:- I have created a RadioButton group. When a User selects a radio button depending upon his choice the content gets displayed and the other content is removed. Problem:- The page is working fine in all browsers except IE7. I need a solution that runs in IE7 also. Code:- <html xmlns="http://www.w3.org/1999/xh...
stackexchange/codereview
I love the way the Netbeans helps me to debug my Magento applications (in XAMPP on Win 7 64-bit), but I've noticed that the connection seems to timeout after a period. The breakpoints no longer get hit and I have to restart the debugging session which is annoying. Any suggestions for how to extend or disable the debug...
stackexchange/codereview
I have a list of items, each of which contains a display property of a type inheriting from a user control. The idea is each inheriting class can decide for itself what it wants to display for the user. The items are themselves arranged in a DataTemplate for a tab control... something like... <TabControl Ite...
stackexchange/codereview
I'm trying to write a sql statement that will insert data given a few setup variables. I don't want to create a stored procedure, as it's not something I'll be dealing with anywhere except as an administrator and I don't want the stored procedure hanging around. I just want a statement that works. Here's what I have ...
stackexchange/codereview
I have this function : function MakeInput($id, $class) { $value = substr($id, 2); global $$value; echo '<input type="text" id="'.$id.'" name="'.$id.'" class="'.$class.'" value="'.htmlentities($$value,ENT_COMPAT,'UTF-8').'" />'; } Which do not return but echoes the results. I'd like to use it as it is into ...
stackexchange/codereview
Im trying to do a simple string splitting function, but im having a problem returning the split string. i got the string into strings s1, s2, s3. how do i return {s1,s2,s3}? im using brackets but the compiler is telling me expected primary-expression before '{' token expected `;' before '{' token expected `;' befor...
stackexchange/codereview
I am trying to implement an array of LinkedHashMap but I don't know if it's possible... For the moment my code looks like as follows : public class LHMap { public static void main(String[] args) { LinkedHashMap<String, Integer>[] map = null; for (int i = 0; i < 5; i++) { map[i] = new LinkedHashMa...
stackexchange/codereview
The situation is as follows: I want to release the full source to a class library I want to release binaries as well, signed by me, with a key file I don't want to publish I will provide batch files, and pre-build stepts, that creates a new key file locally if not present, so that anyone can quickly start using the so...
stackexchange/codereview
Is this valid C (C99) code? int f(); int g(int x) { if (x<0) return f(x); else return f(x,x); } Obviously the program has undefined behavior if g is ever called with a negative argument and f is not a function that takes a single int argument, or if g is ever called with a non-negative argument and f is not a ...
stackexchange/codereview
we are going to localize the user interface of a WinForms application system, partly written in C#, partly in C++/CLI. The system consists of about 350K LOC. The user interface is about one third of the code. There are about 50 forms in the main application, and some satellite applications with some additional dialogs....
stackexchange/codereview
Please can someone post a SQL function to convert easting/northing to longitude/latitude. I know it's incredibly complicated but I haven't found anyone who has documented it in T-SQL. This javascript code works but I'm having trouble converting it to SQL. I have 16,000 coordinates and need them all converted to lat/l...
stackexchange/codereview
I'm working with JSON data for the first time and I've got some PHP to grab some JSON data like below (except there are hundreds of measuregrps within body). $json = file_get_contents("http://wbsapi.withings.net/measure?action=getmeasures"); $json_o = json_decode($json); How do I use foreach to, say, create a 1-dimens...
stackexchange/codereview
I got "last" version of MS CRM 4.0 SDK - 4.0.12. And now I want to create some custom role via new SDK stuff: "CrmDataContext". Starting with this: var ctx = new CmsDataServiceDataContext(); var r = new role { roleid = new Guid("F263E5F9-97FA-4B4C-BF46-47795DE7263F"), name = "Role Test", busin...
stackexchange/codereview
In R I can create the desired output by doing: data = c(rep(1.5, 7), rep(2.5, 2), rep(3.5, 8), rep(4.5, 3), rep(5.5, 1), rep(6.5, 8)) plot(density(data, bw=0.5)) In python (with matplotlib) the closest I got was with a simple histogram: import matplotlib.pyplot as plt data = [1.5]*7 + [2.5]*2 + [3.5]*8 + [4...
stackexchange/codereview
How reliable is it to send text messages (sms) from an email client mail-to-sms gateway of a number? http://en.wikipedia.org/wiki/List_of_SMS_gateways SMS in general are relatively reliable, I do know that they are not guaranteed with time though, and you could receive one hours later then it should have been... but se...
stackexchange/codereview
i need to execute some javascript functions from delphi code, but this functions fails if the page is not loaded in the Twebbrowser control. so the problem is if page is located in a tabshet wich is not active the page is not loaded until the tabsheet is become active. the question is How to force load a page in a...
stackexchange/codereview
Trying to get Spring's transaction management to work but it's not going as I hoped. I get an exception when requesting anything that requires my database: DEBUG: org.springframework.orm.hibernate3.SessionFactoryUtils - Opening Hibernate Session DEBUG: org.springframework.orm.hibernate3.SessionFactoryUtils - Opening Hi...
stackexchange/codereview
I have written my own implementation of java.utils.List. Now I'd like to test it, but I cannot manage to fill my collection with objects since it shows <identifier> expected whenever I add anything : public static void main(String[] args) {} MyCollection col = new MyCollection(10); int[] tab = {1,2,4,5,6}; col.add(tab...
stackexchange/codereview
I want to perform some clean-up in my ASP.NET web application when the user closes the IE window or the tab page in which the page is open. I was looking at the unload event of the "body" element, however the unload event also gets fired when you click the Refresh button in IE or change the URL by typing in the address...
stackexchange/codereview
i have a few problems with multi language support. My website is using charset iso 8859 1 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> When i the fetched title or content is in chinese, the display will be funky text $doc = new DOMDocument; if (@$doc->load($url) === false) return; $title ...
stackexchange/codereview
... but it is bothering me! I have 2 checkboxes, and I want to stop then both being checked. So if I check one, the other must be unchecked. This might look like a toggle. However they can both be unchecked. However the real problem is that the click event on the Checkbox is not being picked up. I cannot understand wh...
stackexchange/codereview
I'm using Flash for my website that hosts a number of rather complex ways of displaying calculations etc. It's not that it can't be done using say jQuery but I want it to remain relatively difficult to steal my code since it would leave the field wide open to competitors to set up sites like mine relatively easy. Howev...
stackexchange/codereview
I have a repeater with a paged datasource on a content page in dotnet 4.0 coded with c# behind. The data is loaded via a hashtable that pulls data from an sql 2005 database on a shared server. Currently the first time the page loads, no data shows and/or the repeater fails to show. If I refresh the page though the dat...
stackexchange/codereview
This has been doing my head in. Hope you guys can help. I can't find out where the error lies. httpd-vhosts.conf NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> DocumentRoot /opt/lampp/htdocs ServerName localhost </VirtualHost> <VirtualHost 127.0.0.1> DocumentRoot /home/tilman/Sites/mysite/www Serve...
stackexchange/codereview
I have a option select that is generating a slider. When the select option changes, the slider changes and the same way, the other way around. I've setup an alert to fire when an option on the select is changed. This alert recognizes and fires when I change the option from the select, but when I change it from the slid...
stackexchange/codereview
Let's say I hav this model: public class PartyGorilla { [ScaffoldColumn(false)] public int Id{ get; set; } [DisplayName("Gorilla's Name")] [Required] public string Name{ get; set; } } Everything works as desired when using EditorForModel() in my edit/create views but if I use DisplayForModel() in ...
stackexchange/codereview
Does Apache Log4J support sending event via the Web Services Distributed Management (WSDM) Web Event Format? I tried googling around and wasn't able to find it but perhaps someone smarter than I knows more.
stackexchange/codereview
So I create a WPF Window manually, and then want to load an existing Xaml file onto it. Is this possible? I am doing this inside a 3rd party app, so need to basically create the WPF Window manually and then assign a Xaml file on it. I don't know if I can do it in a different way. I wanted to compile a WPF app as a clas...
stackexchange/codereview
I would like to have a zipcode input field that listens when 5 characters (numeric 0-9) are typed. I imagine something like in JavaScript: if (charCount == 5){ When the charCount = 5 is fulfilled it sends a getJSON request and receives a JSON response from the server. The data has an array of data where I'd like to se...
stackexchange/codereview
actually i m using the library PDFRenderer, i can display the pdf in a JFrame but what i want is to store the content of the pdf in a jpanel to display it later. thanx in advance.
stackexchange/codereview
I have a HashMap<Object, Student> where the Object is the ID of the Student, and the Student is an object from Student. How can I resort the HashMap by the Students name, student->getName()?
stackexchange/codereview
I have maven multiple-module project. A: parent. B: child1. C: child2. B will be packaged to get jar file and then c will use this jar file to compile the code. In B, if I run mvn package, it will create b.jar (stays in B/target/jars not in B/target -for another purpose). In C, I need to use that b.jar to com...
stackexchange/codereview
I want to store a user's gender in a database with as little (size/performance) cost as possible. So far, 3 scenarios come to mind Int - aligned with Enum in code (1 = Male, 2 = Female, 3 = ...) char(1) - Store m, f or another single character identifier Bit (boolean) - is there an appropriate field name for this opti...
stackexchange/codereview
I already asked this question over at serverfault, but perhaps it's better to ask here. We developed a JavaEE6 application. This application is basically something similar like a backend to a webshop (no user interface at all, just calculations/data handling). Now, we're looking for a web CMS with which we can use this...
stackexchange/codereview
I'm trying to plot MGRS lines over a map in an overlay using OpenLayers (JavaScript). Where I'm really having problems is identifying the strange squares (non-100kmx100km grids). Does anyone know where I might find an algorithm for plotting these? In particular, the information I have or can find is: Convert a Lat/Lon...
stackexchange/codereview
I'm trying to clone the facebook iOS API located on github.com. I'm new to git and I've just downloaded the git client. I also have created a github account. I thought I configured everything correctly but I'm running into the following error: git clone git://github.com/facebook/facebook-ios.sdk.git Cloning into faceb...
stackexchange/codereview
I am using jQuery keypad to build a point of sale interface http://keith-wood.name/keypadBasics.html I have two text fields namely PREVIOUS RENT and RENT PAID as the user enters data I would like the page to run the following formula in real-time PREVIOUS RENT - RENT PAID I would like it to display the results below th...
stackexchange/codereview
Fairly new to Rails. I am implementing a wholesale homepage redesign on a Rails site. For the time being, we will push the redesigned home page but leave the rest of the site as is. Later, we will port the rest of the site to the new design. I would like to create a "branch" of the CSS inside the current project that i...
stackexchange/codereview
I have to write a script that reads in the size of a square (between 1 and 20) and outputs XHTML text that displays a hollow square of that size constructed of asterisks. I understand and know how to prompt the user for the size: <script type = "text/javascript"> var size; //prompt user for size of square size = wind...
stackexchange/codereview
How to check if memory to which pointer p points has been succesfully deallocated?
stackexchange/codereview
In a Windows Phone 7 Silverlight application I call a new page using NavigationService.Navigate(new Uri("/View/SecondPage.xaml", UriKind.Relative)); Now I want to pass parameters to the new page. I understand a simple parameter can be passed using: NavigationService.Navigate(new Uri("/View/TilgungsratePage.xaml?id=47...
stackexchange/codereview
I have moved my Django app from my development machine (OS X, Python 2.6.5, Django 1.2.3) to a staging server (Ubuntu VM, Python 2.6.6, Django 1.2.3). If I now run my test suite on the staging server, two tests fail when using the Django TestClient because response.context is None (but response.content is correct). Fo...
stackexchange/codereview
Right now m developing a web app which acts as a consumer for http://salesforce.com but I am unable to make a controller for the API implementation. Can anyone provide me the php library for salesforce oauth2.0 REST API...?
stackexchange/codereview
Is finally executed in this case? I wrote this code and couldn't decide if finally is really executed in this case or not. I would really like some explanations no matter what the answer is. foreach(string s in allStrings) { try { //Error happens here } catch(Exception ex) { //Handle...
stackexchange/codereview
Can you tell me why this works: PageMethods.UpdateForcedDisposition(forcedDisposition, a.value, SucceededCallback, FailedCallback); When this doesn’t? setTimeout("PageMethods.UpdateForcedDisposition(" + forcedDisposition + "," + a.value + ", SucceededCallback, FailedCallback);", 1000); Interestingly, a similar call w...
stackexchange/codereview
I need a simple encryption for some text strings. I want to create coupon codes and make them look cool so subsequently created code should look very different. (And besides looking cool, it shouldn't be easy to guess a code.) But I want to be able to decrypt them again. So the algorithm must be reversible. I alread tr...
stackexchange/codereview
I want to make a recursive function that iterates through a tree and the first time the condition hits, I want it to return. Would this be proper? bool nodeExists(Node *root, Node *target) { if(root == target) { return true; } for(int i = 0; i < root->nodes.size(); ++i) { ...
stackexchange/codereview
I have a PHP translation tool that sets $_Session['language'] as en, it, es, fr, or de. Later in the site we have a flash product configurator that reads an XML file (cfg_feed_en.xml, cfg_feed_it.xml, cfg_feed_fr.xml, cfg_feed_es.xml, cfg_feed_de.xml) so that the language inside the flash tool matches the actual site l...
stackexchange/codereview
What does the following mean in Postscript /Total psi.subtotal Total add def\n Here ps1.subtotal is a variable that I have populated elsewhere and is of datatype currency(eg: 10.00 USD) Per my understanding the above line of code adds psi.subtotal and Total and then stores the result in Total. If so, Im seeing this PS...
stackexchange/codereview
How really commute works. (commute IDENTITY FUNCTION &values) the Clojure Documentation says: Usage: (commute ref fun & args) Must be called in a transaction. Sets the in-transaction-value of ref to: (apply fun in-transaction-value-of-ref args) and returns the in-transaction-value of ref. At the commit point of t...
stackexchange/codereview
I am a novice in jQuery, and am trying to create this page. In all browsers I tested, when I click the red button a coupon code appears, except for IE. Why does this happen? And how can I fix it? I hate this browser, really... Javascript: $(".coupon_button").live('click', function (event) { $(".coupon_button").rem...
stackexchange/codereview
I have setted up my .htaccess with some bundles of rewrites, although when I go to an invalid directory which the ErrorDocument 404 is already set up, it just shows "404" on the page, nothing else, just a plain text with "404". RewriteEngine on RewriteBase / RewriteRule ^404/?$ 404.php ErrorDocument 404 404 Why does...
stackexchange/codereview
I'm trying to add Toxi libraries to Processing. (I want to use processing, opengl, and toxi - together.) But it's confusing. There's no indication of where to download it (on the download site itself) and I don't know how I'll set it up once I do download it? Could you kindly provide a short tutorial of how to do this?...
stackexchange/codereview
Currently I am playing with DCG in Prolog to parse an XML file. I was able to get the following code snippet which is able to parse a simple XML such as: <author> <name> <f> arthur </f> <m> conan </m> <l> doyle </l> </name> <bday> <d> 22 </d> <m> 5 </m> <y> 1859 </y> </bd...
stackexchange/codereview
In our rails app we sometimes have db entries created by users that we'd like to make part of our dev environment, without exporting the whole table. So, we'd like to be able to have a special 'dev and testing' dump. Any recommended best practices? mysqldump seems pretty cumbersome, and we'd like to pull in rails assoc...
stackexchange/codereview
I'm getting started with JQuery, and I've built a little js function that adds fields to a form when it gets called. function newPoint(time){ $('<br/>At '+ time + ' seconds, bring object <select><option>in</option><option>out</option></selection> at <select><option>regular</option><option>slow</option><option>fast...
stackexchange/codereview
this is the error given in the console. I'm taking a search term and replacing the " " with "+" so it goes into a URL ok, it then fetches RSS feeds based on that search term, this works fine but when i press the refresh button on the toolbar, it crashes with this error: -[UITableViewCellLayoutManagerSubtitle stringByR...
stackexchange/codereview
I am trying to create a simple fb app that retrieves the name of the user using fql_query. Code : require_once 'facebook.php'; $appapikey = 'xxxx'; $appsecret = 'xxxx'; $facebook = new Facebook($appapikey, $appsecret) ; $user_id = $facebook->require_login(); $q = "SELECT name FROM user WHERE uid='$user_id'"; $name = ...
stackexchange/codereview
In my Maven2 project, I am depending on a jar (mule-core-2.2.1.jar) that has two dependencies which are located in remote repositories but which do not have pom files defined. So my mvn command is initially able to pull down the jars, BUT the problem is that every single time I run a mvn command, it checks every singl...
stackexchange/codereview
I'm trying to calculate the "timeago" and I'm coming up with a descrepancy in my code. Using Today's Date November 7, 2010 If I use September 1, 2010 then both my .NET code and my JS code say "2 months" If I use August 31, 2010 then my .NET code says "3 months" and my JS code says at "2 months" This discrepancy stays...
stackexchange/codereview
I have the following source code. Which compiles fine in visual studios and g++ 3.4.6; but not with g++ 4.4.3 (on a newer ubuntu machine). The newer compiler requires that I explicitly include to use atoi. I am just trying to figure out what might have changed to cause this behavior. Is it sstream header file previous...
stackexchange/codereview
I'm wondering why the following piece of code doesn't work, looks pretty straight-forward, am I making a mistake? The result of this is: file created but empty, if I manually add lines those lines are showed with this code, but nothing else happens. #include <fstream> #include <iostream> #include <string> using namespa...
stackexchange/codereview
I am looking for the restrictions on file upload sizes per browser and environment to try and find my bottleneck. I've been told it's 2 gigs but I don't know where/what the limiting factor is. Specifically, I'm looking for the max size for each of the below: Firefox IE Chrome IIS 6 IIS 7.5 ASP.NET 4.0 Note: We are u...
stackexchange/codereview
I am working on a small project where I have to write a low level app. I'd like to display text in that app, and I would even like it to be anti aliased (à la ClearType). No libraries allowed, I have to draw each char pixel by pixel. What is the best way to do this? Can you recommend some known algorithms? How should I...
stackexchange/codereview
I have a form on a PHP page that has a drop-down list and a submit button. I'm sending the selected drop down choice data via POST. Now, when I try to grab this data on another page. I only get the "index" (eg: 1 or 2 or 3 etc.) of the drop-down list and not its actual "value". Is there any way, I can make my PHP page ...
stackexchange/codereview
I signed up for Amazons S3 service. I am having a problem with my Gallery script. It want the URL relative to the server where the files are located at? So instead of http://gallery.s3.amazonaws.com/10/images They want: /home/www/gallery.s3.amazonaws.com/10/images The problem is I don't know what to use when it is Amaz...
stackexchange/codereview
I am trying to get a UIWebView to update dynamically, sort of like a karaoke box, as it iterates through a while loop. The word that the tts engine is speaking should be in orange (or in html, .style2). What is happening, however, is that the UIWebView doesn't update its display through each iteration of the htmlKarao...
stackexchange/codereview
I have a VARCHAR field in one of the tables in my MySQL database. It has a limit of 200 characters. This works fine in English, but when I enter 200 Arabic characters (UTF-8), only 110 characters get stored. Any idea why this is happening and how I can solve it?
stackexchange/codereview
So I need to get web camera fps rate in OpenCV. Which function can do such thing for?
stackexchange/codereview
I want to get info about mysql support with PHP. I need a code to detect if server have mysql support.
stackexchange/codereview
I have the user for example HR which has been granted very powerful system privilege "GRANT ANY PRIVILEGE"...This user used this privilege and granted some privileges to other users...Now I want to revoke "GRANT ANY PRIVILEGE" from HR and also identify what privileges and to whom did HR user grant(I want to revoke from...
stackexchange/codereview
I'm new to C++, and preparing a homework by using NetBeans IDE on Ubuntu 10.04. I use g++ as a C++ compiler. The error message: build/Debug/GNU-Linux-x86/Maze.o: In function `Maze': Maze/Maze.cpp:14: undefined reference to `Stack<Coordinate>::Stack()' Maze/Maze.cpp:14: undefined reference to `Stack<Coordinate>::Stack()...
stackexchange/codereview
We are using Qtp as a testing tool, and currently planning to move to an open source testing tool. We have zeroed in on Watir and Selenium as two potential tools for this purpose. We have done some study of these two products and have liked Watir for its neat and powerful API and ease of use. We are only looking at te...
stackexchange/codereview
Here's a sample of the XML I'm working with (retrievable from any wiki's Special:Export/SomePage results): <mediawiki xmlns="http://www.mediawiki.org/xml/export-0.4/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mediawiki.org/xml/export-0.4/ http://www.mediawiki.org/xml/export-0....
stackexchange/codereview
What is the best way or an easy way to create a javascript menu. When I say best, I mean there are many softwares that help in creating menus, for eg. Sothink DHTML menu. Isnt there a menu control available in javascript?
stackexchange/codereview