instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
Please can someone help me. Basically I am using vb.net. All I am doing is objconn.Close() and it says The type initializer for 'WindowsApplication1.Module1' threw an exception. and that Format of the initialization string does not conform to specification starting at index 25. I've checked my initalization string...
stackexchange/codereview
What is the purpose of the iframe tag in HTML? What is it used for?
stackexchange/codereview
Im building website in Drupal, which have: Feed aggregator -Aggregate feeds and mapping to categories, tags Ping -Ping new contents to search engines, Ping-o-matic, etc. Workflow -When contents is viewed, publish to front page -When contents published to front page, send ping to search engines, Ping-o-matic, etc. Impor...
stackexchange/codereview
I have a list of terms in xml. Terms either have termtype nd or pt. If a term is termtype nd, it has no ID, but instead references a termtype PT which does have an ID. I need to do two things. replace the XXX for termId value with an incremental number for termtype nd, so all terms have an id. where a termType ND...
stackexchange/codereview
I would like to disable and then rebuild a unique index inside a sync transaction. Can it be done? I have multiple rows in a table that need to be changed but the values being updated violate a unique index. However, after all rows are changed, the constraint would be satisfied, so I want to disable this index until th...
stackexchange/codereview
I have a TCHAR define below: TCHAR szProcessName[MAX_PATH] = TEXT("<unknown>"); and I want to comapare as below: if(szProcessName == "NDSClient.exe") { } But then I am getting the errors: error C2446: == : no conversion from const char * to TCHAR * error C2440: '==' : cannot convert from 'const char [14]' to 'TC...
stackexchange/codereview
Why does the IsSelected Trigger below only work when Template Setter is absent from the code? How can I get both to function as expected? I have the following in my Application.Resources tag; <Style TargetType="{x:Type DataGridCell}"> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> ...
stackexchange/codereview
I'm new to extjs and I have a problem. I send JSON from PHP using echo. When I send static HTML it's ok, but when I send an encoded JSON string I have a result like this shown: {account:blablabla, amount:blablabla} What can I do?
stackexchange/codereview
I've seen in some examples (e.g. [this][1][1]: http://www.ibm.com/developerworks/java/library/j-jsf2fu3/) that subcomponent can see attributes of parent component using 'cc.parent.attrs'. However, it is not work for me. What can be the reason?
stackexchange/codereview
Using this dummy code saved in a file named foo.txt... COG,station1,station2,station3,station4,station5 COG000Z,0.019393497,0.183122497,0.089911227,0.283250444,0.074110521 COG0002,0.044632051,0.019118032,0.034625785,0.069892277,0.034073709 COG0001,0.033066112,0,0,0,0 COG0004,0.115086472,0.098805295,0.148167492,0.040019...
stackexchange/codereview
I'd like to read some data which itself specifies the data type to use. For example, let's assume there may be user inputs like these: integer pair 1 2 integer triple 1 2 3 real pair 1 2 real triple 1 2 3 and there is a data type to represent it: data (MValue a) => T a = TP (Pair a) | TT (Triple a) deriving (Show, E...
stackexchange/codereview
I have created a form which takes in images into a folder. I have only one image per folder and I want to display the image from the specified folder. Say I've uploaded one picture to folder name uploads. Now I want to retrieve that image from the folder and display it. How do I do that?
stackexchange/codereview
I have an application running on iis(7) ( asp.net mvc if that matters ) and i want to connect to it ( a method from a controller obviously ) from a PDA. I am using HttpWebRequest/Response but i get "Unable to connect to the remote server" "No connection could be made because the target machine actively refused it" If i...
stackexchange/codereview
I'd like to find a way to dynamically check if string is parse-able into a given type. in other words, public boolean canBeParsed(String type, String val) { // use reflect to check if val can be parsed into type } clearly, I'd like to be able check different types with different values.. types will be strings like...
stackexchange/codereview
I am hoping for some advice in partitioning my new MacBook Pro's 500GB drive for software development. If possible I would like to create two partitions with one (the smaller) being used for Windows development, occasionally. I am not sure which Windows OS I will be installing (probably Windows 7). I will also be insta...
stackexchange/codereview
I found a neat solution for mouse over update panel, real simple. What I'd like to do is read the 'options' from xml instead of static string like this example: $(document).ready(function(){ var options = {'solutions':"<h1 class='middleh1'>Solving Your Tech Problems.</h1><p>Below are a couple of...
stackexchange/codereview
I'd like to play around with computer vision and AI techniques without having to spend money on hardware right away. If there aren't any robotics simulation environments that model flight physics, could someone recommend the fastest/easiest way to make one? I don't want to make one from scratch, of course, but maybe i...
stackexchange/codereview
What is the difference between wamp server and mysqlserver? and can I construct databases on phpmyadmin using any of these servers?
stackexchange/codereview
Hi i have issues with my xdebug connection to PHPUnit. when running: phpunit --coverage-html ./report unit i get: PHPUnit 3.4.15 by Sebastian Bergmann. The Xdebug extension is not loaded. when i run php -v PHP 5.2.13 (cli) (built: Mar 5 2010 16:23:44) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.2.0, Copy...
stackexchange/codereview
I was trying to compile libSDL-1.2.14 for my mips platform. But it was not successful. These were the steps that I tried out : export PATH=/opt/mips-4.3/bin:$PATH Went inside the libSDL-1.2.14 source folder. Gave a "./configure --prefix=/usr/local/SDL_Lib --host=mips-linux-gnu" Executed the "make" command Thi...
stackexchange/codereview
I have an app written for iOS 3.2, I did not mark it as tested for iOS 4 when I added it to the app store. I have since tested it and it works just fine but I do not want to submit an update if I do not have to. Will they clear out all apps or not make the available if they have not been tested for iOS 4?
stackexchange/codereview
I'm running a Java app on AppEngine, and I want to use app.yaml. I've read the docs and created a app.yaml app inside the WEB-INF folder with the following contents application: myprojectname version: 1 runtime: java api_version: 1 welcome_files: - index.jsp - index.html handlers: - url: /oblivion/* servlet: my...
stackexchange/codereview
I have a recursive query which executes very fast if the WHERE clause contains a constant but becomes very slow if I replace the constant with a parameter having the same value. Query #1 - with constant ;WITH Hierarchy (Id, ParentId, Data, Depth) AS ( SELECT Id, ParentId, NULL AS Data, 0 AS Depth FROM Test UNION AL...
stackexchange/codereview
Let's assume we have a text-box on the page: <input type="text"> The visitor types in some characters, and we read those characters via the value property of the text-box. Now, let's say that the text-box represents a numeric value. I cannot define such a thing on the text-box - its value is always going to be a...
stackexchange/codereview
I have a certain code written in Matlab. I wanted to obtain similar results using a c++ code. I wanted to know whether a c++ library exists for matrix manipulations? My current Matlab code consists of matrix multiplications,inverse and complements.
stackexchange/codereview
I've written plenty of .Net code for Windows but never for Windows Mobile. How do I make a Windows Mobile application? My mobile device has an ARM processor so I need to cross-compile.
stackexchange/codereview
i have an array like this: $array = array('domain1.com','domain2.net','domain3.org'); any way to replace only these domains into links with preg_replace? currently have this little function, but parses all the domains: function insert_referer($text){ $text = preg_replace('#(script|...
stackexchange/codereview
as mentioned in title , select and submit elements have 20px right margin. other for elements dont ? DL>* { margin: 10px 0px; background: #aaa; } DL>*>* { display: inline-block; border: 5px solid #666; padding: 5px; margin: 5px; width: 250px; } <dl> <dt><label for="name">Ваше имя</labe...
stackexchange/codereview
Let's say I have a contrived program: #include <Windows.h> void useless_function() { Sleep(5000); } void useful_function() { // ... do some work useless_function(); // ... do some more work } int main() { useful_function(); return 0; } Objective: I want the profiler to tell me useful_functio...
stackexchange/codereview
Is there any in-built grouping for ListBoxes or another UI control? I would like to have a list but have some form of grouping or sections applied to the list. As shown below: heading one list item one list item two heading two list item one list item two list item three list item four I...
stackexchange/codereview
Thanks for all your help, as usual, i am looking for some more information... Regarding view controllers, i am trying to develop an application with multiple views. View Controller loads from View A using presentModalViewController - and loads View B from there - also works fine, but i have some nagging questions... V...
stackexchange/codereview
I understand that there is both an ANSI standard and an ISO standard for C. Are there any differences between these two standards? If so, what are they? And if there is not a difference then what's the point of having two standards?
stackexchange/codereview
It is said that by using C/C++, one can write 'native' programs - that run on the platform. I am confused about what is considered native - the processor architecture or the OS version? For example: I have a 32 bit processor and Windows 7 ( 32 bit ), and I compile and generate and .exe file. Is it guaranteed to run on ...
stackexchange/codereview
Is it possible to send mail from localhost using php with the help of gmail...???
stackexchange/codereview
I'm using Blackberry JDE 5.0.0, I can use Vector to store a growable list of objects, but I'm wondering if there's an ArrayList<T> type class that supports parameterized types on BB?
stackexchange/codereview
I have 2 pages : 1.php and 2.php When the user arrives on 2.php, i want to show on 2.php that the user is arriving from google.com and NOT from 1.php I tried spoofing the header of 2.php using <?php header(); ?> when i do a javascript document.write(document.referrer); it shows me 1.php Any help is appreciated.
stackexchange/codereview
I would like to deconstruct the following polygon shown in blue removing all of the points from the polygon that cause concavity. Currently, what I have been attempting to do is: Take each point out of the polygon Test the point to see if it falls within the polygon created by the rest of the set If true remove the p...
stackexchange/codereview
How do I convert a multiline string to array? my $text= " ads da sda s da d as das d a as dasd \n "; Note : I dont want to remove or delete newline ?
stackexchange/codereview
I'm trying to get a "simpleDialog" box to open up via a link using the following code: <script language="javascript" type="text/javascript"> jQuery(document).ready(function () { jQuery('.simpledialog').simpleDialog(); }); jQuery('#sdHc2').simpleDialog({ showCloseLabel: false }); }); </script> Here's the link ...
stackexchange/codereview
I have a codebase which uses StringType and NoneType(types module) in the python2.x codebase. On porting to Python3, tests failed as the types module in Python3.x does not have the above mentioned two types. I solved the problem by replacing them with "str" and "None" respectively. I was wondering if there is another (...
stackexchange/codereview
How to get the modules list in Drupal as in admin/build/modules?
stackexchange/codereview
I have some DateTimePickers in a form that never update. I've tried Value and Text, Invalidate() and then Update() and also Refresh()... Nothing seems to change their values from the current date! No matter what I set, the current dates are (relatively)today's! Is this a .NET 3.5 bug or what? (No, I cannot use .NET...
stackexchange/codereview
I have a data grid view ( say 5 columns ) . User has the option to disable/enable 1 particular column of the data table (using radio buttons). So How should I go about doing it? When I select to disable the column, I need to make it non editable, change the color of the column so that user can understand that the colum...
stackexchange/codereview
How can I override Hudson build number? It sounds like an easy question, but in fact it is not. Main main goal is to have the SVN revision number as the build number. So I set the env. var. with appropriate plug in and i have: BUILD_NUMBER = ${SVN_REVISION}.${BUILD_ID} BUILD_TAG = ${JOB_NAME}.${BUILD_NUMBER} BUILD_NUM...
stackexchange/codereview
I have just started learning wordpress plugin development and got this error when I access the my plugin menu from admin. Here is the code: importer.php //*************** Admin function *************** function oscimp_admin() { include('importer_admin.php'); } function oscimp_admin_actions() { add_options_page...
stackexchange/codereview
I use structure map for dependencies injection, I also now want to use postsharp for some authorisation checking at my service layer. because my service layer has all injected repositories is there a way I can inject or pass these repositories to the postsharp attribute to query the sql and provide authorisation?
stackexchange/codereview
I need advance. I send HTTP GET request and parse HTML response, if HTML response(html string) consist some substring, I want sent to client app,(WPF app) some error/warning message. In my solution, if html string consist some substring I throw new exception, it is stupid, what solution is suitable for this problem? c...
stackexchange/codereview
I am playing with Orchard CMS. The problem is that comments are formatted as plain text and even <p> tags are not generated. How to make possible a basic formatting such as <p> or may be <b>, <i>?
stackexchange/codereview
m = raw_input("Please enter a date(format:mm/dd/yyyy): ") def main(): if '01' in m: n = m.replace('01','Janauary') print n elif '02' in m: n = m.replace('02','February') print n elif '03' in m: n = m.replace('03','March') print n elif '04' in m: n ...
stackexchange/codereview
The Botan library (botan.randombit.net/) has a number of algorithms for encryption/decryption. I am interested in using the XTS algorithm for encryption/decryption that is available within Botan. However, there is no example provided for XTS usage in the downloaded Botan library. I need to know the XTS algorithm for en...
stackexchange/codereview
Please be patient with my writing, as my English is not proficient. As a programmer, I wanna learn about the algorithm, or the machine learning intelligence, that are implemented underneath recommendation systems or related-based systems. For instance, the most obvious example would be from Amazon. They have a really g...
stackexchange/codereview
Could you advice a basic step for creating a web application using c#? I am confused about how to use it, since I don't know how to write an event for a button, etc. I also don't know the difference between an input button and an asp.net button.
stackexchange/codereview
I'm struggling to read query variables that contain more than 512 characters in the $_GET array. If I parse the query string using parse_string, however, I can read it just fine from the resulting array. Example: # GET /test.php?foo=<string with 513 characters>&bar=bar HTTP/1.1 <?php var_dump($_GET['foo']); # NULL var...
stackexchange/codereview
I need to write some function NTimesComposition(f:(int * int -> int), n:int) which receives some function f and integer n and after doing composition of f, n times, like this f(x,(f(x,f(x,y)))) <- (here for example n = 3) I began to write it on smlnj, but it seems more complicated than I thought thanks in advance for a...
stackexchange/codereview
I need to download jpeg images of size > MIN_SIZE from the pages 1 <= PAGE_NUMBER <= NUM_OF_PAGES http://somewebsite.com/showthread.php?t=12345&page=PAGE_NUMBER How can I do that in python? I am new to python.
stackexchange/codereview
I have a class in my project, that inherits from Control and contains a few other items inside a groupbox: class ProgressControl : Control { private GroupBox TrackGroupBox; //some other stuff } I have overridden the Width, Top, Left etc top affect the groupbox and subitems. How Do I paint the groupbox when I ...
stackexchange/codereview
I am digging into F# source code recently. in Seq.fs: // Binding. // // We use a type defintion to apply a local dynamic optimization. // We automatically right-associate binding, i.e. push the continuations to the right. // That is, bindG (bindG G1 cont1) cont2 --> bindG G1 (cont1 o cont2) // This makes constructs ...
stackexchange/codereview
I've got a site hosted with 1and1 - who are useless! For some reason the backup scripts they provide no longer work and they can't provide me with an answer! So I thought I'd write my own, this is my code: if (file_exists('backupfile.sql')){ $FP = fopen ( 'backupfile.sql', 'r' ); $READ = fread ( $FP, filesize ( '...
stackexchange/codereview
My issue turned out to be having two context's. I reworked my code a bit to only have one context and my issue went away. I have a User which has a list of UserContact's which itself has a ContactOption. Its a fairly simple 1 to many, many to 1 with the UserContact table in the middle. If I pull the user out of the db...
stackexchange/codereview
I am trying to build an Android project with Scala sources in IntelliJ IDEA (Community Edition). I am using Scala sources from Java files: auto-complete works correctly, but build cannot resolve Scala classes in Java: cannot find symbol class MyScalaClass. (I managed that in Eclipse, but Scala support in Eclipse is poo...
stackexchange/codereview
What are the restrictions on table names and database design with CakePHP i have a database already working another app. I want to build a new interface with CakePHP will i need to redesign the database
stackexchange/codereview
Possible Duplicate: How is heap and stack memories managed, implemented, allocated? Hi, my question is about heap, not the data structure, but the area of memory that is used for dynamic memory allocation. Suppose we're writing a program in C (or maybe C++) and somewhere in the depths of its code a call to malloc()...
stackexchange/codereview
is there a way in c# to be able to ping a url every 15 minutes and get a response back from the server? i want to try to see if .net can be used to build a simple tool to have asp.net websites invoke a re-build so that the first user doesn't incur the load penalty when the application is started. or if anyone has an al...
stackexchange/codereview
I've had no problems creating and submitting apps previously (roughly 7 months ago or so) and now that I just recently created one and tried to upload it, it says: Application Loader is currently Unavailable. We're having trouble connections to the itunes store. please try again later. An error occurred talking to ...
stackexchange/codereview
Should I still drive on with FrontPage, or should I bite the bullet and learn (and buy -- ouch) DreamWeaver? I'm not a webmaster, just an amateur. My humble personal website was created years ago with FP 98 after a weekend's class and its textbook. So I'd like to stay with FP, even if the program long ago lost its supp...
stackexchange/codereview
I'd like to be able to use a custom id (instead of the auto-incrementing default ones) for a Rails model. Basically, all the ids will be iTunes store ids, which are just long integers. Is it possible to turn off the default auto-incrementing ids and require that one be set? These ids will also be used as foreign keys i...
stackexchange/codereview
I am developing an application in which Android device will be connected to a device via bluetooth and they will be exchanging certain packets. Now, the packet communication should be running in background and user can navigate through the screens of the app. So, for this purpose using bluetooth communication running a...
stackexchange/codereview
Possible Duplicate: How can we count the time of process? I have a pop-up dialog that pops up after a user had saved a value. I want the popup to disappear after 2 seconds. Somthing like if(timeElapsed(2 seconds)){ popup.hide() } The related questions I saw measure the running time of a function. How can I run...
stackexchange/codereview
I am attempting to get a sample jqgrid example to show up on my local machine. I'm not trying to do anything fancy, but just trying to get the grid to show up. I have hardly touched javascript ever (and wish I could keep it that way), but feel this is my best hope at getting the data in a pet django project to show i...
stackexchange/codereview
I am using TinYMce WYSIWYG editor, It is working fine. I am using OpenSource product without MCFileManager, instead files/images are uploaded via TinyBrowser which is included. Now I need to trigger this pop-up window where I can browse files to upload from element. Is there any way to do that via upload files? P.S May...
stackexchange/codereview
Ok, I'm a noob with rails... so I just set up rails with RVM and created a new project, and when I try to visit a newly created view I'm getting an error 500. Heres my setup: OSX 10.6.5 Installed MySQL 64bit RVM installed ruby 1.8.7 and rails 2.3.8 (no other rails or ruby except for the system ruby) rvm install 1.8.7,...
stackexchange/codereview
Is it possible to generate a specific set of font from the below given image ? My idea is to generate a specific font for the below given image of text ,by manually selecting portion of the image and mapping it to a set of letter's.Generate the font for this and then use this font to make it readable f...
stackexchange/codereview
HI Currently into my application I perform a normal action for every drop down. For instance I have a page which has 5 drop down so it takes time for every consecutive action. So I am thinking to incorporate AJAX methodology for achieving it. Pls help me in doing so with an example. Regards Rj`
stackexchange/codereview
I have a segfault in a weird spot in my code. It's in the last if statement. Any one has an idea why I get segfault? void processArgument(char argument[]){ FILE *sketcher; FILE *fp; fp = fopen (argument, "r"); sketcher = popen(Exec_c, "w"); if (fp == NULL){ printf ("Could not open pipe to %s\n"...
stackexchange/codereview
I have a jQuery function named Update. If $_SESSSION['Name'] is set, then the Update function of jQuery should be executed. How can I do that?
stackexchange/codereview
Possible Duplicate: What is the point of interfaces in PHP? Why should I create Interfaces in PHP? As I understands, interfaces are there to describe classes that implement them. The classes have to contain at least these functions. This is all fine if you're building upon someone else's work, or have to maintain a ...
stackexchange/codereview
I'm writing code for a user to update his password on a user account system. This is the portion of code I am referring to: $checker = mysqli_query($db, "SELECT userid FROM tbl_user WHERE userpassword = '".md5($current)."'"); //echo "SELECT userid FROM tbl_user WHERE userpassword = '".md5($current)."'"; if ($checker =...
stackexchange/codereview
Hey all, I'm trying to dynamically strip out some empty html tags. I'm kind of new to Regex, and it seems like the engine for coldfusion isn't as robust/similar to other regex engines (like javascript and as3). What's the trick for building a regex that ignores spaces in coldfusion 8? So, if I build this thing out I w...
stackexchange/codereview
i have a server and client classes but the problem is: when i make infinite loop to accept incoming connection i cant receive all the data received from the client while accepting the connections because accept blocks until the connection is accepted, my code: for (;;) { boost::thread thread(boost::bind...
stackexchange/codereview
Particularly in java. The polymorphically refactored code is running slower. Is it possible that polymorphism could be the culprit or perhaps there is a confounding performance drain unrelated to polymorphism.
stackexchange/codereview
I am hoping some of you who are experts in mysql can help me to optimize my mysql search query... First, some background: I am working on a small exercise mysql application that has a search feature. Each exercise in the database can belong to an arbitrary number of nested categories, and each exercise can also have an...
stackexchange/codereview
This work: var stepFunc = [ //Step 0 (it doe not exist) function(){console.log("Step 0");}, //Step 1 (function(){ var fFirstTime = true; return function(){ console.log("Step 1"); if (fFirstTime){ //Do Something } } })(),...
stackexchange/codereview
So here is te thing, Im trying to do an Applet for a webgame to produces "custom" avatars, this avatar are for a kind off an army of a country, so the avatar cosnsit on the image of the choice of the user, and a frame on the picture thtat represent the quad that the user belongs too. So my plan is to make them choose f...
stackexchange/codereview
I have a PhaseListener which listens on phaseId RENDER_RESPONSE. This faceListener calls this method: public void doLogin(ServletRequest request) throws IOException { FacesContext fc = FacesContext.getCurrentInstance(); HttpServletRequest req = (HttpServletRequest) request; String code = req....
stackexchange/codereview
How we can perfectly achieve dropdwn listbox in iphone...And instead for this I want if suppose i pressed button then it will display the UITableView or UIGestureView or UIPickerVIew.... Which one is more suitable instead for dropdown listbox..... please help my question.....
stackexchange/codereview
Can git commit empty versions of some files? The case in point is that I need new (untracked), non-empty files to first be added and committed as empty files, so as to mark their contents as being new and to be reviewed (the full, untracked file should not be added to the index; git diff should show the newly added co...
stackexchange/codereview
i used the code below to read the data from a file.sql nothing happen is there an issue ? + (void) getInitialDataToDisplay:(NSString *)dbPath { SQLAppDelegate *appDelegate = (SQLAppDelegate *)[[UIApplication sharedApplication] delegate]; if (sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK) { const char...
stackexchange/codereview
I have a Reservation model that takes an appointment attribute as date and has a virtual attribute duration that indicates how long the appointment will take. The real attribute, booking_end takes a Time that is referenced all over my application. However, for ease of input, we use duration instead of choosing another ...
stackexchange/codereview
I have a setup like so http://localhost/ http://localhost/ci_tada/ http://localhost/ci_tada/application http://localhost/ci_tada/application/views http://localhost/ci_tada/application/views/css http://localhost/ci_tada/application/views/css/master.css I dont want to have to write http://localhost/ci_tada/applicatio...
stackexchange/codereview
My question is essentially the same as this one here. I'm using AnkhSVN in Visual Studio 2010. I was under the impression that if I committed/updated the entire solution (I spammed both commit and update with all possible combinations), then the entire revision, and this means every single file in the revision would be...
stackexchange/codereview
I have some code for displaying an alert dialog from one of my activities in Android. AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage("Message"); builder.setCancelable(false) .setPositiveButton("Ok", new DialogInterface.OnClickListener() { ...
stackexchange/codereview
I am pretty sure I am doing something dreadfully wrong, but can't figure it out. I created a simple wrapper around a class and added a dependency property so I could bind to it. However, the binding gives no errors, but does nothing. In order to simplify things I changed the class to TextBox, and got the same results. ...
stackexchange/codereview
As far as I can tell, the test files location is correct. When I run "mvn test", it finds four classes named SomethingTest (they are located in the 'test' folder). However, it ignores any of the jUnit tests (jUnit 4, annotated with @Test). How do I debug this? Edit - this is probablly related to wrong version of jUnit ...
stackexchange/codereview
I'm trying to use AVCaptureSession to get images from the front camera for processing. So far each time a new frame was available I simply assigned it to a variable, and ran an NSTimer that checks every tenth of a second if there's a new frame, and if there is it processes it. I would like to get a frame, freeze the c...
stackexchange/codereview
My browser, Firefox 3.6, seems to display the Mathml equations in the W3C test suite just fine. But if I copy the code into my webpage, like from here, all Firefox produces is something like x y x y instead of how it correctly rendered the W3C page. What am I missing here> EDIT: I just tried it in Chrome and Chrome fa...
stackexchange/codereview
I am trying to target a specific form element on a php page that has multiple forms with jquery. The forms are dynamically generated and are contained within a while loop. The forms are comments forms that reside under an individual post containing three posts per page. Since the form and form fields are dynamically ge...
stackexchange/codereview
I want (need) to write an input filter, which replaces tokens with the values of other fields of the current node (images, for example). I thought about hacking with global variables, but perhaps there is a cleaner solution to access the current context inside a input filter? Simply loading the node with arg(1) works i...
stackexchange/codereview
try { HttpResponse response = new DefaultHttpClient().execute( new HttpGet(requestString)); InputStream is = response.getEntity().getContent(); ...
stackexchange/codereview
Is it possible to check the threading mode of an active SQLite connection? I know about sqlite3_threadsafe(), but The return value of the sqlite3_threadsafe() function shows only the compile-time setting of thread safety, not any run-time changes to that setting made by sqlite3_config().
stackexchange/codereview
RFC 4627 on Json reads: Encoding JSON text SHALL be encoded in Unicode. The default encoding is UTF-8. Since the first two characters of a JSON text will always be ASCII characters [RFC0020], it is possible to determine whether an octet stream is UTF-8, UTF-16 (BE or LE), or UTF-32 (BE or LE) by looking at the patter...
stackexchange/codereview