background preloader

Rubular: a Ruby regular expression editor and tester

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.

SQLite Database Browser Ruby Quiz - metakoans.rb (#67) metakoans.rb (#67) by ara.t.howard [ Editors note: This quiz file can be downloaded: metakoans.rb Partial solutions are welcome. ruby module MetaKoans def koan_1 c = Class::new { attribute 'a' o = c::new assert{ not o.a? assert{ o.a = 42 } assert{ o.a == 42 } assert{ o.a? end def koan_2 class << self assert{ not c.a? assert{ c.a = 42 } assert{ c.a == 42 } assert{ c.a? def koan_3 m = Module::new { assert{ not m.a? assert{ m.a = 42 } assert{ m.a == 42 } assert{ m.a? def koan_4 include m extend m def koan_5 o = Object::new class << o def koan_6 attribute 'a' => 42 assert{ (o.a = nil ) == nil } def koan_7 attribute( 'a' ){ fortytwo } def fortytwo def koan_8 b = Class::new { attribute( 'b' ){ a } c = Class::new b assert{ (c.a = nil ) == nil } def koan_9 include Module::new { assert{ c.a = 'forty-two' } assert{ c.a == 'forty-two' } assert{ b.a == 42 } def assert() bool = yield class MetaStudent def initialize knowledge require knowledge def ponder koan begin send koan true rescue => e false class MetaGuru require "singleton" include Singleton else

Créer un site de zéro avec Ruby on RailsGeek Me Up – Devenez Geek ! Ruby on Rails est un framework web (rassemblement d’outils pour simplifier le développement de site internet), basé sur le langage Ruby qui permet de créer des applications web très puissantes et d’écrire du code avec une très grande productivité. Cette technologie est aujourd’hui très en vogue dans le monde des startup comme le montre la liste (non exhaustive) des sites construits sur ce framework : airbnb.com, github.com, basecamp.com, twitter.com (V1), groupon.com, etc… Si vous créez une entreprise dans le secteur de l’Internet, que vous êtes responsable technique ou tout simplement que vous voulez apprendre à développer un site internet, je vous invite très fortement à lire les mots qui suivent. Introduction : quelle technologie utiliser? Le choix d’une technologie web pour réaliser un site web professionnel est une décision importante car : Sans entrer dans le détail, je classerai les technologies de création de site web en trois grandes familles : 1. Et en français : Apprenez Ruby 2.

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.

Gnome and Autospec Notifications I’m very keen on DBB with RSpec now and I wanted to share how I set up autospec notifications on Ubuntu (Jaunty 9.04) as long as the post I followed to do it is no longer available. I’m using XCFE but should work perfectly on Gnome as well. This is an screenshot of what you’ll get in the end: autospec notification XFCE/Gnome First you need the ZenTest gem, you probably already do: $ sudo gem install ZenTest $ sudo gem install redgreen Then install the libnotify-bin package: $ sudo apt-get install libnotify-bin Here is the trick. As you can see I use the fail.png and pass.png images to show those cheesy smileys : ). autotest_images.zip Make your tests go green and have a beer! Update: Added redgreen gem and changed “require redgreen” as Rodrigo Flores and rakk suggested. Update: Changed mistakenly escaped > . Update: The script now supports pending examples. Update: Removed an extra end.

Mike Clark › Ruby Learning Test #1: Are You There, World? I truly have no idea where this is going or if it will scale. But I've been meaning to try it, and I'll let you judge whether it's worth it. Here's what I do know: It doesn't cost you anything to come along for the ride. How I Learned Ruby A couple years back I flipped open the first edition of Dave and Andy's wonderful book Programming Ruby. But it was at that very moment when I asked Ruby a question and it responded with the answer that I learned more than Ruby. There was just one problem: I didn't yet know enough about Ruby to write a test. [~/work/code/ruby/learn] $ ruby all_learning_tests.rb ruby all_learning_tests.rbLoaded suite all_learning_testsStarted.......................... That's pretty much everything I know about Ruby, give or take. But the real value of writing these tests was less about testing, and more about learning. So You Want To Learn Ruby? Perhaps you've been meaning to learn Ruby for fun or profit, but you just don't know where to start. Write a Learning Test

Secure Hash Algorithm The Secure Hash Algorithm is a family of cryptographic hash functions published by the National Institute of Standards and Technology (NIST) as a U.S. Federal Information Processing Standard (FIPS), including: SHA-0: A retronym applied to the original version of the 160-bit hash function published in 1993 under the name "SHA". It was withdrawn shortly after publication due to an undisclosed "significant flaw" and replaced by the slightly revised version SHA-1.SHA-1: A 160-bit hash function which resembles the earlier MD5 algorithm. This was designed by the National Security Agency (NSA) to be part of the Digital Signature Algorithm. The corresponding standards are FIPS PUB 180 (original SHA), FIPS PUB 180-1 (SHA-1), FIPS PUB 180-2 (SHA-1, SHA-256, SHA-384, and SHA-512). Comparison of SHA functions[edit] In the table below, internal state means the "internal hash sum" after each compression of a data block. References[edit]

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 Rails mail error Ruby Programming Language

Related: