[#379166] question: threads behaviour — Raphael Bauduin <rblists@...>

Hi,

14 messages 2011/03/01

[#379190] exec using sh -c or directly running the command, depending on the system — Xavier No謖le <xavier.noelle@...>

Hello !

8 messages 2011/03/01

[#379261] How can i get the first letter of this string — duc nguyen <minhduct4@...>

Hello, i'm a newbie. I have a question that how can i get the first

10 messages 2011/03/03

[#379285] Extracting the shortest string from an array — Iñaki Baz Castillo <ibc@...>

Hi, given the following array:

12 messages 2011/03/03

[#379299] How to assign an element to a hash only if its value is not nil? — "Thomas W." <thomas@...>

hash = {}

13 messages 2011/03/03

[#379327] extconf.rb spitting out SH Makefile on windows? — Mr Eiland <mreiland1978@...>

Title says it all, I'm running ruby extconf.rb in a visual studio 2008

18 messages 2011/03/03
[#379883] Re: extconf.rb spitting out SH Makefile on windows? — Luis Lavena <luislavena@...> 2011/03/15

On Mar 15, 3:09=A0am, Mr Eiland <mreiland1...@yahoo.com> wrote:

[#379410] Ruby - Missed some core computer science world ? — Lucky Dev <lucky.developer@...>

I am doing ruby programming and been developing rails3 apps for some

16 messages 2011/03/06

[#379423] How to get class of BasicObject ancestor (Ruby 1.9.2)? — Alexey Petrushin <axyd80@...>

There's no :class method on BasicObject, is there any way to get class

9 messages 2011/03/06

[#379430] (ArgumentError) - in `initialize': wrong number of arguments (4 for 0) — Micah Wolfe <52w7te9ara@...>

Greetings all,

12 messages 2011/03/06

[#379469] basic programming question, help please — Kaye Ng <sbstn26@...>

class Square

17 messages 2011/03/07
[#379471] Re: basic programming question, help please — Mayank Kohaley <mayank.kohaley@...> 2011/03/07

The class method in Ruby is represented using self.<method name> or <class

[#379487] http post and authorization header for twitter — boo boo <s.w.timko@...>

I am trying to send an authorization header to the twitter api

16 messages 2011/03/07

[#379524] Duplicate methods removal in Ruby's TODO ? — David Unric <dunric29a@...>

Hi,

15 messages 2011/03/08

[#379597] Comparison between C++ and Ruby Variables — "Mayank K." <mayank.kohaley@...>

I have blogged about the comparison between c++ and ruby variables and

10 messages 2011/03/09

[#379686] What do you use with Ruby for GUI programming and why? — Robert <sigzero@...>

Is there a push to one toolkit or the other?

29 messages 2011/03/11
[#379713] Re: What do you use with Ruby for GUI programming and why? — Steve Klabnik <steve@...> 2011/03/11

I use Shoes. I'm biased; I'm one of the maintainers.

[#379715] Re: What do you use with Ruby for GUI programming and why? — Shadowfirebird <shadowfirebird@...> 2011/03/11

> I use Shoes. I'm biased; I'm one of the maintainers.

[#379755] send() with a block? — 7stud -- <bbxx789_05ss@...>

Why don't the ruby docs say that send() can take a block?

23 messages 2011/03/12
[#379756] Re: send() with a block? — "Sean O'Halpin" <sean.ohalpin@...> 2011/03/12

On Sat, Mar 12, 2011 at 8:45 PM, 7stud -- <bbxx789_05ss@yahoo.com> wrote:

[#379757] Re: send() with a block? — Peter Zotov <whitequark@...> 2011/03/12

On Sun, 13 Mar 2011 06:01:31 +0900, Sean O'Halpin wrote:

[#379845] Ruby jobs — Toby Gambill <toby.gambill@...>

All=20

25 messages 2011/03/14

[#379846] Understanding YAML and this practice in general — Fily Salas <fs_tigre@...>

Hi,

12 messages 2011/03/15

[#379889] SHA1 Decryption!! — Gormare Kalss <gormare@...>

Hello! I hope that no one will be offended by this question!! Ive been

12 messages 2011/03/15

[#379945] TCPSocket: how to realize that the other endpoint has closed the connection? — Iñaki Baz Castillo <ibc@...>

Hi, I open a TCP connection with a server:

10 messages 2011/03/16

[#379998] Inserting hash value slows down as table gets larger — Philip Rhoades <phil@...>

People,

11 messages 2011/03/17

[#380037] matching a word in any number of characters — Chad Perrin <code@...>

I have need of some code to match any of a number of words in any number

12 messages 2011/03/18

[#380074] Method Call from inside a file. — Tridib Bandopadhyay <tridib04@...>

I coded a new method within gc.c file defining as--

11 messages 2011/03/19

[#380085] A question about Ruby 1.9's "external encoding" — Albert Schlef <albertschlef@...>

I have the following program:

11 messages 2011/03/20

[#380116] The best practices to learn Ruby — Fily Salas <fs_tigre@...>

Hi,

22 messages 2011/03/20

[#380205] How could I make the Ruby 1.9 string ignore the invalid utf-8 byte sequence in split? — Stanley Xu <wenhao.xu@...>

Dear buddies,

8 messages 2011/03/22

[#380220] Ruby corrupts after a period of time — Chip Burke <cburke@...>

I have recently upgraded from Ruby 1.8.7 to 1.9.2p180 on Fedora. After a

19 messages 2011/03/22

[#380262] Converting PHP to Ruby — "Jack W." <jack.whitman403@...>

Hi all,

13 messages 2011/03/23

[#380306] shortcut for add unless nil ? — Iain Barnett <iainspeed@...>

Hi,

24 messages 2011/03/24
[#380308] Re: shortcut for add unless nil ? — Xavier Noria <fxn@...> 2011/03/24

You could do something like this (untested):

[#380339] Re: shortcut for add unless nil ? — Iain Barnett <iainspeed@...> 2011/03/25

[#380347] Re: shortcut for add unless nil ? — Robert Klemme <shortcutter@...> 2011/03/25

On Fri, Mar 25, 2011 at 7:02 AM, Iain Barnett <iainspeed@gmail.com> wrote:

[#380369] Re: shortcut for add unless nil ? — Colin Bartlett <colinb2r@...> 2011/03/25

On Fri, Mar 25, 2011 at 7:52 AM, Robert Klemme

[#380382] Re: shortcut for add unless nil ? — Iain Barnett <iainspeed@...> 2011/03/25

[#380385] Re: shortcut for add unless nil ? — Robert Klemme <shortcutter@...> 2011/03/25

On Fri, Mar 25, 2011 at 4:42 PM, Iain Barnett <iainspeed@gmail.com> wrote:

[#380389] Re: shortcut for add unless nil ? — Iain Barnett <iainspeed@...> 2011/03/25

[#380394] Re: shortcut for add unless nil ? — serialhex <serialhex@...> 2011/03/25

...personally i think it would be nice to be able to define new operators

[#380325] Regexp, matching only the content within parentheses — Emil Kampp <ekampp@...>

Hi.

12 messages 2011/03/24

[#380359] How to get the value of a singleton class? — Joey Zhou <yimutang@...>

Here is a sample code:

14 messages 2011/03/25
[#380360] Re: How to get the value of a singleton class? — Robert Dober <robert.dober@...> 2011/03/25

On Fri, Mar 25, 2011 at 1:23 PM, Joey Zhou <yimutang@gmail.com> wrote:

[#380361] Do I need to upgrade to the latest version of Ruby — Fily Salas <fs_tigre@...>

Hi,

10 messages 2011/03/25

[#380368] Dynamic classes — PsiPro <arjesins@...>

So I am working on some metaprograming and have some questions about

13 messages 2011/03/25

[#380401] How to "find" new lines — Damir Sigur <damir@...>

I am new to ruby, and was trying to make a small code which would check

12 messages 2011/03/25

[#380520] A two-minute Ruby flavoured survey to help shape a new service. — "Mic P." <micpringle@...>

Please take a few seconds to fill out the following survey ...

12 messages 2011/03/28
[#380528] Re: A two-minute Ruby flavoured survey to help shape a new service. — Chad Perrin <code@...> 2011/03/28

On Tue, Mar 29, 2011 at 03:46:17AM +0900, Mic P. wrote:

[#380558] Why can a floating point number be used as an array index? — Jeff Dik <s450r1@...>

Why can a floating point number be used as an array index? Anybody

11 messages 2011/03/29

[#380573] Encoding issues when parsing HTML in 1.9 — ctdev <ctdev421@...>

Hi, I'm having some encoding problems while parsing HTML with Nokogiri

12 messages 2011/03/30

[#380586] functional paradigm taking over — Robert Klemme <shortcutter@...>

Hi,

133 messages 2011/03/30
[#380593] Lambda Shambda — Mike Stephens <rubfor@...> 2011/03/30

Although a Ruby fan, I must say I'm spending all my time looking at

[#380612] Re: Lambda Shambda — Chad Perrin <code@...> 2011/03/30

On Wed, Mar 30, 2011 at 06:38:19PM +0900, Mike Stephens wrote:

[#380617] Re: Lambda Shambda — Robert Klemme <shortcutter@...> 2011/03/30

On Wed, Mar 30, 2011 at 4:49 PM, Chad Perrin <code@apotheon.net> wrote:

[#380641] Re: Lambda Shambda — Chad Perrin <code@...> 2011/03/30

On Thu, Mar 31, 2011 at 12:19:25AM +0900, Robert Klemme wrote:

[#380664] Re: Lambda Shambda — Phillip Gawlowski <cmdjackryan@...> 2011/03/31

On Thu, Mar 31, 2011 at 1:24 AM, Chad Perrin <code@apotheon.net> wrote:

[#380669] Re: Lambda Shambda — Chad Perrin <code@...> 2011/03/31

On Thu, Mar 31, 2011 at 12:30:07PM +0900, Phillip Gawlowski wrote:

[#380683] Re: Lambda Shambda — Mike Stephens <rubfor@...> 2011/03/31

Chad Perrin wrote in post #990130:

[#380812] Re: Lambda Shambda — Josh Cheek <josh.cheek@...> 2011/04/02

On Thu, Mar 31, 2011 at 5:08 AM, Mike Stephens <rubfor@recitel.net> wrote:

[#380825] Re: Lambda Shambda — Mike Stephens <rubfor@...> 2011/04/03

Josh Cheek wrote in post #990579:

[#380831] Re: Lambda Shambda — Phillip Gawlowski <cmdjackryan@...> 2011/04/03

On Sun, Apr 3, 2011 at 7:29 AM, Mike Stephens <rubfor@recitel.net> wrote:

[#380839] Re: Lambda Shambda — Everett L Williams II <rett@...> 2011/04/03

*Let's not pay too much attention to the code snobs on here. I've yet to

[#380840] Re: Lambda Shambda — Phillip Gawlowski <cmdjackryan@...> 2011/04/03

On Sun, Apr 3, 2011 at 2:17 PM, Everett L Williams II

[#380893] Re: functional paradigm taking over — Mike Stephens <rubfor@...> 2011/04/04

This thread has been touching upon three issues - functional languages

[#380907] Re: functional paradigm taking over — Everett L Williams II <rett@...> 2011/04/04

*Mike,*

[#380910] Re: functional paradigm taking over — Johnny Morrice <spoon@...> 2011/04/04

> But, as I have said, I have seen some absolutely

[#380913] Re: functional paradigm taking over — Johnny Morrice <spoon@...> 2011/04/04

> I've seen some absolutely amazing things done with befunge! Networked

[#380925] Re: functional paradigm taking over — Chad Perrin <code@...> 2011/04/04

On Mon, Apr 04, 2011 at 09:29:13PM +0900, Johnny Morrice wrote:

[#380926] Re: functional paradigm taking over — Johnny Morrice <spoon@...> 2011/04/04

> I have not seen "befunge" as a euphemism for brainfuck before. Is

[#380933] Re: functional paradigm taking over — Chad Perrin <code@...> 2011/04/04

On Tue, Apr 05, 2011 at 12:42:20AM +0900, Johnny Morrice wrote:

[#381261] Re: functional paradigm taking over — Robert Dober <robert.dober@...> 2011/04/10

On Mon, Apr 4, 2011 at 8:07 PM, Chad Perrin <code@apotheon.net> wrote:

[#381324] Re: functional paradigm taking over — Kevin <darkintent@...> 2011/04/12

Aren't all programs languages as the program describes a particular problem

[#381330] Re: functional paradigm taking over — Phillip Gawlowski <cmdjackryan@...> 2011/04/12

On Tue, Apr 12, 2011 at 8:18 AM, Kevin <darkintent@gmail.com> wrote:

[#381331] Re: functional paradigm taking over — Kevin <darkintent@...> 2011/04/12

No I'm not confusing them, all programs provide the vocabulary (Means of

[#381356] Re: functional paradigm taking over — Chad Perrin <code@...> 2011/04/12

On Tue, Apr 12, 2011 at 04:47:17PM +0900, Kevin wrote:

[#381400] Re: functional paradigm taking over — Kevin <darkintent@...> 2011/04/13

Why don't you actually go take a look at the definition of language,

[#381401] Re: functional paradigm taking over — Josh Cheek <josh.cheek@...> 2011/04/13

On Wed, Apr 13, 2011 at 12:53 AM, Kevin <darkintent@gmail.com> wrote:

[#381403] Re: functional paradigm taking over — Kevin <darkintent@...> 2011/04/13

That is all well and good. But does that fact make the definitions I am

[#381408] Re: functional paradigm taking over — Phillip Gawlowski <cmdjackryan@...> 2011/04/13

On Wed, Apr 13, 2011 at 8:38 AM, Kevin <darkintent@gmail.com> wrote:

[#380623] string/array slices — Patrick Tyler <patrick.a.tyler@...>

Hello,

15 messages 2011/03/30

[#380689] how to refine the code to avoid using fork on windows? — Ethan Huo <firewall888@...>

here is the thing, i need to move a previous ruby program from Linux to

9 messages 2011/03/31

[#380710] Simple array.each do |x| question — "Kyle X." <haebooty@...>

Hello, I am new to ruby and cannot understand why this code is not

18 messages 2011/03/31
[#380711] Re: Simple array.each do |x| question — Roger Braun <roger@...> 2011/03/31

Hi

Re: W3C Standards Compliant

From: Sam Duncan <sduncan@...>
Date: 2011-03-09 23:21:57 UTC
List: ruby-talk #379632
Use of expletives on a public mailing list is pretty sub-optimal 
vocabulary, wouldn't you agree? Since when are companies like Google and 
DICE (never heard of DICE) our technological masters? Chips are for 
eating, not carrying on our shoulders. In a free society, if a citizen's 
main grievance is a general lack of adherence to adhoc lexical standards 
with regards to unregulated public communications, they are doing rather 
well in my opinion. Am I wrong in saying that commercial operations can 
do what they please and if people don't like it they can vote with their 
feet and/ or wallets?

Additionally, it is all very well to claim the high ground of standards 
compliance with plain white pages containing minimal content, and zero 
stylistic formatting, however generally speaking the public at large 
have moved on and prefer to see things like colour, animation, pictures, 
movies, as well as new and interesting interfaces, rather than pages 
designed primarily for a non sentient audience. My brain, for instance, 
appears to have no trouble parsing an ampersand.

Sam


On 10/03/11 11:25, Robert Maas, http://tinyurl.com/uh3t wrote:
>> From: jzakiya<jzak...@mail.com>
>> I was checking various websites using this W3C validator:
>> http://validator.w3.org
>>      
> In recent months I've been meaning to ask, and this seems an
> appropriate time: Virtually every Web site I've look at, except my
> own on my Unix shell site, and *even* my own PHP output on free
> hosting sites that ad advertisements before or after my
> PHP-generated valid syntax, fails validation. Google is an
> egretious example, the 800 pound gorilla that can do any F**KING
> thing it wants any time it F**KING time it wants because nobody has
> the power to correct it. Also, every job-search Web site I've
> examined so-far (DICE, Monster.Com, craigslist, hotjobs, etc.)
> fails validation. If I *ever* encounter a Web site I didn't create
> myself which passes validation I'm surprised. I've created a Web
> page documenting some of this horridly non-validating HTTP output
> that pretends to be HTML or XHTML:
> http://www.rawbw.com/~rem/NewPub/jobSearch.html
>
> In the apparent war between W3C and the vast majority of commercial
> Websites, who is correct?
>
> Is W3C correct, and all these Websites are broken?
>
> Or are these Websites just fine, and W3C is being pedantic or even
> anal retentive?
>
> Off and on during the past several years I've developed a
> non-validating generic SGML/XML parser. The only legal syntax it
> doesn't understand is SGML null-end-tags, because their syntax
> conflicts with XML's use of self-closing tags.
>
> In the course of trying to use it to parse output from Yahoo,
> Google, and other major Websites, I've needed to modify my parser
> to accept lots of INVALID syntax. The most common cases are:
> - URLs and other property values that aren't enclosed in quotes.
> - Bare ampersands in query strings of URLs not expressed as&amp;
> - Bare brockets as text not expressed as&lt; or&gt;
> - Scripts (usually JavaScript) that aren't contained within comments.
> I thought I had covered all such broken syntax, allowing it to be
> gracefully parsed to create a DOM (parse tree). But last night
> while parsing a job ad downloaded from dice.com I found an open
> brocket immediately followed by a space character, which my parser
> doesn't currently handle, so I need to fake some "plausable" parse
> for the invalid syntax. Here are the original dice URL and the URL
> for applying the W3C validator to it:
>
> http://seeker.dice.com/jobsearch/servlet/JobSearch?op=302&dockey=xml/9/d/9d2e5198c1866bf1fe49cb0e9aa302aa@endecaindex&source=19&FREE_TEXT=PHP&rating=99
> = http://tinyurl.com/4kq8s9d
> (ad for job for Ruby on Rails
>   Position ID: 10203112000007802
>   Dice ID: 10106525)
>
> http://validator.w3.org/check?uri=http%3A%2F%2Fseeker.dice.com%2Fjobsearch%2Fservlet%2FJobSearch%3Fop%3D302%26dockey%3Dxml%2F9%2Fd%2F9d2e5198c1866bf1fe49cb0e9aa302aa@endecaindex%26source%3D19%26FREE_TEXT%3DPHP%26rating%3D99&charset=%28detect+automatically%29&doctype=Inline&group=0
> = http://tinyurl.com/5ucbcxe
> (179 Errors, 99 warnings)
> ..
>      9. Warning Line 172, Column 18: character "<" is the first character
>         of a delimiter but occurred as data
>                          for (i = 1; i<= 3; i++) {
>     10. Warning Line 179, Column 66: cannot generate system identifier for
>         general entity "dockey"
> .. "/jobsearch/servlet/JobSearch?op=306&dockey=xml/9/d/9d2e5198c1866bf1fe49cb0e9...
> ..
>     248. Warning Line 1203, Column 149: character "<" is the first
>         character of a delimiter but occurred as data
> .. United States specializing in audit<  http://www.deloitte.com/dtt/section_no...
>
>    
>> and just wanted to congratulate the ruby home site as passing:
>> www.ruby-lang.org
>>      
> Indeed, I checked it just now, and it still passes. It's ironic
> that the Ruby language Web site passes, but an advertiser for job
> for Ruby on rails breaks HTML worse than any other Web page I've
> ever encountered. Too bad the Ruby folks don't enforce standards on
> their users.
>
>    
>> In comparison, those slackers over at www.python.org show 1 error
>> and 1 warning on their site. :-)
>>      
> Not an egregious error at all:
>      1. Error Line 196, Column 30: value of attribute "method" cannot be
>         "POST"; must be one of "get", "post"
>             <form method="POST" action="/3kpoll">
> Should be easy to fix if somebody can get the attention of the Web
> author/manager there.
>
>    
>> Here are some other sites that pass 100%:
>> www.msn.com
>> www.firefox.com
>> www.mozilla.com
>>      
> Those three confirmedm firefox&mozilla as expected but msn rather a
> pleasant surprise, but:
>
>    
>> www.oasis-open.org
>>      
> Error found while checking this document as XHTML 1.0 Transitional!
>     Result: 1 Error, 1 warning(s)
>     Address: http://www.oasis-open.org/home/index.php__________
>      1. Warning Line 242, Column 40: character "&" is the first character
>         of a delimiter but occurred as data
> ..               Conference Proceedings&  Webcast Available</a></div>       <div
> Another stupid failure-to-convert from text to HTML text, easily
> fixed if somebody can get the attention of the Web author/manager
> there.
>
>    
>> And a shocker,  www.openoffice.org has 4 ERRORS! (as of July 7, 2009)
>>      
> It's gotten worse since then:
> Errors found while checking this document as XHTML 1.0 Transitional!
>     Result: 10 Errors, 3 warning(s)
>
>    
>> Also, some prominent sites that have errors:
>> www.gmail.com
>> www.yahoo.com
>> www.google.com
>>      
> Yeah, I noticed those already myself. Even worse, JavaScript isn't
> available here (VT100 term on FreeBSD Unix) so gmail doesn't work
> at all here, because it absolutely requires JavaScript. Facebook
> likewise, except at least it recognizes te problem and redirects me
> to an error page right at the top. Correction: The last twenty
> times I tried over the past several years, it redirected me to
>   "We're not cool enough to support your web browser."
> But when I tried it just now, for the very first time ever I get a
> login form in lynx. Unfortunately I've never been able to get a
> FaceBook account, even from a public-access Microsoft-IE, so I
> can't test FaceBook login from here. MySpace by comparison worked
> fine the last time I tried it from lynx.
>
>    
>> But maybe it would be a nice see Merb, Ramaze, Sinatra or....
>> used to write a little web app to track and list W3C
>> (non)conformance of sites (if such a project doesn't already
>> exist),  Let's out the bad and hail the good!
>>      
> I have IMO a better idea: If and when http://TinyURL.Com/NewEco
> gets enough users, I plan to actually *pay* users (not cash, just
> labor credits, i.e. funny money that can be used to pay for metered
> WebSite usage and/or hire others to do contract work) to report
> good/bad Web sites (to keep my database up to date) and to pester
> managers of bad Web sites to fix their egregious HTML or English
> mistakes. The first targets of intense pestering would most likely
> be Google.Com, Yahoo.Com, DICE.Com, and Monster.Com. But pestering
> by random nobodies wouldn't convince those big Web sites to fix
> their mistakes, so I would use http://TinyURL.Com/RLLink to locate
> chains of people (as in "seven degrees of freedom") from we who are
> complaining to they who need to pay attention to our complaints. If
> the WebMasters' best friends start complaining to the WebMasters
> that the Web sites is so grossly bad that *they* (best friends of
> the WebMasters) are getting pestered and begged to please pester
> the actual WebMaster, maybe they (WebMasters) finally pay attention
> to our complaints.
>
> Which brings me back to my current problem with dice.com: The
> reason I'm currently working on building software to harvest job
> ads from job-search Web sites and filter them to eliminate jobs for
> which the user is not qualified, is not just because it'd be useful
> to me personally, but also because I believe that will be so useful
> to the 25% of adult population that are either unemployed or
> underemployed or "no longer in the workforce" or otherwise not
> employed to their desires, that users will start flocking to
> http://TinyURL.Com/NewEco in order to get access to job-ad
> filtering, and will find the service worth the labor-cost needed to
> use it, hence will build up user base of people willing to do work
> for me in exchange for using my service, such work including
> finding chains of people from here to bad WebMasters and pestering
> through such chains to friends of the bad WebMasters.
>
> Note: I'm opposed to harassing innocent people. But in any free
> society I believe we have a right to "redress of grievience" by
> petitionning our de jure (goverment) masters and also by
> petitionning our de facto (technological, business) masters such as
> Google and DICE. If our masters claim that our petitions for
> redress of grievance is "harassing" to them, they are mistaken, and
> should "mend their ways" rather than "shoot the messenger".
>
> I hope that http://TinyURL.Com/NewEco + http://TinyURL.Com/RLLink
> will provide a cybernetic means for effective redress of grievience.
>
>    

In This Thread