Description:
The Ruby dynamic OO programming language.
|
|
|
French sentences appearing weird in Rails Website
|
| |
I have a Rails app. One of my clients is importing French Text which
is appearing weirdly. Check below example:
1. str = "--- \nFrench: \"3. Combien de r\\xC3\\xA9gions y a-t-il
au Cameroon?\"\nEnglish: 3. How many regions are there in Cameroon?\n"
Can someone assist please?
I am thinking on following lines:... more »
|
|
Rmre 0.0.7 released
|
| |
Rmre version 0.0.6 has been released! Rmre is utility gem for creating Ruby on Rails, at the moment only ActiveRecord, models for legacy databases. Besides creating all models it sets proper table name and primary key if tables and columns naming doesn't follow Rails convention. It also tries to read... more »
|
|
RubyWart: Missing Name Errors (AGAIN!)
|
| |
Same bowel movement, different cess pool!
Can someone please explain the logic of having undefined symbols default to random values instead of throwing a NameError? Because this is making me F'ING NUTS PEOPLE!!!!
============================== ==============================
Code Sample
============================== ==============================... more »
|
|
getting end of string
|
| |
Hi,
I have a string s and I'm only interested in everything in it after the
first character.
So at the moment I do
...
Just putting 128 as the length cause that's probably bigger than
anything I'll ever enter into my tool. But there's gotta be a better way
of doing that except going to Regexps.... more »
|
|
when I read gzipped response from web-servers, GzipReader returns sometimes 'invalid compressed data -- crc error'
|
| |
Hi, all. to decode responses from web-servers, I am using GzipReader class to read it. HEADERS = {
'Accept-Encoding' => 'gzip,deflate',
'Accept-Charset' => 'ISO-8859-1,utf-8;q=0.7,*;q=0. 7',
'Keep-Alive' => '300',
'Connection' => 'keep-alive',
'Cache-Control' => 'max-age=0'... more »
|
|
Common way to read/write to/from TCPSocket
|
| |
* yspro <2ys....@gmail.com> (2013-03-29) schrieb:
...
Your code works with me after i applied Robert's changes and I commented
out the User-Agent line.
They all (haven't tried facebook) redirect with 301 code, there's
nothing wrong with that. If you plan to do a full http-client than good
luck, its quite a lot of work.... more »
|
|
Common way to read/write to/from TCPSocket
|
| |
...
Try to insert a sock.close_write here.
...
You do not need that loop because sock.read will read until EOF.
...
Why don't you use net/http?
Cheers
robert
-- remember.guy do |as, often| as.you_can - without end
[link]
|
|
Need help with something very simple
|
| |
Hi,
1.9.3p194 :005 > array = [ 1, 2]
=> [1, 2] 1.9.3p194 :007 > puts "Array when output in \"\" is #{array}"
Array when output in "" is [1, 2]
=> nil Can I do something, so that the output is:
Array when output in "" is (1, 2)
If you want to know why I want to do this, please read further:... more »
|
|
Support needed for eric5 development
|
| |
Hello,
eric5 is an IDE for Ruby and Python development. Unfortunately the Ruby debugger broke with Ruby 1.9. Due to the fact, that I am not good in Ruby programming I am seeking a Ruby specialist willing to fix the eric5 Ruby debugger backend. More info about eric can be found on the eric web site... more »
|
|
|