Archive

Okay. This the background. I am trying to create different image patterns and merging them into one. I am using MiniMagick and it is a ruby wrapper for Imagemagick. I get the following message: unable to clone cache `/tmp/magick-1r313oY0': No space left on device. What might be the reason? I am now simply trying to convert an color image into grayscale but this error is stopping me to proceed with my different image patterns design. Ruby is fine as I am able to run other programs easily. Thank you very much for your quick responses.

Read more

I am plotting a bar graph in Matlab and i want to shift the entire horizontal axis by some value. The value will be based on the total number of bars and also the average value of bars. How to shift the horizontal axis in Matlab plots. I am using m scripts to load the data and plot the data as bar graphs. Thank you for your help. How to move the graph in Barplot in matlab in both X dimension and Y dimension? I am using Matlab 2010 if it is worth mentioning and running on Windows 7...

Read more

I have created a very basic Ruby application that works totally okay inside the Heroku console (heroku is being run by the myapp.rb). I want to know the idea of making it run fully autonomously? I do not want Heroku console as a wrapper so that I can run my basic application I have just created make a independent application which can run with out any dependencies. This is actually only a basic application which reads a little news or updates from a website and emails the content to a predefined client. Simple. What should I put in...

Read more

I am wanting to kill the php sessions after certain time say for example after 20 minutes of inactivity. I don't know much about SESSION.GC_MAXLIFETIME and SESSION.COOKIE_LIFETIME but I am also unsure about the reliability of the same. How to implement a session time of my own in PHP? How to avoid garbage collector automatically destroying my sessions? How to time stamp my sessions on my own so that I can keep track of last activity in th session so that I can kill th session if I detect that the programmed time out has happened.

Read more

Can I have a simple and easy way to to schedule an automatic HTTP request to an address like mdomain.com according to a rescheduled time so that i can automate some of the requests from client and the server, while the client can enter some power down modes reliably? I have heard about CRON but never used it. What is CRON in python/javascriting and how to make use of it in my requirement? any code snippets is greatly appreciated. The outcome of request can be some more HTTP requests and it is acceptable.

Read more

I am trying to generate a sphere based on 3D walk plot and was almost successful. Now i need to generate the random walk points on the sphere to simulate the lighting effects later on but as of now, i cannot see the points getting joined. It simply displays as a dot in the window but doesn't plot over the sphere. How to overlap the random points on sphere and make them connected? Is it possible to overlap two plots one over the other so that I can present my random walk points on any other 3D plots? Looking...

Read more

I am facing this issue in python version 2.7. I am running a python script to create and collect multiple data from user and finally as a wrapped i add some details on the session which includes the group members name, topic of the discussion and a few database created in the session in the table formats. I want to generate pdf in the final stage. But when i call Saveas2 function, it successfully opens the save a window but also brings a error window telling command failed. What might be the reason?

Read more

Am trying to work on a project which involves the following: The user will enter his registration number as an example and clicks on submit button present on the same page. As soon as the button is clicked, the value of the registration number should get displayed in second page. That is all my requirement is. I am here exactly trying to understand the procedure of sharing variables among multiple PHP pages. I am using sessions for this but unable to succeed. Is there any good approach than using sessions to get this done quickly?

Read more

How to create a custom function to generate an output which will be a random number between two numbers. The two numbers can either be given by the user, or can be read from an existing array. Here are some conditions which I will explain with examples. I may want to generate a random number between 11 and 33. 11 inclusive and 33 exclusive. Similarly a random number between 42 and 52 both numbers exclusive etc. Hope i have stated the problem correctly and clearly. Can any body please guide me on random numbers on ruby on rails?

Read more

Whichever might be the keyboard, the on screen one or the keyboard extension, my surface pro 3 makes the cursor disappear all together. Assume I am working on physical keyboard. If I close the keyboard and reopen it again, the cursor hides some where. How to resolve this issue? It is very irritating to open the mouse pad only because of cursor issue and it is not repeatable too to get a permanent quick solution. Any ideas on surface pro 3 laptops having issues while switching from physical keyboard to the on screen one? Please share your solutions.

Read more