similar to: Cleaner way to do this

Displaying 20 results from an estimated 200 matches similar to: "Cleaner way to do this"

2006 May 24
2
Gallery2 integration
Is anybody working already in a gallery2/rails integration? I need to use it as part of my project, so, before start from scratch with it I''d like to know if already is something out there. Thanks.
2006 Apr 10
9
Pagination with letter (A B C D ... Z)
Hi there, Is there a neat and easy way to implement pagination with letters rather than numbers eg : A B C D ... Z Rob
2006 Mar 02
0
Cleaner code in rails view
Hi all. Saw this trick on the ruby-talk list and wanted to share my use of it in a Rails view. Some other code allowed a record to be posted to the DB w/o a good referential link. IOW, the FK in the record pointed to a missing record in the linked to table. The Rails view just spit out an attribute of the linked table and that caused the app to crash because table1.table2 was nill and
2007 Feb 27
0
^*^ Best PC Optimizer and PC Cleaner ^*^
* [image: Best PC Optimizer] <http://www.awpedia.com/downloads/cCleaner/>** Over 48 million downloads!!!* * CCleaner <http://www.awpedia.com/downloads/cCleaner/> is a freeware system optimization and privacy tool. It removes unused files from your system - allowing Windows to run faster and freeing up valuable hard disk space. It also cleans traces of your online activities such as
2010 Dec 13
0
PATCH: btrfs ioctl for waiting for kernel cleaner thread task completions kernel code
the attached patch is against ubuntu maverick latest git, and I believe it is final. It is forward-compatible, as there is space in it to define 29 more deferred things to wait for, if needed, as well as a flag bit reserved for strict versioning. Calling it with a flags field of 0xFFFFFFFA will wait for everything it knows how to wait for, including things it doesn''t know how to wait for
2011 Mar 23
0
Passing NilClass To Create & MiniTest Backtrace Cleaner
Morning All! Some things I noticed while playing with 3.1 master last night. 1) When using the #create! method on an association and pass "nil" vs an empty hash, now fails silently with no warning or anything. It''s almost like a no-op. I did not test to see if this behavior occurred on a basic model or not. My app''s controller was setup in such a way that I would
2002 Sep 11
1
[LLVMdev] Cleaner gmake output
Compiling with "gmake" should produce less output. The compilation/linking flags are always the same anyway, who wants to see so much text on the screen? Compiling with "gmake VERBOSE=1" should produce all the output you're used to. So, here's a patch to do the above: /home/vadve/brukman/research/patches/0911-makefile-verbose Basically it checks for VERBOSE being
2008 Nov 11
3
Use the NEW ulaw/alaw codecs (slower, but cleaner)
In Asterisk 1.6, there is an option to use the 'new g.711 algorithm'. "Use the NEW ulaw/alaw codec's (slower, but cleaner)" By slower does this mean more 'expensive', or does it instead mean that there will be more algorithmic latency? Both? Can anyone speak to the relative increases? With regard to accuracy, can anyone speak to what kind of situation might
2006 Feb 21
3
must be a cleaner way to do this ...
Am trying to do a bulk entry facility for some project or other. It works but it feels ugly. I generate a form with twenty empty input fields: %= form_tag("action" => "enter_stuff") %> <% (1..20).each do |line| %> <div id="line<%= line %>"> <%= line %> <<%= text_field("action", "name",
2006 Aug 10
1
reusing previous code
Hi, I have a couple of controllers, views, models and mailers for a given functionality (for example, user registration). ?what is the best way to share them between multiple applications so that I don''t have to copy them over and over again? Thanks.
2006 Oct 17
1
looking for a cleaner way to do something
I have two numeric vectors each of length 17 and each is named the exact same way. so obsnum ppppp ppppm pppmp . dot dot dot...... temp1 is 1417 52 63 85 obsnum ppppp ppppm pppmp . dot dot dot...... temp2 is 1213 41 50 97 what i want to have is a resultant matrix with 2 rows and 16 columns where the 16
2012 Mar 13
4
minitest validations - is there a cleaner way?
i am trying out minitest, but need some advice on a clean way to test validations. I setup my testing to use minitest by following the following railscast plus i added miniskirt for Factories. http://railscasts.com/episodes/327-minitest-with-rails everything works well, but there has to be a cleaner way of testing failed validations. would i be better off using something besides
2013 Feb 20
1
[PATCH] Btrfs: fix cleaner thread not working with inode cache option
Right now inode cache inode is treated as the same as space cache inode, ie. keep inode in memory till putting super. But this leads to an awkward situation. If we''re going to delete a snapshot/subvolume, btrfs will not actually delete it and return free space, but will add it to dead roots list until the last inode on this snap/subvol being destroyed. Then we''ll fetch deleted
2007 May 08
2
Looking for a cleaner way to implement a setting certain indices of a matrix to 1 function
I wrote an ugly algorithm to set certain elements of a matrix to 1 without looping and below works and you can see what The output is below the code. K<-6 lagnum<-2 restrictmat<-matrix(0,nrow=K,ncol=K*3) restrictmat[((col(restrictmat) - row(restrictmat) >= 0 ) & (col(restrictmat)-row(restrictmat)) %% K == 0)]<-1 restrictmat[,(lagnum*K+1):ncol(restrictmat)]<-0 restrictmat
2013 Jun 10
1
btrfs-cleaner Blocked on xfstests 068
I''m running into a problem with the btrfs-cleaner thread becoming blocked on xfstests 068. The test locks up indefinitely without completing (normally it finished in about 45 seconds on my test box). I''ve replicated the issue on 3.10.0_rc5 and the for-linus branch of 3.9.0. I ran a git bisect on the 3.9.0 for-linus branch, and tracked my issue to the following commit: commit
2006 Mar 12
1
Problem with --partial and rsync algorithm
Hi, I'm running the following command for a remote host backup: /usr/local/bin/rsync -a --delete --delete-excluded -v --timeout=120 -z --no-whole-file -partial --partial-dir .rsync-partial --exclude=/sys/* --exclude=/tmp/* --exclude=/stuff/distfiles/* --exclude=/stuff/sistema/* --exclude=/stuff2/ftp/* --exclude=/stuff2/backup/* --exclude=/home/ftp/* --exclude=/home/gentoo/* --exclude=/mnt/*
2006 Jun 23
5
create session only for logged-in
i was wondering how a blog db has grown by about 15 mb in a week or two. it turns out its the sessions table.. so ive tried this: class ApplicationController.. session :off end class AccountController session :only, :login end and now, its impossible to login, and nothing ever appears in the session table. is this the right approach? i dont want to weed out the sessions with cron, i just
2007 Dec 29
15
Do you think it would look cleaner?
I was looking over some of my specs. I was thinking that the following: @game.should_receive(:name).and_return(''The Battle for Blaze'') @game.should_receive(:people).and_return(5000000) @game.should_receive(:activated).and_return(true) Would it look cleaner if I could do this instead? @game.should_recieve_and_return( :name => ''The Battle for Blaze''
2012 Sep 12
2
Deadlock in btrfs-cleaner, related to snapshot deletion
Hello, (this is a recap of yesterday''s discussion on BTRFS IRC, also to save relevant pastes before pastebins expire) I have my /home on btrfs; a cronjob makes one snapshot every 30 minutes; these snapshots are kept for 24-48 hours, then deleted in batches. This is a 16K Leaf/Node BTRFS on top of mdadm RAID1. As system uptime approached 2 weeks, I started noticing that the free space
2006 Feb 07
4
Dynamic url with javascript? - Help Please
Hi, I''m trying to call a remote function when a combobox option is selected, passing as an argument the current value of the combobox (paramenter "panel_id": <select id="server_interface_jack_switch_panel"