background preloader

Rubular: a Ruby regular expression editor and tester

Ruby Inside: The Ruby Blog SSL Certificate Not Trusted Error "The security certificate presented by this website was not issued by a trusted certificate authority." The certificate not trusted error indicates that the SSL certificate is not signed or approved by a company that the browser trusts. This occurs most often for one of the following reasons: The web site is using a self-signed certificate. The last option is a very common one. Occasionally, certain browsers will give this error when others do not. How to Fix The Untrusted Error To fix this error, you will need to install one or more intermediate/chain certificates onto the web server. Most web browsers make it clear that you shouldn't just continue when you receive this error. This error is often phrased differently depending on the web browser. Different certificate not trusted errors in different web browsers Digg del.icio.us Reddit

HTML 5 and CSS 3: The Techniques You’ll Soon Be Using In this tutorial, we are going to build a blog page using next-generation techniques from HTML 5 and CSS 3. The tutorial aims to demonstrate how we will be building websites when the specifications are finalized and the browser vendors have implemented them. If you already know HTML and CSS, it should be easy to follow along. Before we get started, consider using one of our HTML5 Templates or CSS Themes for your next project—that is, if you need a quick and professional solution. HTML 5 is the next major version of HTML. Before we begin marking up the page we should get the overall structure straight: In HTML 5 there are specific tags meant for marking up the header, navigation, sidebar and footer. It still looks like HTML markup, but there are a few things to note: In HTML 5, there is only one doctype. Instead of using divs to contain different sections of the page we are now using appropriate, semantic tags. We have already defined a new section in the document using the section tag.

Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl | Modeling And Viewing Users Two Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Michael Hartl is the author of the Ruby on Rails Tutorial, the leading introduction to web development with Ruby on Rails. Copyright and license Welcome to the Ruby on Rails Tutorial.

Area Criações - Web e Design Blocos em Ruby( lambda, proc, yield e tudo mais) Seguindo a linha do último tutorial de ruby, hoje vamos falar de blocos. Vou tentar explicar de forma resumida e com exemplos o que são blocos e como usar. Lembro a primeira vez que vi um bloco em Ruby fiquei totalmente perdido pois ainda não tinha visto nada com uma sintaxe parecida em outras linguagens ( ex.: { |item| puts item } ). Um bloco é um trecho de código Ruby que deve ser executado: ["daniel","lopes"].each {|item| puts item} # => resultado sera:# => daniel# => lopes No exemplo acima, tenho um array e este array possui o método each. Nosso bloco é formado por chaves que delimitam o inicio e o fim do bloco, um parâmetro ( |item| ) e sentença a ser executada ( puts item ). No exemplo passamos o bloco para o método each e ele executou este bloco várias vezes, também optamos por passar um parâmetro para o bloco, mas podemos passar quantos parâmetros precisarmos. meu_hash = {:nome=>"daniel",:sobrenome=>"lopes"}meu_hash.each {|index,item| puts "chave #{index},valor #{item}"}

Rolling with Ruby on Rails by Curt Hibbs 01/20/2005 Editor's note: Curt Hibbs and Bill Walton have updated this tutorial for Rails 1.2 in Rolling with Ruby on Rails Revisited and Rolling with Ruby on Rails Revisited, Part Two. We recommend those tutorials for all new Rails development. Also check out Bill Walton's monthly series, Cookin' With Ruby on Rails. Maybe you've heard about Ruby on Rails, the super productive new way to develop web applications, and you'd like to give it a try, but you don't know anything about Ruby or Rails. Let's answer a couple of burning questions before rolling up our sleeves to build a web application! What is Ruby? Ruby is a pure object-oriented programming language with a super clean syntax that makes programming elegant and fun. What is Rails? Rails is an open source Ruby framework for developing database-backed web applications. Part of the answer is in the Ruby programming language. Less software means you write fewer lines of code to implement your application. Seeing is Believing

Mailing Lists There are many PHP-related mailing lists available on our server. Most of them are archived, and all of them are available as newsgroups on our news server. You can search some mailing lists right from this website from the search page or by using the search input box selecting the appropriate option on the top-right of every page. There is an experimental web interface for the news server at and there are also other archives provided by Marc. Twitter The PHP team maintains an official PHP.net account on twitter, @official_php, for those interested in following various information about the PHP project. Mailing List Posting guidelines When posting to mailing lists or newsgroups, please keep the following in mind: Use a valid email address. And make sure you have read our Mailinglist Rules. You will be sent a confirmation mail at the address you wish to be subscribed or unsubscribed, and only added to the list after following the directions in that mail.

Getting Started Most webmasters are familiar with HTML tags on their pages. Usually, HTML tags tell the browser how to display the information included in the tag. For example, <h1>Avatar</h1> tells the browser to display the text string "Avatar" in a heading 1 format. However, the HTML tag doesn't give any information about what that text string means—"Avatar" could refer to the hugely successful 3D movie, or it could refer to a type of profile picture—and this can make it more difficult for search engines to intelligently display relevant content to a user. Schema.org provides a collection of shared vocabularies webmasters can use to mark up their pages in ways that can be understood by the major search engines: Google, Microsoft, Yandex and Yahoo! 1. 1a. Your web pages have an underlying meaning that people understand when they read the web pages. 1b. itemscope and itemtype Let's start with a concrete example. To begin, identify the section of the page that is "about" the movie Avatar. Back to top 1d.

Brain.js: Neural Networks In JavaScript A neural network is “a mathematical model or computational model that tries to simulate the structure and/or functional aspects of biological neural networks” according to Wikipedia. Basically, a neural network carries out pattern recognition, very much like the human brain would. The user of the network trains it, and then it can be used with varying levels of accuracy depending on the amount of training that it has received. Heather Arthur has written an implementation of a neural network in JavaScript. This example trains the neural network with some simple patterns of input and output, then runs the neural network with an input. because yellow is most similar to orange. Heather has also provided a working demo that you can try out. You can check out the code on Github, the documentation here, and the color demo here.

pilu&#039;s web-app-theme at master - GitHub Ruby QuickRef Table of Contents Language General Tips These are tips I’ve given over and over and over and over… Use 2 space indent, no tabs. Use [] over Array.new. See for more. General Syntax Rules Comments start with a pound/sharp (#) character and go to EOL. Reserved Words alias and BEGIN begin break case class def defined? Types Basic types are numbers, strings, ranges, regexen, symbols, arrays, and hashes. Numbers 1231_234123.451.2e-30xffff 0b01011 0377 ? Strings In all of the %() cases below, you may use any matching characters or any single character for delimiters. %[], %!! 'no interpolation'"#{interpolation}, and backslashes\n"%q(no interpolation)%Q(interpolation and backslashes)%(interpolation and backslashes)`echo command interpretation with interpolation and backslashes`%x(echo command interpretation with interpolation and backslashes) Backslashes: Here Docs: Encodings: Waaaay too much to cover here. Symbols Internalized String. Ranges Files

A guide and tutorial on using ComboFix Introduction ComboFix is a program, created by sUBs, that scans your computer for known malware, and when found, attempts to clean these infections automatically. In addition to being able to remove a large amount of the most common and current malware, ComboFix also displays a report that can be used by trained helpers to remove malware that is not automatically removed by the program. At this time ComboFix can only run on the following Windows versions: Windows XP (32-bit only) Windows Vista (32-bit/64-bit) Windows 7 (32-bit/64-bit) You should not run ComboFix unless you are specifically asked to by a helper. It should also be noted that when you run ComboFix it will automatically delete files from the following locations: Windows Recycle Bin Temporary Internet Files Temp Folder If you store files that you wish to keep in one of these location, it is suggested that you move them to a safer location rather than relying on the above temporary storage locations. Using ComboFix ComboFix Icon

akzhan/jwysiwyg - GitHub CodeMirror

Related:  rubyRoRRubyCodingRuby