Displaying 20 results from an estimated 10000 matches similar to: "Dynamic Inline CSS"
2007 Oct 25
1
Mocking/Stubbing help with subdomain as account key
My app uses account_location to set up subdomains as account keys. In
my controllers, all my model operations are scoped through the
@current_person object.
The question is: How do I test this with RSpec''s mocking and
stubbing? Basically, I need to test that @current_person.things is
getting the find message and returning @thing. I''ve tried stubbing
and mocking
2007 Jul 28
0
[LLVMdev] Web Site Re-Design
Gabriel McArthur wrote:
> 6. Lastly, and most importantly, I am not a professional web
> designer or graphic artist, so I definitely need some feedback about
> things people don't like/would like to see changed.
First off, the site design looks really nice! It's got that clean
unassuming feeling to it and is very appropriate for LLVM! With that
said, I now begin to nitpick.
2004 Mar 29
2
Problems joining existing domain W2K SP4 and Samba 2.2.8a
Hi all, I seem to be having some weird problems while trying
to add a workstation to an existing domain. Samba 2.2.8a is
running on FreeBSD 4.8-RELEASE-p17 and all the clients have
Windows 2000 Professional with SP4 installed.
This particular workstaion was part of the domain until its
hard drive went under. The drive had to be replaced with a
new one, the OS was installed and now when I try to
2008 Apr 15
0
How to cache dynamic CSS (RCSS)?
Hi,
I''m using this tutorial: http://blog.hasmanythrough.com/2006/3/23/dirt-simple-rcss-templates
to make dynamic CSS files. However I can''t figure out how expire
cached CSS files.
Here''s my code: http://pastie.caboo.se/181021. Most of it is copied
from the tutorial.
Files are cached properly - i.e.
<%= stylesheet_link_tag "main" %> generates
2011 Sep 13
1
Dynamic css files using scss
I''m trying change the value of a scss variable dynamically using rails
3.1.
For example:
In a example.css.scss
$main-color: red;
body {
background-color: $main-color;
color: #333;
font-family: verdana, arial, helvetica, sans-serif;
font-size: 13px;
line-height: 18px; }
And in the model user, I put the field color_prefered. And I want to
change the value of a $main-color
2006 Jan 25
1
Flash CSS issues
I''m have issues in IE6 with my CSS for my flash[:notice] and flash[:error].
My CSS is as follows (basically copied from backpack''s CSS file for
testing purposes):
#Flash {
text-align: left;
border: 1px solid #ccc;
padding: 5px 5px 5px 30px;
font-size: 14px;
margin: 0 auto 12px auto;
margin-right: 7px;
}
.login #Flash {
margin-top: 12px;
font-size:
2005 Aug 19
1
css style fieldWithErrors when using tables
I''ve run across something that I''m not sure how to fix. This is with
MSIE, Firefox doesn''t seem to have the same problem.
When rails displays form fields in error using the css element
fieldWithErrors, and the form field is enclosed in a table data tag,
the entire background of the table data element is set to red instead
of just the border of the form element.
2008 Mar 20
0
Having trouble with a remote-crop-then-resize using attachment fu =(
Basically, I''m trying to crop multiple images out of a remote/original
scene.. Think flickr ''tagging'', only, the pixs in the tagged boxes
become their own unique images.. by way of simulating an upload from
the controller using attachment fu.. can''t quite figure out the
specific method in fu that would allow me to do this.. I''m so near the
edge right
2006 May 02
3
CSS for flash messages
Hello all,
I''m perplexed by the following:
I''ve implemented flash messages in my application.rhtml with:
<% for name in [:notice, :warning, :message] %>
<% if flash[name] %>
<%= "<p id=\"#{name}\" class=\"flash\">#{flash[name]}</p>" %>
<% end %>
<% end %>
I''ve implemented CSS in
2007 Sep 13
1
minimize white space around lattice plot
Dear list,
I'm trying to produce a plot via xyplot with minimal sourounding white
space. However, I cannot find the options in xyplot, ps.options or
wherever which prevents lattice from drawing quite some white space
around my plot. However, this is quite a problem for me as I want to
produce an inset plot inside another lattice-plot. I'm using the panel
function to open a viewport and
2009 Jan 14
1
Histograms: Lines and boxes
Hi folks! I'm trying to get a histogram legend to give me a filled box
and a line. The problem is I keep getting both filled boxes and a line.
How can I get rid of the second box from the code below?
x<-rnorm(1000,mean=0,sd=1)
hist(x, breaks = 50, main="Histogram of x",freq=FALSE,
xlab=" x", ylab="Density",col="lightblue",
2007 Oct 18
1
Lattice fails to draw insets
Hello all lattice experts!
I'm currently trying to plot inset figures in my lattice graphics. The
plot is composed out of two panels and in each panel I want to show an
inset figure which is a closeup of the data in each panel. Thus in each
panel I call xyplot again to plot the inset which I place in a grid
viewport. Nevertheless, once my first inset plot is drawn, lattice
aborts with an
2013 Sep 19
0
Performance problem generating URL for thousands of images, due to hitting HDD for each one
Hi,
I have a model where I''m using Carrierwave to let users upload their
avatars. I have one version for the avatar, cropped to a square called
"cropped".
class User
mount_uploader :avatar, AvatarUploader
end
class AvatarUploader < ImageUploader
version :cropped do
process :crop
end
end
In one of my pages, where I''m listing a few thousand users,
2006 Mar 31
4
How to have a form within a form?
Say I am building a blogging platform, and I want to allow users to be
able to add an avatar without leaving the page, when they''re writing a
post. I need the avatar information to be included in the form for the
post. So for example, after a user adds a new avatar while writing a
new blog post, it would be available to be selected as the avatar to be
used for that post. What is
2007 Jul 28
1
[LLVMdev] Web Site Re-Design
On Jul 27, 2007, at 7:40 PM, Nick Lewycky wrote:
> The body text is either too small or too low-contrast (or both).
> Please
> make it black. Yes, it might not look as pretty, but it will at
> least be
> high contrast.
One of my concerns as well. The Webkit and openSUsE sites seem to be
similar -- maybe just darker and not yet black.
> The four major boxes form a corner in
2012 Nov 23
0
problem font-face routes css
Hi
I have a problem with font-face routes on the server,when I open the
site in windows, when I do with linux, works . both use chrome latest
version.
-the fonts are in /assets/fonts/
-in /assets/stylesheets/fonts.css.scss
@font-face
{
font-family: ''OswaldLight'';
src: url (''/assets/Oswald-Light-webfont.eot'');
src:
2007 Dec 06
0
saving the user id for thumbnails using attachment_fu
I am using attachment_fu to create thumbnails, and it is working
great. However, I am have a view with all my users thumbnails
displayed and am trying to make it so when you click on a thumbnail of
their avatar, it shows that users profile. In order to accomplish
this I have saved a user_id identifier for each avatar, but the
problem is that attachment_fu only saves this user_id for the main
2009 Jan 14
1
Histograms: Boxes and lines
Hi folks! I'm trying to get a histogram legend to give me a filled box and
a line. The problem is I keep getting both filled boxes and a line. How
can I get rid of the second box from the code below?
x<-rnorm(1000,mean=0,sd=1)
hist(x, breaks = 50, main="Histogram of x",freq=FALSE,
xlab=" x", ylab="Density",col="lightblue",
2006 May 24
1
link_to CSS problem
Hi all,
I''m a Ruby/Rails/web development newbie, so this may be a stupid
question. I''m putting some links using link_to into my rhtml page,
creating the layout using the DIV tag:
<div id="description">
<%= link_to h (item.description), :action => ''show'', :id => item.id
%>
</div>
...
div#description {
float: left;
2011 Aug 07
2
PROBLEM WITH PAPERCLIP
hello,
i am trying to upload a image file ...using paperclip in rails 3
i did as follows
1. In gemfile => included gem paperclip
2.In config/environments /development.rb => Paperclip.options[:command_path]
= "/usr/bin/" (convert path)
3.created a controller *picusers *and defined => def create
@picuser = Picuser.create(params[:picuser])
end
4.created a model *picuser