Displaying 20 results from an estimated 800 matches similar to: "UTF8 Regex in 1.2.x"
2010 May 16
1
Reading JPEG file, converting to HEX
Colleagues,
I am using R to assemble RTF documents (which are plain text). I need to embed a JPEG graphic that was created with R. I presume that the steps need to be:
a. read the file into R
b. convert the object to HEX format
c. write the converted object to a textfile.
If I read the file into R using readLines, I get the following (only the first 5 lines shown):
> >
2007 Nov 29
27
Strip & Sanitize BEFORE saving data
So I''ve googled my brains out, and I see a lot of talk about
TextHelper for views, but next to no discussion about cleaning text
_before_ it is saved.
I figured this had to be asked 4 zillion times, but I''m not finding
anything concrete/obvious.
Using h is fine as a safety catch, but that alone is not acceptable
to me as the means of diffusing the impact of HTML or JS
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web
Development with Rails. In interation E1
NoMethodError in Admin#checkout
Showing app/views/admin/checkout.rhtml where line #12 raised:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.include?
Extracted source (around line #12):
2007 Oct 22
1
Help! bad cyrillic font rendering
Good Day!
I have a problem with rendering of cyrillic font in one window. Everything is fine in others windows of the same program.
I've tried to copy fonts from Windows, where this program works, but it doesn't help.
LANG=ru_RU.UTF-8
I runned wine with "WINEDEBUG=trace+font,trace+dialog":
...
trace:font:CreateFontIndirectW (-21 0 0 0 31 3 2 1 204) L"Courier New" Bold ?
2001 Mar 28
1
UTF-8 patch for Samba 2.0.7
See description in the attached patch.
-------------- next part --------------
This quick hack adds primitive support of UTF-8 as a server 'character
set' to Samba 2.0.7. All file, share and user names are stored on server
in UTF-8, and translated into client code page (not UCS2) on the fly.
Additionally, server string conversion is added. Tested with Chinese and
Russian Windows clients.
2007 Dec 17
2
Many domain - one rails application
If I have many domains and one rails application, how can I redirect to
conrollers by domain?
Ex. "domain.com" go to controller "/com", "domain.net" go to controller
"/net" and "other.org" go to "/other"
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data
entered via HTML forms. Data saved to database, entered in to PDF
file, PDF file with data archived, and then distributed va email and/
or download.
The languuage I previous did all my web work in, Lasso, had this
stuff built in, but it appears not to be so with Ruby or Rails.
The latest info I can find on this is a year
2009 Sep 30
2
R 2.9.2 crashes when sorting latin1-encoded strings
Hi everyone!
I think I stumbled over a bug in the latest R 2.9.2 patched for OS X:
> R version 2.9.2 Patched (2009-09-24 r49861)
> i386-apple-darwin9.8.0
When I try to sort latin1-encoded character vectors, R sometimes
crashes with a segmentation fault. I'm running OS X 10.5.8 and have
observed this behaviour both with the i386 and x86_64 builds, in the
R.app GUI as well as on
2007 Nov 16
4
Newb - variable returns # sign?
Hi Gurus-
I want to return the variety from the species table based on the
active record link to inventory table
class Species < ActiveRecord::Base
has_many :inventories
end
class Inventory < ActiveRecord::Base
belongs_to :species (this is the singular and the plural, so that''s
OK)
end
My inventory_controller looks like:
def show
@inventory =
2007 Nov 23
2
Capture IP Address to Sessions
What I''d like to do:
Capture the IP addresses of the folks visiting a web site in the
Sessions table.
What needs to be in place (code, model, controller, etc.), where does
it need to go (application controller?), how best to set up the
Sessions table?
Appreciate a noob-friendly outline of what needs to be done.
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You
2007 Nov 16
3
Route Information
Is there a method to return a hash of the route configuration based on
a path?
For example:
magic_method(''/my_controller/my_action/my_id'')
=>
{:controller => ''my_controller'', :action => ''my_action'', :id =>
''my_id''}
Thanks!
Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message
2012 Mar 28
1
Transferring a dataset from WINXP to Mac - problems with umlauts
Dear R-Help,
is it possible to correctly display umlauts in a dataset, which has been created under WINXP, on a Mac-system?
This is the problem:
I have imported a German MS-Access database into R 2.14.1 by using RODBC on a WINXP-System. It runs with a Latin-1 encoding (codepage 1252). However, most of the work is done with a Mac (UTF-8 encoding) and the R-dataset has been transferred to the MAC.
2007 Nov 14
6
a few add_index questions..
on previous apps i hadn''t really worried much about adding foreign key
indexes on my tables just because they''ve been fairly small and i
didn''t really think i needed them.
well, i''m working on something now that has the potential to have a
lot more data, and a lot more foreign keys.
so i have 3 tables... users, projects, and tasks.. should i be using
add_index
2007 Nov 27
2
rendering this to the html page
hi guys,
i have develop some coding like login forms and registration forms in
normal ROR way. they are working 100% ok as i want.
bt not i have created the html interface to my page and find dificult to
add the ROR components that i have created to the newly design web
interface.
For a example.
in the in my HTML file i have a allocate separate area(in the top right
hand corner of the page.)
2008 Jun 07
3
DRY validates_format_of?
In a model I have following validates_format_of. Is there an easy way to
DRY this up? It seems to be rather repetitive.
validates_format_of :expiration_date, :with =>
/^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/
validates_format_of :activation_date, :with =>
/^[0-9]{4}[-][0-9]{2}[-][0-9]{2}$/
validates_format_of :some_other_date, :with =>
2010 Jun 11
5
Issues creating tables in mysql tests
Hello,
I''m a beginner, so any hints are appreciated; I''m still trying to find my
way around Rails code. For a bug I''ve found I need to create a table called
"values" so I added this:
create_table :values do |t|
t.integer :value
end
among the other table creations in
activerecord/test/cases/migration_test.rb. Is that ok? But then, when I run
the tests
2013 Apr 29
1
cannot compile R on Cray XE6 HLRS HERMIT
Dear All,
I am trying to compile R-3.0 on Cray xe6 (HLRS) HERMIT, no success so far.
Here is my experience:
I use this to configure and make R:
CC="cc" \
CXX="CC" \
F77="ftn" \
FC="ftn" \
CPPFLAGS="-I$PREFIX/include" \
LDFLAGS="-L$PREFIX/lib${LIBDIRSUFFIX}" \
./configure --prefix=$PREFIX \
--exec-prefix=$PREFIX \
--bindir=$PREFIX/bin \
2011 Mar 25
4
how to solve ActiveRecord::ConnectionNotEstablished
*im using mysql as a database*
*
*
*im getting the error which says that *
ActiveRecord::ConnectionNotEstablished in GreetingsController#index
ActiveRecord::ConnectionNotEstablished
Rails.root: C:/railsdev/hello
Application Trace <http://localhost:3000/#> | Framework Trace<http://localhost:3000/#>
| Full Trace <http://localhost:3000/#>
2019 Jul 29
0
Problems with replication in the Samba 4
Hi,
Please, Would anyone help me?
Regards,
M?rcio Bacci
Em s?b, 27 de jul de 2019 ?s 16:13, Marcio Demetrio Bacci <
marciobacci at gmail.com> escreveu:
> Hi,
>
> I noticed that my Samba 4 DC isn't OK, because the are differences between
> the data storaged int he Schema on my Windows Server 2008 (isn't R2) DC and
> Samba 4 DC.
>
> This way, I performed
2019 Jul 27
2
Problems with replication in the Samba 4
Hi,
I noticed that my Samba 4 DC isn't OK, because the are differences between
the data storaged int he Schema on my Windows Server 2008 (isn't R2) DC and
Samba 4 DC.
This way, I performed several tests on my servers as shown below.
Follow the results of command repadmin in the Windows Server 2008:
C:\Windows\system32>repadmin /showreps /verbose
Default-First-Site-Name\WIN-DC1