A 12V *AC* power supply

2010-07-13 Thread Shachar Shemesh

Hi list,

I bought a USB connected logic analyzer for too much money (not that 
much). When buying, I did a mistake and not thought through the issues, 
and bought from a US supplier without telling them this needs to be a 
220V country. As a result, I got an external power supply that is 110V, 
which outputs 12V AC at 1000mA (why they do not write 1A, I do not know).


To my shame, I actually bought a universal DC supply without noticing 
that it's AC I need, and started a support call with the company. They 
were very nice, and when we, finally, found out the source (I hope it is 
it), the guy said I could probably get by with 18VDC, but it would 
strain the capacitors (my math suggests that 15VDC is closer to the mark).


So, does anyone know where I can get a 12V AC power supply? They are not 
exactly a commodity.


Thanks,
Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread geoffrey mendelson


On Jul 13, 2010, at 9:13 AM, Shachar Shemesh wrote:



I bought a USB connected logic analyzer for too much money (not that  
much). When buying, I did a mistake and not thought through the  
issues, and bought from a US supplier without telling them this  
needs to be a 220V country. As a result, I got an external power  
supply that is 110V, which outputs 12V AC at 1000mA (why they do not  
write 1A, I do not know).


To my shame, I actually bought a universal DC supply without  
noticing that it's AC I need, and started a support call with the  
company. They were very nice, and when we, finally, found out the  
source (I hope it is it), the guy said I could probably get by with  
18VDC, but it would strain the capacitors (my math suggests that  
15VDC is closer to the mark).


So, does anyone know where I can get a 12V AC power supply? They are  
not exactly a commodity.



You can buy a 230- 120 volt transformer at home center. They are  
around 100 NIS. Don't buy the 35 NIS ones, they will cause you trouble.


If you have a BEZEQ Siemens router (some say Rotal on them) it uses a  
12 volt 1000ma adapator. There are plenty of them lying around from  
when people upgraded to NGN or 802.11N.


I just took a DC adaptor and removed the components that coverted the  
AC to DC. I did that for some modems that needed AC but came without  
adaptors.


You could also try YS Metronics. They probably have what you need.

Geoff.


--
geoffrey mendelson N3OWJ/4X1GM Jerusalem Israel geoffreymendel...@gmail.com
I do multitasking. If that bothers you, file a complaint and I will  
start ignoring it immediately.








___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Configuring serial ports to keep their ttys* location

2010-07-13 Thread Dotan Cohen
On Ubuntu Linux we have many serial devices connected, they show in
the udev log like this:

KERNEL[1279002550.149087] add
/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4
SUBSYSTEM=tty
DEVNAME=ttyS4
SEQNUM=1212
MAJOR=4
MINOR=68

KERNEL[1279002550.149102] add
/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5
SUBSYSTEM=tty
DEVNAME=ttyS5
SEQNUM=1213
MAJOR=4
MINOR=69

KERNEL[1279002550.149116] add
/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6 (tty)
UDEV_LOG=3
ACTION=add
DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6
SUBSYSTEM=tty
DEVNAME=ttyS6
SEQNUM=1214
MAJOR=4
MINOR=70


The SEQNUM is _not_ constant from boot to boot, therefore configuring
the mount point per SEQNUM does not work. I am not sure if the
KERNEL[1279002550.*] number is unique, is it supposed to be? If so,
which udev rule would configure the mount points to be as they are now
on next boot as well?

Thanks.


-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread avraham rosenberg
2010/7/13 Shachar Shemesh shac...@shemesh.biz

  Hi list,

 I bought a USB connected logic analyzer for too much money (not that much).
 When buying, I did a mistake and not thought through the issues, and bought
 from a US supplier without telling them this needs to be a 220V country. As
 a result, I got an external power supply that is 110V, which outputs 12V AC
 at 1000mA (why they do not write 1A, I do not know).

 To my shame, I actually bought a universal DC supply without noticing that
 it's AC I need, and started a support call with the company. They were very
 nice, and when we, finally, found out the source (I hope it is it), the guy
 said I could probably get by with 18VDC, but it would strain the capacitors
 (my math suggests that 15VDC is closer to the mark).

 So, does anyone know where I can get a 12V AC power supply? They are not
 exactly a commodity.

 Thanks,
 Shachar

 --
 Shachar Shemesh
 Lingnu Open Source Consulting Ltd.http://www.lingnu.com


 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

 Shahar, I have two suggestions for you:
1-220/110 converters for foreign travel consist usually of an
autotransformer converting 220V to 110V for use with small appliances. you
can feed your 110V power supply through them.
It's worth checking with an electrical tester which way to insert it in the
socket in order to get the voltage of the outputs at 0, 120 V to ground, not
110, 220V to ground, something that your equipmnent might no like. I have a
small on in my junkyard. Unfortunately the maximum output current or power
is not mentioned and it might be too weak for your needs.
2-Spot halogen bulbs working at 12V ac are pretty common. I would ask  lamp
manufacturers/merchands or buy one of suitable power and size. At this ratio
of voltages between input and output the converter is most likeky a real
transformer, with good insulation between the primary and secondary
circuits. This is readily checked with an ohmmeter.
Again, I have in my junkyard a (bare) unit, extracted from an old lighting
fixture, marked Pri 0-230V , Sec 0-12V 50 VA. It is clearly a real
transformer, and looks allright.
You can have any of them, or both, for the asking. I live in Jerusalem.
Cheers, Avraham
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread Udi Finkelstein
Since you mentioned you bought a USB based Logic analyzer, I thought I'd
mention the open-source approach.
I was searching for years for a low-cost Logic Analyzer until I found this
(i.e. something I can pay for a hobby without feeling I'm wasting too much
money).

The Open Logic Sniffer is a fully open source Logic analyzer, with up to
~100MHz sample rate, and up to 32 bit inputs.
It is USB based, and has full source code for everything from the
schematics, PCB layout, PIC firmware and the VHDL source code for the Xilinx
FPGA (Spartan 3E 250), and the multiple clients available.
The cost is ~$45 including shipping to Israel here:
http://www.seeedstudio.com/depot/bus-pirate-v3-assembled-p-609.html?cPath=61_68

http://dangerousprototypes.com/open-logic-sniffer/
http://www.gadgetfactory.net/gf/project/butterflylogic/

Another companion product is the Bus Pirate, a low speed, low cost USB based
tool for hacking serial buses (I2C, SPI, JTAG, etc.). It can also be used to
program AVR, PIC microcontrollers. Like the Open Logic sniffer, the Bus
Pirate is also full open source.
The Bus pirate is an essential tool in case you manage to erase the PIC
bootloader on the Open Logic sniffer.

This one costs ~$27 also from Seeed:
http://www.seeedstudio.com/depot/preorder-open-workbench-logic-sniffer-p-612.html?cPath=75

http://dangerousprototypes.com/docs/Bus_Pirate

Generally speaking, SeeedStudio combines the open source spirit with the low
manufacturing costs at china, low price margins, and very low airmail
shipping costs.

Udi

2010/7/13 Shachar Shemesh shac...@shemesh.biz

  Hi list,

 I bought a USB connected logic analyzer for too much money (not that much).
 When buying, I did a mistake and not thought through the issues, and bought
 from a US supplier without telling them this needs to be a 220V country. As
 a result, I got an external power supply that is 110V, which outputs 12V AC
 at 1000mA (why they do not write 1A, I do not know).

 To my shame, I actually bought a universal DC supply without noticing that
 it's AC I need, and started a support call with the company. They were very
 nice, and when we, finally, found out the source (I hope it is it), the guy
 said I could probably get by with 18VDC, but it would strain the capacitors
 (my math suggests that 15VDC is closer to the mark).

 So, does anyone know where I can get a 12V AC power supply? They are not
 exactly a commodity.

 Thanks,
 Shachar

 --
 Shachar Shemesh
 Lingnu Open Source Consulting Ltd.http://www.lingnu.com


 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread Jonathan Ben Avraham


I have 220-16VAC.

 - yba


On Tue, 13 Jul 2010, Shachar Shemesh wrote:


Date: Tue, 13 Jul 2010 09:13:10 +0300
From: Shachar Shemesh shac...@shemesh.biz
To: linux-il linux-il@cs.huji.ac.il
Subject: A 12V *AC* power supply

Hi list,

I bought a USB connected logic analyzer for too much money (not that much). 
When buying, I did a
mistake and not thought through the issues, and bought from a US supplier 
without telling them this
needs to be a 220V country. As a result, I got an external power supply that is 
110V, which outputs
12V AC at 1000mA (why they do not write 1A, I do not know).

To my shame, I actually bought a universal DC supply without noticing that it's 
AC I need, and
started a support call with the company. They were very nice, and when we, 
finally, found out the
source (I hope it is it), the guy said I could probably get by with 18VDC, but 
it would strain the
capacitors (my math suggests that 15VDC is closer to the mark).

So, does anyone know where I can get a 12V AC power supply? They are not 
exactly a commodity.

Thanks,
Shachar




--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA~. .~   Tk Open Systems
=}ooO--U--Ooo{=
 - y...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread Alon Barzilai


On 7/13/2010 9:13 AM, Shachar Shemesh wrote:

Hi list,

I bought a USB connected logic analyzer for too much money (not that 
much). When buying, I did a mistake and not thought through the 
issues, and bought from a US supplier without telling them this needs 
to be a 220V country. As a result, I got an external power supply that 
is 110V, which outputs 12V AC at 1000mA (why they do not write 1A, I 
do not know).


To my shame, I actually bought a universal DC supply without noticing 
that it's AC I need, and started a support call with the company. They 
were very nice, and when we, finally, found out the source (I hope it 
is it), the guy said I could probably get by with 18VDC, but it would 
strain the capacitors (my math suggests that 15VDC is closer to the mark).


So, does anyone know where I can get a 12V AC power supply? They are 
not exactly a commodity.ji.ac.il/mailman/listinfo/linux-il

first, make sure it will work with 50Hz ( instead of 60Hz)
you can take a 1000ma (or more) low end power supply
( the heavy ones, with lots of copper inside)
open it up, and remove a small electric circuit with diodes and capacitor(s)
connect the 2 wires from the coil to the output.

Alon.




___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


RE: acl group permissions

2010-07-13 Thread camelia
We have a file system that was built and populated before changing its acl.
On this file system we created a directory with default acl and 50 users that 
don't belong ( all of them) to the same group we have 4 groups.
One of those groups should be able to r/w/x files in each user's directory , so 
I believed that if I create an entry in acl for this group I'll solve the 
problem.
The file system is mounted 

/dev/ngs /ngs  type gpfs 
rw,mtime,atime,quota=userquota;groupquota,filesetquota,dev=ngs,autostart 0 0

I tried to use also mmeditacl - command for changing acl that comes with gpfs 
and the result is the  same.
The output for mount -l is :

[r...@dapsas2 user_data]$ mount -l /dev/md2 on / type ext3 (rw) []
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/md0 on /boot type ext3 (rw) []
none on /dev/shm type tmpfs (rw)
/dev/mapper/vg00-volusers on /users type ext3 (rw,usrquota,grpquota) []
/dev/mapper/vg00-volgcg on /gcg type ext3 (rw) []
/dev/mapper/vg00-voldb on /srv type ext3 (rw) []
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
sedna:/vol/main/biousers on /biousers type nfs (rw,soft,bg,addr=132.77.4.190)
sedna:/vol/main/biousers2 on /biousers2 type nfs (rw,soft,bg,addr=132.77.4.190)
sedna:/vol/main/genusers on /genusers type nfs (rw,soft,bg,addr=132.77.4.190)
sedna:/vol/main/mysusers on /mysusers type nfs (rw,soft,bg,addr=132.77.4.190)
//ga-ps1/data on /srv/projects/next-gen-seq/ga-ps1 type cifs (ro,mand)
nfsd on /proc/fs/nfsd type nfsd (rw)
/dev/ngs on /ngs type gpfs 
(rw,mtime,quota=userquota;groupquota;filesetquota,dev=ngs,autostart)
ngs001:/data/run_data on /ngs/run_data001 type nfs (rw,soft,bg,addr=132.77.4.47)
[r...@dapsas2 user_data]$ mount -la [r...@dapsas2 user_data]$ pwd 
/ngs/user_data
[r...@dapsas2 user_data]$ ls -ld drwxrwxr-x+ 50 esterf nobody 8192 Jul 13 
09:30 .

Ls -ld on /ngs returns
drwxrwxr-x+ 14 bsgilgi bioserv 8192 Jul 11 12:21 .

I created first the acl for /ngs and I checked if directories already created 
in this file system hav + at the end of permissions - don't have.
If I create in /ngs a new directory it inherit the acl from /ngs.
I created another acl for /ngs/user_data but as user belonging to bioserv group 
I cannot write in other users directories.
Something I'm not doing wright.


-Original Message-
From: Oleg Goldshmidt [mailto:p...@goldshmidt.org] 
Sent: Monday, July 12, 2010 9:03 PM
To: camelia
Subject: Re: acl group permissions

camelia camelia.bo...@weizmann.ac.il writes:

 We tried to create acl for file system /ngs and we saw that we cannot use 
 It in our purpose so we created an extra acl for sub dir /ngs/user_data.
 What we need still doesn't work.
 We consulted a lot of times the acl man pages and not only and we believe 
 that we do what it should be  done.
 Why doesn't work ?

Hi,

It would help if you could tell us exactly what you did, including the
actual sequence of qcommands (mount - or the relevant part of
/etc/fstab if the mount is automatic, - setfacl, etc.) and the
outcome, as in what exactly does not work, including the output of
mount -l and of ls -ld on some of the problematic directories and
files, including /ngs itself.

It is very difficult to diagnose a generic does not work problem.

--
Oleg Goldshmidt | p...@goldshmidt.org



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


RE: acl group permissions

2010-07-13 Thread camelia
I forgot to tell you that when a gpfs file system is created the default value 
for authorization types supported is posix.

-Original Message-
From: Oleg Goldshmidt [mailto:p...@goldshmidt.org] 
Sent: Monday, July 12, 2010 9:03 PM
To: camelia
Subject: Re: acl group permissions

camelia camelia.bo...@weizmann.ac.il writes:

 We tried to create acl for file system /ngs and we saw that we cannot use 
 It in our purpose so we created an extra acl for sub dir /ngs/user_data.
 What we need still doesn't work.
 We consulted a lot of times the acl man pages and not only and we believe 
 that we do what it should be  done.
 Why doesn't work ?

Hi,

It would help if you could tell us exactly what you did, including the
actual sequence of qcommands (mount - or the relevant part of
/etc/fstab if the mount is automatic, - setfacl, etc.) and the
outcome, as in what exactly does not work, including the output of
mount -l and of ls -ld on some of the problematic directories and
files, including /ngs itself.

It is very difficult to diagnose a generic does not work problem.

--
Oleg Goldshmidt | p...@goldshmidt.org



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


[YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham

Dear linux-il list,
g++ seems to be quite happy to compile and link a program that has a class 
that includes method declarations that are not implemented, as log as 
those methods are not called explicitly in the code. VS2008 seems to be 
able to discover this, either at compile or link time. Any way to do this 
in g++?

Thanks,

 - yba

--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA~. .~   Tk Open Systems
=}ooO--U--Ooo{=
 - y...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Shachar Shemesh

Jonathan Ben Avraham wrote:

Dear linux-il list,
g++ seems to be quite happy to compile and link a program that has a 
class that includes method declarations that are not implemented, as 
log as those methods are not called explicitly in the code. VS2008 
seems to be able to discover this, either at compile or link time. Any 
way to do this in g++?

Thanks,

 - yba

I'm not sure the VS2008 behavior is the standard. Declaring a method in 
a class and not defining it is the same offense as declaring a 
function and not defining it, both from the technical and from the 
conceptual perspective.


More to the point - I'm not aware of such a flag for g++. I'm not sure 
where such a flag should even come, as the compiler should never be the 
one to do it (how will it know it is not defined in some other 
compilation unit?), and the linker cannot (how does it know a function 
was defined if noone was using it?).


Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham

Hi Shachar,
Right, right.
I also think that the VS2008 is doing something extra.

My problem is that I have a class with 70+ methods and the customer keeps 
changing the specs. I need some way to verify that all of the methods 
declared in the class have implementations. The most common mistake is 
that I change the method name in the class but forget to change the name 
in the implementation. I suppose that I could write a Perl script that 
would automatically generate method calls from the class method 
declarations and then watch for link errors.


Regards,

 - yba


On Tue, 13 Jul 2010, Shachar Shemesh wrote:


Date: Tue, 13 Jul 2010 11:59:43 +0300
From: Shachar Shemesh shac...@shemesh.biz
To: Jonathan Ben Avraham y...@tkos.co.il
Cc: ILUG linux-il@cs.huji.ac.il
Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?

Jonathan Ben Avraham wrote:
  Dear linux-il list,
  g++ seems to be quite happy to compile and link a program that has a 
class that
  includes method declarations that are not implemented, as log as those 
methods are not
  called explicitly in the code. VS2008 seems to be able to discover this, 
either at
  compile or link time. Any way to do this in g++?
  Thanks,

   - yba

I'm not sure the VS2008 behavior is the standard. Declaring a method in a class 
and not defining it
is the same offense as declaring a function and not defining it, both from 
the technical and from
the conceptual perspective.

More to the point - I'm not aware of such a flag for g++. I'm not sure where 
such a flag should
even come, as the compiler should never be the one to do it (how will it know 
it is not defined in
some other compilation unit?), and the linker cannot (how does it know a 
function was defined if
noone was using it?).

Shachar




--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA~. .~   Tk Open Systems
=}ooO--U--Ooo{=
 - y...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Oleg Goldshmidt
On Tue, Jul 13, 2010 at 11:31 AM, Jonathan Ben Avraham y...@tkos.co.il wrote:
 Dear linux-il list,
 g++ seems to be quite happy to compile and link a program that has a class
 that includes method declarations that are not implemented, as log as those
 methods are not called explicitly in the code. VS2008 seems to be able to
 discover this, either at compile or link time. Any way to do this in g++?

Not that I know of, but I'd like to point out that declaring
unimplemented methods is normal, standard, and useful, so why would a
compiler flag it?

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Oleg Goldshmidt
2010/7/13 Jonathan Ben Avraham y...@tkos.co.il:
 Hi Shachar,
 Right, right.
 I also think that the VS2008 is doing something extra.

 My problem is that I have a class with 70+ methods and the customer keeps
 changing the specs. I need some way to verify that all of the methods
 declared in the class have implementations. The most common mistake is that
 I change the method name in the class but forget to change the name in the
 implementation. I suppose that I could write a Perl script that would
 automatically generate method calls from the class method declarations and
 then watch for link errors.

A more general way to deal with that is to write a comprehensive unit
test suite. Or have such a suite generated by perl or other suitable
means... ;-)

-- 
Oleg Goldshmidt | p...@goldshmidt.org

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Shachar Shemesh

Jonathan Ben Avraham wrote:

Hi Shachar,
Right, right.
I also think that the VS2008 is doing something extra.

My problem is that I have a class with 70+ methods and the customer 
keeps changing the specs. I need some way to verify that all of the 
methods declared in the class have implementations. The most common 
mistake is that I change the method name in the class but forget to 
change the name in the implementation.
That would not compile. The implementation under the old name would not 
match any method declaration, and the compiler would complain.


Shachar
I suppose that I could write a Perl script that would automatically 
generate method calls from the class method declarations and then 
watch for link errors.


Regards,

 - yba


--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Configuring serial ports to keep their ttys* location

2010-07-13 Thread Baruch Siach
Hi Dotan,

On Tue, Jul 13, 2010 at 09:59:28AM +0300, Dotan Cohen wrote:
 On Ubuntu Linux we have many serial devices connected, they show in
 the udev log like this:
 
 KERNEL[1279002550.149087] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS4
 SUBSYSTEM=tty
 DEVNAME=ttyS4
 SEQNUM=1212
 MAJOR=4
 MINOR=68
 
 KERNEL[1279002550.149102] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS5
 SUBSYSTEM=tty
 DEVNAME=ttyS5
 SEQNUM=1213
 MAJOR=4
 MINOR=69
 
 KERNEL[1279002550.149116] add
 /devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6 (tty)
 UDEV_LOG=3
 ACTION=add
 DEVPATH=/devices/pci:00/:00:14.4/:03:06.0/tty/ttyS6
 SUBSYSTEM=tty
 DEVNAME=ttyS6
 SEQNUM=1214
 MAJOR=4
 MINOR=70
 
 
 The SEQNUM is _not_ constant from boot to boot, therefore configuring
 the mount point per SEQNUM does not work. I am not sure if the
 KERNEL[1279002550.*] number is unique, is it supposed to be?

Seems like a timestamp:

$ date +%s
1279016515

So, it is unique, but probably not what you are looking for.

 If so, which udev rule would configure the mount points to be as they are 
 now on next boot as well?

What's the output of

udevadm info -a -p $(udevadm info -q path -n /dev/ttyS4)
udevadm info -a -p $(udevadm info -q path -n /dev/ttyS5)
udevadm info -a -p $(udevadm info -q path -n /dev/ttyS6)

baruch

-- 
 ~. .~   Tk Open Systems
=}ooO--U--Ooo{=
   - bar...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: [YBA] g++ newbie: No warn on missing method implementation?

2010-07-13 Thread Jonathan Ben Avraham

Hi Shachar,
Right again. I had a bug in a macro that defined the class name. In fact 
all of the methods bodies were implemented outside the class.

Thanks,

 - yba


On Tue, 13 Jul 2010, Shachar Shemesh wrote:


Date: Tue, 13 Jul 2010 12:46:41 +0300
From: Shachar Shemesh shac...@shemesh.biz
To: Jonathan Ben Avraham y...@tkos.co.il
Cc: ILUG linux-il@cs.huji.ac.il
Subject: Re: [YBA] g++ newbie: No warn on missing method implementation?

Jonathan Ben Avraham wrote:
  Hi Shachar,
  Right, right.
  I also think that the VS2008 is doing something extra.

  My problem is that I have a class with 70+ methods and the customer keeps 
changing the
  specs. I need some way to verify that all of the methods declared in the 
class have
  implementations. The most common mistake is that I change the method name 
in the class
  but forget to change the name in the implementation.

That would not compile. The implementation under the old name would not match 
any method
declaration, and the compiler would complain.

Shachar
  I suppose that I could write a Perl script that would automatically 
generate method
  calls from the class method declarations and then watch for link errors.

  Regards,

   - yba





--
 EE 77 7F 30 4A 64 2E C5  83 5F E7 49 A6 82 29 BA~. .~   Tk Open Systems
=}ooO--U--Ooo{=
 - y...@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


[4SALE] Dell E197FP monitor NIB

2010-07-13 Thread Marc Volovic
Hi All.

Shlomi - see, no in-reply-to header.

For sale - brand new in box (never opened) 19 Dell LCD monitor - E197FP.

ILS 850 OBRO (or best reasonable offer)

Marc Volovic
m...@bard.org.il
+972-54-467-6764




___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: A 12V *AC* power supply

2010-07-13 Thread Michael Shiloh
I would expect it to work with 12VDC. It's unlikely that they run it 
through a transformer, and probably just rectify it, in which case 
you'll drop a volt or so.


If it doesn't work the first time you hook it up, reverse the polarity.

Worst case, they run the 12VAC directly into a switching power supply, 
in which case it won't damage anything, it just won't work.


On 07/12/2010 11:13 PM, Shachar Shemesh wrote:

Hi list,

I bought a USB connected logic analyzer for too much money (not that
much). When buying, I did a mistake and not thought through the issues,
and bought from a US supplier without telling them this needs to be a
220V country. As a result, I got an external power supply that is 110V,
which outputs 12V AC at 1000mA (why they do not write 1A, I do not know).

To my shame, I actually bought a universal DC supply without noticing
that it's AC I need, and started a support call with the company. They
were very nice, and when we, finally, found out the source (I hope it is
it), the guy said I could probably get by with 18VDC, but it would
strain the capacitors (my math suggests that 15VDC is closer to the mark).

So, does anyone know where I can get a 12V AC power supply? They are not
exactly a commodity.

Thanks,
Shachar

--
Shachar Shemesh
Lingnu Open Source Consulting Ltd.
http://www.lingnu.com



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


--
Sent from my ASR-33

___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Domain Registrars .co.il

2010-07-13 Thread Uri Even-Chen
I registered my domain names directly with www.isoc.org.il

If there is a dispute, I don't think it matters which registrar you
are using.  I think www.isoc.org.il handles the disputes.

Uri Even-Chen
Mobile Phone: +972-50-9007559
E-mail: u...@speedy.net
Blog: http://www.speedy.net/uri/blog/




2010/7/6 Justin thelonecabb...@gmail.com:
 Which one of these would you trust more to register your domain in Israel?
 https://secure.communigal.net/
 or
 http://www.internic.co.il/isoc.html
 Specifically which one is less likely to suspend a domain entry for trivial
 disputes?


 ___
 Linux-il mailing list
 Linux-il@cs.huji.ac.il
 http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il



___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il