Subscribe to The New and Improved Ruby Codes        RSS Feed
- - - - -

Ruby - Scan() and Regex: Converting a paragraph valuable data values

Icon Leave Comment
In ruby, scan is a powerful method that you can use with regex to scan through a string and find all occurrences of a pattern. So if you have a string with data in it, say, maybe you are parsing from emails or some other secondary data source, you would use regex to parse that important information into your ruby app.

Props to: ...
- - - - -

What's a WebAPI anyway? How can I use one? Are https get requests easy in ruby?

Icon Leave Comment
::What is a WebAPI anyway?...
- - - - -

03_View MySql tables with PHP

Icon Leave Comment
Here's some code that can be used to dump out all of the information in one of your MySql database tables. It's useful to pick through and see how things work. Just be sure to change the host, user, pwd, database, and table names before you start it up.

(datadump.php)
...
- - - - -

PHP with NetBeans 7.0 Jump start! (audio emphasized) (windows)

Icon Leave Comment
Hey, check out my wicked fast PHP tutorial that is sure to get any new person ready to start programming PHP QUICK! The two part tutorial get's you working from the ground up using a cozy-cool IDE called NetBeans, and even sets you up with apache server. If you don't currently have an ide/localhost test setup, this tutorial is a must...
- - - - -

03_call php file from html using the prototype lib

Icon Leave Comment
Ok, in our last example, we called a PHP file from within a web page. It was a fairly simple procedure to understand, but it took a lot of lines. Like 30 or 40 I think! That's crazy, especially considering most of it was browser compatibility workarounds. So instead of using AJAX that way, we're better off using the prototype...
- - - - -

02_call php file from html.txt

Icon Leave Comment
One of the many cool features of php is the ability to call a PHP page from within any old html page.

How:

1) With javascript, the HTML page calls the php page, and sends the results to a var object
2) After being called, the PHP page will do it's code, and echo what you want the user to see.
3) With javascript,...

Page 1 of 1

September 2014

S M T W T F S
 1 2 3456
78910111213
14151617181920
21222324252627
282930    

Tags

    Search My Blog

    0 user(s) viewing

    0 Guests
    0 member(s)
    0 anonymous member(s)

    Categories