simple

Open-source echo server

Does anyone know any open-source echo server? I know I could write one by myself, but I'd like something more fancy with ability to listen on certain port(s), send keep-alives etc. so developing this myself would take likely hours. ...

Alternatives to Deprec Deployment with Rails?

I have been using Deprec with Slicehost for a bit now but it seems like development isn't that active anymore. What do you use for automating most of the deployment steps for Rails these days? I'm using Slicehost. ...

Trying to clean my data before reaching JSON.Simple

I think the word "clean" isn't the right idea, but I am trying to make sure that the data I am getting from the database is ready to be inserted into JSON objects. I would like to find a packaged deal for this, or if JSON.Simple does this and I just haven't run into it. But double quotes, single quotes (for obvious reasons), and new line...

SimpleXML: Sort XML - Place XML Entries at the top

Im using SimpleXML to add new images childs for a slideshow tool on my website, the code is something like this: $xml_toload = $_SERVER['DOCUMENT_ROOT']. '/xml/'.$country.'/compact.xml'; $xml = simplexml_load_file($xml_toload); //This line will load the XML file. $sxe = new SimpleXMLElement($xml->asXML()); //In this line it create a S...

Jquery and Extjs Simplest Tutorial

I want link to tutorial for JQuery and ExtJs which will cover following contents or Topics Note: PLease do not provide me link of their sites i know them. How to setup both of the packages. It is required as its essential. How to access a DIV element How to get all the elements in a div like checkboxes, radio buttons, div etc H...

Java Simple Question about working with JPanels

Just a quick question here. I have a program in which I need to create a number of JPanels, which will then each contain some objects (usually JLabels). There are a few operations that I have to do each time i create a new JPanel, and I'm wondering if the order in which I do them has any bearing, or if there is a standard practice. Th...

boolean in java: what am I doing wrong?

Hello, I am trying to make my boolean value work. I am new at programming java so I must be missing something simple. I am trying to make it so that if one of the tire pressures is below 35 or over 45 the system outputs "bad inflation" For class I must use a boolean which is what I tried. I cant figure out why this isnt working. No matt...

Returning currently displayed index of an array Javascript...

I have a simple array with x number of items. I am displaying them individually via a link click... I want to update a number that say 1 of 10. when the next one is displayed i want it to display 2 of 10 etc... I have looked all around and my brain is fried right now... I know its simple I just cant get it out. <!DOCTYPE html PUBLIC...

Simple OpenCV problem.

Why I try to run the following OpenCV program, it shows the following error : ERROR: test_1.exe - Application Error The application failed to initialize properly (0x80000003). Click on OK to terminate the application. CODE: #include "cv.h" #include "highgui.h" int main() { IplImage *img = cvLoadImage("C:\\face.bmp"); cvSetImageR...

Good way to flatten a multiple file python program for distribution?

I am writing a console application in python that will consist of a handful of modules, each with a couple hundred lines of code. For development it would be nice to modularize the program, but for distribution I like the idea of being able to post the program as a single python script. Are there any good scripts out there for flatteni...

ComboBox / ListBox selected item

is there a more simple way to get combobox (WinForms) selected items text? string result = comboBox1.Items[comboBox1.Selectedindex]; And in WPF's ComboBox? ...

Can simple JavaScript inheritance be simplified even further?

John Resig (of jQuery fame) provides a concise and elegant way to allow simple JavaScript inheritance. It was so short and sweet, in fact, that it inspired me to attempt to simplify and improve it even further. I've modified Resig's original Class.extend function such that it passes all of his inheritance tests (plus a few more), and al...

Simpler array declaration syntax in C++

In the spirit of Go-language, where simpler syntax is considered pretty important, here's a proposal for simpler array declaration in C++: int value; int_1 list; int_2 table; int_3 cube; RECT rect; RECT_1 rects; Using typedefs this can expand to: int value; vector<int> list; vector<vector<int> > table; vector<vector<vector<int> ...

Deleting a non-owned dynamic array through a pointer

Hello all, I'm relatively novice when it comes to C++ as I was weened on Java for much of my undergraduate curriculum (tis a shame). Memory management has been a hassle, but I've purchased a number books on ansi C and C++. I've poked around the related questions, but couldn't find one that matched this particular criteria. Maybe it's so ...

barebones sort algorithm

i have been asked to make a simple sort aglorithm to sort a random series of 6 numbers into numerical order. However i have been asked to do this using "Barebones" a theoretical language put forward in the Book Computer Science an overview. Some information on the language can be found here http://www.brouhaha.com/~eric/software/barebo...

Does anyone know of a simple yet flexible 2d scene graph in c++?

I'm searching a simple 2d scene graph written in c++, possibly on top of OpenGL but that's not mandatory: the perfect thing would be the Cocos2d/Cocos2d-iphone scenegraph in c++. Do you know of any existing implementations? ...

Simplest Way to Test ODBC on WIndows

With unixODBC you can use a simple command line utility called "isql" to test your connection and permissions of some queries. Without having to write extra code or install libs is there a simple way to open up X data source send some sql commands and be done with it? ...

best framework on gae(python) ,like jquery on javascript ? has it ?

i want to find a framework to make my work simple on gae , has it ? thanks i found one, but not very good http://code.google.com/p/appengine-framework/ ...

Wanted: a very simple Java RegExp API

I'm tired of writing Pattern p = Pattern.compile(... Matcher m = p.matcher(str); if (m.find()) { ... Over and over again in my code. I was going to write a helper class to make it neater, but I then I wondered: is there a library that tries to provide a simpler facade for Regular Expressions in Java? I'm thinking something in the...

gwt simple check box

I used SimpleCheckBox.wrap(DOM.getElementById("x1")); in onModuleLoad()but when i checked that checkbox and press the submit button then another page will be displayed but when i click back button then i need to checkbox to be checked how can i maintain state of checkbox in GWT? currently checkbox`s state cant be persisted.it seemed to ...