569 Topics

Member Avatar for
Member Avatar for mattitude

So far today has been one of those days where I can't get anything to work. For the past three hours, I have been trying to require tmail library, and trying to connect to my mail server with imap. Here is a brief session illustrating my frustration. [CODE]irb(main):001:0> require 'net/smtp' …

Member Avatar for tiger86
0
295
Member Avatar for geezus

i went to college to be an engineer, came out 6 years later with a degree in discrete mathematics, & have since worked as a software developer in a corporate IT shop. i'm considering retooling once again, this time towards something like what i suppose people mean by industrial engineering. …

Member Avatar for sukda
0
217
Member Avatar for mattitude

I have a ruby program that is supposed to send e-mails, and the exact code worked before, but won't work now. Can anyone help me understand why? Here's the code: [CODE] STDOUT.sync = true require 'net/smtp' require 'rubygems' require 'hpricot' require 'open-uri' Net::SMTP.start('smtp-server.cfl.rr.com', 25) do |smtp| smtp.open_message_stream('MBECK88@cfl.rr.com', ['mbeck@knights.ucf.edu']) do |f| …

Member Avatar for tiger86
0
91
Member Avatar for bitsynthesis

Upflickr is a ruby gem that makes it easy to add basic image uploading and organizing functionality to ruby scripts or apps. For installation and usage documentation, please visit the project homepage: [url]http://bitsynthesis.com/upflickr[/url]

0
124
Member Avatar for hawksury

Hi, I am having a problem when trying to restrict the size of the file to a certain size. My aim is to create [U]new files [/U]and [U]each file [/U]of a specific size. I am creating these new files by copying the contents over to these new files from a …

Member Avatar for Zoon
0
96
Member Avatar for Philip435

Hey!! I'm going to try to learn RoR but before i start to do that I'm going to try to learn some Ruby for a better understanding on how RoR is working. I have Java and C++ experience so object oriented programming is nothing new. Ive found many useful tutorials …

Member Avatar for jwenting
0
80
Member Avatar for johndoe444

The following example is taken from GWT tutorial ([url]http://code.google.com/webtoolkit/doc/latest/tutorial/codeclient.html):[/url] [CODE]private void addStock() { final String symbol = newSymbolTextBox.getText().toUpperCase().trim(); newSymbolTextBox.setFocus(true); if (!symbol.matches("^[0-9A-Z\\.]{1,10}$")) { Window.alert("'" + symbol + "' is not a valid symbol."); newSymbolTextBox.selectAll(); return; } if (stocks.contains(symbol)) { newSymbolTextBox.selectAll(); return; } int row = stocksFlexTable.getRowCount(); stocks.add(symbol); stocksFlexTable.setText(row, 0, symbol); Button …

Member Avatar for JamesCherrill
0
103
Member Avatar for johndoe444

I have some web page which contains accented words (in french/italian etc) which I need to parse/extract and display. But the internationalization is not being taken into consideration so crazy characters are being shown. I searched in google for ruby internationalization but came up with rails internationalization. As you know …

Member Avatar for kallin
0
114
Member Avatar for boet

Hi everyone, This is the error I get for this project. Been through the code all day and no problems found, still I get this error: DB access error(You have an error in your SQL syntax;check the manual that corresponds to your MySQL server version for the right syntax to …

Member Avatar for JRM
0
106
Member Avatar for jakx12

Hey ok so im getting this error. no idea why, could you guys help? Controller action - [CODE]def confirm @title = "Confirm" if request.post? confirmation = params[:confirmation] account = Account.find_by_username_and_confirmation_code(params[:confirmation].username, params[:confirmation].code) if !account.nil? account = Account.update_attribute("confirmation_code", "") if account.save flash[:success] = "Congratulations you have now confirmed your email!" redirect_to :action …

0
67
Member Avatar for yumarksman
Member Avatar for khess

Canonical's Ubuntu 10.04 LTS Server Edition features the ideal deployment platform for Linux server workloads and cloud computing Long-term support (LTS) version of popular server operating system generally available on 29 April. [B]LONDON, April 27, 2010:[/B] Canonical today announced the upcoming release of Ubuntu 10.04 LTS Server Edition which includes …

0
176
Member Avatar for sunaruna84

Hi friends I am new for the ruby language.I need to convert the yml file into csv file format by using ruby. I am using the Ruby mine2.0.1 and got the conversion script from this link: [URL="http://github.com/tokland/yaml2csv/blob/master/yaml2csv_conv.rb"]http://github.com/tokland/yaml2csv/blob/master/yaml2csv_conv.rb[/URL] i had implemented the script in ruby mine 2.0.1 but is not wotking. …

Member Avatar for sunaruna84
0
346
Member Avatar for bharatk

Hello I have a rails application where I have to subtract 2 time stamps and display the result on the webpage I have used the following sql statement and I am getting the results. [CODE]select (julianday(resolutions.created_at)-julianday(tickets.created_at))*24 from tickets,resolutions[/CODE] the value of tickets.created_at is 2010-04-05 18:59:02 which is a time stamp …

Member Avatar for bharatk
0
203
Member Avatar for adammaarsh

A long time ago I used to do website development using ColdFusion and MS SQL. I still do website stuff for fun and occasionally for contract work. I feel that the CF platform is antiquated and I'm looking to switch to something else. I heard Ruby is pretty cool. Would …

Member Avatar for arrgh
-1
129
Member Avatar for hawksury

Hi, I actually want to copy the contents of all files that is in a particular directory into a new directory.The new files should be of a specific size (2MB)and each with a new name (randomly assigned). My Current Code looks, testdir = "K:/test" # Iterating over each entry Dir.entries(testdir).each …

Member Avatar for hawksury
0
141
Member Avatar for johndoe444

1. What is the difference between the system and exec family of functions? 2. I want to collect the output of the call from the system functions say. Say I execute this system("date"); Now say I don't want it to display the output rather it give the output as an …

Member Avatar for aspire1
0
88
Member Avatar for johndoe444

from wikipedia: 1. [CODE]find . -name "*.foo" -print0 | xargs -0 grep bar[/CODE] The above command uses GNU specific extensions to find and xargs to separate filenames using the null character; What is the null character? What is the significance of "separate filenames using the null character;"? why should we …

Member Avatar for nezachem
0
158
Member Avatar for Excizted

Hi. I'm just trying out Ruby on Rails, and I'm trying to create some application that takes a hostname from the user and then checks if it is connectible through Net::SSH and if it is, it should check if a file is present. Quite simple, and I also almost reached …

Member Avatar for Excizted
0
186
Member Avatar for rubyonrails

I have deployed a <URL SNIPPED>rails application on shared hosting server. FYI I am using passenger with apache2 module. But It gives an error.

Member Avatar for sourcebits
0
146
Member Avatar for Japus

Hello I'm trying to make some kind of a web interface for my server using Ruby and CGI in it. All runs on an Apache2 server. I can list all the files in a directory but I can't download them. I list all the files using the Dir[**/*.*] command to …

0
40
Member Avatar for johndoe444

I have wrote this following code to output aphostrophe (code 39 for utf-8): test_utf8.rb: puts "It\39s a wonderful life" then ran it using: ruby test_utf8.rb > utf8.txt While opening in gedit it shows a box corresponding to \39. While opening in open office, it asks which encoding and after selecting …

Member Avatar for johndoe444
0
75
Member Avatar for johndoe444

Hi, I wrote a ruby code that writes to a file: open('file.txt', 'w') {|file| file.write(arr.join("\n")) } when I try to get the number of line counts wc -l file.txt I get the count as 49 instead of 50. How to overcome this? My file might not have a new line …

Member Avatar for cfajohnson
0
107
Member Avatar for frida.kiriakos

hello, i want to run a ruby on rails application through apache web server via phusion passenger, i followed everything written in the guide and every guide and im still having a problem i really could use help, i spent two days on it and i am getting frustrated, when …

0
125
Member Avatar for automata

Please excuse me for posting this question here as I did not find any other place. I am looking for project management tool in .NET which is open source (comes with source code for extension/customization). I googled found few open source project mangement tools like: 1. Redmine but it has …

Member Avatar for kvprajapati
0
130
Member Avatar for colwem

I'm definitely a noob to rails so sorry if this is trivial. I have tables with associations on them. The associations are supposed to add methods to my models like model.others and model.others= and so on but when I try to use them I get errors like the following. NoMethodError: …

Member Avatar for colwem
0
169
Member Avatar for amithasija

hello members how r u another query for u people, can any body help me in sending sms through code.any kind of help will be highly appreciated...

Member Avatar for tiger86
-1
680
Member Avatar for danibootstrap

Hi, I am new to ruby and I want to write code which makes shared memory and writes to it.Similar to the C code here: [CODE=c]void main(int argc, char* argv[]) { HANDLE mappedFile = 0; int oneSecond = 1000; char* shared = NULL; HANDLE eventHnd; eventHnd = CreateEvent(NULL, FALSE, FALSE, …

Member Avatar for tiger86
0
267
Member Avatar for ignusb

Hello, I've written a basic class to help check on the status of various services, to be used in hopefully an extensible and easily modified manner.. I'm just a ruby/scripting/coding newbie, using tutorials online to learn from and working it all out as I go. I was hoping to get …

Member Avatar for tiger86
0
89
Member Avatar for lllllIllIlllI

Well, i am doing this because i think i should introduce finally. So i am Paul Thompson 16 years old I live in Newcastle Australia Probably the coolest thing that has happened in my life is that i lived on a boat for 3 years sailing up and down the …

Member Avatar for BestJewSinceJC
0
293
Member Avatar for xXReiichiXx

(sorry my bad english) I am a beginner and in an exercise the one who run the program must insert his birth date and the program must says if today is his birthday or not. In C to do this I can do (I jump a part of code): [code=c]printf("Insert …

Member Avatar for xml_looser
0
114
Member Avatar for andreski

Hi: Among the following technologies what you consider is the best tool for a developer to achieve more and best payed works? php - css - wordpress - .NET - ActionScript - ajax - android - asterisk - C# - c++ - css - Delphi - drupal - flash - …

Member Avatar for Salem
0
108
Member Avatar for dayt3

I'm working on comp. science 101 work and I have 4 methods left to do which I can't figure out and I've been trying for hours. Very elementary but difficult for smoeone new to computers and Ruby. For example: I need to write a method called 'diff' which accepts 2 …

Member Avatar for dayt3
0
127
Member Avatar for devangjani

Hi Guys , I m developing one website for my LAN and working on Linux. I m getting Following Errors after loading or refreshing my page:: [B][Tue Feb 23 16:58:51 2010] [error] [client 192.168.2.147] PHP Notice: Undefined index: parent_url in /var/www/html/pastebin/layout.php on line 320, referer: [url]http://pastebin.geodesic.net/2[/url] [Tue Feb 23 16:58:51 …

Member Avatar for nav33n
0
467
Member Avatar for plasante

I live in Canada and I've been developing web applications with Struts for 5 years and Ruby on Rails for 2 years. I like tennis and Roger Federer is my favorite player. I listen to John Mellencamp, U2, the Beatles, and the french singers in my province. My favorite book …

0
13
Member Avatar for xylude

I need to replicate the encryption shown below: [code] def self.encrypt(password, salt) Digest::SHA1.hexdigest("--#{salt}--#{password}--") end [/code] I am trying something like this to no avail: [code] $salt = 'edc93eaf81aa1d64368c35213f192bb4ea81d20d'; $password = $_POST['input']; $password = sha1($salt.$password); echo "password sha1 value: " . $password; [/code]

Member Avatar for ruby_rocks
0
551
Member Avatar for jimmythechip

Ok, So rdoc avoids over-documentation by deciding that some modules & functions (e.g. private methods) are best left ignored and undocumented. Kindly rdoc lets you override some of this helpfulness by passing the '--all' and/or '--promiscuous' at run-time. Great. However, there are still some modules that are left undocumented for …

Member Avatar for tiger86
0
105
Member Avatar for higgo5

Dear friends- Short and sweet. How does a guy with no money and no real technical skill, start a website he is confident will break some ground? Cross my heart and hope to die. Chris

Member Avatar for tiger86
0
67
Member Avatar for czar82

I would like to use sarl3 [url]http://griff.sourceforge.net/sarl3_compiling.html[/url] for my degree thesis, but i had some problem in installing it. I'm using arch linux, i installed all the required package, but i get some error with ruby (i tried with ruby 1.8 and 1.9, but the error is still there). first …

0
88
Member Avatar for drewpark88

Hey Everyone, My name is Drew Parker I have been coding for 1 1/2 years and I am self taught. I am always learning something new and love to see what is possible. My favorite coding languages are: XHTML CSS Javascript PHP (Combined with some MYSQL) I hope to learn …

0
60
Member Avatar for justsawyer

I need to know how to make a ruby script to just move files in downloads or to auto find them and move them to windows/cursors to install them then It would be nice if I could make the cursor set the default mouse cursor so any help?

Member Avatar for b72
0
58
Member Avatar for thobanco

Site is working fine in mozilla and safari but not in Internet explorer. I am also trying to figure out how to put a picture next to the name on the other side. [B]Below is the css and the xhtml codes[/B] [B]CSS [/B][CODE]/* layoutstyles.css */ /* Background color of box …

Member Avatar for servicecycle09
0
211
Member Avatar for flyboarder

I am building an AJAX web application in ExtJS im not sure what I should use for the back-end of my application. Can someone help with a comparison of PHP vs. Ruby vs. Jaxer?

Member Avatar for chrishea
0
127
Member Avatar for Jayakrishnan_gk

Hi. I am planning to create a software for Customer Relationship Management (CRM). Somebody please suggest a robust development framework that is open source, easy to use, scalable, easy to make web based application. I have a lot of tables in my database. And speed is very important. I was …

Member Avatar for Jayakrishnan_gk
0
73
Member Avatar for rahul8590

i was going through many ruby books and found this amazing text editing code (its just 17 lines ) provided u use Shoes toolkit. The code is working fine with no errors . but its only able to read (open) and input file but not save the text u wrote …

0
156
Member Avatar for SmashM

Hi, I just finished learning basic OO concepts and java programming. I know some HTML and have made very basic webpages. I'd like to tackle something like Ruby then ruby on rails. I've also taken a class in databases and mySQL. Do you think it's ok for my level to …

Member Avatar for stephen84s
0
113
Member Avatar for swolll

I know C++, but want to be able to code web sites, web applications, and maybe iPhone apps. I've heard that PHP and ruby on rails are good to learn. I also know there is an iPhone app language/SDK I could get my hands on. What languages and in what …

Member Avatar for OmniX
0
44
Member Avatar for Kruptein

I do php coding for some time and want to learn something new. After some researsh I ended up with 2 languages/frameworks but I can't choose between them. I'm a python programmer so python Django might be easier to start with. But I don't know a well-known website which is …

Member Avatar for Kruptein
0
529
Member Avatar for dereknewland

I'd like to jump into the wonderful world of programming. In the past I took some programming courses in school. These included C, C++, and Python. And I started to learn PHP about a year ago, and I've also played around with Ruby on Rails. Unfortunately I never did much …

Member Avatar for JohnSPT
0
344
Member Avatar for glenlivet

I'm pretty new to java but have lots of coding experience with ruby, c and gui with gtk2 and qt. I'm trying to understand (and get rid of) the dead space to the far left portion of the window. The split panes have white backgrounds to separate it from the …

Member Avatar for glenlivet
0
188

The End.