06-22-2010
toggle bit
how can I toggle all the bits of any given number using a shortest C code
6 More Discussions You Might Find Interesting
1. Programming
Hello,
If i have 2 strings str1 and str2, i would like to copy/concatenate str2 to str1, from 1st bit leaving the 0th bit.
How do i do it? (2 Replies)
Discussion started by: jazz
2 Replies
2. Shell Programming and Scripting
Hi all,
I have been using Ubuntu for 2 years now, and a few days ago I bought a Macbook. This is my first time using a Mac, so I have spent the better of two days learning the user interface, and configuring my Macbook. One thing I noticed is that there is no easy way to turn on and off hidden... (0 Replies)
Discussion started by: Omniwheel
0 Replies
3. Shell Programming and Scripting
Hi,
I need help to toggle through dates on a weekly basis to be fed into a script as inputs. The format should be: yyyy/mm/dd (start) yyyy/mm/dd (end), where end date is 7 days increments.
The date (start) would be input as an ARGV and would continue until current date.
I can check... (2 Replies)
Discussion started by: subhap
2 Replies
4. Shell Programming and Scripting
I am trying to figure out a one liner to toggle a flag variable. eg.
FLAG=0
Is there a way to use sed to toggle above example between 0 and 1. That is if run with flag set to zero it would change it to one if run again it would set it to zero.
I thought I had it figured but the... (6 Replies)
Discussion started by: bsquared
6 Replies
5. Shell Programming and Scripting
Hi,
Here is the issue. From the program snippet I have Base: 0x1800000000, Size: 0x3FFE7FFFFFFFF which are of 40 and 56 bits. SO I used use bignum to do the math but summing them up I always failed having correct result.
perl interpreter info,
perl, v5.8.8 built for... (0 Replies)
Discussion started by: rrd1986
0 Replies
6. Windows & DOS: Issues & Discussions
Hello everyone.
I bought a dell laptop (XPS M1330) online which came without a hard drive. There is a Windows Vista Ultimate OEMAct sticker with product key at the bottom case. I checked dell website (here) for this model and it says this model supports both 32 and 64-bit version of Windows... (4 Replies)
Discussion started by: milhan
4 Replies
LEARN ABOUT SUSE
gtk2::cellrenderertoggle
Gtk2::CellRendererToggle(3) User Contributed Perl Documentation Gtk2::CellRendererToggle(3)
NAME
Gtk2::CellRendererToggle
HIERARCHY
Glib::Object
+----Glib::InitiallyUnowned
+----Gtk2::Object
+----Gtk2::CellRenderer
+----Gtk2::CellRendererToggle
METHODS
cellrenderer = Gtk2::CellRendererToggle->new
boolean = $toggle->get_active
$toggle->set_active ($setting)
o $setting (boolean)
boolean = $toggle->get_radio
$toggle->set_radio ($radio)
o $radio (boolean)
PROPERTIES
'activatable' (boolean : readable / writable / private)
The toggle button can be activated
'active' (boolean : readable / writable / private)
The toggle state of the button
'inconsistent' (boolean : readable / writable / private)
The inconsistent state of the button
'indicator-size' (integer : readable / writable / private)
Size of check or radio indicator
'radio' (boolean : readable / writable / private)
Draw the toggle button as a radio button
SIGNALS
toggled (Gtk2::CellRendererToggle, string)
SEE ALSO
Gtk2, Glib::Object, Glib::InitiallyUnowned, Gtk2::Object, Gtk2::CellRenderer
COPYRIGHT
Copyright (C) 2003-2008 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.12.1 2010-07-05 Gtk2::CellRendererToggle(3)