search for: upcase

Displaying 20 results from an estimated 161 matches for "upcase".

Did you mean: ucase
2006 Apr 18
4
upcase special chars (åäöü...)?
Hey guys How do you upcase the special characters (????)? I use latin-1 and not utf-8. How did you solve this problem? (nice ruby way or ugly hack doesnt matter) Daniel -- Posted via http://www.ruby-forum.com/.
2005 Dec 20
2
Modifying data before update or save
Hi, I''d like to upcase a variable before it is saved, but I''m not sure how to access the incoming param or where this work should be performed: In my update method, I have: @device = Device.find(params[:id]) params[:device[macaddress]].upcase <-- problem code if @device.update_attributes(params[:de...
2006 Jun 29
3
String: first character upcase?
Hi all Is there a function that makes the first character of a given string upcase? first_to_upper "canada" Thanks for help. :-) Joshua -- Posted via http://www.ruby-forum.com/.
2009 Aug 25
3
[LLVMdev] Patch: Compiling LLVM in Sparc
Instead of just upcasing them, can we add prefix ARCH_? --Venkatraman On Tue, Aug 25, 2009 at 2:36 AM, Eric Christopher<echristo at apple.com> wrote: > > On Aug 25, 2009, at 12:32 AM, Daniel Dunbar wrote: > >> Hi, >> >> I think I should rename the constants to be a little less likely to >> collide. I think just upcasing them might be good enough? > >
2010 May 08
19
mb_chars.upcase and Ruby 1.9.2
I''m testing ruby-head through rvm but can''t get ''ação''.mb_chars.upcase == ''AÇÃO''... I get ''AçãO'' instead... This happens both for Rails 2.3.5 and Rails 3 beta 3... How can I get upcase to work correctly? Thanks in advance, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rail...
2011 Oct 12
1
scopes related question
Hello, Have a question related scope definition. I need to define a scope based on related model attribute values like this. class Product < ActiveRecord::Base belongs_to :currency scope :with_currency, lambda { |currency| unless currency.to_s.upcase == ''ALL'' # here I need to define a scope that would test for currency.char_code to match a passed value # something like.. This is where I need help where("currency.char_code = ?", currency.to_s.upcase) end } end class Currency < ActiveRecord::Base att...
2008 Jul 09
0
Regarding `creating lame upcase/lowcase table' message
Hi all, I wanted to turn off the messages `creating lame upcase table' or `creating lame upcase table' during getting files from a shared directory using smbclient command. I google'd around and could not get pointers to this. Can I do that? If so, how? Thanks & Regards, Ramprasad B
2010 Aug 18
2
[PATCH] Don't show vlan interfaces in NIC host management
...rb @@ -393,13 +393,18 @@ class HostRegister < Qmf::ConsoleHandler # if we have a match, then update the database and remove # the received data to avoid creating a dupe later @logger.info "Searching for existing record for: #{detail.macaddr.upcase} in host #{host_qmf.hostname}" - if detail.macaddr.upcase == nic.mac + # if detail.interface ~ /eth.*\..*/ || detail.interface ~ /vnet.*/ + if detail.interface =~ /eth\d+\.\d+/ || detail.interface =~ /vnet\d+/ + @logger.info "Don't manage #{detail.interface.inspec...
2008 Jul 10
6
Uppercase all row columns
Hi. I have to convert the contents of all columns to uppercase before creating a row. Is there an easy way to accomplish this so I don''t have to go one column at a time and upcase! it? Thanks. Pepe --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe fro...
2010 May 10
6
feedback on a few ActiveSupport::Multibyte patches
Hi all, In response to Rodrigo Rosas''s message about mb_chars.upcase not giving the expected result on 1.9, I''ve done some work in a fork to make String#mb_chars always return an instance of a proxy class, both with Ruby 1.8 and Ruby 1.9. The end result of the patch is (hopefully) to make Rails'' multibyte functionality behave the same way in 1.8.7...
2009 Aug 25
0
[LLVMdev] Patch: Compiling LLVM in Sparc
I would prefer not to; they already live in a protected namespace, so there is no need to mangle them except to protect them from exuberant preprocessor defines, and this would be slightly out of style with other public uses of enumerations in LLVM. - Daniel On Tue, Aug 25, 2009 at 7:49 AM, Venkatraman Govindaraju<venkatra at cs.wisc.edu> wrote: > Instead of just upcasing them, can we
2006 Apr 07
5
Are there any Czech people using Rails?
Hello, how do you solve the problems with czech characters? Do you use unicode or ISO-8859-2/WIN1250? How do use methods like String:upcase etc. that dont use czech characters? I would appreciate any hints for this. Thanks, David Marko -- Posted via http://www.ruby-forum.com/.
2009 Aug 25
4
[LLVMdev] Patch: Compiling LLVM in Sparc
Hi, I think I should rename the constants to be a little less likely to collide. I think just upcasing them might be good enough? - Daniel On Tue, Aug 25, 2009 at 12:20 AM, Duncan Sands<baldrick at free.fr> wrote: > Hi Venkatraman, > >>  The current version in SVN fails to compile in sparc machines since >> gcc defines "sparc" as a macro in sparc machines that
2007 Jun 29
0
RE: Samba testparm gives error in Solaris 10
..., I get the following error. ---------------------- Load smb config files from /etc/sfw/smb.conf Processing section "[homes]" Processing section "[printers]" Processing section "[storelib_dev]" Processing section "[root]" map_file: Failed to load /usr/sfw/lib/upcase.dat - No such file or directory map_file: Failed to load /usr/sfw/lib/lowcase.dat - No such file or directory creating lame upcase table creating lame lowcase table map_file: Failed to load /usr/sfw/lib/valid.dat - No such file or directory creating default valid table Loaded services file OK. Serv...
2006 Mar 14
9
Can you better this String acronym method?
Can you better this String acronym method? def acronym name letters=[] name.each_char {|char| letters<<char if char[0]>=65 and char[0]<=90} acronym = letters.join " " end chris -- Posted via http://www.ruby-forum.com/.
2007 Nov 18
2
Variable inside of another variable
...inside of another variable name: I''ve tried like this: <div class="form_row"> <label for="<%= field %>"><%= field_title || field.humanize %>:</ label> <%= form.text_field field, :size => User::field.upcase_SIZE, :maxlength => User::field.upcase_MAX_LENGTH %> </div> like this: <div class="form_row"> <label for="<%= field %>"><%= field_title || field.humanize %>:</ label> <%= form.text_field field,...
2002 Jan 01
0
messaging problems
I'm having trouble sending messages to my Win2000 and XP clients. Everything worked with Samba 2.2.2, and now with Samba 3.0 (CVS) it fails. Below are two trails, the first works (sending to the Samba server) and the second fails. (Also, how do I get rid of the upcase.dat, lowcase.dat, and valid.dat errors?) Thanks!! -Paul penguin# echo "TEST" | smbclient -M penguin incorrect size for /usr/local/samba/lib/upcase.dat - got 0 expected 131072 incorrect size for /usr/local/samba/lib/lowcase.dat - got 0 expected 131072 creating lame upcase table creating...
2007 Nov 02
11
xrcise tutorial, undefined method ''upper_bt''
...9.2-i386-mswin32/lib/wx/classes/app.rb:16:in `run'' from tutorial.rb:27 The relevant ruby code looks like. # Inherit from the generated base class and set up event handlers class CaseChangeFrame < TextFrameBase def initialize super evt_button(upper_bt) { text_box.upcase! } evt_button(lower_bt) { text_box.downcase! } end end I have triple checked that I have given the button widget an Id name of upper_bt in DialogBlocks Has anyone come across this before? Thanks Tim _______________________________________________ wxruby-users mailing list wxruby-users...
2013 Jun 10
5
Does stdlib break the regsubst function?
Hi all, We are currently using the regsubst function of Puppet to generate some information out of our hostnames (customer, environment, and so.). The manifest is running fine since months. 7: $customer = regsubst($::fqdn, ''(^[^-]*)-[^-]*.*'', "\\1") 8: $environment = regsubst($::fqdn, ''^[^-]*-([^-]*).*'', "\\1") 9: $product =
2016 Mar 10
2
Russian(Cyrilic) names not working in smbclient 4.3.3
We are trying to use Russian(Cyrillic) names in smbclient 4.3.3 but that does not seem to work. Previously we had a problem in 4.0.7 which the location of upcase.dat changed from 3.6.5. In 4.3.3, we don't see it trying to access that file, nor do I believe that file needs to be delivered anymore. Is there a new way to configure the printer to use Russian user names ? Mike