instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
I have quick question for you all :) Let's say we have an eshop with URL's like type-of-product/name. Now, We have redesigned and reprogrammed our website, so now we need to redirect URL's from old ones  products-name.htm to new ones. That is not problem The question is – how to handle products, that are not available ...
stackexchange/codereview
What is the best way to create an HTML image that displays various states (e.g. for a button: normal, hovered, selected, disabled)? Ideally, I want to do via CSS classes (including the :hover meta-class). Also, I've seen multiple states combined into a single image (which makes image pre-loading easier), but I don't kn...
stackexchange/codereview
I am trying to use repeat region on the jQuery BlockUI script but it fails to work. This is the code I am using now: <?php do { ?> <script type="text/javascript"> $(document).ready(function() { $('#t<?php echo $row_dd31['dNo']; ?>').click(function() { $.blockUI({ message: $('#q<?php echo...
stackexchange/codereview
while going though sql server interview question in book of mr. shiv prashad koirala. i got to know that, even after using truncate table command the data can be recovered. please tell me how can we recover data when data is deleted using 'delete' command and how can data be recover if data is deleted using 'truncate' ...
stackexchange/codereview
I would like to do something like this: In a loop, first iteration write some content into a file named file0.txt, second iteration file1.txt and so on, just increase the number. FILE *img; int k = 0; while (true) { // here we get some data into variable data file = fopen("file.txt", "wb"); fwrite ...
stackexchange/codereview
In my day-to-day work, I often find myself writing classes like in this simplified example: class CGarage { public: CGarage(); ~CGarage(); typedef std::vector<Car> CarCollection; private: CarCollection m_Cars; }; I want the users of CGarage to have read only access to the CarCollection. In order to ac...
stackexchange/codereview
So I have Foo.app, which is configured to run Foo.app/Contents/MacOS/foo.py when it is launched. In the app's Info.plist file I also have it set as the application to handle the launching of ".bar" files. When I double-click a .bar file, Foo.app opens as expected. The problem is that when a file is opened in this way, ...
stackexchange/codereview
I have two HTC phones, one is HTC desire and another is HTC aria. I'm using ddms to capture the screenshot on HTC desire before, it works fine. However recently I buy one HTC aria, and I found when doing screenshot on camera preview and video playing (e.g. youtube clips), the result goes black. I think that might be so...
stackexchange/codereview
hello i want implement a algorithm that uses checked listbox what i need is uses checked items data and index from begin how can I do it?
stackexchange/codereview
I'm creating a model, which is then generating SQL to create the database. Now I have some great entity classes in a single .designer.cs file. However, I then want to add [Required] to some of the fields that I've created model-first. I've created public partial classes, but I can't redefine the fields to add the [Re...
stackexchange/codereview
How to translate this declaration? typedef void (CALLBACK *pCompletePlay)(LONG lvrPlayHandle, LONG lUserData); Thanks.
stackexchange/codereview
I have a hyperlink that is: <a href="some.html">Test</a> If I click on the Test link, some.html should open as pop up menu with some given width & height. How can I do this?
stackexchange/codereview
What technology can be used on my website to bring in daily fresh updated content, like News RSS feed from a famous news website,... etc?
stackexchange/codereview
I would like to get results from two tables grouped by same rules joined together in one select. I have table 1 create table person AS id INTEGER, gender INTEGER, state VARCHAR2 name VARCHAR2 surname VARCHAR2 table 2 create table sampletest as person_id FOREIGN KEY To person.id result INTEGER table 3 create table ex...
stackexchange/codereview
First of all its not a splash-screen what i want... just to be clear... ok... lets go to the description of the problem: i have a form that fire N number of threads (i dont know how many, the user must choose)... each thread has a object, and during several moments the objects may fire a event to signal some change... ...
stackexchange/codereview
Does anyone know how to pass build properties to izpack in ANT. I have a working izpack install in ANT and it works fine but I have to remember to manually put in thing like version number etc.. which are in my build.properties file. TIA
stackexchange/codereview
I'm finding __attribute__ ((warn_unused_result)) to be very useful as a means of encouraging developers not to ignore error codes returned by functions, but I need this to work with MSVC as well as gcc and gcc-compatible compilers such as ICC. Do the Microsoft Visual Studio C/C++ compilers have an equivalent mechanism ...
stackexchange/codereview
I created a basic grid that has a paging toolbar. For some reason when I load up at index 0, the Next Page button is disabled, even though the text says "Displaying page 1 of 5". If I choose anything higher than 0 in the load params for the store, it allows me to page forward and back, but it does not properly displa...
stackexchange/codereview
I known how to use flash in my windows c++ application with ActiveX. But what it the way to do it under linux?
stackexchange/codereview
My project has a picturebox control for loading pictures, it's working fine. However, some vertical jpg pictures are shown horizontally in Windows Explorer and also in my picturebox control - the same file opened using editors like Photoshop shows a vertical orientation. How can I get the picture to show with the corre...
stackexchange/codereview
I need to copy multiple files in a single batch file. The files have Unicode names that map to different codepages. Example: set ArabicFile=ڊڌڵڲڛشس set CyrillicFile=щЖЛдЉи set GermanFile=Bücher copy %ArabicFile% SomePlaceElse copy %CyrillicFile% SomePlaceElse copy %GermanFile% SomePlaceElse Problem: Batch files canno...
stackexchange/codereview
I've been experiencing occasional lags in my Android game when the garbage collector runs. I ran DDMS and discovered that all of the memory being allocated by my application is from this line: scoreString = String.valueOf(score); What is the best way to convert an integer to a string without allocating any memory?
stackexchange/codereview
I'm trying to figure out a basic web email form. I got the code from somewhere and am trying to make the checkboxes options. The email gets sent but just has Array next to the option. What am I doing wrong?
stackexchange/codereview
I want to upload sample video file to the server wen i pressed button. I used the code like below. -(IBAction)buttonAction { NSMutableURLRequest* post = [NSMutableURLRequest requestWithURL: [NSURL URLWithString: @"http://115.111.27.206:8081/vblo/upload.jsp"]]; [post setHTTPMethod: @"POST"]; NSString *boundary...
stackexchange/codereview
I've got a huge problem - multiple entities in my datastore of the same kind have the same id! Their keys are Keys, but I have been assuming that key.getId() will return a number that is unique among all entities of the same kind. Not so! Different keys can return the same id! Aurgh! I can confirm this by using the...
stackexchange/codereview
I can only specify a single .as file,how can I have 2 classes in it?
stackexchange/codereview
I have in my model a property of a certain type, it's a custom object. This object takes a string as a ctor argument. Is it possible to have the model binder automatic insert a string from a form into the ctor of the particular object ?
stackexchange/codereview
I need to know (by using GWT) the strategy of how load some class instead of some others according to HTTP GET value. Example : // Main.gwt.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/dist...
stackexchange/codereview
The JDK ships with CopyOnWrite* implementations for Set and List, but none for Map and I've often lamented this fact. I know there are other collections implementations out there that have them, but it would be nice if one shipped as standard. It seems like an obvious omission and I'm wondering if there was a good reas...
stackexchange/codereview
I'm building an ASP.NET MVC site where I want to use Lucene.Net for search. I've already built a SearchController and all of its methods, but I'm getting an error at runtime that occurs when the SearchController is first initialized. In SearchController, here's how I'm creating an IndexWriter: public static string Inde...
stackexchange/codereview
I have a list of variables or variable names stored in an array. I want to use them in a loop, but I don't want to have to use eval(). How do I do this? If I store the values in an array with quotes, I have to use eval() on the right side of any equation to render the value. If I store just the variable name, I thought...
stackexchange/codereview
Let's say I have two forms: Form1 and Form2. Form1 has a textbox, Textbox1 and Button1. When Button1 is clicked, a new instance of Form2 is created and shown. If Form2 needs to access Textbox1, how should expose it? Should Form2 have a public variable to hold a reference to the textbox? Or, when Form2 closes, should i...
stackexchange/codereview
I'm using django's url tag to move from one view to another: <a href = {% url wiki_view item %}>Read more here</a> For most "items" this works perfectly. But I have an "item" with a / character: Sci-Fi/Fantasy. In this instance, I get an error Caught NoReverseMatch while rendering: Reverse for 'wiki_view' with argu...
stackexchange/codereview
I'm trying to rewrite the following java method that return a list of objects(hibenrate domain objects) to be more generic to just write it once and to be able to pass any object to it. public List<GsCountry> getCountry() { Session session = hibernateUtil.getSessionFactory().openSession(); Transaction tx = s...
stackexchange/codereview
how would I change/specify the endpoint URL at runtime in a Flex App which communicates with PHP? I always used a services-config.xml so far. I tried to overwrite the endpoint in the mxml Remote Object, with no success. I also tried to add a new channel set to the Remote Object, but then I needed to define a destinati...
stackexchange/codereview
I have a really basic question about jquery. However I don't know how to this so that's why i'm here looking for your help. This is my code: Edit: <a href="javascript:$('#target').load('page.html').fadeIn('1000');">Link</a> As you see i want to load page.html into a div called #target. What I also want to do wich doese...
stackexchange/codereview
We have a rather extensive test suite that takes forever to execute. After each test has completed, the database (MSSQL) needs to be emptied so it is fresh for the next testcase. The way we do this is by temporarily removing all foreign keys, TRUNCATE'ing all tables, and re-adding the FKs. This step takes somewhere bet...
stackexchange/codereview
What does this error mean I have tried All possible means of changing it but it is not working. cannot convert ‘SQLINTEGER*’ to ‘long int*’ for argument ‘6’ to ‘SQLRETURN SQLGetData(void*, SQLUSMALLINT, SQLSMALLINT, void*, long int, long int*)’emphasized text Here is the code #ifndef CPSC_408_DB_H #define CPSC_408_DB_H...
stackexchange/codereview
What exactly is it, or was it, as is a interop, used for? Here, this is the method where I use it: public void SaveAttachmentMime(String fileName, CDO.Message message) { ADODB.Stream stream = message.BodyPart.GetStream(); String messageString = stream.ReadText(stream.Size); StreamWrite...
stackexchange/codereview
Why does this code print the char, without first character?? It says ocalhost instead of localhost. Grateful for help. #include <winsock2.h> #include <mysql/mysql.h> #include <iostream> #include <windows.h> #include <fstream> using namespace std; int main () { int b = 0; char * pch; int stringLength = 0; char tex...
stackexchange/codereview
I made a java game that is all based on JPanel. When I add it to a JFrame it works perfectly, and when I add it to a JApplet and test it with the built in applet tester of eclipse it works perfectly. However, when I try to run the applet through an html site it doesn't work. It loads, but it doesn't take keyboard in...
stackexchange/codereview
I am working in Android with SQLite. My db has 2 tables: Table 1: cars _id(int,pri-key) reg(text) type(text) Table 2: jobs _id(int,foreign-key) date(date) I need a sqlite statment which will get me all cars which have NOT had a job in the past 3 weeks. Iam actually porting the app from c#, and the statment I use fo...
stackexchange/codereview
To improve the perceived startup time of my application, I am using an image as a drawable for my initial activity as described in http://developer.android.com/resources/articles/window-bg-speed.html and it works wonders for what it is intended to do. The application seems to be presenting its first screen within a ten...
stackexchange/codereview
Hi I have written this part of code .before the for loop I have this arraylist : [X :49.0 Y: 113.0 , angle :0.0, X :141.0 Y: 106.0 , angle :0.0, X :110.0 Y: 185.0 , angle: 1.0768211289482128, X :99.0 Y: 139.0 , angle: 1.9961041242180873, X :103.0 Y: 126.0 , angle : 2.4208694638343324] which show "x" and "y" and "a...
stackexchange/codereview
My Win32 application is built with runtime packages. We may always use HInstance as a reference to know the runtime package of current execution point for a process. My application may load few runtime packages at runtime. Given an object, is that possible to know which runtime package (or package THandle) the object...
stackexchange/codereview
I have the following array which is made up of a datetime and an event. I am looking to return the next event from today's date. Eg: If today's date is 2010-11-19 then 'Football Match' is returned. What is the best way to achieve this result? Many thanks. Array( [1] => Array ( [start] => 20101...
stackexchange/codereview
I have a treeview that displays certain information. If specific information needs to be flagged, the node is coloured in red. The user can view a datagrid displaying all information pertaining to the red nodes, on a button click event. Each datagridrow has a checkbox that can be used to toggle the flag on the treeno...
stackexchange/codereview
I would like to have a 3d look, even if it is a light 3d look to some text and borders that I am doing with Core Animation. Right now I am just creating a CALayer that has a corner radius, but I may eventually replace that with a bezier curve. But I have no idea how even begin with bezelled text. I can see some tutoria...
stackexchange/codereview
I have a table: <table width="200px"> <tr> <td> <font style="font-size:14px;"><?php echo $text; ?></font> </td> </tr> </table> The $text variable is dynamic, and might be 3 characters long, or 50 characters long. The problem is the width of the table column is limited to 200px. How can I make ...
stackexchange/codereview
i need a bit of help with some maths. I have a range 0 - 127 and i want to convert it into percentage. So 0% = 0 and 100% = 127 and every number inbetween. How would i do this? Edit: Thanks to what jon posted, i came up with: $percent * 127 / 100
stackexchange/codereview
I am creating a small application rss for iphone I wanted to make sure that once you are parsing the XML feeds were stored in a SQLite database so when you open the application should not wait for the reloading of feed (which by then will Bottene upgrade) but are read by database. you have any advice for me to do this?...
stackexchange/codereview
I have a listbox which has templates defined for the ItemContainer and the ItemTemplate styles. My ItemTemplate is a DataTemplate which is very simple: <DataTemplate x:Key="DataTemplate1"> <Grid x:Name="grid"> <TextBlock TextWrapping="Wrap" Text="{Binding}" Foreground="White" FontSize="24" /> </Grid> </...
stackexchange/codereview
I was wondering if it's possible to have a contextMenu without any view..? Or any Dialog, acting simply like a contextMenu (a list of clickable items in fact)..? I can explain: on the first use of the app, a pop-up (ContextMenu) list all option modes. The actual trick is a button, registered for the ContextMenu and the...
stackexchange/codereview
for a homework, we need to input simple formulas (such as 3*2, 4+10, 50/16, etc.) and calculate the result (and rest) using only addition, subtraction, and bit shifting. Anyway, I could use three subsequent input reading, however I thought I'd try getting the formula in one pass using fgets() and sscanf(). Here is what...
stackexchange/codereview
We are working on a big project organized in 4 teams (website, server, applet, deployment). Sometimes members of each teams have to make minor changes in the code of the other team (for instance: a member from the applet team has to add a field in the website, or a member of the server team has to change a deployment s...
stackexchange/codereview
So...happens I'm working on some code which...will end up being used on different sql servers at the same time. Although the SQL code is different depending on the server, the data types and columns are not. Therefor, I need to know which are the data types common to (at least most) sql server types. As a starting poin...
stackexchange/codereview
I'm trying to use the Google geocoder API V3 to plot a location on a map based on an address specified by the user, code is below. When I make a request directly (e.g. to http://maps.googleapis.com/maps/api/geocode/json?address=peterborough&sensor=false) I get the expected response. However, when I make the same reque...
stackexchange/codereview
ID ------ 1 1 2 2 3 4 5 5 5 6 7 7 7 8 9 9 10 9 I need to compare first row value with next row value. If they are equal display y in another column. ID flag ------ ------- 1 y ...
stackexchange/codereview
I've a problem while executing a select query from SSMS (SQL Server 2008).It gives out an error saying that 'Invalid Object ' User Name: admin DefaultSchema: S1 Table being accessed: employee Query1: select * from employee Query2: select * from S1.employee In this case Query1 fails with above said error whereas th...
stackexchange/codereview
I am making a asynchronous request to different server for some data using jquery. It works fine in IE, but doesn't work in FireFox and Chrome, when it reaches the code where the request to other server is made, it freezes there and a blank page is shown. If I remove that piece of code, the ajax works fine. Also, when...
stackexchange/codereview
What is the proper syntax for putting all css font properties into one value. body {font: 12px, arial, red} Something like that but with all the selectors and properties.
stackexchange/codereview
Is there a regex to match a string of increasing contiguous numbers, e.g. 123, 56789, etc? I don't think it can be in regex but worth checking with folks here.
stackexchange/codereview
I have figured out the maximum data before fragmentation between 2 endpoints using udp is 1472(other endpoints may vary). This states that mtu is 1500bytes and header overhead per packet is 28bytes. Is it safe to assume that if I send 0 bytes data (payload), the actual data being transferred is 28bytes? I am doing some...
stackexchange/codereview
I'm kind of stuck here - I can write a hack to work around this but was wondering if there is a proper way to do this. I am using Zend ACL to specify which pages are protected and require authentication. For example if the "UploadVideo.php" is a protected page - when a user clicks on a link to access that page - he is ...
stackexchange/codereview
I installed this Clojure Textmate bundle: https://github.com/swannodette/textmate-clojure and Cake build tool: https://github.com/ninjudd/cake Running cake start in the terminal, I got these warnings (actually, all Cake commands are generating these warning): /Library/Ruby/Gems/1.8/gems/cake-0.5.8/bin/cake:43: warn...
stackexchange/codereview
I'm having a hard time figuring out the correct schema (to validate the structure and data types) of simple classes. For example, I could get answer for Employee class with schemagen (supplied with JDK), but still could not get it to work for HumanResources. I'm trying to serialize collection of Employee class instance...
stackexchange/codereview
I have a location auto-complete field which has auto complete for all countries, cities, neighborhoods, villages, zip codes. This is part of a location tracking feature I am building for my website. So you can imagine this list will be in the multi-millions of rows. Expecting over 20 million atleast with all the villag...
stackexchange/codereview
How can I dynamically build a list of mappings - instead of: class UrlMappings { static mappings = { "/helpdesk/user/$action?/$id?" (controller="helpdeskuser") "/helpdesk/group/$action?/$id?" (controller="helpdeskgroup") "/helpdesk/company/$action?/$id?" (controller="helpdeskcompany") "/helpdesk/account/$ac...
stackexchange/codereview
my date format is like 2010-11-15 04:28:31 i want to pick just 2010-11-15 instead of 2010-11-15 04:28:31 , using MYSQL query , SELECT SUBSTR(my_date,0,6) FROM TBL , This query retrieving just empty value , How to form substr function in mysql QUERY ,
stackexchange/codereview
I am looking for cool open source projects in the concurrent programming space in C and C++ which require active developer contribution. I am domain neutral, but would appreciate something more in the maths/statistics related areas. Any heads up people?
stackexchange/codereview
Why this test is failing? [Test] public void Int64Test() { Int64Keys ObjBigInt = new Int64Keys(); ObjBigInt.Id = 0; PropertyInfo p = ObjBigInt.GetType().GetProperty("Id"); var IDValue = p.GetValue(ObjBigInt, null); //var IDType = IDValue.GetType(); //returns {System.I...
stackexchange/codereview
I tried Uri uri = HttpContext.Current.Request.Url; String host = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port; and it worked well on my local machine, but when being published to IIS7, there is an exception saying System.Web.HttpException: Request is not available in this context Anyone know how to a...
stackexchange/codereview
I wonder if anybody has a copy of source code of UTHSCSA ImageTool The links in the homepage (http://ddsdx.uthscsa.edu/dig/) are all broken
stackexchange/codereview
I'm currently doing something like this; import java.util.*; public class TestHashMap { public static void main(String[] args) { HashMap<Integer, String> httpStatus = new HashMap<Integer, String>(); httpStatus.put(404, "Not found"); httpStatus.put(500, "Internal Server Error"); S...
stackexchange/codereview
Currently I'm creating a new set like this: std::set<A> s; s.insert(a1); s.insert(a2); s.insert(a3); ... s.insert(a10); Is there a way to create s in one line?
stackexchange/codereview
How can I parse through the following file, and turn each line to an element of a list (there is a whitespace at the beginning of each line) ? Unfortunately I've always sucked at regex :/ So turn this: 32.42.4.120', '32.42.4.127 32.42.5.128', '32.42.5.255 32.42.15.136', '32.42.15.143 32.58.129.0', '32.58.129.7 32....
stackexchange/codereview
Is it possible to set an attribute with a range of zero on an attributed string? For example, if I set the foreground color attribute to red at NSMakeRange(0, 0) I would expect once I begin typing at the beginning, the text will be red. However, this does not seem to be the case. How can I set the attribute "state" at ...
stackexchange/codereview
Is SQL Server Compact Edition Serverless? I mean, If I have a Northwind.sdf file in some pc without SQL server installed, can my application still use that? Is it the same with SQLITE?
stackexchange/codereview
my situation: I created an UIScrollView with an UIView inside which calls a Graph class which draws a nice graph on a context. Now I discovered that the phone wouldn't render the UIView if it's width is larger than 8192 pixels. In fact, according to Apple's docs, if I want it larger than 1024px, I should implement CATi...
stackexchange/codereview
I want to obfuscate my app with Eazfuscator.NET but I also want to publish it with ClickOnce (I use the Install from CD option). But Eazfuscator only let me obfuscate assemblies and I don't know which assembly to obfuscate when my project is published since there are many of them. Perhaps I need to obfuscate it before ...
stackexchange/codereview
I want Devise to send emails from specified address, not from ActionMailer default. Is it posible?
stackexchange/codereview
I'm writing a simple Delphi app to upload a few files to a SFTP server. I thought I would be able to use a TIdFTP Indy client but it seams as tho their is not an option for FTP over SSH (SFTP). Does anyone know of any Free / Open source Components for Delphi 2010 that would support FTP over SSH (SFTP)? Due to security ...
stackexchange/codereview
I have a code: <?php for ($i = 0; $i < sizeof($categories); $i = $i + 4) { ?> <?php for ($j = $i; $j < ($i + 4); $j++) { ?> <?php if (isset($categories[$j])) { ?> <a href="<?php echo $categories[$j]['href']; ?>"><img src="<?php echo $categories[$j]['thumb']; ?>" title="<?php echo $categories[$j]['name']; ?>" alt="<?p...
stackexchange/codereview
I want to send a pre-defined message to all friends on Facebook and twitter. Once the user log in. I will pass username and password. And I know i have to use different apis for both Facebook and twitter. But I don't know which apis to be used and how to implement this functionality. Please explain as I am new to obj...
stackexchange/codereview
I'm doing a simple game for the iPhone and now that is finished, I'd like to add a timer. I managed to implement the timer, but now I want to pause it when an incoming SMS or Phone Call minimize the application. I thought that I should put the timer in the app delegate and, when applicationWillResignActive/applicationD...
stackexchange/codereview
In our small class group, we've had a stuffup with subversion (we are still learning how to use it properly). Basically, the whole last revision is bogus. What I would like to do is make the next revision an exact copy of what is on my local computer - the files that are on my computer are on the server, and the files ...
stackexchange/codereview
Can anyone kindly guide as to how can I invoke a context menu on the press of a menu item. I googled a lot for the same, but nothing turned up. Look forward for your valuable help. Regards, Rony
stackexchange/codereview
Using the readAsBinaryString method of the FileReader, how properly upload images and such via Ajax? I know how to do the uploading; files get uploaded, and text files do display well but images cannot be rendered after such a transfer over the net. Note: the work is for a web service so I do not have access to server-...
stackexchange/codereview
Typically, for a WinForm or a Web App, I create the database and tables through the RDBMS or through a separate install process. However, I haven't seen anything of the sort in Android. All the examples I've seen have the database creation scripts embedded in an activity like this. The best thing I can come up with now...
stackexchange/codereview
This may be a stupid question, but here goes. I've seen several projects using some translation library (e.g. gettext) working with plain english placeholders. So for example: _("Please enter your name"); instead of abstract placeholders (which has always been my instinctive preference) _("error_please_enter_name"); ...
stackexchange/codereview
I am trying to clone big svn repository to my git repository. The problem is that rep. is too big and svn clone works too slow. Is there way to clone only last N revisions? Something like that: git svn clone http://svn/svn/test . (from 200 to 400 revision) or maybe something like that: git svn fetch (20,30,40-50 rev...
stackexchange/codereview
I am using .load() to pull static HTML files onto my main HTML page. The scripts and selectors that I have written exist within: $(document).ready(function(){}); But they don't work on the AJAX loaded content. I have read that this is because the selectors that I am using are not available. Is there a better way to do...
stackexchange/codereview
I'm trying to modify my settings for Textmate by modifying its plist. Here's what I've got so far: defaults write com.macromates.textmate OakShellVariables -array-add '{value = "hello"; variable = "TM_HELLO";}' This will add in a new shell variable for Textmate. I'm wanting to do this via the command line so that I ca...
stackexchange/codereview
I want to set up an automated email of sensitive data to a non-techy client, and I'm looking for some very easy to use public key encryption (or rather decryption) desktop software I can supply them which will allow them to generate a password protected key pair, present the public key to them in a way which they can e...
stackexchange/codereview
HI can i place both xml files and images that the xml file transports in xcode to test the working since i don't have the internet ? If it can be done , what should be the path name for the xml to be coded in program and images to be typed in xml.?
stackexchange/codereview
I want to create an n-dimensional array of doubles. At compile-time, the number of dimensions n is not known. I ended up defining the array as a dictionary, with the key being an array of ints corresponding to the different axes (so in a 3-dimensional array, I'd supply [5, 2, 3] to get the double at (5, 2, 3) in the ar...
stackexchange/codereview
Am getting the below error intermittently. ERROR Exception occured while fetching the available subscriptions from the database - Could not roll back Hibernate transaction; nested exception is org.hibernate.TransactionException: JDBC rollback failed org.springframework.transaction.TransactionSystemException: Could...
stackexchange/codereview
I have a webpage that uses AJAX, MySQL, and a simple PHP file to grab content for the body of my site and place it in the body of the page. Basically, the entire site is one, dynamic page that utilizes jQuery and the history plugin to keep all the links bookmarkable and Back/Forward capable. I want to optimize my site ...
stackexchange/codereview
I am using a DataGrid in WPF and want it to shrink to only fit the width of its columns. It does this nicely for the initial rendering. When I resize a column to make it wider the grid grows as well. But if I resize the column to make it narrower again I get white space on the right side of my column (and I can see tha...
stackexchange/codereview
I've deployed a very simple MVC3 RC app to an IIS 6 + Windows 2003 server. I'm just getting a "403 forbidden" error when trying to accesss the root. Right now the app is only one page, so there are no others to try out. I noticed there is no longer a default.aspx in the root to handle default requests, could this mayb...
stackexchange/codereview