I need to get the exact start and end dates (month, day and year) of a given year.
E.g., 2008
Jan. 1, 2008
Mar, 30, 2008
Any thoughts on how to do this?
array = [2007, 2008, 2009, 2010]
array.each do |a|
#code to get array of date for a (year)
end
Is there a way to get a report of how long each test is taking to run on a Ruby on Rails project? I have a a small set of tests, 2 or 3, which take about 50% of the time and I'd like to find out which ones are.
I am new to start the freelancing I need to buy a hostname/Domain to deploy the project.. Should I ask client to buy it? how much does it cost? for how much time is it valid? for how much time its good to buy the domain? Please help...
I need two or one (out) C# method that will take any datetime and return the start date of year and end date of year for that year.
Not a homework (;-)
I have created a mysql database using work brench. It has about 20 tables. I cannot figure out how to run scripts on the database.
Basically, I want to make a database creation script which will allow me to create my database on any other mysql server.
Hi,
I've got some time, and I really would like to learn to get my Maya animated scenes into WebGL. I'm not sure where to start really. It would be amazing if I could make a Canvas element and place a Maya scene into it so that it's animating. Does anyone got a tutorial or some hints?
PS. Answers about 3ds Max are also welcome!
Hi,
I'd like to know if it's possible to have both Linq-to-SQL and Entity Framework running side-by-side. Our current configuration is Linq-to-SQL and we'd like to eventually move to EF. But there's just too much going on in the Linq-to-SQL side right now and we'd like to do it in phases.
so any chance we can just start writing new stuff in entity framework but leave the older stuff running as is? And is it worth it?
Thanks!
I would like to edit and submit SAS code from emacs (aquamacs) on OS X to SAS running on Vista (through Parallels). Any idea how to do this? I like to do everything through one place and it is really annoying to work within the windows emulator.
I have run SAS from a linux server through aquamacs but wonder if something similar can be done locally.
Any ideas?
I want to develop applications for this mobile phone but I don't know where to start. For example first thing I need is to develop a call recorder app to record incoming & outgoing calls.
I'm generating an HTML report by C# to print pairs of files in a table which has 3 columns: the first two columns used for the filenames and the 3rd column is a hyperlink Compare - I want this link to run WinMerge to compare to two files and I currently don't know how to do it. Please help!
I have C# .net client on windows and need to extract start timecode and duration/length metadata from a .mov file. Anyone out there who knows how to do it? I looked around on net but not found anything yet. Thanks in advance for your time.
hello i was searching about how to download file then run it !
such as in perl
#!/usr/bin/perl -w
use LWP::Simple;
getstore('http://example.com/file.bat',
'sfile.bat');
system('file.bat');
ummmm so can i made like that in python ?
umm i guess we have to use urllib and os in python ? or what :S
If I have the following block of code in a method (using .NET 4 and the Task Parallel Library):
var task = new Task(() => DoSomethingLongRunning());
task.Start();
and the method returns, will that task go out of scope and be garbage collected, or will it run to completion? I haven't noticed any issues with GCing, but want to make sure I'm not setting myself up for a race condition with the GC.
I want to run Turbo C in my 64bit laptop? But I can't find any version of tc that support 64bit platforms.
Do you know of any place I can download a compatible version?
I'm still pretty new to Android and programming in general, and I can't seem to get the command line tools packaged with the Android SDK to work. I'm running Mac OSX and each time I try to run layoutopt, for example, the terminal returns, *-bash: cmd: command not found
*
Also, is it okay to have my SDK located in the Developer directory and my android project in some unrelated directory when using these tools?
Hi,
We have an application running on CLDC 1.1/MIDP 2.1, based on Midlets and lcdui.
Is it possible to run the same application on CDC 1.1 with the PBP profile ? If so, where should I even start ?
I'm using Sun WTK 3.0.
With CLDC, the starting point is a JAD file, which indicates the name of the main midlet class. What is the starting point of an application on CDC ?
I tried running a script using nohup like,
nohup script.sh &
When I tried
ps -ef | grep "script.sh"
I couldn't find it there except for the grep which is being run with that string as a parameter.
Am I doing it right?. Does this mean that the process has indeed finished execution?
Thanks.
We need a bug tracker on a small team. We don't want the care and feeding of the bug tracker to become a project in and of itself. We already have the infrastructure to run webapps in Tomcat 5.5.x and even Oracle 10gR2 backend if necessary. We prefer LGPL or GPL products.
I tried using shell-command, but it just does something like this:
Sudo password:
incorrect, try again.
Sudo password:
incorrect, try again.
Sudo password:
incorrect, try again.
Failed three attempts.
without actually asking for a password. I don't want to have to start up Emacs using sudo emacs, but I guess that's an option if nothing else will work.
In Java, is there a way to force a JVM instance to run on a single CPU/Core.
Additionally is there a way for given thread to figure out what CPU it is running on?