instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
In my website i use prototype, and in prototype you can pass functions as parameters to some objects, for example, the dragable object. I have recently stated using jquery resizeable, and i can't quite figure out how exactly to customize it's behavior. With the default options, i can't do some custom things, like chang...
stackexchange/codereview
I'm trying to do a rather complex (for me, at least) query that involves fetching rows that may have NULL values. There are four tables here, tags, questions_tags, users_experience, and answers. The connections are rather straightforward. Questions are tagged, tags have names, users give answers to questions, and users...
stackexchange/codereview
I forked rails and then this is what I did. > git clone git@github.com:nadal/rails.git > cd rails > git remote add upstream git://github.com/rails/rails.git > git pull upstream master Now git remote shows two items > git remote origin upstream I made a bunch of changes to master and comitted it. Then I created a bunc...
stackexchange/codereview
When you use set-content Set-Content C:\test.txt "test","test1" by default the two provided strings are separated by a newline, but there is also a newline at the end of the file. How do you ignore this newline or newline with spaces when using Get-Content?
stackexchange/codereview
I have got a website, which i want to be opened from some specified IP addresses. I know how to get ip address in asp.net, but i dont want this check to be perform on page init or in masterpage for again and again. is it possible to do some settings in web.config or do some stuff with global.asax. so we can control tha...
stackexchange/codereview
Hello I am having a problem with my joomla code when I try xxxxxxxxxindex.php?option=com_blast&task=ccis this is going to the controller function ccis and when I tr xxxxxxxxxxxxxxindex.php?option=com_blast&task=ccim?data=123 this is going to the function display, I want this to come to the function ccis, how can I do ...
stackexchange/codereview
We need a HttpRequestWrapper, which is able to buffer POST/PUT request body, so that we can for example print it in log messages. The standard HttpServletRequest doesn't let us cache the body: if you read it once, it is gone, because it's a stream. We created simple wrapper class, which reads the body, stores it as Str...
stackexchange/codereview
If a station simultaneously maintains three TCP connections,can use the same TCP port for the three connections? If yes how it could distinguish packets?
stackexchange/codereview
I am wondering my IE6 and IE7 is messing up dynamic HTML generated by JavaScript (use with FancyBox and jQuery). For example: var html = '<a href="#fancyBoxContent" class="fancybox"></a>'; document.getElementById('container').innerHTML = html; Instead of filling the container with '<a href="#fancyBoxContent" class="fa...
stackexchange/codereview
edit Apparently what I was hoping to do is outside of the scope of thrift... If I make sure there is never more than one client on the port, everything is a-ok. Of course this kind of defeats the purpose as I'd like to have several reusable connections open to the server to improve response times and lower overhead. If...
stackexchange/codereview
We are currently using TeamCity and planning to move on to BuildForge because of organizational needs/constraints. I want to do a feature comparison on TeamCity and BuildForge. Could anyone please help me on this. As I could find comparison of BuildForge with other CI tools such as Hudson, CruiseControl only.
stackexchange/codereview
I'm supposed to check for AABB collision between two pyramids. I looked up AABB, simple enough to check. I was given the vertices for both pyramids, as well as 4 world positions. I am supposed to calculate the AABB collision box, which I've done, and then see if they pyramids collide or not. The part that I'm confused...
stackexchange/codereview
I'm building a multilingual website that uses PHP to load language files. Paragraphs in the language file are set in define() constants. After opening page in the browser I get a bunch of characters like "?". In the markup I have encoding set to utf-8. What can be done to make it work other than replacing all unknown ...
stackexchange/codereview
I have something which should be easy to answer for most of your I think: I have the following classes: class One { string first; } class Two : One { string second; } Now I wanted to replace all One values of a Two value. So I tried the following: One one = new One(); Two two = new Two(); two = (Two) one; // <= this s...
stackexchange/codereview
I want to be notified when certain things happen in some of my classes. I want to set this up in such a way that the implementation of my methods in those classes doesn't change. I was thinking I'd have something like the following module: module Notifications extend ActiveSupport::Concern module ClassMethods ...
stackexchange/codereview
I have a string with many types of special characters, but I want to remove only " (double quotes). How can this be done?
stackexchange/codereview
Is there a C# equivalent of C++'s stream manipulators? Eg int decimalPlaces = 2; double pi = 3.14159; cout.precision(decimalPlaces); cout << pi; It feels weird having to format a number to a string in order to format a number to a string. Eg int decimalPlaces = 2; double pi = 3.14159; string format = "N" + decimalPlac...
stackexchange/codereview
how can i access file on different server.means my application is on server A. my database is on server B I created stored procedure in database DECLARE @DatabasePath VARCHAR(MAX) SET @DatabasePath = 'E:\ABC.xls' DECLARE @sql nvarchar(MAX) SET @sql = ' INSERT INTO [dbo].[Table_1] SELECT * FROM OPENROWSET(''Micr...
stackexchange/codereview
VitaminTable.java: package vitaminTable.xyz.com; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.*; public class VitaminTable extends Activity { Button vitaminA,vitaminB1,vitaminB2,vitaminB...
stackexchange/codereview
I'm parsing large XML files (~1-2M) in my application. Occasionally parser fails when parsing some files. Symptoms: Sometimes the same file is parsed successfully, sometimes - not. If parsing of a file fails it will take some time before the file can be parsed successfully again. I use 2 types of XML parsers: SAX (XM...
stackexchange/codereview
My web app receives archive, unpacks it to temp folder, reads data from extracted DBFs and then should kill garbage. Though it fails to kill temp folder since DBF files in it are locked. Here is a sample code: public static void main( String a[] ) throws Exception { Class.forName( "com.hxtt.sql.dbf.DBFDrive...
stackexchange/codereview
I've got video files stored as: www.example.com/video_files/abc.flv My application uses FlowPlayer which streams this video file to the end user. How can I restrict access to these files only to the application within the server and prevent ppl from typing in the url/file link directly and downloading the file?
stackexchange/codereview
I have an application that will charge users a small fee on a monthly basis, but the amount is VAT-able. VAT is changing in January from 17.5% to 20%. How does Paypal handle this? I can see in the API that you should pass the Tax Amount https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto...
stackexchange/codereview
I have created a set of custom HtmlHelper extensions. I would like to know if it is possible to prevent other developers in the same project from using the standard HtmlHelpers. Eg: Say, I have.. public static string CustomDropDown(this HtmlHelper html) { //Custom code here } I want only <% Html.CustomDropDown(..)%...
stackexchange/codereview
I want to create a maven project with the following structure: A |--pom.xml |--B |--pom.xml |--C |--pom.xml where A, B and C are folders, and B's pom.xml and C's pom.xml are children of A's pom.xml. I want to have in B's pom.xml the following section: <properties> <some.property>B</some.property> </properties...
stackexchange/codereview
I distribute my desktop application on flash drives to thousands of users on Windows, Mac, and Linux. I have a HTML starter page that has links to the documentation, install guide, release notes, etc. which are all on the flash drive. I would love for the user to just install directly from the browser, but that's exa...
stackexchange/codereview
If I'm looping through results from a JSON call, how do I know if I'm on the first iteration? In this example I made up the loopIndex variable to indicate what I'm looking for -- but it's not actually set anywhere. How do you know where you are in the loop - which iteration you're on? $.getJSON(myurl, function(data) { ...
stackexchange/codereview
I have a somewhat specific question. I have a list of items that will be chosen in the program and then need to separate the quantities of the number into different amounts. Here is an example: 10 pipes get separated into a set of 3 which are 2 + 5 + 3. These 2, 5, and 3 are sent to different locations, which is wh...
stackexchange/codereview
I need to recreate the following design using only CSS: What you're seeing in the picture is the top of a website container - the "links" are part of the main menu. As it stands, I've created the container but I'm not sure how to go about making the slant on the navigation without using an image. For the record:...
stackexchange/codereview
I have a problem, and I can't seem to work out how to solve it. I have two checkboxes, both of them have a value of 5. I just need to add the value of 5 to a variable when a checkbox is checked, and deduct 5, when it is unchecked. I've been using jQuery, but so far I've only managed to add 5 and it adds 10, when both o...
stackexchange/codereview
My wordpress blog is having issues with syntax highlighter evolved plugin, and there's this weird div element popping out: <div style="z-index: -1; position:absolute; top:0px; left: 0px; width: 100%; height: 4031px;"></div> This causes my page to extend, creating a big space at the end of the page. This also is found ...
stackexchange/codereview
I'm having a (minor) problem here. I'm calling a named template and am assigning the outcome to a variable. So for so good, but I need the type of the processed template's return value to be integer rather than text. I wonder if there's a way to achieve that without having to go with a temporary variable? Here's some s...
stackexchange/codereview
I want to write a function that highlights some text. It takes a HTML string as input and returns HTML string with additional html tags. Example: Input string (need to highlight the word "text"): <div> <a href="..." title="text to highlight">Some text to highlight</a> <a href="..." title="text to highlight">Some other ...
stackexchange/codereview
Is there a way to see live DOM updates with the IE8 Developer Tools? It seems that it is just a snapshot of the DOM. Without pressing the refresh button (in the developer tool window) there's no way to see live DOM updates. It there a way to get it to behave more like Firebug?
stackexchange/codereview
I have a set of Individuals at first: class Individual { double characteristics[]; abstract double CalculateValue(); ... } Each individual has a set of characteristics. Those characteristics will be implemented by the user of my library through inheritance: class MyIndividualABC : Individual { public M...
stackexchange/codereview
I am working in C# Windows Forms Application I want to make shadow of my form, so I have taken a image having shadow and set it as Form's Background image and also set TransparentKey to Form's BackColor i.e. Control Color, so that it will transparent the area which contains Control color and FormBorderStyle to None. ...
stackexchange/codereview
I have these 4 hashmaps and use them in code so I can show the comparison in an excel sheet. HashMap 1 - is with a key of unique id and value as another hashmap containing tagid as key and description of fields to compare. [343, ((id_1,Plan Features),(a, Deductible),(b,Individual),(c,Family),(id_4,Individual Out-of-ne...
stackexchange/codereview
I have tried the following code, and then R exits unexpectedly: temp <- rep(as.Date("2009-01-01")+1:365, 365) print(temp) Anyone tried this before, is it a bug, or if there is anything I can do? I have increase the memory available for R from 1024M to 2047M, but the same thing happens. Thanks. UPDATE #1 Here's my sess...
stackexchange/codereview
I am new to the windows phone 7 application development. I am accessing the picture library by using the PhotoChooserTask class. After selecting one of the picture from picture library I want to add that image (.jpg file) from picture library to the images folder of my application. How to do this ? I am using the follo...
stackexchange/codereview
I am using an exported class class __declspec(dllexport) myclass { private: template __declspec(dllexport) class std::map<myclass*,int>; std::map<myclass*,int>m_map; //something }; When I do this, I get a warning C4251 saying m_map:class 'std::map<_Kty,_Ty>' needs to have dll-interface to be used b...
stackexchange/codereview
As you are undoubtedly aware any windows form in the topmost area when right clicking on it will bring up the following menu. | Restore | | Move | | Size | | Minimize | | Maximize | |----------| | Close | Unfortunately I have no idea what this menu is called and could probably google an answer if I did but...
stackexchange/codereview
Good morning, experts I need your advice. Let's say we have user, profile and post entities. Variant 1: user has many profile, profile has many post Variant 2: user has many profile, user has many post What's the best? By convenience, "right way", or maybe even performance?
stackexchange/codereview
Possible Duplicate: c difference between malloc and calloc Is there any situation where you would prefer malloc over calloc. i know both malloc and calloc allocate memory dynamically and that calloc also initializes all bits in alloted memory to zero. From this i would guess its always better to use calloc over mall...
stackexchange/codereview
I have two classes, say Group and Person with a ManyToMany-Relation that is mapped in a JoinTable. If I delete a Person that has a relation to a Group, I want to delete the entry from the join table (not delete the group itself!). How do I have to define the cascade-Annotations? I didn't found a really helpful docume...
stackexchange/codereview
Excuse me for asking more questions in a thread, but they are closely related. I am going to develop a wireless (most probably BlueTooth) adapter to be attached to my medical device. I have to develop an iPhone control application that has to send/receive data between this adapter over wireless. I want to confirm the f...
stackexchange/codereview
After upgrading from Joomla 1.5.22 to 1.6 beta 14 I am getting this error when trying to call parameter in the xml file : Fatal error: Call to a member function getLabel() on a non-object the code is in view.php form->getLabel('max_chars'); ?> form->getInput('max_chars'); ?> the max_chars parame...
stackexchange/codereview
I'm trying to use Notepad++ to do some find and replace as I'm dealing with up to few thousand of lines of data. The below is the example of the data structure that i am dealing with. A = Can be any Aplabet X = Can be any Number 0-9 RX = Number that I want to replace with another value. AAAAA X.XXXXXX X.XXXXX X X X X ...
stackexchange/codereview
OK, once again I need help. I have managed to pass a variable in a query string from one page to another using this guys code: http://snipplr.com/users/Roshambo/ That all works great and I can see that it works by using an alert on the second page to test it: var byName = $.getUrlVar('id'); alert(byName); However... w...
stackexchange/codereview
Looking to implement a "Find Nearest" process for a mobile web application that will auto select the closest match of an item in a dropdown list in a form based on the user's current location. Assuming we have the lat/long for each element of our list, and the persons location from the mobile device, what is the best m...
stackexchange/codereview
How did Porche add Facebook like button to their fan page? They also changed the colour http://www.facebook.com/porsche?v=app_172346812791398
stackexchange/codereview
many time we use session variable to store data in page. i need way out to kill session from JavaScript when user will jump from one page to another page. is it possible. if yes then please guide me. thanks in advance
stackexchange/codereview
I am using Oracle ApEx and I was wondering on what is the best way to upload a single column csv file into an Oracle table, to be used within ApEx? Thanks.
stackexchange/codereview
there is a button, I want to rotate the image for 180 when I click the button, but it only works when I first click the button, how to continue to rotate the image, thanks in advance? the following is my source code: - (IBAction)touchButton_Refresh { photo *photos = [photoArray objectAtIndexhotoIndex]; NSData *xmlData...
stackexchange/codereview
I need to test flash site using Flash Debugger version 10.1 in Google Chrome. Issue: cannot able to view debug version of flash player. Steps Done: Disabled integrated version of flash player by listing through "about:plugins".( Note: I saw adobe document stated that it has two plugins integrated and system. But can ...
stackexchange/codereview
Out of curiosity, what kind of system is in place on Chatroulette sites? I'm guessing its not XMPP, and I don't see how it can be anonymous. Do they just record IPs and start streaming between them? Are there any tools for this?
stackexchange/codereview
Could someone show me how I could read a random number of lines from a file in Python?
stackexchange/codereview
I have successfully set up a friendship self referencial association for users in my Ruby on Rails app after following Ryan Bates' railscast. I can successfully follow, unfollow, and view who is following. Now I want to pull in another element and I am not sure how to do it. User has_many :workouts I want to display...
stackexchange/codereview
Possible Duplicate: Fastest algorithm for primality test Would appreciate a reference to sample code for fast primality testing in C#, preferably using BigInteger or other variable size type.
stackexchange/codereview
I am writing an application in C# that needs to handle incoming connections and I've never done server side programming before. This leads me to these following questions: Pros and cons of high backlog / low backlog? Why shouldn't we set the backlog to a huge number? If I call Socket.Listen(10), after 10 Accept()s do ...
stackexchange/codereview
I want a PHP script that logs into facebook with userid and password. posts on the wall of a page. Logs out. Is it possible? I am using php-sdk to post on the wall right now. But for that I have to log into my facebook account from the browser.
stackexchange/codereview
When I check the type hierarchy of a class that is derived from an interface in Eclipse, it doesn't show the interfaces. Is there a way to configure Eclipse to display the interfaces in the type hierarchy? Or is there any other way to see this information?
stackexchange/codereview
i want to implement tag cloud in sharepoint 2007. I want to enter data dynamically to the inputs of the tag cloud.
stackexchange/codereview
I'm working on a project where I need to render diagrams in the browser similar to this: I've looked at a number of organisational charting tools such as the Google Visualisations Organisation Chart but none of them seem to let me change the orientation. The nodes shown in the diagram above don't have to be icons, in ...
stackexchange/codereview
I had an old view that was giving out some odd data when I would query it. Two of it's columns, C and D, had a copy of data from columns A and B respectively. So C had a copy of A's data and D had a copy of B's data. When I extracted the query used by the view and ran it standalone everything was fine. Columns A, B...
stackexchange/codereview
I am using a ScheduledThreadPoolExecutor and when I have multiple scheduled threads running I am getting threadid=xx: bogus mon 1+0>0; adjusting in LogCat. Can anyone shed any light on what this means, is it bad and if so how do I stop it? Thanks.
stackexchange/codereview
I have compared two variable of different types with same values, int i = 100; short s = (short)100; if (s == i) { return "Equals"; } else { return "Not Equals"; } float f = 100.5f; double d = 100.5d; if (d == f) { return "Equals"; } else { return "Not Equals"; } The First comparison output is "Equal" and...
stackexchange/codereview
I have an events calender that displays events in the order of start date. Everything works great but there is one issue. Events that occur on today's date don't display. I believe that my "if" statement to remove events after they have passed is the issue. <? while($row = mysql_fetch_assoc($result)) { $id = $row['id']...
stackexchange/codereview
I'm somewhat new to .Net, so go easy on me ;-). Anyway. I working on my first WP7 library project which I hope will be compatible with both XNA and SilverLight applications. Based on whether I'm in XNA or Silverlight one of my factory classes needs to load different config class. Whats the best way to determine this ...
stackexchange/codereview
I am using ASP MVC 3 (RC) with Unity 2 with great success. However, I have one problem that I cannot wrap my head around. Behind the scenes I use POCO (Person, Company, ...) which I access through repositories. The repositories are made as generics (EFRepository), and use a context. Without LifetimeManager on the gener...
stackexchange/codereview
We are acting Scrum in our department now. But the up level management structure is traditional, such as Project Manager(PM), Development Manager(DM), Team Leader(TL) and Test team leader(TTL). Team Leader act as a Scrum master, he controls all the things in our team: communicated with PM/DM/TTL, development managemen...
stackexchange/codereview
Working on a app built on GAE in java. Having trouble figuring out whether i want to use DatastoreServices and the Entity class, or make class's for my objects, and using the PersistenceManager. Can someone explain the differences of these two services?
stackexchange/codereview
I have some code that is extracting a value at the end of a long property chain where any one of the properties could be null. For example: var value = prop1.prop2.prop3.prop4; In order to handle the possibility of null in prop1 I have to write: var value = prop1 == null ? null : prop1.prop2.prop3.prop4; In order to ...
stackexchange/codereview
I've got some tables I insert into with 40 to 50 columns - the type definitions are a nightmare - and look like this: 'ississsiisssisiiisssssiissssiisssssssiiiiiiiiiiiiiiiiiiiiiiiiiiii' When I add a column, I have no idea where to put the next letter. If I screw it up, obviously strings get converted into numbers (whi...
stackexchange/codereview
so i have made several attempts at this, but decided i needed some advice from the community regarding best practices. here is what i am trying to do. i have multiple elements in multiple views that i am using jquery toggles to show or hide them. what i want to do is save the state of them so they are persistant accr...
stackexchange/codereview
I created simple iPhone application. I send data to web service. First time when I debug application I hardcoded date like this: NSString *TA_DAY = @"5/6/2009 11:00:00 AM"; Just to check is it ok, and it works. But next time I changed this line to: NSString *TA_DAY = @"11/23/2010 11:00:00 AM"; When I debug TA_DAY is ...
stackexchange/codereview
How can I convert a System.GUID (in C#) to a string in decimal base (aka to a huge, comma delimited integer, in base ten)? Something like 433,352,133,455,122,445,557,129,... Guid.ToString converts GUIDs to hexadecimal representations. I'm using C# and .Net 2.0.
stackexchange/codereview
How do I get microsoft unity to 'construct' a list of classes for a given interface type. Very Simple example: List<IShippingCalculation> list = new List<IShippingCalculation>(); list.Add(new NewYorkShippingCalculation()); list.Add(new FloridaShippingCalculation()); list.Add(new AlaskShippingCalculation()); ...
stackexchange/codereview
I am using Oracle 9i, Please suggest how can I select data from one remote database and insert the data in the local database? Also suggest how the data can be copied from a remote to remote database.
stackexchange/codereview
Is Duplex Messaging (Server Push) available in WCF RIA? As it seems to me, there's no way to specify the appropriate binding (such as PollingDuplexHttpBinding) for the soap endpoint of the domain service to do so. Any ideas? Thanks.
stackexchange/codereview
What is the use of BizTalk server? When we need to use BizTalk server for deploying .net application? What are the advantages of BizTalk server?
stackexchange/codereview
I installed ruby-debug, when I do: rails server -debugger I get: Rails 3.0.1 application starting in bugger on .... Why does it say bugger? Then after that line, I get back to the command prompt so it just stops for some reason? Going to a page shows: bugger database is not configured Then if I try and do: rails serv...
stackexchange/codereview
I'm kind of a newb when it comes to emacs. I know about the .emacs file but have very little idea as to do anything more advanced than elementary stuff. Whenever I enter latex-mode, I'd also like to automatically turn on flyspell-mode, reftex-mode, auto-fill-mode, and also set fill-column to 120. How do I edit my .ema...
stackexchange/codereview
In PHP5, the code: session_register(""); my code: function login() { // Don't show the error message if no data has been submitted. $this->set('error', false); // Production mode. No output. For AJAX Configure::write('debug', 0); // Does not render the view // Others ...
stackexchange/codereview
I didn't find any explanation on the internet on how to vertical-align text in an HTML select. I don't want to align the text in the <option></option> because that is not hard. I want to align the text that is selected in the <select></select>. I've looked at browsers like Firefox, Opera, Chrome and Internet Explorer a...
stackexchange/codereview
I'm using Twitter API to post tweets. At times this can take some time, so i want to perform the "Tweet posting" operation in the background. For that i'm using GCD, like this: - (void)myClassMethodToPostTweet { dispatch_async(network_queue, ^{ // … construct the tweet message NSString *tweet = @"…"...
stackexchange/codereview
I have a datatable customerTbl and I step through the rows foreach (DataRow row in customerTbl.Rows) { string CustomerID = row["Customer ID"].ToString(); } However, the column Customer ID returns byte[]. How can I convert this to a string (CustomerID)? I tried something like string CustomerID = Convert.ToBase...
stackexchange/codereview
I'm using a Log class to store messages during execution, and then it is supposed to write these messages to a file on shutdown (with register_shutdown_function). But for some reason, I'm always getting "file_put_contents failed to open stream: No such file or directory". It shouldn't be a problem that the file doesn't...
stackexchange/codereview
I am developing an email parsing application using python POP3 library on a linux server using Dovecot email server. I have parsed the emails to get the contents and the attachments etc. using POP3 library. Now the issue is how to notify a user or actually the application that a new email has arrived? I guess there sho...
stackexchange/codereview
I want to add some HTML to the end of every youtube link to open up the player in a litebox. This is my code so far: $(document).ready(function() { var valid_url = new RegExp('youtube\.com\/.*v=([a-zA-Z0-9_-]+)'); var image_data = 'base64 encoded image'; init(); function init() { $('a').each(function() { ...
stackexchange/codereview
I'm a newbie in events. This example shows that an event is invoked every time the ArrayList is changed. I would like to know how to do it using generics. To you implement IList or extend List? I tried to code it but I'm stuck. using System; using System.Collections.Generic; namespace Events { public delegate ...
stackexchange/codereview
I'd like to access (and change) settings of the stock android browser via code. Is it possible, and if so - how? YES, it's programming question - i'd like to change it by code, not by manual clicking. What about doing it for rooted device?
stackexchange/codereview
I have 2 sites, both require login ( I'm using the django provided django.contrib.auth.views.login). When I enter http:// url /siteb , I am redirected to accounts/login and siteb is taken out of the URL creating http:// url /accounts/login. But then I get an error "The requested URL /accounts/login was not found on s...
stackexchange/codereview
I have a WPF Listbox control and I would like to allow the user to change the selected item by using type-ahead. The behavior I'm looking for is exactly like windows explorer. As you continue to type the text of a folder name, the list will keep selecting the more correct item. For example assume this folder structure:...
stackexchange/codereview
Please find the two tables below TableB ADq 47 qww 2.65 QY 2.26 TableA ADq 47 qww 2.65 QY 2.39 My result should be in this way ADq 47 qww 2.65 QY 0.13 Thanks Kishh
stackexchange/codereview
As a returning newbie to C++, I'm trying to sort the #include methodology. I'm following a certain set of guidelines I detail below the following example. So far this has worked out for me (the entire project keeps compiling :) ), but I'm worried I may encounter problems in the future, therefore my questions are - is t...
stackexchange/codereview
I want to know if there is any way to list (get) all the database names on Informix. I need a proper query or stored procedure to do that.
stackexchange/codereview
I'm getting an annoying error when trying to query some data in SQLite. Here is my code: Cursor cursor= db.query(TABLE_IMAGES, new String[]{"_id"}, "name" +" = "+compareToThis, null, null, null, null); I'm just returning the cursor as a string. The error is saying: no such column: compareToThis: while compiling........
stackexchange/codereview
I work on a relatively huge ECMAScript codebase (> 60,000 LOC) and we tend to struggle a bit with detecting errors for our dreaded friend Internet Explorer (especially 6 and 7). At the moment, I've been stuck with an issue for 3 days where my RIA renders fine in Google Chrome, Firefox 3.6, Opera and Internet Explorer 8...
stackexchange/codereview
I am trying to output JSON from a perl script that accesses a mysql database. How I can I loop through my query returns and turn that into JSON using the JSON module? When I do this all I get is 1 return while($query_handle->fetch()) { $jsonStructure->{event}; $jsonStructure->{event}->{evid} = $evid; $jsonS...
stackexchange/codereview
I am building a wcf service that needs to be secured as information that the client inter-exchanges with the service is sensitive to the company. I am planning to have it hosted on iis6. What would be the best practice to make sure that nobody but the client application can call the service to get/set data? The service...
stackexchange/codereview