Displaying 20 results from an estimated 1600 matches similar to: "must be a cleaner way to do this ..."
2016 Feb 24
2
Deleting / Removing users
i have a list of users that I?ve removed from LDAP and I want to delete their mail storage.
sdbox
Dovecot 2.2.15.8
I have mail messages in one location and indexes in another. Should I just
rm -rf /messages/<username>
rm -rf /indexes/<username>
Thanks,
JK
-----------------------------------------------------------------------
John "JK" Krug
System Administrator
The
2006 Jan 29
6
tyro Ruby questin
Trying to print out a simple database grid, using, with column headers
such as ''SunToSatRoles'', ''PrimaryRoles'', etcetera.
Iterating through an object @List which is populated thusly
@list = mymodel.find(:all, :order => mymodel.editlist_order)
When I do something like
<table>
<% for i in @list %>
<tr>
<td><%= i.inspect
2006 Mar 21
8
AS/400?
Any success stories using rails against a DB2 database on an as400?
If so, how?
Thanks
Ed Schechter
--
Posted via http://www.ruby-forum.com/.
2007 Jul 21
0
[1132] trunk/wxruby2/doc/textile/windowdestroyevent.txtl: Updated and corrected doc on WindowDestroyEvent, noting that e.skip must
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Jun 08
0
Cleaner way to do this
is there a cleaner way to achieve this? // Is this the correct way?
def show_servers
@server_pages, @switch_servers = paginate :servers, :conditions=>["id in
(select server_id from server_interfaces where
server_interfaces.switch_interface_id in (select id from switch_interfaces
where switch_id = ?) )",params[:id]], :per_page => 20, :order => "name"
render
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 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
2004 Jul 26
4
Asterisk for a large scale implementation
I am looking at Asterisk for a large scale implementation. I was
wondering if anyone had any experience (that's code for nice things or
not so nice things to say about it) with Asterisk for 50k plus users.
Feel free to reply to me directly or back to this list (if it's
appropriate. I'm not sure what the proper netiquette is).
Thanks in advance...
Harry
2010 Sep 29
5
help with AD integration
HI
my name ins Ben.T.George
i am new to samba and active directory integration
my machine ins Sun Slaris SPARC (solaris 10).
the unix side samba and all deps are installed...from this link
http://www.sunfreeware.com/programlistsparc10.html#samba
now i want to sync samba with active directory..
so please help to for this..
please provide me the step by step for this..
now i am stuck with
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