if i was scripting on a text based game, continuously betting on Roulette, would there be any way to record the numbers that come up?
or record the mot frequent number?
If the text based game can run in a Internet Browser, you could try to extract information with iMacros.
Use SAVEAS and save to a .CSV
Run the script
Find out the most common number in a group of numbers (Excel)
You could always take screenshots? But that would add up quickly :P
http://wiki.imacros.net/SCREENSHOT
Related
Hey i am new in the coding area. And i want to know how can i load a code part that wrote with a text editor(Sublime) in Julia .I am working on windows OS and i do not know how can i run a code part. I load julia 1.1 but i dont want to code row by row. I want to a code part and then run it somewhere but i dont know how can i do these process and their term names.Briefly ican say that i want to generate a sparse matrix and vectors many density and sizes elements and then i want to multiple them. Could u explain step by step what should i do and which way i should go. Thank you.
There is the Sublime Text Plugin SendCode which allows you to send pieces of code from Sublime to, for example, the Julia REPL by pressing CTRL+Enter (or Shift+Enter to send a whole block). Just follow the installation and usage instructions on their webpage.
I have a list of images that I am currently looping through.
Is it possible to have a command where I can put in the location of text that I am trying to extract or show it with something like Citrix Scrape on what data I want to take out?
The Get OCR Text action requires you to provide a UI element. One simple option is to loop over all images, then open them in an image viewer of your choice, and then use the Text -> Scrape Relative to extract your invoice number into a variable.
You can use the Desktop Recorder for all actions mentioned above. Note that you will have to adjust the Selectors, as the Recorder usually considers the text the application title as well (which will often include the document's name, and that's not what you want as all your invoices will have different names). You can just open another invoice in your application, then open the Selector and Attach to Live Element to let UiPath work out the Selector for you - which works just fine in most cases.
Depicted below: a sample sequence created with the Desktop Recorder. Here I just read the invoice number with OCR, and I use IrfanView to display them. Of course you may want to increase the zoom level to enhance your OCR results in a real-world scenario.
I'm looking for a tips that I can use to make the following as easy and/or re-usable as possible.
I need to recreate a paper based form in vb6, allow the user to fill in values and then be able to both print out and save the completed form.
I'm thinking of scaning the form and saving it as a jpeg.
Using this jpg as the picture in a picture box.
Overlaying it with checkboxes/textboxes etc.
Saving the values of the various controls to the database
etc.
It seems like a lot of work for just 1 form and not very re-usable.
is there a better way?
Well, if what you want is "easy" - there isn't any tool which will do everything you want automatically. There are tools to turn paper forms into PDFs - but you would still have to do the database work yourself.
As for "re-usable" - I suppose creating a simple web application will fulfill this criteria, because your users wouldn't have to install your application.
I was initially dabbling with IFrames to launch a document, and found that for large files, the memory in all browsers (I first noticed this in FF) jumped to 500,000 K.
At first I thought it might have been some bad JS code that I had written, but removing all the extraneous code and just OPENING the text file still displayed the same problem.
So right now, all I'm doing is going to a site http://url/largefile, and seeing the file slowly display to the screen.
Is there any efficient way for me to display the file without the browser exploding? What am I missing here?
EDIT: I've received responses to use a text editor for this purpose. My original goal was to allow a user to click the url, which would append a search term as a post variable. The opened textfile would then scroll to the specified point of the search term. Is there a way to auto open a text editor ... on that person's computer and then going directly to the search point?
30MB is kind of big, even for a regular text editor, I suspect you will be unable to convince FF to handle it well. I might try one of the following:
implement paging/searching in your web site so it only displays a portion of the file at one time
open the file in an actual text editor - it's what they are good at after all
Your paging implementation (if suitably clever) might only load the text around the selected piece of the file, and when they scroll up or down use AJAX to load additional parts of the file (kind of like a virtual list control in windows). This might help to mitigate the performance impact.
Is it xml? Firefox tries to create a DOM for xml files that can be many times larger than the file itself.
I would like to create pdfs with ruby. One special need is embedding a picture into text (or a textblock), which means I need to be able to let the text flow around the image. E.g. the image should be in the rigth upper corner and the text should start left of the image and continue after the image by using the whole width of the page. How can I do this in ruby? Thank you for any suggestions!
In the past to get print quality PDFs in Ruby, I used rtex.
It's fast too, which is a real bonus.
Prawn to the rescue?
I like the html -> pdf approach. Although it is probably not the best option (prawn is) it makes it easy to design the pdf. See this website. You could also go for the approach documented at jimneath.org.
Good luck
iText is the heavyweight that will allow you to do anything you want with PDFs you can bridge to it with jRuby.
Another option I used was driving open office (it has a ui less option which you can automate from Ruby)
How about having Ruby generate some LaTeX code, then use pdflatex to produce the PDF?
Although I haven't done it myself I've seen people use a headless Open Office. You can control it from Ruby and use it to generate PDF files. You can even use an Open Office template and just fill in some elements into it.