Displaying 20 results from an estimated 55 matches for "beautifulpixel".
2006 May 03
1
nil.strip error While trying to post xml data over https.
...e
so far seems to generate a very non-helpful error in the guts of the
net/http library. This code produces a NoMethodError for nil.strip"
require ''net/http''
require ''net/https''
require ''uri''
url = URI.parse(''www.beautifulpixel.com/index.html'')
connection = Net::HTTP.new(url.host, 443)
connection.use_ssl = true
#This is the line that causes an error
response = connection.request(Net::HTTP::Post.new(url.path,
request_body))
#The error occured while evaluating nil.strip
# from c:/ruby/lib/...
2006 Apr 27
7
SuperImage plugin
Greetings all,
This is the first release of the SuperImage plugin. The idea is you
upload images to the database, and then pull them out at any size you
want. Combine this with caching and it will stay light and fast.
More info and instructions are here:
http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy
svn: http://beautifulpixel.textdriven.com/svn/plugins/super_image/
That''s all well and good and useable, but there are 2 things I would
like to improve. I am stuck on them, however.
First, the...
2006 Apr 26
8
script/server lighttpd on Windows
Has anyone been able to get script/server to successfully use lighttpd
on a Windows box? When I try to start the server I get:
PROBLEM: Lighttpd is not available on your system (or not in your path)
So then I add "C:\lighttpd\sbin" to the path for the console session,
and it still fails with the same error.
If anyone has some success with this I sure would like to know. Webrick
2006 Aug 04
1
All Fixtures plugin
...Once you have a large number of table, manually managing the
fixtures for every single test stub can be quite tedious.
Use as follows
class BlogArticleTest < Test::Unit::TestCase
all_fixtures
def test_foo
...
end
end
Couldn''t be easier. More info here:
http://beautifulpixel.com/articles/2006/08/04/all-fixtures-plugin
It works by simply scanning the fixtures directory for *.yml files, and
converts it to an array of symbols that gets passed to the fixtures
method. Performance seems identical with and without.
Hope it makes someone life easier.
--
Posted via http:...
2006 Apr 21
8
Stop Models auto loading
Is there a way to stop Rails automatically trying to load models?
Cheers,
Nicholas
2006 Jun 09
11
Adding routes from plugin
Can anyone tell me how to add routes from plugin? I know it is possible
because of this changeset: http://dev.rubyonrails.org/changeset/2967 but
i didn''t find way how to do it.
retro
--
Posted via http://www.ruby-forum.com/.
2006 Jun 01
5
flash not clearing after display
(Rails 1.1, Ruby 1.8.4)
In the layout for one of my controllers, I have a tag to display a flash
message (copied from AWDWR), like this:
<div id="data">
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<%= @content_for_layout %>
</div>
If the
2006 Aug 03
2
Including ALL fixtures for a test
I am running into some issues with my functional tests because they need
info from almost every single table in the database. I have long
laundry lists of fixture names to include on these test files and then I
have to troubleshooot bizarre test failures because of a fixture that
was not included.
So is there a way to simply include all fixtures in a test? Something
like:
fixtures :all
2006 Jun 07
7
file_column image versions
does anyone know much about resizing different versions of images with
file_column? i tried it and everything works fine, but my question is
can you do more than just make sizes with a version of image? i''m
working on a photo album and i would like to resize the image to a
medium size, but create a thumbnail as well and crop anything left to
make the thumbnail a perfect square.
--
2006 Jun 07
4
Edge rails and routes
I have a route that works under 1.1.2 but does not work under edge
rails.
route.wishlist ''wishlist/:id'',
:action => ''show_wishlist'',
:id => nil,
:requirements => {:id => /\d*/}
This worked great without an :id, but under edge rails when I call
wishlist_url with no parameters I get:
"Exception: can''t convert nil into
2006 May 09
9
Working around the year 2038 bug in Ruby''s Time class?
I would have never imagined that I''d be bitten by the Y2038 bug
someday... but it just happened and, trust me, it hurts!
I have to deal with a database containing datetime fields with dates
up to 2050 and more. ActiveRecord raises an exception because Ruby''s
Time class implementation.
Besides running Ruby on a 64-bit platform, what can be done to avoid that?
Does a
2006 Jun 07
6
I want to stick my models in a module
I''ve got enough models now that I''d like to separate them into
modules. For example, I have the class Player that I want to stick in
the Trainer module. I''ve changed the definition to
class Trainer::Player
I''ve created a models/trainer dir, test/unit/trainer, and
test/fixtures/trainer. Change the PlayerTest class to be
Trainer::PlayerTest. I get the
2006 Apr 22
7
Instance variables versus local variables
This novice coder roughly understands the difference between instance
and local variables thanks to David Black''s excellent book, but I''m
still unclear as to when and why a either is more desirable to use.
In general, I use instance variables in my controller and local in my
views, but I''m not sure as to why or if this is correct.
Thanks
Joe Kowalski
2006 Jul 28
2
RJS + Internet Explorer
Hello all:
I am using RJS templates to replace html on my pages. It works great
in FF but I get an RJS error in Internet Explorer. I believe I had it
working previously in IE, but for some reason it''s not working now.
Any help would be greatly appreciated!
Thanks,
--
Randy Schmidt
x@altorg.com
267.334.6833
2006 Jul 31
2
**NewBIE** CSS reference in view pages...
I''m a newbie...I have this CSS file created STYLES.CSS which i want to
cll into every page under views...how can i do that...<link> tag doesn''t
seem to be working here...any help is greatly appreciated...thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jun 07
0
Create new Image Plugin?
...n this later. But
in the mean time I wonder if anybody else have some thoughts about
this, and maybe some time to actually start working on/ make it?
(And besides I''m not an such experienced and clever programmer as the most of
the other people are :-)).
- Henrik
Btw:
SuperImage:
http://beautifulpixel.textdriven.com/articles/2006/04/27/superimage-plugin-making-resizeable-uploaded-images-easy
FileColumn: http://www.kanthak.net/opensource/file_column/
2006 Jun 08
2
how to add plugin to ActiveRecord
I''m trying to set a date field''s day to the last day of the month before
I save it. I can do this successfully now using this code:
class Account < ActiveRecord::Base
def before_save
self.exp_date = last_day_of_month(self.exp_date)
end
# Returns a Date object set to the last day of the current month
def last_day_of_month(date = Date.today)
next_month_str
2006 Jun 13
2
Magic field ''Status''
I can''t find any documentation on the ''status'' magic field. It''s listed on
the MagicNumbers wiki entry, but not explained <
http://wiki.rubyonrails.org/rails/pages/MagicFieldNames>. Is it reserved for
later use?
Thanks,
Doug
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jun 27
3
Easy question: Where do I put sweepers?
Trying to implement some sweepers to clean up my caching, but where do I
put them?
"ruby script/generate sweeeper" does nothing.
--
Posted via http://www.ruby-forum.com/.
2006 May 05
2
newbie ruby string match question
All,
I want to know in the Application.rb controller if I''m on the login screen.
When I''m on the page I care about the controller variable is
"#<ActiveRbac::UserController:0x408b3d6c>"
So I want something like:
if controller contains ActiveRbac::UserController
What is the right syntax for the above?
Thanks
Greg
--
Greg Freemyer
The Norcross Group
Forensics