On Windows, can we put different folders in 1 Git or Mercurial (hg) repository?
Such as putting
c:\ror
c:\software projects\ruby
c:\js test
all in 1 Git or Mercurial repository called code ?
This might be a beginner question but I did some googling and couldn't find an answer so bear with me.
I was wondering if there was a resource, tutorial, wiki, etc that explained how to create an http proxy. It would be good to see it in ruby but any language will do if that's not possible.
Thanks a lot
Hi all
Im looking for some resources and information around agile web development. I have done a search and found a wiki page and lots of other sites around the subject. Most of these sites are orientated around Rubyon Rails. Does anyone know of any sites or resources that cover other platforms and languages like asp.net and php or are even generic.
Thanks
Answers to a recent post (Any chances to imitate times() Ruby method in C#?) use the = operator in the usage examples. What does this operator do? I can't locate it in my C# book, and it is hard to search for symbols like this online. (I couldn't find it.)
Can I assert rails/sinatra apps are initialized only once and all requests share the same app
instance? or do new requests spawn new app instances?
Is it possible to instance custom classes and persist them during app lifetime without using sessions, database storages or third party services? If so, what are the implications from a thread-safeness point of view?
I'm trying to figure how to implement a web-based download manager and I'm currently evaluating ruby-based frameworks.
THere are a lot of wrappers for toolkits like Qt, Cocoa or WxWidgets for D, Python, Ruby and other languages.
I wonder if anyone has ever written a binding for MFC ?
Hello,
after a website mirrored using HTTrack, there is lots of ads. I just want to replace that ads by ID or class, or by text, using script (Perl, Python, Ruby, etc), or any other way
Does anyone know what script can do this job?
Thanks in advance.
Ola Bini, one of the big guys behind JRuby, is developing a new programming language called: IOKE. It's influenced by lisp, smalltalk and ruby. Share your thoughts about this new dynamic programming language
I have been doing code for a few years and still feeling that my knowledge still not broad enough to become a professional. I have studied some books related to Design Pattern but I know there are many others.
So could anyone list the one which you think it is good to learn to become a better programmer and more professional?
Programming Languages I work on : C# , Ruby, Javascript
Coming from a ruby background, I'm wishing NSString had some convenient methods like the following:
[@"John" contains:@"ohn"] => BOOL
[@"1,2,3,4," split:@","] => NSArray
Anyone know of such an NSString helper library?
I have a List and want to reduce it to a single value (functional programing term "fold", Ruby term "inject"), like
Arrays.asList("a", "b", "c") ... fold ... "a,b,c"
As I am infected with functional programing ideas (Scala), I am looking for an easier/shorter way to code it than
sb = new StringBuilder
for ... {
append ...
}
sb.toString
We need to write a script that needs to process movies (using C-based ffmpeg) and also update our databases. Also there would be some thread programming to accomplish with a worker-manager design. I am thinking of writing this in Ruby is there any good language to do this, if so what is its primary advantage for choosing?
We are based on the Mac platform.
Thanks in advance.
I have need to access subversion data (commit messages, files updated, revision numbers, dates modified, author, etc.) externally. Is this something for some sort of subversion hook or is there a decent third party package for this or some other "best practice" way to approach accessing subversion data externally (and by external I mean from a php/ruby or python script... external to subversion itself)?
I have the following switch statement
switch (points) {
case 0: name = "new"; break;
case 1..14: badgeName = "bronze-coin"; break;
case 15..29: badgeName = "silver-coin"; break;
default: badgeName = "ruby";
}
I'd like the first case (case 0) to include points less than or equal to 0. How can I do this in Groovy?
I've been looking to make things a little more DRY, both on my personal projects (django) and at work (JSP/struts,PHP).
SASS+HAML seem to be quite popular, but, do those outside of the Ruby/Rails community generally use these as well, or do they opt for other solutions? Which do you use, and what was the reasoning behind the choice?
I'm coming from a Ruby/Rails world. I'm getting testing set up on a Sinatra project (with Rack::Test). I usually use Fixtures in testing. Is there an equivalent for Sinatra?
How do people set up their Sinatra test suites (outside of the basic helloworld example that is the only example I can find for Sinatra tests).
Thanks!
REPL's are very useful for live debugging and experimentation. Most dynamic languages such as Ruby, Python, etc come with one built-in, however it is more difficult to build one for a statically-typed language such as C++.
Despite the technical challenges, are there any REPL's available for C++?
I hear all this stuff about crazy ways to build iPhone apps using Ruby or C# under .NET or the like. Even stuff about developing apps on Windows using Java, or auto-generated apps using Flash CS5 or something.
Now, I've never really spent any time at all investigating these claims—I just brushed them off as clumsy or cumbersome or down-right claptrap—but I'm a proud Objective-C programmer who's perhaps a little worried as to whether there's any truth in all of this?
I have a (python) list of strings which refer to python source files and subsequently classes within those files which I want to import and then create an instance of the classes within the files (everything follows a strict naming convention, making this theoretically possible), in Ruby I would do something like:
require "lib/sources/#{source}.rb"
s = source.constantize.new
How would I do something similar in Python?
Thanks,
Ben
Hi, I'm trying to use Ubuntu for Rails development and I'm liking gedit except the syntax highlighting does not seem to work with out me setting it for each file I open. Should it not recognize a .rb file a ruby file rather than me having to go into the menu and setting it as such?
Have I missed a setting somewhere?
Thanks
We used to be a Coldfusion development shop before hopping over to PHP in 2008, now we primarily develop custom Drupal websites.
I enjoyed going from CF to PHP, but I feel like I am getting a bit stale.
I have been looking at different things like Ruby, Python, Obj C (iPhone). The problem is, there just isn't enough time in the day.
What would be a fun new thing to learn that would refresh me a bit and challenge myself to learn more?
I am using TextMate on a Rubyon Rails project and wonder if you can put the mouse on link_to, and then press a key and it will show the definition of link_to, or does this for any other helper functions?
Or, click open a box and type in a function name and it will show you the definition?
I've been having trouble with the latest netbeans ruby ide.
Here is the weird behavior:
"|" = my cursor
some text |here
I try to add a single quote. Expected:
some text '|here
However I get
some text h'|ere
It's worse when there is a linebreak:
some text here |
some other text here
turns into
some text here
'| some other text here
Am I hitting some weird behavior of netbeans that can be turned off for this? I mean it is insanely annoying.