instruction_seed
stringlengths
1
35.8k
_source
stringclasses
1 value
This is my code for a shopping cart (the total so far, but a shopping cart eventually) i'm trying to put the code in to minus the clicked item's value from the "total", this is my code: $('.addtocart').click(function(){ $('#cart').show(); var omPartNo = $(this).next().text(); ...
stackexchange/codereview
Using Rails 3.0.1, Apache 2.2.9, and Passenger 3.0.0 on Debian. For some mysterious reason, the Rails app is coming up in the development environment. I've double-checked the Apache configuration, the VirtualHost files, and so forth, and there are zero instances of "RailsEnv" or "RAILS_ENV" either in /etc/apache2 or in...
stackexchange/codereview
This may or may not be a simple question. I am looking for a way to NOT select anything from a table, but return a set of table-like data. Basically I have a procedure that loops through a table and stores data into a variable, then displays it by the line: SELECT @args as parents; Is there any better way to set up a...
stackexchange/codereview
Possible Duplicate: Caller function in PHP 5? I have some objects that extend one another, and calls various helper methods. I am wondering if there is a way to detect which method called another. here's an example: class Foo { function whereAmICalled() { $calling_method = '' //would like to get func_caller...
stackexchange/codereview
I know you can minify PHP, but I'm wondering if there is any point. PHP is an interpreted language so will run a little slower than a compiled language. My question is: would clients see a visible speed improvement in page loads and such if I were to minify my PHP? Also, is there a way to compile PHP or something simil...
stackexchange/codereview
I am currently writing an utility that takes two different sets of data from an excel document and sends it to two different web services. Each set of data has it's own button that sends the data to the web service. When the a button is clicked, the corresponding web service then returns data depending on the input val...
stackexchange/codereview
I have searched and there are some php or flash based solutions, but none in Python. PIL (Python Image Library) could be the starting point, but if anybody knows something done or half done I will gladly use it for my Django projects, finish or polish the library and release it for everyone.
stackexchange/codereview
I am having a small problem I am trying to print the contents of a couple of variables which are located in a a private method. but I simply keep getting 'Can Not Find Symbol' Below is the code that I am trying to read the data from (including the println) also I am very new to java. private void createBooking() { ...
stackexchange/codereview
which are the jars used to record video from the list of jar files 1)jmf.jar 2)multiplayer.jar 3)mediaplayer.jar 4)sound.jar 5)customizer.jar i am trying to record a video using an applet which contains JMF class,when i tried this applet in a system which doesnt have JMF installed i am not getting any video and audio p...
stackexchange/codereview
DISCLAIMER: This code is terrible and should not be used in production. It's testing a proof of concept. I want to create an image like below using C# the key points are the feathered edges and the transparency of the whole image. Here is my result so far As you can see the edges are feathered. My question is, does a...
stackexchange/codereview
I worked on a JSP code that is runnning on a Tomcat5.5 server in windows system . I had to copy all the JSP code to a linux system and when I did the same I got an error stating below. javax.servlet.ServletException: c:\tmp is not a directory Readcsv.init(Readcsv.java:36) org.apache.catalina.valves.ErrorReportValve....
stackexchange/codereview
I am looking for a solution that allows me to insert an image and resize it in tinymce,any ideas?.
stackexchange/codereview
have a Grails domain object that has a custom static function to grab data from the database class Foo { /* member variables, mapping, constraints, etc. */ static findByCustomCriteria(someParameter, List listParameter) { /* code to get stuff from the database... */ /* Return value ...
stackexchange/codereview
I'm using NSIS to create the installer (with the "Modern" UI) for a Java application that only has one installable component. It seems silly to show the user the "components" page in this scenario. How can I suppress that page? I tried commenting it out in my script as follows: ... !insertmacro MUI_PAGE_LICENSE "..\..\...
stackexchange/codereview
I get the below warning message when i compile my project in the Visual Studio. Warning 1 Could not locate cross-domain policy at 'MyServer': Web services might not be accessible at runtime by your Silverlight application. When i run my application also it fails . I have added the cross
stackexchange/codereview
Let's say I have a struct called Woah. Woah has one field to store the value of SomeChild below but also contains a List<Woah> to contain other Woah structs. The XML I am reading has the structure of: <WoahWrapper> <Woahs> <WoahNode> <SomeChild /> <SubWoahs> <WoahNode /> </SubWoahs> ...
stackexchange/codereview
I have two classes as Splash.java and Activity2.java!! I have tried simple code for splash as: public class Splash extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); Thread thread= new ...
stackexchange/codereview
i have the following lists in python which i want to recombine into a dictionary/list: names = ['banana','grapefruit','apple'] colors = ['yellow','pink','green'] to fruits = [ {'name':'banana','color':'yellow'}, {'name':'grapefruit','color':'pink'}, {'name':'apple','color':'green'} ] what's the best way to do it? i'...
stackexchange/codereview
I've created a C extension that I'd like to enable in my Python package (using setuptools) only if a command line option is passed in. What is the easiest way to do this? I can't seem to find any straightforward ways of going about this.
stackexchange/codereview
my corporate overlords want me to display image ads for our upcoming iPad application. I'm currently trying to show the image by using the following code: - (UIImage *)getAdImage:(NSString *)adName { NSString *adID = [self getPrivateConfigSettings:adName]; NSString *adUrl = [NSString stringWithFormat:[self getPri...
stackexchange/codereview
I can't seem to get this right. I have form coming in via XHR. I need to be able to attach a submit handler to it once it comes in via XHR, hence the .live() here. The code below actually works, the problem is that an XHR HTTP POST happens (which is good), and then a full page HTTP POST load happens, and that's not goo...
stackexchange/codereview
I have two numeric fields that contain the following information: (1) Users Registered (2) Money Raised Is it possible to make the data change in real time (EVERY SECOND) while someone is viewing the page with the fields? I don't want the viewer to refresh manually to see the updated number, but have the fields change...
stackexchange/codereview
I apologize for asking a question of this caliber. I am at my wits end and have spent to much time trying to figure out how to get the side bar I closed back. I closed the "management" (the box with all the headers and .cpp's) and "messages" (where the compiler errors are displayed) box after I created a project. Now I...
stackexchange/codereview
sory, if my english bad... i'm trying to get a list of my dir this way: import os, os.path _path = "/opt/local"#this because i use mac _dir_path = os.listdir(_path) _tmp_attr = {"name":"","type":""} _tmp_data =[] for _dir_name in _dir_path: _tmp_attr["name"] = _dir_name if os.path.isdir(_path+'/'+_dir_name): ...
stackexchange/codereview
I would like to know how to make pop-up alert which is like MSN when friends get online. The pop-up alert will fade in the right-bottom of the window and will fade out after 3 seconds. I am using C# (VS2005). Please kindly advice me if any tech tools i should apply or any method to do. many thanks!!:)
stackexchange/codereview
I haven't used Access since high school, years ago. What kind of problem does it solve well, or even better than a web app backed by a real RDBMS? Is it still actively developed? Or is it pretty dead to MS already? What are its biggest limitations? Update: What resource shall one use to learn how to develop a MS Acce...
stackexchange/codereview
i came to know that selfinvoking functions are there in linux based systems is it really possible ! using C program how can i impliment this in a C program is there any function in C can anybody help me , does autorun works in linux and how ? please brainstorm me
stackexchange/codereview
I have two tables. One table having sequence and other table does not. i need to use the same id which got inserted to second table for business purposes. Currently im getting max using projections and incrementing it. using this value for insert in two tables. i need to use sequence value of one table and insert the s...
stackexchange/codereview
I access property value from a class object at run-time using reflection in C#. public bool GetValue(string fieldName, out object fieldValue) { // Get type of current record Type curentRecordType = _currentObject.GetType(); PropertyInfo property = curentRecordType.GetProperty(fieldName);...
stackexchange/codereview
I ask this question mostly in regards to C programming, but insights on any language are welcome. When it comes to C, I know it only lets variable declarations occur at the very beginning of a block of code. And I have been under the impression that one should declare all variables to be used within a function at the v...
stackexchange/codereview
How can I disable crossdomain.xml check when the executing swf has been loaded on localhost? Error #2044: Unhandled SecurityErrorEvent:. text=Error #2048: Security sandbox violation: http://localhost:2541/xxx.swf cannot load data from http://www.com/xxx.swf. I want to assign full trust to the HTML5 web application run...
stackexchange/codereview
I've been a couple of days trying to solve this thing but I can't figure it out. The problem is, simple activity, with simple layout, ScrollView -> LinearLayout -> and a lot of buttons inside the layout (within the scroll content). Everything works just fine, but one tricky thing. When I click a button, let's say at th...
stackexchange/codereview
So this happens to me regularly, where i have gems that are installed but for some reason my rails app is not finding it...here is my example my config/environment.rb config.gem "whenever" my install sudo gem install whenever Password: Successfully installed whenever-0.6.2 1 gem installed gem list | grep when wheneve...
stackexchange/codereview
I'm looking at a visual studio loadtest results, and something does not make sense. The (_Total) % Processor Time under Process category is almost linear. The (_Total) % Processor Time under Processsor category makes saw teeth pattern. Question 1: What is the difference between the % Prcessor Time under Process categ...
stackexchange/codereview
Is there any way you can get the last edited time off a file? I have a pList on a server that download to my app. I would like to look at the time it was last edited. Do I have to implement a specific key, or can you look at the pLists information from within the app?
stackexchange/codereview
I have a postgresql database I would like to convert to UTF-8. The problem is that it is currently SQL_ASCII, so hasn't been doing any kind of encoding conversion on its input, and as such has ended up with data of a mix of encoding types in the tables. One row might contain values encoded as UTF-8, another might be IS...
stackexchange/codereview
What is wrong with my code? When I click the Show/Hide button nothing happens. <html> <head> <title>Test</title> <script type="text/javascript"> function hidecontent(){ document.getElementById("content").style.display = "none;"; } </script> <style type="text/css"> ...
stackexchange/codereview
Math isn't really my thing, but what I'm trying to figure out is how to predict/estimate the next number from a dataset. Let's say I have an array: var values = new Array(1,4,3,5,6,10,4,15); Does anyone know a formula in javascript that could guess the next number after 15 based off the previous values in the array. B...
stackexchange/codereview
I want to present my users with a text box wherein they can type in their address. As they type their address, I want to provide the users with suggestions/predictions of what address they are trying to type. I'm also concerned about the relevance of this address (e.g. that the address is not an address halfway across ...
stackexchange/codereview
The problem is when the player collides with the blackB the player doesn't stop. It slowly continues through the blackB. The IBAction is being used with a game loop. I need a way to freeze the player completely when it collides with the blackB. Any help is welcome, I am a beginner programmer. Thank you! player and blac...
stackexchange/codereview
After some update, I see following issue on all Windows Server 2003 member servers (x86 only): LogonUser, and LogonUserEx calls are failing with error 1337 (The security ID structure is invalid). Basically, following code fails: HANDLE token; BOOL b = LogonUserA( "username", "DOMAIN", "password", LOGON32_L...
stackexchange/codereview
I'm pretty new to MonoTouch and I'm having problems getting my app to rotate from portrait to landscape mode. My project has two XIB files, the MainWindow added by MonoTouch and MainController.xib which I have added. The MainController has a single label and no other controls. In my Main.cs I have the following to load...
stackexchange/codereview
I'm working on making a two player tic-tac-toe game, and am in the phase where I work out all of the errors in my code. The current error i'm stuck on is an illegal function call error in the following code: (cond [...snip...] ((= CHOICE 3) (IF (NUMBERP (AREF *BOARD* 0 2)) (SETF (AREF *BOARD* 0 2) *MARKER*) ...
stackexchange/codereview
I know this has been asked before in several ways but none of the answers seem applicable to me - or correct - or current, so I'll try again. I have a large model with several intstances of inherited entities. One example is a Timetable that contains a collection of TimetableEvents. There are several sub-types of Tim...
stackexchange/codereview
I need to obtain the list of the currently running applications on windows using command or java program. for example if MS-Word and Window media player are the applications currently running on the system, then i want the list of these applications using a command or a java program. Thanks and regards Vivek Birdi
stackexchange/codereview
I am using Facebook C# SDK( https://github.com/facebook/csharp-sdk ), and am wondering if there is a graph api function that can get user's granted permission to my application, like https://api.facebook.com/method/users.hasAppPermission?ext_perm=offline_access&access_token=XXXXXXXXX&format=json So I want some thing l...
stackexchange/codereview
Imagine we have a long string containing the substrings 'cat' and 'dog' as well as other random characters, eg. cat x dog cat x cat x dog x dog x cat x dog x cat Here 'x' represents any random sequence of characters (but not 'cat' or 'dog'). What I want to do is find every 'cat' that is followed by any characters exce...
stackexchange/codereview
I have button, which displays a Context menu. In the menu are few items (some of them are disabled - setEnabled(false)). Which event is called when a user click on the disabled item? It's not onContextItemSelected nor onContextMenuClosed. But the menu is closed after the click. Thanks for your help.
stackexchange/codereview
I am performing some tests in a scientific application. This application uses Lapack dpotrf Lapack function. I am not really aware about linear algebra. I must simulate a big call to dpotrf, then generate a random matrix to perform dpotrf on it. Is this matrix must have a special pattern? Are I can just generate a simp...
stackexchange/codereview
I am making a BlackBerry application that sends a byte array of captured audio to a web service. What is the best tool for this -- ksoap2 or using Sun ToolKit to make stubs?
stackexchange/codereview
I'm making a timecard program, where the user enters the start time, end time, and project name. They can click "Add" and it adds the entered details to a listbox. I don't allow the data to be added unless the start time and end time are formatted like this: 08:14am It gets annoying, though, having to enter it exactly ...
stackexchange/codereview
I have a C program that gets called with a system call in a Perl script. I was wondering: Is there is a way I can actually host the C program itself inside of Apache so it can be managed with the same rules Apache has set such as timeout and memory?
stackexchange/codereview
I have an ASP.NET web service that is accessed by some software application. In my "Login" method I create a FormsAuthenticationTicket, encrypt it, and return to web service user. This ticket is expected to be sent to each of web service methods: GetLicense, CreateProduct, etc. When ticket is received, it is decrypted ...
stackexchange/codereview
I have a pretty simple scenario: I have an asynchronous WCF service calls in my silverlight app. I want to execute those on a separate thread ( or similar) because they freeze up my UI. All service calls are meant to update the ViewModel thus the/ a UI control on the page, so need to find a way to do that from the thre...
stackexchange/codereview
What am I doing wrong that the locations property isn't being deserialized? JSON fragment from pollinglocation.googleapis.com ... "locations":[[{"dataset_id":841, "election_id":2, "id":"841:100001351", "address":{"location_name":"ROBERT S PAYNE SCHOOL", ...
stackexchange/codereview
I appreciate the differences are negligible, but im doing some number crunching and so i want to use C. Ive just created a project in VS2010, chosen a C++ project and written some C. All executes fine, but is this being created and executed in the fast(er) C compiler or the C++ because its a C++ project? How can i spec...
stackexchange/codereview
If it is passed, is it passed by value or by reference? void printMatrix(vector<vector<int>> *matrix); ... vector<vector<int>> matrix(3, vector<int>(3,0)); printMatrix(&matrix1);
stackexchange/codereview
I just finished installing the SQL Server 2005 Developer Edition on Windows 7. Here is the question, when I first load SQL Server Management Studio, what is the server name I have to use? Server Type: Database Engine Server Name: Authentication: Windows Authentication Username: Linda-HP\Linda So what server name shoul...
stackexchange/codereview
OK, so I'm performing an annoying math computation here, trying to solve for one of the cubic roots. Now, here is my C# code: public void CubeCalculate() { //Calculate discriminant double insideSquareRoot = (18 * cubicAValue * cubicBValue * cubicCValue * cubicDValue) + (-4 * (Math.Pow(cubicBValue, 3) * cubicDV...
stackexchange/codereview
I'm using UIGesturerecognizer to handle gesture (swipes, taps, double taps etc.) in my app. In a device with IOS 3.1.2. We tried the app but most of the gestures simply don't respond, ina ll of our devices with recent IOS like 4.1 the app works perfectly. Seems like UIGestureRecognizer can't use that strategy to handle...
stackexchange/codereview
im just new in AS3 so i have a question hope you guy can help! I am now using FancyUpload to make an upload tool for my website, for the video module, so user can upload their video in FLV format with limited size and time With the limited size i can handle it, but with the time ... :( I dont know how to know the total...
stackexchange/codereview
I have a string that I am trying to work with in using the gsub method in Ruby. The problem is that I have a dynamic array of strings that I need to iterate through to search the original text for and replace with. For example if I have the following original string (This is some sample text that I am working with and ...
stackexchange/codereview
I have two Tkinter windows, How do I keep one window always on top of the other?
stackexchange/codereview
Xcode keeps picking my developer provision. This is even if I pick "Don't Code Sign" or even if I pick my distribution profile. I tried to set this in both the project properties and also into the target->info window. But it seems to only want to use my developer provision. Where else can I look, what can I delete, et...
stackexchange/codereview
I am using VS2010 + C# + .Net 4.0. I want to do code coverage for unit tests. I have two choices after investigating, my question is, I want to know the pros and cons of such two tools/choices. Using non-VS built-in tools, like ncover; Using VSTS built-in tool, for example, http://msdn.microsoft.com/en-us/library/dd2...
stackexchange/codereview
I made a member authentication MVC myself, but found out that there is such gem called 'devise' So I am trying to remove my old authentication and use the devise. My older MVC was called member/members but this devise is using user/users MVC name. But now when I am trying to use Devise. installing devise model and ever...
stackexchange/codereview
For 1 source this is the correct code after the ajax call: url: "links2.xml", I would like the source to be multiple xml files. How do I include the extra paths? Thanks.
stackexchange/codereview
I've tried to get an mp3 file played with Audio Toolbox and Audio Queues, but whatever I try, I don't get anything played (neither in the simulator nor on the device). When I run it in the simulator it tells me: "Prime failed (-66674); will stop (0/0 frames)", so I think there is a basic mistake somewhere, maybe in th...
stackexchange/codereview
I am using Ruby 1.9.2 and i have an assignment to use hpricot. I have tried to install hpricot gem and I get error messages. extconf.rb failed. Could not create makefile. Check the mkmf.log. But I cannot find mkmf.log. I checked the other answers and tried to install using gem install hpricot-platform=mswin32. that di...
stackexchange/codereview
var where_to = confirm("You have locked this record. You can only leave by clicking cancel."); if (where_to== true) { alert(window.location); window.location.href = window.location; } else { window.location.href = window.location; } This function works in IE 7 and firefox and opera 10.6. What it does is not allo...
stackexchange/codereview
Possible Duplicate: What is the difference between include and require in Ruby? require File.join(File.dirname(__FILE__), 'load_test_data.rb') require 'find' require 'fileutils' include CommonValidators Can someone please give me proper example to understand the difference between require and include?
stackexchange/codereview
The situation I am implementing a few forms using the Drupal Form API. As a result of user selection i need to display a visualization (area chart, time line, etc) where i have to load the google's JS libraries and send data to display the visual in a div element. What I have Done: I have tried to load a local JavaScr...
stackexchange/codereview
I would like to preface by saying I guess there is no real tangible problem, but I feel odd not having some system managing these things. We currently have a large amount of XML files located in hierarchy of directories. I think it could be useful to use some Document Oriented DB around these folders. It could be extr...
stackexchange/codereview
I'm using the Raphael JavaScript library. I'd like to draw a border with rounded edges around an image (which is a Raphael object) but I can't seem to figure out how to do that. I tried to set a stroke but it doesn't appear. I have this: var paper = Raphael(10, 50, 500, 500); var google_img = paper.image("http://www.go...
stackexchange/codereview
Simple question here. Quote from the PostgreSQL Getting Started guide: PostgreSQL can be installed by any unprivileged user; no superuser (root) access is required. Instructions on the PostgreSQL Installation Procedure: ./configure gmake su gmake install ... Notice that 'su' in there? It requires superuser...
stackexchange/codereview
i have collection of classes in one form and i want to use the same collection in other form. so here is the place where the collection is made public partial class Window1 : Window { string text; string[] tmp; double procent; public ObservableCollection<element> elementi = new ObservableCollecti...
stackexchange/codereview
foreach (Benefit bene in claim.SubClaimFolderCollection[0].BenefitsFolder.BenefitCollection) { Dictionary<string, object> searchBeneficiary = new Dictionary<string,object>(); searchBeneficiary.Add("rli_beneficiariesid", ((Guid)claimant.GetValue("rli_subclaimfolderid", true))); } It gives me th...
stackexchange/codereview
In a program I'm working on, i need the user to input time ranges, such as 2002-2003, or 1999- (implied present), or -2000 (before 2000). I have an ArrayList of objects, and so the user might put it the title of books, including some information (one of these must be the date it was published). They can then search fo...
stackexchange/codereview
Can anyone think of an algorithm that would detect random filenames? For example, a human could tell that the filename "SKJJSMIJ.EXE" looks like it was randomly generated versus a filename like "winsetup.exe" or "Photoshop.exe", but how can a program determine this? Thanks!
stackexchange/codereview
I have a "private static" nested class in Java. What is the significance of access modifiers for fields and methods inside this class? I've tried both public and private with no effect on my application. public class MyList<T>{ private static class Node{ // List node private Object item; private Nod...
stackexchange/codereview
I am using dropdown menu from Apycom for http://prakriti.alwaysdata.net/ Everything works fine in Google Chrome, Safari and IE. But, in Firefox, dropdown menu does not work as expected, I can't click on them and nested links are not visible either.
stackexchange/codereview
there is some ressource on github How To: Test (devise) with Rails 3 and RSpec . but the how to is very high level and I can't have it working in my context. What is the proper way to plug or configure all those pieces together to managed to test a controller that require a logged user (before_filter :authenticate_user...
stackexchange/codereview
I need to complete an academic work by citing and possibly comparing the available logging frameworks, formats (and protocols) available in Internet, both open and proprietary. My work deeply covers Syslog 2009 protocol, and I also mention Apache logging frameworks such as log4net, log4j, log4php, log4cxx. Reference is...
stackexchange/codereview
I have discovered that when my program starts, in one of my viewcontrollers the order of calling is viewDidAppear, viewWillAppear, viewDidAppear. I was not expecting the first viewDidAppear to be called. What could be causing this and how do I fix it? ATM I have a flag in viewDiDAppear to check if viewWillAppear was ca...
stackexchange/codereview
I've got two fields called T1 and T2 defined as double. I'd like to set T3 with the following conditions: If T1 & T2 >0 then T3=(T1+T2)/2 If T1==0 then T3=T2 if T2==0 then T3=T1 if T1==0 & T2==0, T3=-9999 I have no idea how to include multiple if statements in the query.
stackexchange/codereview
I want users to be able to log on to my iPhone app, with their facebook credentials, WITHOUT displaying Facebook's login screen. How do I do this?
stackexchange/codereview
I'm working on some reflection stuff using Java across XML files. The process would be made much faster and less prone to error if I could get content assist to behave like a tree in a small window off to the side, but more than by my current cursor location. My question is can this really be done without reinventing ...
stackexchange/codereview
I'm using Google's gdata library. I installed it in my local Maven repository because it is not available from Maven Central using a pom. I want to move it to my WEB-INF/lib directory so that I do not have to wait for the dozens of "Downloading" messages from Maven each time I restart the server. However, they are curr...
stackexchange/codereview
I have a CGPointApplyAffine which is giving me negative values such as -161 for x and -58 for y. Are these values possible? Or am I using it incorrectly? CGPoint rotatedCenter = CGPointApplyAffineTransform(subview.center, self.transform); Thanks!
stackexchange/codereview
I've got the image picker working in a popover on the ipad, but when running in the simulator when I select a video in the picker it says its compressing and then gets stuck. Nothing happens, the delegate function never gets called.
stackexchange/codereview
I want to change language of my app then a Button is clicked, but without exit the app, i kown a mothed but is not adapt that is thought creating a new nib and *.strings files, and set the prefenence. I want to change the language dynamically how can I do that?
stackexchange/codereview
I'm trying to draw a text on Canvas like this (kinda pseudocode below): Paint p = new Paint(ANTI_ALIAS_FLAG); p.setTextSize(18); ... mCanvas.drawText("Hello StackOverflow!", 50, 50, p); My problem is that the result looks really "weird". It uses some bold-like font, which is badly aliased, looks not pretty and "squari...
stackexchange/codereview
I would like to build a GUI shell for DOS so I can make a shell operating system like windows. I know this may sound stupid, but I'm just a beginner looking for a challenge. I was thinking something along the lines of Dream16OS but a little better looking. Also is it possible to make this in Visual Basic for DOS or Vis...
stackexchange/codereview
I have some select options in a form, but I'd like to make them bigger and more squarish, the default browser look doesn't really work for what I want to do. Is there an easy way to style forms in the manner I'd like? I've been looking into it on my own, but I can't find anything. I assume there must be some nice CSS t...
stackexchange/codereview
SQL statement is not executedcom.mysql.jdbc.CommunicationsException: Communications link >failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused STACKTRACE: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(...
stackexchange/codereview
How does one write to a file after a certain amount of data is received? I know the file can be opened and then it can be written to using file:pwrite(Position, Bin). The thing I would like to know is if data is e.g. being downloaded and needs to be written to the file. How does one do this efficiently? e.g. using a bu...
stackexchange/codereview
I am using Lucene.Net but there are some interesting Java components for Lucene (especially analyzers) that haven't been ported to Lucene.NET yet so maybe IKVM is a better choice. Some research has shown that IKVM seems to work pretty well, but I haven't seen anything regarding Lucene. Does anybody have experience runn...
stackexchange/codereview
I know kd-trees are traditionally used to store points, but I want to store lines instead. Would it be best to split the line at every intersection with the splitting of the kd-tree? or would storing just the end-points into kd-suffice for nearest neighbor finding?
stackexchange/codereview
How is known to support FE protocol, I must implement method: – countByEnumeratingWithState:objects:count: But it method is do not knows what type of object I want enumerate. For example my custom object has two arrays: NSArray* names - for NSString objects; NSArray* sites - for NSURL objects; Now I want enumerate ...
stackexchange/codereview
I have a requirement for web application developed in asp.net which allows users to make voice calls among each other from the website. I have looked at api of skype but it seems more inclined towards desktop application. IS there any api which supports for web application like gtalk etc. Which technology could be bes...
stackexchange/codereview