My ruby file is like this.
`mkdir #{HOST} -p`
It works fine by: ruby mycode.rb
But in a cron job
0 * * * * ruby ~/backup.rb backup.log
It will a -p folder. Why?
Hello,
In your experience, what is the best web programming language used to handle sorting and comparison of very large lists (ie tens of thousands of email addresses)?
I am most familiar with PHP. I think that it could get the job done, but I'm unsure of other languages and if there might be a bettor suitor.
Thanks!
I want to write a map/reduce job to select a number of random samples from a large dataset based on a row level condition. I want to minimize the number of intermediate keys.
Pseudocode:
for each row
if row matches condition
put the row.id in the bucket if the bucket is not already large enough
Have you done something like this? Is there any well known algorithm?
A sample containing sequential rows is also good enough.
Thanks.
I am using PHP and Mysql
I have PHP script in which I rollback all the data in the database such data all the old value be reset to the database if update is done, and all new value gets deleted if new insert has been done.
Now my goal is to perform the same process with files/folders associated with the changes done, I am not able to create an idea for doing the rollback job with the files/folders associated with the Changes.. So can anyone of u help me or direct me to get the best idea?????
I'm tossing around a few ideas for travel search engines and I'm wondering how these sites get their source data. Do they scrape all the content from airline homepages? This seems like an enormous job given the number of airlines etc out there.
Is there some API or web service standard that every airline conforms too?
Am I going to have to negotiate access to the data APIs for every airline I wish to index?
In WPF, I've three objects exposing the same DependencyProperty (let's say it's an integer). I want all three property values to remain synchronized, i.e. that whenever the int value changes in an object, this value is propagated to the two other objects. I think of multibinding to do the job, but I don't know how to detect which object changed, thus which value should be used and propagated to the other objects.
My website will be using only OpenID for authentication. I'd like to pull user details down via attribute exchange, but attribute exchange seems to have caused a lot of grief for StackOverflow.
What is the current state of play in the industry? Does any OpenID provider do a decent job of attribute exchange?
Should I just steer away from OpenID attribute exchange altogether?
How can I deal with inconsistent support for functionality?
Hello everybody.
My current career is in software testing, but I feel that I am wasting my time, maybe because I don't know the future path of this career, and where I will arrive in the future if I continue in this career. And I don't know how can I develop myself in this career. Can I have my own job in this field? Please give me good suggestions and opinion.
Many thanks.
i have users from all timezones, and i want to send out alerts at around 8AM in each users respective timezone.
i need a python script that runs every hour [in a cron job] and i need to find out at which timezone it is 8AM right now, and i can use that info to select the users that have to receive the alerts.
how do i go about doing this? there seems to be gmt+14 to gmt-12 that is 27 timezones, and there are only 24 hours in a day!
Alright.. I am on a mission to learn iPhone development as much as possible. At my current job they have requested me if I can build a vnc viewer in iPhone.. there are many vnc apps but i want to learn how to build an app like that.. what would be the architecture of this app how should i organize my app?
Any thoughts? comments?
I have a script file for parsing through a SQLite database. I now need to create a CRON job that will download and unzip said database from a third-party (already hosting as SQLITE). I understand this can be done using WGET and UNZIP, but given Heroku's read only file system, is this possible entirely in memory? Thanks.
I have scheduled a CRON job to run every 4 hours which needs to gather user accounts information.
Now I want to speed things up and to split the work between several processes and to use one process to update the MySQL DB with the retrieved data from other processes.
In JAVA I know that there is a thread pool which I can dedicate some threads to accomplish some work.
how do I do it in PHP?
Any advice is welcome.
Thank
Is there a way to pre-populate a user's documents list with server-generated log files? A way to offer any files at a given path? Is this a job for plugins or native to some settings config?
thx
I develop websites using PHP and MySQL. What resources would a seasoned web developer recommend that would cover server-specific information relevant to the job of a developer.
If it helps, I work specifically with an Apache server (through my hosting company).
What is the best way to prepare for a java career ? Could you study on your own, make a few open source projects or work as a freelancer to build credibility ?
OR should I sit through my 3 year CS program. I am in heavy student loan debt from my previous degree....so I'm trying to find the fastest way to find a job, or get paid !
One of job interview questions on C pointer here is the following: what is null pointer assignment error?
I've googled for a while and don't see any reasonable explanation. What is that? Trying to write through a null pointer? Something architecture- or environment-specific? What exactly is that error?
Google Latitude does a great job with this, i'm trying to access this information as well.. it seems like their service has a much better way of finding the lat long on phones that don't have the html5 capability..
Thank you in advance.
Hi,
I want to make a diagram with either flash CS4 or flex builder 3, don't know with one would be the best for the job.
More about the task:
I want to send in values external to the swf file.
The swf-file takes the vaules and makes a diagram of it using x and y values.
Any advise or tips of where i can make this is much appreciated!
Thanks in advance!
jesper
from the following data basis i need to select all IDQ's which do not have an entry for the 11.11.2011.
IDQ | DATE
----------------
1 | 08.11.2011
1 | 09.11.2011
1 | 10.11.2011
1 | 12.11.2011
1 | 13.11.2011
i can't figure out how to express the sql
select
IDQ
from
TBL_WITH_IDQ T
where not exists ( DATE = '11.11.2011' ) // sql does not the job
Database is a Oracle 11g.
maybe someone can help me?
My app has a thread that does some time consuming job for more than a minute and the app consumes around 6.8MB of memory. I receive a memory warning after sometime and then it gets killed. There is nothing that I can release, and I am using not even 7MB of memory...driving me crazy...any advice please?
Hi guys
I was reading the Steve Job's article on why using HTML5. He indeed has some good points over the subject.
I would like to invite you developers who are working now with HTML5 to answer my question:
What browsers actually work well with HTML5?
thank you
Hi
As a developer I am a user of Subversion at the moment and I am changing job and going to work for a company that uses Team Foundation Server
I would like to learn the basic and more as user of Team Foundation Server
What do I need to do to replicate the enviroment and practice a bit?
Any Tips ?
What should I read?
Can I simulate the enviroment?
Thanks a lot
In the 5/15 minute scrum meeting the 3 questions are asked.
For the last question
"what impediments are getting in your way"
If a dev has problems - the xyz is going to have problems, this is likely going to draw the meeting out past 15 mins and could go into a hour long discussion.
Is it the scrum masters job to help this user, is there something to stop this from going on more than 15 mins.
Thoughts?
Does nhibernate proxies do any smart job to make change tracking efficient? Or does it only support what Entity Framework calls snapshot based change tracking?
These web articles uses separate Save() and Update() methods in the repository pattern.
I am using repository pattern.
How can I write a SaveOrUpdate() method in Entity Framework with the help of ObjectContext and in Linq-To-SQL with the help of DataContext?
That is, how can I write a single method that shall do both save and update job?