I've got a few books and helpful guides to Perl from my company's scripting guy, but I can't seem to find where the best IDE for Perl is.
Mind you, simple is better. I'm just learning for now.
Let's say I have two objects: User and Race. User has two attributes: first_name, last_name. And Race has three attributes: course, start_time, end_time.
Now let's say I create an array of hashes like this:
user_races = races.map{ |race| {:user = race.user, :race = race} }
How do I then convert user_races into an array of structs, keeping in mind that I want to be able to access the attributes of both user and race from the struct element?
Whats the best way to send data to the server and have it run through a php script. Bearing in mind I do not want to have the user redirected to a different page and no response needs to be sent back from the server.
I wanted to discuss the technology behind Twilio. I have been playing around with the service for a few days now and it is simply mind-blowing. While I don't have a direct need for it right now, I am curious to find the back-end of the technology.
So can anyone shed some thoughts on how does Twilio do its magic?
A bit more context, in case this question is too general: the uses I have in mind are running django and serving static content and name-based virtual hosting.
I am vaguely aware of the performance/resource tradeoffs between the different servers, but that is a secondary concern.
Anyone who has deployed all three in production?
This great SO answer points to a good sparse solver, but I've got constraints on x (for Ax = b) such that each element in x is >=0 an <=N. The first thing which comes to mind is an QP solver for large sparse matrices.
Also, A is huge (around 2e6x2e6) but very sparse with <=4 elements per row.
Any ideas/recommendations? I'm looking for something like MATLAB's lsqlin but with huge sparse matrices.
I recently read the Mono C# compiler is able to compile itself. Cool. In the past I've heard of other languages doing the same. It twists my mind - seems like a chicken and egg problem. What comes first, second and third, etc?...
I'm designing a MFC app in which I'd like to have a grid with 2 coloumns : both editable in which the user will input data and the app will get notified about it. The number of rows can be increased/decreased by the user as he wants - What would be the ideal MFC control to use for this kind of requirement ?
This is my first time designing a MFC app , so dont mind if it sounds too noobish :)
Is there a 3rd party API for the sole purpose with which I can replace relative URLs in the source HTML and CSS into absolute URLs, keeping in mind the fact that the source contains a mix of relative and absolute URLs. For those thinking twice about this question, the String Object's replaceAll() method has some shortcomings.
What are the things a script should do to ensure that files have been FTPed correctly? Following are the things I have in mind:
1) use high level scripting language like python or perl instead of shell script for a more comprehensive functionality and error handling
2) check that the file exists at the destination after FTP
3) check destination file size. This is a little bit difficult because file size will change if the source and destination are running different OS. Any tips on how to go about this?
I understand that double locking in Java is broken, so what are the best ways to make Singletons Thread Safe in Java? The first thing that springs to my mind is:
class Singleton{
private static Singleton instance;
private Singleton(){}
public static synchronized Singleton getInstance(){
if(instance == null) instance = new Singleton();
return instance;
}
}
Does this work? if so, is it the best way (I guess that depends on circumstances, so stating when a particular technique is best, would be useful)
When is it appropriate to use openGl-es on the iPhone versus other toolkits? I have been learning to use it and suddenly feel it might be overkill for what I have in mind. Is it a good choice for something like a blackjack game?
Hey all,
I've got a few books and helpful guides to Perl from my company's scripting guy, but I can't seem to find where the best IDE for Perl is.
Mind you, simple is better. I'm just learning for now.
Thanks in advance!
I am starting this question to try and make a central point developers can use to choose what Source Code License to use for their projects.
What I am looking for out of this question are the following for the Licenses:
A short description of the License
What type of projects should this License be used for
Examples of existing projects that use this License
Some of the Licenses that I have in mind are the following:
Apache License 2.0
Artistic License/GPL
Eclipse Public License 1.0
GNU General Public License v2
GNU General Public License v3
GNU Lesser General Public License
MIT License
Mozilla Public License 1.1
New BSD License
Is there such a thing as a "translator" (for lack of a better word in my mind now) that translates Python code directly to JVM / Dalvik bytecode?
Would be great for writing Android applications in Python!
NOTE: I know about the scripting capabilities of the Android platform but I am looking for something that would generate a '.apk' without having to install the 'scripting' package... annoying for end-users.
As a programming team leader, which books do you recommend?
Books about HR, good programming practices etc.
I have recently seen PHP Team Development but it is not mind blowing for experienced developers.
One of the best I can recommend is Microsoft Manual of Style for Technical Publications, which helped me a lot in improving the language and practices of documenting the code.
This off-topic item refers to people with major achievements in fields such as engineering, science, and mathematics. Here's my picks:
Eric Drexler for his work on molecular nanotech. His book, Engines of Creations, is mind-blowing.
Robert Freitas for his work on molecular nanotech. The breadth of his multi-volume book, Nanomedicine, is impressive.
Richard Stallman for promoting Free Software.
How can I compile the GCC Compiler so that I can pull the entire thing over to another system and use the program? I don't mind pulling in other files as well, but is there a way to gather all the required system libs as well? The OS and Arch will remain constant across the different systems, but one may contain Slackware where the other contains Debian.
I've got a few books and helpful guides to Perl from my company's scripting guy, but I can't seem to find where the best IDE for Perl is.
Mind you, simple is better. I'm just learning for now.
I need some opinions on using PHP to make completely "scalable" websites.. For instance, using viewport resolution and resizing images, applying dynamic css styles..... In my mind doing this just add's to the complexity and should not be done, it should be fixed or fluid using strictly css and no server-side languages to generate layouts based on the device size..
I need some input and maybe some philosophy on why using this approach is not used at all..
Hi i am trying to login site with request, using username and password , i can succesfully login the user than i want to parse some html and send it to database ,what it return is activex object that i can not do anything(by the way i am using java to do that) ,in order to bypasss the active x object what is your solution?
1-First come to my mind i can write c# application that using internex explorer dll than login user, it parse html and send it to database than i can use data in database
what i want to achieve is creating sound wave image depending on the sound i loaded in Sound()
like this image:
i been using WaveViewer function: Wave Viewer it did quite well but if i load huge mp3. it doesn't display the whole width of the wave, maybe i miscalculate the width.
hope you can enlighten my mind.. thankss
We need to access a Teradata database via php application We don't have odbc (unixodbc etc) on the server.
How might one go about connecting to a teradata database quickly.
Keep in mind - this app needs to be as portable as possible.
I'm looking for a simple CMS for a site I'm building for my girlfriend.
The requirements are very minimal
Show images one by one, possibly with a line of text for each
Show an aggregate gallery of say 4x4 images.
Possibly have several different such galleries
Customizable look so i could fit it to her mockup
Any suggestions come to mind?
Can wordpress do this?
Another beginner WPF question from me :)
Ok, so I have a User Control added to a Canvas. In another area of the application I have two TextBoxes that will get 2 values : X and Y. I need a two-way binding between the user control's top left corner coordinates and those 2 textboxes.
I don't mind implementing a Converter or doing some calculations, but I need a push in the right direction from a more experienced WPF developer.