get infos from screen in ruby? [closed] - ruby

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm thinking about creating a bot that would solve some (html) puzzle games using a pre-defined strategy.
My question : is there any ruby libraries that would allow to "read screen" (i.e. check the colors of some pixels on screen) and apply actions (like clicking somewhere, or "press right key" ? )
I know this would be quite easy in python, but I was just wondering wether ruby could do that to save me some time.
Thanks !

I would do this with Capybara and some nice JavaScript driver like Poltergeist. You can send key commands, click on precise coordinates and take screenshoots. For image manipulation and processing I suggest that you look into chunky_png.

Related

Ruby language cheatsheet/poster/reference/overview? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am a visual kind of guy and would like to know if there is somewhere a nice big overview of Ruby. You know, like a reference poster, with object hierarchy, most common methods, etc, all in color, layed out nice and clearly...
To a beginner like me would this would be awesome...
Is there something like that out there that you use or have stumbled upon?
Check these out :
https://github.com/savini/cheatsheets/raw/master/ruby/RubyCheat.pdf
http://wtr.rubyforge.org/s101/doc/Ruby-cheat-sheet.doc
http://refcardz.dzone.com/refcardz/essential-ruby#refcard-download-social-buttons-display
And a... "comparative" approach, with cheat sheets combined for major scripting languages :
http://hyperpolyglot.org/scripting

Pygame-like for haskell? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
im trying to program a game in Haskell. Ive been looking for Game frameworks for that purpose, but i found a few and i cant make them work :/ . All i need is some image processing as pygames provides in python, like moving images, using layouts to put one image above other, and such basic things.
Do you happen to know anyone?
I was writing a library called TeaHS which is something like what you want. It's old and potentially bitrotted though, and I don't really have time to update it. Fork it if you like :)

Looking for examples of the record library for SWI-prolog [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I am looking for example uses (or tutorials) of the record library
http://www.cs.fit.edu/~pkc/classes/ai/swi-prolog/Manual/record.html
for SWI-prolog that I can use as a template. Do you have any pointers?
Thanks,
SetJmp
There is one example of usage here in the SWI-Prolog JSON library to hold JSON options
http://www.swi-prolog.org/git/packages/http.git/blob/HEAD:/json.pl
It is pretty straightforward to use. the only pain is that you can't pull arbitrary fields off a record because they need to be accessed by _(X). Also, i do not believe any extra meta-data about the record is stored in case you want to get the field names at run time.

Function Plotter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
There is a nice function plotter built into OSX. Has anyone found something free that runs on windows (with out having to go through Cygwin)?
How about MathGV - Function Plotting Software?
Also, DME Calculator is a calculator that can plot functions.
The DME calculator is an advanced
calculator for Windows. It is a part
of the program package for controlling
our instruments. However, in its basic
version it can be of use for anyone
who wishes to make calculations with a
PC or wishes to solve somewhat more
complex problems without having to use
a large spreadsheet program package.
The DME calculator fits on a diskette
and starts without any notable waiting
time.
If by functions, you mean mathematical functions, there is a nice list here which has plenty of suggestions.
Wolframalpha.com
excellent for many branches of academia. it also plots.

Boo Reference Card? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm looking for a boo syntax sheet/reference card. A quick search on google and on boo's site didn't turn up anything, does anyone know where one is?
I'm not aware of an online reference card, but perhaps this might be close enough?
http://docs.codehaus.org/display/BOO/Keywords+with+examples
This summary is concise and has useful links, although it looks like the author got bored half way through.
http://docs.codehaus.org/display/BOO/Language+Summary

Resources