Displaying 20 results from an estimated 115 matches for "kernighan".
2008 Oct 24
2
replace
i need your feedback about this command, it should find a string in
multiple html files in a directory and replace it with a different
string...
find /dir -name "*.html" -exec sed -i 's/"old"/"new"/g' {} \;
Thx.
2006 Jul 26
5
[Fwd: stack overflow "cause" found]
...ic_ids_from_mpc: 200
0xffff8300001bfe81 setup_ioapic_ids_from_mpc: 200
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
_______________________________________________
Xen-devel mailing list
Xen-devel...
2016 Jul 24
2
Lifecycle of a connection to libvirtd
...r->domain == VIR_FROM_REMOTE)) ||
(last_error->code == VIR_ERR_RPC) ||
(last_error->code == VIR_ERR_NO_CONNECT) ||
(last_error->code == VIR_ERR_INVALID_CONN))))
Any hint?
--
Program defensively.
- The Elements of Programming Style (Kernighan & Plauger)
2016 Jul 24
2
Network without forward mode
...39;/>
</network>
#v-
The bridge is created. If I spawn a VM attached to this network, it gets
added to the bridge. Any way to have a network where absolutely no setup
is done?
Thanks!
--
Use the "telephone test" for readability.
- The Elements of Programming Style (Kernighan & Plauger)
2018 Aug 25
3
Where does L come from?
...rrc one can declare 'long x', and it being common to
| refer to integers as "longs" in the same way we use "doubles" to mean
| double precision floating point). But pure speculation on my part, so I'm
| curious!
It does per my copy (dated 1990 !!) of the 2nd ed of Kernighan & Ritchie. It
explicitly mentions (sec 2.2) that 'int' may be 16 or 32 bits, and 'long' is
32 bit; and (in sec 2.3) introduces the I, U, and L labels for constants. So
"back then when" 32 bit was indeed long. And as R uses 32 bit integers ...
(It is all murky becau...
2018 Aug 25
4
Where does L come from?
...being common to
>> | refer to integers as "longs" in the same way we use "doubles" to mean
>> | double precision floating point). But pure speculation on my part, so I'm
>> | curious!
>>
>> It does per my copy (dated 1990 !!) of the 2nd ed of Kernighan & Ritchie. It
>> explicitly mentions (sec 2.2) that 'int' may be 16 or 32 bits, and 'long' is
>> 32 bit; and (in sec 2.3) introduces the I, U, and L labels for constants. So
>> "back then when" 32 bit was indeed long. And as R uses 32 bit integers...
2011 Apr 07
1
[LLVMdev] Incompatible types at call site
Hi Arushi,
> I got this from C code compiled by llvm-gcc.
>
> There is a consistent prototype for the function
>
> TypHandle Cyclotomic ( hdRes, n, m )
> TypHandle hdRes;
> long n, m;
I just remembered that Kernighan and Ritchie style declarations like this don't
have the semantics you might expect. In particular this is not equivalent to
saying
TypHandle Cyclotomic ( TypHandle hdRes, long n, long m )
If you change the declaration to the previous line, does the nasty bitcasting
go away?
Ciao, Dun...
2018 Apr 04
2
Re: error : virHashForEach:597 : Hash operation not allowed during iteration
...correctly use a RW lock. I am
currently testing the attached patch on a few servers (patch for master,
but applied on our 3.6 version). After checking many locations, I came
to conclusion that locks are used correctly.
--
Use library functions.
- The Elements of Programming Style (Kernighan & Plauger)
2005 Mar 14
2
emulating courier imap
I'm trying this:
default_mail_env = maildir:%h/.maildir:INDEX=%h/.indexes:INBOX=%
h/.maildir
namespace private {
separator = .
prefix = INBOX.
inbox = no
}
namespace private {
separator = .
prefix =
inbox = yes
hidden = yes
}
but dovecot doesn't appear to be honoring "hidden" - am I missing
something? (that is, all my
2005 Nov 14
1
Yeah !!!
Wow !! Seems like RedCloth is now able to output DocBook !!!!
Great I have to Say !!!
--
Frederick Ros aka Sleeper -- sleeper at jabber.fr
Make sure special cases are truly special.
- The Elements of Programming Style (Kernighan & Plaugher)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/redcloth-upwards/attachments/20051114/457bf1a2/attachment.bin
2016 Jul 25
2
Re: Network without forward mode
...> should the vnet be connected?
The host is able to handle the routing. It seems I could just declare an
interface of type "ethernet" instead of "network" to get the effect I
want.
--
Write clearly - don't be too clever.
- The Elements of Programming Style (Kernighan & Plauger)
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is
that when a new item is added, it''s not sortable. I found a post on
scriptaculous using behaviour.js to refresh the DOM when an item is
added, but I can''t figure out how to do it with Rails.
To test the behaviour method, I used this:
var myrules={
''div#steps ul'' :
2004 Nov 16
2
Please add secure NNTP to action.AllowNNTP
...- tcp 563
I''m running Shorewall-2.0.4 by the way.
Thanks,
Toon.
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
2005 Feb 27
2
Re: [Xen-changelog] Move xcs to unix domain sockets.
.../var/xen/xcs_socket"
Didn''t the other tools have everything in /var/lib/xen ?
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=1...
2016 Jul 25
2
Re: Network without forward mode
...route like "ip route
add 192.0.2.147/32 dev vnet18" once the VM is spawned. The host is then
responsible for any routing to/from the VM. I don't want the VM to be
part of a bridge.
--
Indent to show the logical structure of a program.
- The Elements of Programming Style (Kernighan & Plauger)
2018 Apr 04
2
Re: error : virHashForEach:597 : Hash operation not allowed during iteration
...s seems to be prevented only by callers using RW
lock. So, it seems we can just remove this "iterating" bool and just
check all users of these functions are using the appropriate lock.
--
Make sure all variables are initialised before use.
- The Elements of Programming Style (Kernighan & Plauger)
2024 Jul 05
1
Bug? plot.formula does need support plot.first / plot.last param in plot.default
That definitely looks like a bug, but not one that anyone will be eager
to fix. It's very old code that tried to be clever, and that's the
hardest kind of code to fix.
Remember Kernighan's Law: "Everyone knows that debugging is twice as
hard as writing a program in the first place. So if you?re as clever as
you can be when you write it, how will you ever debug it?"
Duncan Murdoch
On 2024-07-05 7:35 a.m., Erez Shomron wrote:
> Is the following a bug in your opi...
2016 May 12
1
Samba clients to windows AD server - DDNS problem
...ine - we may simply not know what search term we should have been using.
Regards
A.J. Venter
---
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan.
To read our Email Legal Notice, browse to this
URL:
http://www.allangray.co.za/legal/email_legal.aspx [
http://www.allangray.co.za/legal/email_legal.aspx ]
2018 Aug 25
1
Where does L come from?
...;, and it being common to
| > | refer to integers as "longs" in the same way we use "doubles" to mean
| > | double precision floating point). But pure speculation on my part, so I'm
| > | curious!
| >
| > It does per my copy (dated 1990 !!) of the 2nd ed of Kernighan & Ritchie. It
| > explicitly mentions (sec 2.2) that 'int' may be 16 or 32 bits, and 'long' is
| > 32 bit; and (in sec 2.3) introduces the I, U, and L labels for constants. So
| > "back then when" 32 bit was indeed long. And as R uses 32 bit integers ...
|...
2005 Apr 25
3
BUG: xend oopses on munmap of /proc/xen/privcmd
...on''t know if the VMA is
guaranteed to still exist when zap_pte_range() is called...
--
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel