.il domain names with IPv6 support

2023-08-01 Thread Gabor Szabo
Hi,

I have been using BOX ( https://box.co.il/ ) for my .il domains and for
DNS. Apparently their DNS server still does not support IPv6.  So far it
did not bother me too much, but now that I am trying to move a domain to
use GitHub pages it seems that they require that configuration as well.

So my question what do you suggest as a domain registrar for .il domains
that has a reasonable DNS interface that also supports IPv6. Alternatively,
what DNS provider do you use?

(for my com/org names I use https://iwantmyname.com/ and I am quite
satisfied)

regards
Gabor

-- 
Gabor Szabohttps://szabgab.com/ <http://szabgab.com/>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Creating a Ladino spell-checker and including it in OS projects

2022-06-16 Thread Gabor Szabo
On Thu, Jun 16, 2022 at 10:44 AM Steve Litt 
wrote:

>
> I'm building a standalone spellchecker for well-formed XML HTML5
> right now. Maybe we can correspond. I don't know how to make a
> soundsalike algorithm.


Hi Steve,

I am not sure how is your project related to the Ladino spell-checker,
but I wonder, what you isn't that extracting the text from HTML and then
running the text through an already existing spell-checker?


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


Re: Creating a Ladino spell-checker and including it in OS projects

2022-06-15 Thread Gabor Szabo
On Mon, Jun 13, 2022 at 9:00 AM Dan Kenigsberg 
wrote:

> On Sun, Jun 12, 2022 at 04:24:27PM +0300, Gabor Szabo wrote:
> > Hi Dan,
> >
> >
> > On Tue, Jun 7, 2022 at 11:18 PM Dan Kenigsberg  >
> > wrote:
> >
> > > On Wed, Jun 01, 2022 at 06:47:41AM +0300, Gabor Szabo wrote:
> > > > Hi,
> > > >
> > > > I've been working on an online Ladino (Judeo-Espanyol) dictionary
> > > > https://diksionaryo.szabgab.com/ The code is open source the
> content is
> > > > CC BY-SA 4.0  https://creativecommons.org/licenses/by-sa/4.0/
> > > > All linked from the About page.
> > > > Along with the creation of the translation I also have a (growing)
> list
> > > of
> > > > ladino words.
> > > >
> > > > I would like to make this available as a spell checker in various
> Open
> > > > Source tools.
> > > > E.g. Firefox, Chromium, LibreOffice etc.
> > > > I wrote about it a few weeks ago
> > > > https://szabgab.com/add-spellchecker-to-various-applications.html
> but I
> > > am
> > > > still unclear what and how to do.
> > > >
> > > > I started to generate a pair of files that resemble the format of
> hspell,
> > > > but I don't know how to really test them and in any case they don't
> seem
> > > to
> > > > work well.
> > > > I also don't know how to distribute what I already have and how to
> make
> > > it
> > > > included in those projects.
> > > >
> > > > Anyone here has experience with spell-checkers?
> > > > Could anyone help me in the project or at least point me in the right
> > > > direction?
> > >
> > > Well, if I were you, I'd start by creating a github repository with
> your
> > > code and a tagged version of your artifacts, these .aff and .dic files
> > > used by hunspell.
> > >
> >
> > It is being generated now on every push:
> > https://github.com/szabgab/ladino-diksionaryo-generated/
>
> Thanks for the URL. But where are the artifacts? They probably hide in
> plain sight... Can you provide a URL to the .aff/.dic files?
>

Oh well, GitHub can be tricky sometimes :)
(I think this is the direct link to download the zip of the two files:
https://github.com/szabgab/ladino-diksionaryo-generated/suites/6938585306/artifacts/270273527
)

Manually:
Visit the project repo:
https://github.com/szabgab/ladino-diksionaryo-generated/
click on "Actions"
then on the job that created the artifact (in this case it is called CI)
There you'll have the artifacts of the project
e.g. This is the direct link to a recent build
https://github.com/szabgab/ladino-diksionaryo-generated/actions/runs/2500028854

If you now click on "hunspell" it will download the two files in a zip.

AFAIK the artifacts are removed after a few weeks so these links will be
gone, but the desription above should still work.



>
> >
> > I can put on some tags if you think they are important for some reason,
> but
> > I don't have specific release points.
> > Every change in the dictionary triggers the re-build of the whole web
> site
> > and the two files as well.
> >
> >
> >
> > > This would let anyone with high-enough motivation the ability to test
> it
> > > on their own machine (I may volunteer).
> > >
> >
> > I'd really like to know how do you (or some else) test it.
>
> `hunspell -D` shows where you can drop the files; then `hunspell -d
> language` would lets me spell-check a text, say a random page from
> https://lad.wikipedia.org.
>
>
Thanks. And yeah, the ladino version of vikipedia is quite bad - as I am
told - as it is written mostly by spanish speakers
who include a lot of words from modern spanish instead of using Ladino.
That's another project to work on to fix that :)

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


Re: Creating a Ladino spell-checker and including it in OS projects

2022-06-12 Thread Gabor Szabo
Hi Dan,


On Tue, Jun 7, 2022 at 11:18 PM Dan Kenigsberg 
wrote:

> On Wed, Jun 01, 2022 at 06:47:41AM +0300, Gabor Szabo wrote:
> > Hi,
> >
> > I've been working on an online Ladino (Judeo-Espanyol) dictionary
> > https://diksionaryo.szabgab.com/ The code is open source the content is
> > CC BY-SA 4.0  https://creativecommons.org/licenses/by-sa/4.0/
> > All linked from the About page.
> > Along with the creation of the translation I also have a (growing) list
> of
> > ladino words.
> >
> > I would like to make this available as a spell checker in various Open
> > Source tools.
> > E.g. Firefox, Chromium, LibreOffice etc.
> > I wrote about it a few weeks ago
> > https://szabgab.com/add-spellchecker-to-various-applications.html but I
> am
> > still unclear what and how to do.
> >
> > I started to generate a pair of files that resemble the format of hspell,
> > but I don't know how to really test them and in any case they don't seem
> to
> > work well.
> > I also don't know how to distribute what I already have and how to make
> it
> > included in those projects.
> >
> > Anyone here has experience with spell-checkers?
> > Could anyone help me in the project or at least point me in the right
> > direction?
>
> Well, if I were you, I'd start by creating a github repository with your
> code and a tagged version of your artifacts, these .aff and .dic files
> used by hunspell.
>

It is being generated now on every push:
https://github.com/szabgab/ladino-diksionaryo-generated/

I can put on some tags if you think they are important for some reason, but
I don't have specific release points.
Every change in the dictionary triggers the re-build of the whole web site
and the two files as well.



> This would let anyone with high-enough motivation the ability to test it
> on their own machine (I may volunteer).
>

I'd really like to know how do you (or some else) test it.


>
> Next, I'm afraid, comes specialized packaging for different environments.
> In hspell I added Makefile targets for hunspell-he.rpm and for Mozilla
> xpi. The former is good enough for most application on
> Fedora/CentOS/RHEL. Then you could propose the rpm to Fedora;
> or the xpi to Mozilla; or hope that someone else does it for you for
> OSes and applications you are not familiar with.
>

Thanks, I'll look into that.


>
> It's a long process, but when it works it's quite satisfying.
>
>
I am sure. The whole direction creation project will take a long time, but
if I can show more value coming out
from the project (e.g.  a spell checker in FF or Chrome)  that might
motivate more people to help out.

BTW do you, or anyone else on the list have other suggestions which OS
projects might be worth targeting
to include the Ladino spell-checker or dictionary?

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


Creating a Ladino spell-checker and including it in OS projects

2022-05-31 Thread Gabor Szabo
Hi,

I've been working on an online Ladino (Judeo-Espanyol) dictionary
https://diksionaryo.szabgab.com/ The code is open source the content is
CC BY-SA 4.0  https://creativecommons.org/licenses/by-sa/4.0/
All linked from the About page.
Along with the creation of the translation I also have a (growing) list of
ladino words.

I would like to make this available as a spell checker in various Open
Source tools.
E.g. Firefox, Chromium, LibreOffice etc.
I wrote about it a few weeks ago
https://szabgab.com/add-spellchecker-to-various-applications.html but I am
still unclear what and how to do.

I started to generate a pair of files that resemble the format of hspell,
but I don't know how to really test them and in any case they don't seem to
work well.
I also don't know how to distribute what I already have and how to make it
included in those projects.

Anyone here has experience with spell-checkers?
Could anyone help me in the project or at least point me in the right
direction?

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


Re: OT (but I don't know who else to ask) - e-mail forwarding

2022-03-15 Thread Gabor Szabo
A few weeks ago I started to use https://forwardemail.net/ they have a free
version in which you set the forwarding rules in the DNS configuration
which means this information is public.
I use the paid version for $3 / month in which I can configure the
forwarding rules on their web UI and that information is kept private.
It is an open source project so I find this money well spent.

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


Re: Copy-Paste from Firefox 88.0.1 not working properly on Ubuntu 21.04 (Hirsute Hippo)

2021-05-18 Thread Gabor Szabo
I noticed I have similar issues while trying to copy from the terminal.
Highlight then Ctrl-Shift-C. Ctlr-Shift-V works in the terminal and pastes
it, but Ctrl-V in other applications freeze the other app for a few seconds
and the paste does not work.

Earlier I tried a reboot. It worked for a while then it stopped.

Yesterday I tried logout/login and it has been working since then.

Now my guess is that there might be some key combination that starts this
behaviour. Really strange.

Gabor

On Tue, May 18, 2021 at 8:50 AM Michael Shiloh 
wrote:

> I'm also on 21.04. Copying from FF to a terminal and to email seems to
> work fine.
>
> Probably unrelated, but I first upgraded from 20.10 to 21.04. Everything
> seemed fine until I tried to use my Arduino, and found that the serial
> ports no longer worked. After some discussion with Arduino and Ubuntu
> forums I decided to do a fresh install of 21.04, and now serial ports work.
> (I would have liked to understand this problem but I'm on a deadline to get
> some Arduino work done).
>
> Like I said, probably unrelated. But if you get desperate try a fresh
> install (I know, that's a real kludge, like power cycling to see if a
> problem goes away)
>
> On Tue, May 18, 2021 at 9:44 AM Gabor Szabo  wrote:
>
>> Hi,
>>
>> A few days ago I  upgraded from 20.10 to 21.04. Since then I have
>> problems with Copy-paste. At first it seemed to be randomly not working,
>> but after some experimentation I think it does not work when I try to Copy
>> from Firefox to anything else which is not Firefox.
>>
>> (And to be even stranger it seems to work sometimes from Firefox to other
>> apps as well, but only a few times and then it stops working.)
>>
>> I also posted it on AskUbuntu, but so far no good responses.
>>
>>
>> https://askubuntu.com/questions/1338970/copy-paste-from-firefox-88-0-1-not-working-properly-on-ubuntu-21-04-hirsute-hip
>>
>> Have any of you encountered it?
>> Do you have a similar environment and it works for you?
>>
>> Gabor
>>
>> ___
>> 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


Copy-Paste from Firefox 88.0.1 not working properly on Ubuntu 21.04 (Hirsute Hippo)

2021-05-17 Thread Gabor Szabo
Hi,

A few days ago I  upgraded from 20.10 to 21.04. Since then I have problems
with Copy-paste. At first it seemed to be randomly not working, but after
some experimentation I think it does not work when I try to Copy from
Firefox to anything else which is not Firefox.

(And to be even stranger it seems to work sometimes from Firefox to other
apps as well, but only a few times and then it stops working.)

I also posted it on AskUbuntu, but so far no good responses.

https://askubuntu.com/questions/1338970/copy-paste-from-firefox-88-0-1-not-working-properly-on-ubuntu-21-04-hirsute-hip

Have any of you encountered it?
Do you have a similar environment and it works for you?

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


Streaming to YouTube from Partner - is there a rate limit?

2021-03-02 Thread Gabor Szabo
Hi,

yesterday I tried to stream a video - a live coding session - to YouTube. I
set OBS to send at 2500 bps and later increased it even to 8500 bps. Using
"glances" I saw my network card reporting sending at that rate, but YouTube
was still complaining of too slow stream - less than 2500 bps.

Do you have any experience with streaming? Successes failures?
Is it possible that Partner / 012 limits the streaming rate?
Can there be some other issue?
What do you think I could do?

I am on Fiber and the speed test report 92 Mbps / 22 Mbps (I think nominal
it is 100/25) to the near-by https://www.speedtest.net/ station.
I also checked it with New York and I got 92 / 18.

Uploading large videos to YouTube works very fast.

I tried mtr with the IP address where traffic seemed to go

mtr --tcp 74.125.173.201 -c 100 --csv

Mtr_Version,Start_Time,Status,Host,Hop,Ip,Loss%,Snt,
,Last,Avg,Best,Wrst,StDev,
MTR.0.93,1614756064,OK,74.125.173.201,1,OpenWrt.lan,0.00,100,0,0.72,0.90,0.38,5.10,0.49
MTR.0.93,1614756064,OK,74.125.173.201,2,176-230-246-67.orange.net.il
,0.00,100,0,1.38,1.92,0.56,29.36,3.44
MTR.0.93,1614756064,OK,74.125.173.201,3,???,100.00,100,100,0.00,0.00,0.00,0.00,0.00
MTR.0.93,1614756064,OK,74.125.173.201,4,???,100.00,100,100,0.00,0.00,0.00,0.00,0.00
MTR.0.93,1614756064,OK,74.125.173.201,5,???,100.00,100,100,0.00,0.00,0.00,0.00,0.00
MTR.0.93,1614756064,OK,74.125.173.201,6,???,100.00,100,100,0.00,0.00,0.00,0.00,0.00
MTR.0.93,1614756064,OK,74.125.173.201,7,82.102.132.78,0.00,100,0,2.73,2.35,1.27,31.73,3.01
MTR.0.93,1614756064,OK,74.125.173.201,8,80.179.166.142.static.012.net.il
,0.00,100,0,54.78,60.55,52.56,84.40,6.62
MTR.0.93,1614756064,OK,74.125.173.201,9,
ipv4.de-cix.fra.de.as15169.google.com
,0.00,100,0,70.36,70.37,65.52,81.12,3.69
MTR.0.93,1614756064,OK,74.125.173.201,10,108.170.252.1,0.00,100,0,56.19,58.51,53.72,71.16,4.66
MTR.0.93,1614756064,OK,74.125.173.201,11,74.125.253.245,0.00,100,0,68.74,66.81,58.19,88.29,6.79
MTR.0.93,1614756064,OK,74.125.173.201,12,74.125.173.201,0.00,100,0,56.48,60.12,53.36,80.47,5.75

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


Re: Connecting multiple external screens to Ubuntu Linux

2020-06-15 Thread Gabor Szabo
Thanks for all the replies so far.

So if I understand correctly I might buy a docking station similar to this
one:

Lenovo Powered USB-C Travel Hub - Docking station - USB-C - VGA, HDMI -
Worldwide - for ThinkPad L14 Gen 1, P14s Gen 1,
https://www.newegg.com/global/il-en/p/0XP-006B-001E1?item=0XP-006B-001E1

that connects to the USB-C of my computer and provides an HDMI and VGA
slots so I can connect two screens, one via each slot.
Will I be able to also connect a 3rd external screen to my regular HDMI
slot in the computer?
Will I be able to have 4 different screens?

As I understand this computer has a single graphics card. So how can it
drive more than one screen? What is the limit?
If I buy a desktop computer can a single graphics card drive more than one
screen there?

Any pointers to some explanations how this graphics card to screens mapping
works?

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


Connecting multiple external screens to Ubuntu Linux

2020-06-13 Thread Gabor Szabo
Hi,

I have a Thinkpad (
https://www.lenovo.com/il/en/laptops/thinkpad/13-series/ThinkPad-13-Windows-2nd-Gen/p/22TP2TX133E
). It has a single HDMI slot but when I run xrandr I get:

Screen 0: minimum 320 x 200, current 1920 x 2160, maximum 16384 x 16384
eDP-1 connected 1920x1080+0+1080 (normal left inverted right x axis y axis)
294mm x 165mm
.
HDMI-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y
axis) 510mm x 287mm

DP-1 disconnected (normal left inverted right x axis y axis)
HDMI-2 disconnected (normal left inverted right x axis y axis)

(The  are just lots of lines of possible configuration).

Based on this (and on my lack of understanding) I could connect another
monitor to DP-1
and one to HDMI-2, but I don't know where can I plug them in physically?

If I understand correctly an HDMI-splitter might work, but the screens
connected to that would show the same image. (Mirror configuration.) I
would like to have different content on each screen.

Any idea?

In a more generic question: what do I need in my computer so I can have
more than 2 displays showing different(!) content? Do I need a separate
graphics card for each display?

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


Re: Lenovo ideapad 710S-13IKB bios/boot issue

2020-04-29 Thread Gabor Szabo
In the end I created a USB with Ubuntu 20.04 and installed it in the empty
partition that was already set aside for Linux.
This configured grub so it now has a menu in which I can select either
Windows or Linux.
It also changed the BIOS so now I have a bootable entry for Windows as well
as for ubuntu.
The former gets me in Windows directly, the latter show the grub menu.

All that after changing the disk from RAID to AHCI in the BIOS.

Thank you all for your help!

Gabor
ps. The camera still does not work, but it does not work in Linux either.
So maybe it was already broken when I bought
the computer second-hand. Now I'll need to find and buy a small camera that
can be attached to it.
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Lenovo ideapad 710S-13IKB bios/boot issue

2020-04-29 Thread Gabor Szabo
On Wed, Apr 29, 2020 at 12:02 PM Shachar Shemesh 
wrote:

>
> On 29/04/2020 11:50, Gabor Szabo wrote:
>
> Thanks for the quick reply, at least I don't feel totally alone in this!
>
> Alone?
>
>
> Sure, I meant being alone now here sitting at home and being afraid that
my daughter wakes up an demands her computer,
here main connection to the outside world, which I just bricked :)

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


Re: Lenovo ideapad 710S-13IKB bios/boot issue

2020-04-29 Thread Gabor Szabo
On Wed, Apr 29, 2020 at 11:50 AM Gabor Szabo  wrote:

> Thanks for the quick reply, at least I don't feel totally alone in this!
>
> On Wed, Apr 29, 2020 at 11:42 AM Shachar Shemesh 
> wrote:
>
>>
>> Some SATA/NVME devices have dual modes, settable in the BIOS. They might,
>> e.g., have a RAID mode etc. Some of those modes are not supported by Linux.
>> Resetting that in the BIOS should make at least your bootable DoK see the
>> disk again.
>>
>>
>> I saw that in the BIOS, I'll try that.
>

I changed the disk from RAID to AHCI in the BIOS and booted from USB and
now lsblk shows the harddisk.

sda   8:01  14.3G  0 disk /cdrom
sda18:11   1.9G  0 part
sda28:21   2.4M  0 part
nvme0n1 259:00   477G  0 disk
nvme0n1p1 259:10   499M  0 part
nvme0n1p2 259:20   100M  0 part
nvme0n1p3 259:3016M  0 part
nvme0n1p4 259:40 332.2G  0 part
nvme0n1p5 259:50   572M  0 part

based on this and after consulting my notes I can see that apparently I did
not install Linux here, only allocated disk space in case I will want to
install it as well.
I can also see that this was done in December 2018, not that it matters a
lot now.

So now at least I can access the hard disk. That's a relief.

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


Re: Lenovo ideapad 710S-13IKB bios/boot issue

2020-04-29 Thread Gabor Szabo
Thanks for the quick reply, at least I don't feel totally alone in this!

On Wed, Apr 29, 2020 at 11:42 AM Shachar Shemesh 
wrote:

>
> On 29/04/2020 11:35, Gabor Szabo wrote:
>
> Hi,
>
> Since then I cannot boot the system, it does not even seem to recognize
> the harddisk properly.
>
> Can you clarify something, please? Is it only Linux, or also Windows, that
> won't boot?
>

The BIOS does not even have an option to boot into Windows any more.

Linux gets to the   grub>   prompt and I don't know how to proceed from
there.
It does not show a grub menu.


>
> Because it certainly looks like grub starts, and is able to see the disks
> (if not understand the filesystems).
>
>
> Yes, that's how I understand it.



> Some SATA/NVME devices have dual modes, settable in the BIOS. They might,
> e.g., have a RAID mode etc. Some of those modes are not supported by Linux.
> Resetting that in the BIOS should make at least your bootable DoK see the
> disk again.
>
>
> I saw that in the BIOS, I'll try that.


> What I don't understand is why your Windows would stop booting. At the
> very least, it should start the boot process and BSoD when the disk drivers
> have changed for it.
>

My understanding stop at the point why would the bios flashing make the
Windows entry disappear from the list of boot options.

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


Lenovo ideapad 710S-13IKB bios/boot issue

2020-04-29 Thread Gabor Szabo
Hi,

I have been fighting with this for several hours now and I feel pretty
lost. I don't even know how to describe it in short.

So I am describing all I have managed to find out in the hope that someone
will have some idea or suggestion.

I have a Lenovo ideapad on which I had Windows 10 and I think Ubuntu (about
8 month ago, so probably 18.10 or 19.04). As I recall I installed them dual
boot, but as it was not my computer only the Windows was used. The built-in
video camera did not work so today, following the instruction of the
automated hardware check of Lenovo I ran the BIOS upgrade program.

Since then I cannot boot the system, it does not even seem to recognize the
harddisk properly.

Before the flash I looked at the Boot section in the BIOS and as I recall
it had 3 interesting options
ubuntu
something Windows  (I don't recall the exact name)
ATA HDD: SAMSUNG 
and a few about USD HDD/USE CD etc.

now when I enter the BIOS I don't see the one that had Windows in its name.
This seems like a problem :(


If I set the "ATA HDD" as the first on the boot order I see  "System
bootloader not found"
and then it reboots automatically. It also seems to set the boot-order back
to

1. ubuntu
2. ATA HDD: SAMSUNG 
...

When I boot now it automatically gets into the grub cli:

grub>

grub> ls
(hd0) (hd0,gpt5) (hd0,gpt4) (hd0,gpt3) (hd0,gpt2) (hd0,gpt1)

grub> ls (hd0)
Filesystem is unknown

same with all the others except
grub> ls (hd0,gpt2)
Filesystem is fat.

grub> ls (hd0,gpt2)/
efi/ System Volume Information/

This is the same as
grub> ls /

I have no idea what to do with this. I guess I need to find the /boot
somewhere, but so far I could not find it. Any ideas here?

-
Booting from disk on key:
I found a disk on key with Ubuntu 18.10 on it.
After plugging in and changing the boot order in the BIOS I managed to boot
from it.
I could even connect to the wifi, but I don't know how to access the
harddisk of the computer.

sudo lsblk  shows me

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
loop07:00   1.8G  1 loop /rofs
loop17:10  87.9M  1 loop /snap/core/5662
loop27:20 140.9M  1 loop /snap/gnome-3-26-1604/70
loop37:30   2.3M  1 loop /snap/gnome-calculator/238
loop47:4013M  1 loop /snap/gnome-characters/124
loop57:50  14.5M  1 loop /snap/gnome-logs/45
loop67:60   3.7M  1 loop /snap/gnome-system-monitor/57
loop77:70  42.1M  1 loop /snap/gtk-common-themes/701
sda  8:01  14.3G  0 disk /cdrom
sda1   8:11   1.9G  0 part
sda2   8:21   2.4M  0 part

where sda is the disk on key.

At this point I was wondering how could I access the HD when running Ubuntu
from USB.

any pointers, ideas are welcome

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


Re: mapping usb disks to devices

2017-08-16 Thread Gabor Szabo
Excellent. Thank you!
Gabor

On Wed, Aug 16, 2017 at 10:23 PM, Shay Gover <govers...@gmail.com> wrote:
> Use blkid.
>
> On Wed, Aug 16, 2017 at 10:21 PM, Gabor Szabo <szab...@gmail.com> wrote:
>>
>> Hi,
>>
>> I have a USB hub connected to my Raspberry Pi and I have several
>> external Hard disks connected to the USB hub.
>> It seems the order the hard disks are mapped to the device files
>> /dev/sda1 /dev/sdb1 /dev/sdc1 is random. On every boot it might be
>> different.
>>
>> This of course breaks the mapping I have in /etc/fstab for the mounts.
>>
>> How can I solve this so I won't need to update /etc/fstab after every
>> boot?
>>
>> Is there a way to map specific hard disks to specific device files?
>>
>> regards
>>Gabor

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


mapping usb disks to devices

2017-08-16 Thread Gabor Szabo
Hi,

I have a USB hub connected to my Raspberry Pi and I have several
external Hard disks connected to the USB hub.
It seems the order the hard disks are mapped to the device files
/dev/sda1 /dev/sdb1 /dev/sdc1 is random. On every boot it might be different.

This of course breaks the mapping I have in /etc/fstab for the mounts.

How can I solve this so I won't need to update /etc/fstab after every boot?

Is there a way to map specific hard disks to specific device files?

regards
   Gabor

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


Re: OT: Israeli domain names

2017-08-13 Thread Gabor Szabo
Thanks for all the replies.

In the end I went with http://box.co.il for 49 NIS / year.
They were fully automated, but I had to print a form, fill it, scan it
and send it by email to ISOC in order to get their approval.
They (ISOC) even called me to verify that it is indeed me who asked
for the domain transfer.

regards
   Gabor

On Mon, Jul 31, 2017 at 9:42 AM, Gabor Szabo <szab...@gmail.com> wrote:
> Hi,
>
> I am a bit late bird, but as my domains start to expire I have to move
> them away from ISOC. I thought to give a try to BezeqInt (VirtualNest)
> as I don't know any of the others either.
>
> Apparently I cannot do the transfer online. I need to fill out some
> paper(!) forms.
> I talked to a representative. She told me I will also need to call
> them for renewals as that cannot be done via the website either.
>
> Finally she told me the cost is 100 NIS for the transfer and 250 NIS /
> 2 years for the domain name. I have not seen any of these prices on
> their site (I saw there 69 NIS / year) so I was rather shocked.
>
> What is your recommended registrar for Israeli domain names?
>
> regards
>Gabor

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


OT: Israeli domain names

2017-07-31 Thread Gabor Szabo
Hi,

I am a bit late bird, but as my domains start to expire I have to move
them away from ISOC. I thought to give a try to BezeqInt (VirtualNest)
as I don't know any of the others either.

Apparently I cannot do the transfer online. I need to fill out some
paper(!) forms.
I talked to a representative. She told me I will also need to call
them for renewals as that cannot be done via the website either.

Finally she told me the cost is 100 NIS for the transfer and 250 NIS /
2 years for the domain name. I have not seen any of these prices on
their site (I saw there 69 NIS / year) so I was rather shocked.

What is your recommended registrar for Israeli domain names?

regards
   Gabor

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


Re: How dynamic is the dynamic IP from ISPs ? (Bezeq Int + HOT)

2016-06-14 Thread Gabor Szabo
Thanks everyone. I see I am probably way behind the current state of
technology in ISP connectivity and routing.

As far as I know, I am using a dialer which resides in the HotBox they gave
me. (which is then connected to my own router)
and if I am not mistaken this means it uses ppp to connect to their side
and to get the IP.

In the end I only want to be able to ssh to a machine at home. Through that
ssh I can access anything I need,
but I am still not sure if and how I am going to do that if I give up my
nice IP.

I'll try it at another location where we have dynamic IP and see how does
that work out.

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


How dynamic is the dynamic IP from ISPs ? (Bezeq Int + HOT)

2016-06-13 Thread Gabor Szabo
Hi there!

For many years I had a fixed IP address using Bezeq International. I used
it to access my home computer while on the road.
I tried to upgrade from 30Mb to 100Mb (they even sold it to me) just to
find out
that they cannot configure 100 Mb if I use HOT as the cable and if I have a
fixed IP.

So I was thinking on giving up the fixed IP and use some kind of Dynamic
DNS scheme
to be able to access my home computer. Will I still be able to do that?
Will I still get a publicly routable IP or will that be already a NAT that
I won't be access from outside?

How dynamic is the IP they hand out. Can it change within a session or only
if I restart the router?

Any experience with this?

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


Re: router randomly dropping connections

2016-06-09 Thread Gabor Szabo
After sending the e-mail  I felt a bit embarrassed and went back to the
router.
I noticed the light of the cable where I am connected is blinking rather
fast.
Replacing the cable fixed the problem.

This also explains why noone else in the house complained :)

Thanks for listening!
Gabor


On Thu, Jun 9, 2016 at 1:22 PM, Gabor Szabo <ga...@szabgab.com> wrote:

> Hi there,
>
> Yesterday my Level One router started to drop connections and regaining
> its sanity after
> a few seconds, then dropping everything again:
>
> A ping to a machine on one of the other  legs of the router looks like
> this:
>
> 64 bytes from 192.168.0.102: icmp_seq=4 ttl=64 time=0.573 ms
> 64 bytes from 192.168.0.102: icmp_seq=5 ttl=64 time=0.714 ms
> 64 bytes from 192.168.0.102: icmp_seq=6 ttl=64 time=0.705 ms
> 64 bytes from 192.168.0.102: icmp_seq=7 ttl=64 time=0.716 ms
> ping: sendto: No route to host
> Request timeout for icmp_seq 8
> ping: sendto: No route to host
> Request timeout for icmp_seq 9
> ping: sendto: No route to host
> Request timeout for icmp_seq 10
> 64 bytes from 192.168.0.102: icmp_seq=11 ttl=64 time=1.044 ms
> 64 bytes from 192.168.0.102: icmp_seq=12 ttl=64 time=0.539 ms
> 64 bytes from 192.168.0.102: icmp_seq=13 ttl=64 time=0.586 ms
> ping: sendto: No route to host
> Request timeout for icmp_seq 14
> ping: sendto: No route to host
> Request timeout for icmp_seq 15
>
>
> Any idea what could cause this and how to fix it?
>
> So far I've tried to disconnect / reconnect it to the power, but that did
> not improve the situation.
>
> (both sides are cables, the wifi is off on this router)
>
>
> Gabor
>
>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


router randomly dropping connections

2016-06-09 Thread Gabor Szabo
Hi there,

Yesterday my Level One router started to drop connections and regaining its
sanity after
a few seconds, then dropping everything again:

A ping to a machine on one of the other  legs of the router looks like this:

64 bytes from 192.168.0.102: icmp_seq=4 ttl=64 time=0.573 ms
64 bytes from 192.168.0.102: icmp_seq=5 ttl=64 time=0.714 ms
64 bytes from 192.168.0.102: icmp_seq=6 ttl=64 time=0.705 ms
64 bytes from 192.168.0.102: icmp_seq=7 ttl=64 time=0.716 ms
ping: sendto: No route to host
Request timeout for icmp_seq 8
ping: sendto: No route to host
Request timeout for icmp_seq 9
ping: sendto: No route to host
Request timeout for icmp_seq 10
64 bytes from 192.168.0.102: icmp_seq=11 ttl=64 time=1.044 ms
64 bytes from 192.168.0.102: icmp_seq=12 ttl=64 time=0.539 ms
64 bytes from 192.168.0.102: icmp_seq=13 ttl=64 time=0.586 ms
ping: sendto: No route to host
Request timeout for icmp_seq 14
ping: sendto: No route to host
Request timeout for icmp_seq 15


Any idea what could cause this and how to fix it?

So far I've tried to disconnect / reconnect it to the power, but that did
not improve the situation.

(both sides are cables, the wifi is off on this router)


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


Re: OT: SSL certificates

2016-03-08 Thread Gabor Szabo
On Tue, Mar 8, 2016 at 9:47 PM, shimi <linux...@shimi.net> wrote:

> On Tue, Mar 8, 2016 at 9:33 PM, Gabor Szabo <ga...@szabgab.com> wrote:
>
>> I am trying letsencrypt.org . <http://letsencrypt.org>
>> I just cloned their repo and started to follow their instructions, but
>> then they say "nginx support is experimental, buggy, and not installed by
>> default" and I am using nginx for most of my servers. I guess their nginx
>> support will come soon and I can wait a bit though I wonder, have any of
>> you used it on nginx?
>>
>>
> When they say 'nginx support' they mean 'automatically configuring nginx
> for you'. There are plenty other ways (including manual, with other clients
> that doesn't force you to provide them with root access to your machine) to
> just issue the cert from a CSR, and install the cert normally on any web
> server you want. See for example
> https://tty1.net/blog/2015/using-letsencrypt-in-manual-mode_en.html and
> https://github.com/diafygi/letsencrypt-nosudo
>


Very useful links. Thanks

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


Re: OT: SSL certificates

2016-03-08 Thread Gabor Szabo
I am trying letsencrypt.org . <http://letsencrypt.org>
I just cloned their repo and started to follow their instructions, but then
they say "nginx support is experimental, buggy, and not installed by
default" and I am using nginx for most of my servers. I guess their nginx
support will come soon and I can wait a bit though I wonder, have any of
you used it on nginx?

regards
  Gabor




On Tue, Mar 8, 2016 at 8:27 AM, Michael Tewner <tew...@gmail.com> wrote:

> As far as I know, letsencrypt.org certs are only good for 90 days, and
> you'll want to have a script automatically renew and replace the cert in
> the background all the time.
> I like https://www.namecheap.com , as it helps you find the cheapest
> between different CA's.
> CACert is worthy of this community's support, but as you mentioned, their
> certs aren't included in any browsers or OS's.
>
>
>
> On Tue, Mar 8, 2016 at 7:24 AM, Baruch Siach <bar...@tkos.co.il> wrote:
>
>> Hi Gabor,
>>
>> On Tue, Mar 08, 2016 at 07:05:03AM +0200, Gabor Szabo wrote:
>> > A found plenty of companies offering SSL certificates. One of them
>> > https://www.ssl.com/
>> > that was recommended by the domain registrar I am using had
>> > $177 / year for the first 3 hostname and then $49 / year for each
>> > additional hostname and $129/year for each wildcard domain.
>> >
>> > Is that a reasonable price? Any suggestions?
>>
>> How about https://letsencrypt.org/ free certs?
>>
>> baruch
>>
>> --
>>  http://baruch.siach.name/blog/  ~. .~   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
>>
>
>
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


OT: SSL certificates

2016-03-07 Thread Gabor Szabo
Hi there,

I think it's time to move some of my sites to use https, but as I only had
self-signed ssl so far I wonder if you ppl have any recommendation where to
get the certificate from and how much
should I expect to pay?

I have one domain with about 20 subdomains (the translated versions of my
articles)
and a few other domains with 1-2, sometimes even more subdomains.

Most of them are probably considered commercial as they have ads on it and
on some of them I even have a few subscribers, but they are, unfortunately,
not a big business. Nevertheless I think this might exclude some "open
source" providers.

I looked at http://www.cacert.org/ but as I can see the certificate they
use on their own site is not recognized by either Chrome or Firefox. That
does not seem to be a good thing. (See https://www.cacert.org/ )

A found plenty of companies offering SSL certificates. One of them
https://www.ssl.com/
that was recommended by the domain registrar I am using had
$177 / year for the first 3 hostname and then $49 / year for each
additional hostname and $129/year for each wildcard domain.

Is that a reasonable price? Any suggestions?

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


Server stopped DNS name resolution

2015-03-22 Thread Gabor Szabo
Hi,

I run an Ubuntu based VPS on Linode.
I few hours ago the machine stopped resolving hostnames.
I think it was after an aptitude safe-upgrade and a reboot, but I am not
sure. Maybe was like this earlier.

It takes ages to ssh to it, once I got to the machine I can ping IP
addresses from it, but I cannot ping anything with a hostname.

this is what I have in resolv.conf

# cat /etc/resolv.conf

domain members.linode.com

search members.linode.com

nameserver 72.14.179.5

nameserver 72.14.188.5

options rotate


I tried to replace the nameservers with others that are listed in another
of my servers, but that did not make a change.

How can I track down what has the server stopped resolving hostnames?

Accessing the server via HTTP work as expected.

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


Re: Server stopped DNS name resolution

2015-03-22 Thread Gabor Szabo
Thanks to the educated response to all of you.
The Google nameservers got me a temporary solution and after a while they
have fixed their own nameservers.

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


Re: Server stopped DNS name resolution

2015-03-22 Thread Gabor Szabo
I tried that, and although I am not sure what should I look for in there it
seems to be claiming

rt_sigsuspend([];; connection timed out; no servers could be reached


I tried to telnet 72.14.179.5 53  (one of the DNS servers) and that did not
got a response.


Anyway, Linode support told me to add this to the resolve.conf

nameserver 8.8.8.8

nameserver 8.8.4.4

and that seemed to do the trick.

Gabor

On Sun, Mar 22, 2015 at 1:00 PM, guy keren guy.choo.ke...@gmail.com wrote:


 run this on the host:

 strace host www.google.com

 and scan the output.

 more efficient then guessing.

 --guy

 On 03/22/2015 12:50 PM, Gabor Szabo wrote:

 Hi,

 I run an Ubuntu based VPS on Linode.
 I few hours ago the machine stopped resolving hostnames.
 I think it was after an aptitude safe-upgrade and a reboot, but I am
 not sure. Maybe was like this earlier.

 It takes ages to ssh to it, once I got to the machine I can ping IP
 addresses from it, but I cannot ping anything with a hostname.

 this is what I have in resolv.conf

 # cat /etc/resolv.conf

 domain members.linode.com http://members.linode.com

 search members.linode.com http://members.linode.com

 nameserver 72.14.179.5

 nameserver 72.14.188.5

 options rotate


 I tried to replace the nameservers with others that are listed in
 another of my servers, but that did not make a change.

 How can I track down what has the server stopped resolving hostnames?

 Accessing the server via HTTP work as expected.

 Gabor



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


OT: Biometric ID

2015-03-15 Thread Gabor Szabo
A few weeks ago I asked to get a biometric ID. They took my finger prints
and asked all kinds of funny questions to make sure its me.
Today I went to pick up my new ID and their system could not recognize my
finger prints.

I got a bit nervous, but they calmed me down that I have nothing to worry
because the finger prints are only for the Interior Ministry and they are
sure the one in the system matches the one on my finger and that I will
only need it when dealing with Interior Ministry and they will mark in the
system that the fingerprints did not match when I received the ID.

So apparently they have a field in the database for this information.

They offered to order a new biometric card - claiming that the problem is
only in the card,
but they can only do that if first they give the broken one to me.

So I'd have a card that can identify me without any doubt, except that
the fingerprint in it cannot be matched to mine.

I asked if I could get a new non-biometric ID, but I was told I cannot any
more. Once I signed up for biometric ID, I cannot go back.

Madness.

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


Re: Adding external HDD to Raspberry Pi

2014-12-17 Thread Gabor Szabo
I've got this one:
http://www.dynamode.com/english/pages/product/Datacom%20Products/USB%20Products/USB-H40-A2-0.html

when I connected this device to the Raspberry I got these message

Dec 17 13:59:48 pi kernel: [246075.608736] usb 1-1.4: new high-speed USB
device number 112 using dwc_otg

Dec 17 13:59:48 pi kernel: [246075.710412] usb 1-1.4: New USB device found,
idVendor=05e3, idProduct=0608

Dec 17 13:59:48 pi kernel: [246075.710447] usb 1-1.4: New USB device
strings: Mfr=0, Product=1, SerialNumber=0

Dec 17 13:59:48 pi kernel: [246075.710462] usb 1-1.4: Product: USB2.0 Hub

Dec 17 13:59:48 pi kernel: [246075.721467] hub 1-1.4:1.0: USB hub found

Dec 17 13:59:48 pi kernel: [246075.721944] hub 1-1.4:1.0: 4 ports detected


When I connected the HD to it  the syslog was filled with this message:
hub 1-1:1.0: over-current change on port 2

but I still could not see it using sudo fdisk -l

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


Adding external HDD to Raspberry Pi

2014-12-14 Thread Gabor Szabo
So finally I install the Raspberry Pi I bought a few weeks ago and wanted
to add an external HDD.
I plugged in the external hard drive and /var/log/syslog printed the
following:


Dec 14 17:02:55 pi kernel: [  759.981949] usb 1-1.3: new high-speed USB
device number 8 using dwc_otg

Dec 14 17:02:55 pi kernel: [  760.163364] usb 1-1.3: New USB device found,
idVendor=1058, idProduct=0820

Dec 14 17:02:55 pi kernel: [  760.163398] usb 1-1.3: New USB device
strings: Mfr=1, Product=2, SerialNumber=5

Dec 14 17:02:55 pi kernel: [  760.163414] usb 1-1.3: Product: My Passport
0820

Dec 14 17:02:55 pi kernel: [  760.163429] usb 1-1.3: Manufacturer: Western
Digital

Dec 14 17:02:55 pi kernel: [  760.163444] usb 1-1.3: SerialNumber:
57583431413432454363833

Dec 14 17:02:55 pi kernel: [  760.169522] usb-storage 1-1.3:1.0: USB Mass
Storage device detected

Dec 14 17:02:55 pi kernel: [  760.181935] scsi0 : usb-storage 1-1.3:1.0

Dec 14 17:02:56 pi kernel: [  761.183065] scsi 0:0:0:0: Direct-Access
WD   My Passport 0820 1012 PQ: 0 ANSI: 6

Dec 14 17:02:56 pi kernel: [  761.187365] scsi 0:0:0:1: Enclosure
WD   SES Device   1012 PQ: 0 ANSI: 6

Dec 14 17:02:56 pi kernel: [  761.189473] sd 0:0:0:0: [sda] Spinning up
disk...

Dec 14 17:02:56 pi kernel: [  761.277106] sd 0:0:0:0: Attached scsi generic
sg0 type 0

Dec 14 17:02:56 pi kernel: [  761.278094] scsi 0:0:0:1: Attached scsi
generic sg1 type 13


But then when I try to run


$ sudo fdisk /dev/sda

I get

fdisk: unable to open /dev/sda: No such device or address

$ ls -l /dev/sda

brw-rw---T 1 root floppy 8, 0 Dec 14 17:21 /dev/sda

$ sudo fdisk -l

only lists the sdcard


The external disk is brand new and it has NTFS on it. I have not handled
disk in linux for a long time, but a I recall I am supposed to use fdisk to
partition it and then use mkfs.ext4 to format.


So what am I missing here?


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


Re: Adding external HDD to Raspberry Pi

2014-12-14 Thread Gabor Szabo
Hmm, good question. The Raspberry does see the device when it is connected,
so is it possible that it needs more
power after later on?

How can I check?

If the problem is lack of current, how can I solve that? Can I put one of
these usb hubs that also provide power between the two?

Gabor

On Sun, Dec 14, 2014 at 8:43 PM, E.S. Rosenberg esr+linux...@g.jct.ac.il
wrote:

 Are you providing the external HDD with sufficient electricity? The
 Raspberry is most likely not capable of providing enough current...

 2014-12-14 19:30 GMT+02:00 Gabor Szabo ga...@szabgab.com:

 So finally I install the Raspberry Pi I bought a few weeks ago and wanted
 to add an external HDD.
 I plugged in the external hard drive and /var/log/syslog printed the
 following:


 Dec 14 17:02:55 pi kernel: [  759.981949] usb 1-1.3: new high-speed USB
 device number 8 using dwc_otg

 Dec 14 17:02:55 pi kernel: [  760.163364] usb 1-1.3: New USB device
 found, idVendor=1058, idProduct=0820

 Dec 14 17:02:55 pi kernel: [  760.163398] usb 1-1.3: New USB device
 strings: Mfr=1, Product=2, SerialNumber=5

 Dec 14 17:02:55 pi kernel: [  760.163414] usb 1-1.3: Product: My Passport
 0820

 Dec 14 17:02:55 pi kernel: [  760.163429] usb 1-1.3: Manufacturer:
 Western Digital

 Dec 14 17:02:55 pi kernel: [  760.163444] usb 1-1.3: SerialNumber:
 57583431413432454363833

 Dec 14 17:02:55 pi kernel: [  760.169522] usb-storage 1-1.3:1.0: USB Mass
 Storage device detected

 Dec 14 17:02:55 pi kernel: [  760.181935] scsi0 : usb-storage 1-1.3:1.0

 Dec 14 17:02:56 pi kernel: [  761.183065] scsi 0:0:0:0: Direct-Access
 WD   My Passport 0820 1012 PQ: 0 ANSI: 6

 Dec 14 17:02:56 pi kernel: [  761.187365] scsi 0:0:0:1: Enclosure
 WD   SES Device   1012 PQ: 0 ANSI: 6

 Dec 14 17:02:56 pi kernel: [  761.189473] sd 0:0:0:0: [sda] Spinning up
 disk...

 Dec 14 17:02:56 pi kernel: [  761.277106] sd 0:0:0:0: Attached scsi
 generic sg0 type 0

 Dec 14 17:02:56 pi kernel: [  761.278094] scsi 0:0:0:1: Attached scsi
 generic sg1 type 13


 But then when I try to run


 $ sudo fdisk /dev/sda

 I get

 fdisk: unable to open /dev/sda: No such device or address

 $ ls -l /dev/sda

 brw-rw---T 1 root floppy 8, 0 Dec 14 17:21 /dev/sda

 $ sudo fdisk -l

 only lists the sdcard


 The external disk is brand new and it has NTFS on it. I have not handled
 disk in linux for a long time, but a I recall I am supposed to use fdisk to
 partition it and then use mkfs.ext4 to format.


 So what am I missing here?


 Gabor



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


Re: BYOD in schools

2014-12-01 Thread Gabor Szabo
Thank all of you for the responses.

Only about 60% of the parents have supported the project and for now it has
been cancelled.

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


BYOD in schools

2014-11-19 Thread Gabor Szabo
In our school the management is trying to implement BYOD = Bring Your Own
Device

Some details here:

http://schooly.co.il/rabin-modiin/page.asp?page_parent=105646

First they talked about tablets but now it seems they talk about making us
buy
notebooks.
Among many other issues, please note the technical requirements that gives
us a choice of operating system:
Windows 7 or Windows 8

OTOH I could not find any information regarding the applications they want
to run.

Do you have any information about similar projects in other schools in
Israel?
What kind of devices have they used? What kind of applications do they
install?

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


Re: self mail hosting

2014-06-08 Thread Gabor Szabo
Instead of getting a static IP and doing this at home, have you considered
renting a VPS?
For example at Digital Ocean you can get one for $5/month which is not much
more than
the 15 NIS / month that was mentioned here for static IP and it is very
easy to handle.

Such server can do way more than just handling your e-mail.  I have two
droplets there.

https://www.digitalocean.com/

Gabor

and if you are in the mood, use my refcode to give me some credit

https://www.digitalocean.com/?refcode=0d4cc75b3a74
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: self mail hosting

2014-06-08 Thread Gabor Szabo
On Sun, Jun 8, 2014 at 9:04 PM, Efraim Flashner efraim.flash...@gmail.com
wrote:

 On Sun, 8 Jun 2014 19:11:15 +0300
 E.S. Rosenberg esr+linux...@g.jct.ac.il wrote:

  Slightly OT, but if I went for a VPS for my mail I'd probably want
  them to be outside of US jurisdition, are these?
 

 DigitalOcean lists on the bottom of their page that they're Proudly
 Made in NY so I assume that their servers are physically located in
 the USA.


DO has servers in New York, San Francisco, Amsterdam and Singapore, but
AFAIK they are a US-based company,
so even if you select a server in one of the other locations, I think they
are still somewhat under
US jurisdiction. Who knows. IANAL.

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


OSDC-Modiin meeting: 27 Years with GNU Awk

2014-05-25 Thread Gabor Szabo
Hi,

The Open Source Developers Club (OSDC) Modiin
has been meeting about once a month in the last 3 months.

The next meeting is going to be on Tuesday 27th May.
We are going to hear Aharon Robbins telling his story with GNU Awk
that he has been maintaining for 27 years.

The meeting starts at 19:00 in the offices of MESH in Modiin
for more information please check http://osdc.org.il/modiin/gawk

regards
  Gabor

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


OT: Recommended domain name registrar for il?

2013-10-21 Thread Gabor Szabo
I am still using ISOC as the registrar for my .il domains but now as
there are 3 domain names I need to renew I started to check again.
ISOC charges 230 NIS for 2 years but it lists a bunch of others
http://www.isoc.org.il/domains/
some of which charge 70 NIS / year.

Which one do you use? Are you satisfied? Any horror stories?
Which one would you recommend?

I only need the registration service, I manage DNS on my own.

Gabor

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


Re: Finding if a line contains Hebrew characters in perl

2013-04-28 Thread Gabor Szabo
(forwarding )to linux-il

On Sun, Apr 28, 2013 at 1:56 PM, Meir Guttman m...@guttman.co.il wrote:
 Dear Gabor and Ido,

 This post to the Il Linux mailing list bounced and wasn't posted since I am 
 not a member in the list. Please one of you post it so it shows and is 
 distributed.

 BTW Ido, from your original post I saw that you want to find lines with 
 (exactly?) three Hebrew characters, so I modified it and it is now:

 #!/usr/bin/env perl -w
 #

 use v5.14;
 use utf8;

 my $text = 'שלוabv';

 if ($text =~ /^[\p{HEBREW}]{3}/) {
   say yes;
 } else {
   say no;
 }

 Regards,
 Meir

 -Original Message-
 From: Gabor Szabo [mailto:szab...@gmail.com]
 Sent: יום ו 26 אפריל 2013 09:25
 To: linux-il
 Cc: Ori Idan; Meir Guttman
 Subject: Re: Finding if a line contains Hebrew characters in perl

On Thu, Apr 25, 2013 at 6:05 PM, ik ido...@gmail.com wrote:
 try this

 #!/usr/bin/env perl -w
 #

 use v5.14;
 use utf8;

 my $text = 'שלוabv';

 if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) {
   say yes;
 } else {
   say no;
 }

I'd probably use   \p{IsHebrew}  or \p{InHebrew} instead of the hexa code.
Check here: http://perldoc.perl.org/perluniprops.html to learn way more than 
you'd probably want to :)

I also CC-ed Meir Guttman who is *the* Perl Unicode expert.
He might have something more correct to suggest.

Gabor


 Well, first I am by no means a Unicode Expert, let alone *the* expert. All
 I have is some experience.

 Anyway, I did use the \p{HEBREW} instead of the \x{} and it returned yes.
 Please note, just {HEBREW} and ALL-CAPS! Here it is:

 #!/usr/bin/env perl -w
 #

 use v5.14;
 use utf8;

 my $text = 'שלוabv';

 if ($text =~ /^[\p{HEBREW}]/) {
   say yes;
 } else {
   say no;
 }

 I also used if ($text =~ /^[ש]/) {...}, simply entering the Hebrew letter
 Shin directly, and it printed yes too, signifying that 'ש' is the first
 letter. (My editor, as well as MS Outlook, show, from left to right, first
 'ו', then 'ל', then 'ש' and then abv.)

 I also tried to use the official Unicode name for 'ש' - \p{HEBREW LETTER SHIN}
 see http://www.unicode.org/charts/PDF/U0590.pdf , and evidently it isn't
 defined. I got a compile time error: Can't find Unicode property definition
 HEBREW LETTER SHIN at A bit disappointing!

 Try it out!

 Meir

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


Re: Finding if a line contains Hebrew characters in perl

2013-04-26 Thread Gabor Szabo
On Thu, Apr 25, 2013 at 6:05 PM, ik ido...@gmail.com wrote:
 try this

 #!/usr/bin/env perl -w
 #

 use v5.14;
 use utf8;

 my $text = 'שלוabv';

 if ($text =~ /^[\x{5D0}-\x{5ea}]{3}/) {
   say yes;
 } else {
   say no;
 }

I'd probably use   \p{IsHebrew}  or \p{InHebrew} instead of the hexa code.
Check here: http://perldoc.perl.org/perluniprops.html to learn way more than
you'd probably want to :)

I also CC-ed Meir Guttman who is *the* Perl Unicode expert.
He might have something more correct to suggest.

Gabor

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


power failure - no keyboard in grub menu

2013-04-24 Thread Gabor Szabo
hi

after a power failure when I try to boot my Ubuntu 12.04 machine it
displays the Grub menu but it
does not react to any keyboard combination I tried.


If I press Del earlier, it does get in the BIOS and there I can use
the keyboard, so it does not seem to be a hardware issue, but in the
GRUB menu no reaction.
So this things seems to be stuck.

Any idea what could I do?

regards
   Gabor

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


Re: power failure - no keyboard in grub menu

2013-04-24 Thread Gabor Szabo
Thanks for all the responses.

In the BIOS in the Integrted Peripherials menu I found an entry
called USB Keyboard function which was Disabled.
I enabled it and rebooted. This did the trick and now I am a happy user again :)

I have no idea if that was enabled or disabled before the power failure.
I also so anther entry called USB Mouse function which is also
Disabled but the mouse works.
So I guess I'll leave it for the next power failure :)

BTW this is a desktop with a USB keyboard.

regards
Gabor

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


Israeli Perl Workshop - list of talks - registration

2013-02-05 Thread Gabor Szabo
Hi,

the Israeli Perl Workshop http://act.perl.org.il/ilpw2013/ is less
than 3 weeks away.
The list of talks is available at http://act.perl.org.il/ilpw2013/talks

If you are interested to attend, please not that the full attendance
fee is 190 NIS
but the early bird price - valid till 17th February - is only 90 NIS.

regards
   Gabor

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


Zofim

2012-12-25 Thread Gabor Szabo
Hi,

I am trying to register my kid to Zofim (that I'd write Tzofim but never mind),

From this page: https://zofim.org.il/PortalHorim/index.asp?item_id=416548904836
I can select payments:
https://zofim.org.il/magazin_item.asp?item_id=387787671076
but that does not show the content.

Tried with both Firefox and Chrome on Linux.

Anyone happen to know the magic spell?

Is this a browser issue, or is the site just plain broken?

regards
Gabor

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


One week till the Perl Workshop

2012-02-21 Thread Gabor Szabo
Hi,

there is less than one week till the Israeli Perl Workshop
and I am looking for more ways to reach out to people
in the open source community and people in the industry
who are using Perl or who are interested in the latest
developments in Perl.

We are going to have two tracks of Perl talks from 8:30-18:00
and a dinner. All this on 28 February 2012 in Ramat Gan.

The talks will cover usage of Perl in web development,
configuration management, system administration and
various generic topics.

Oh and the workshop is free of charge.
(but requires registration on the web site)
(the dinner is pay as you eat)

I wrote a more detailed blog entry about it
http://szabgab.com/israeli-perl-workshop-2012.html
and you can see the detailed schedule at
http://act.perl.org.il/ilpw2012/schedule

You can register at http://act.perl.org.il/ilpw2012/

If you have any questions, don't hesitate to ask.

regards
   Gabor

-- 
Gabor Szabo                     http://szabgab.com/
Perl Weekly                       http://perlweekly.com/

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


Re: [OUT?] Help with Android?

2012-01-10 Thread Gabor Szabo
2012/1/10 Amichai Rotman amic...@iglu.org.il:
 Hi all,
 I own an Android device and I am looking for an Israel oriented, Android
 related mailing list...
 I know this is not exactly Linux related,  but I just don't know where else
 to look.
 The iAndroid forums aren't very helpful...

This is mostly used as an announcement list, but you can try your luck here:

gtug-tela...@googlegroups.com

regards
   Gabor
   http://szabgab.com/

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


Linux installation and configuration contractor needed

2011-09-11 Thread Gabor Szabo
Hi,

I was asked to forward the following e-mail.

If anyone is interested please contact Noam directly.

regards
   Gabor
   http://szabgab.com/

-- Forwarded message --
From: Noam Lugasi n...@lugasi.com
Subject: Following our phone conversation

 Hello Gabor,

** **

Following our phone conversation, I'm looking for a technical guy for system
Linux installation and configuration in a production environment, mainly
experienced with apache (build and restoration of web sites).

This is mainly for an IT project but it may include annual retain and
support agreement.

** **

Please let me know if you can find someone for this position.

** **

Regards,

** **

Noam Lugasi,

N.L. Advanced IT Solutions
___
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il


Re: Linux installation and configuration contractor needed

2011-09-11 Thread Gabor Szabo
freelancer  (contractor)

Gabor
Perl Weekly Newsletter
http://perlweekly.com/

On Sun, Sep 11, 2011 at 10:24 PM, Hetz Ben Hamo het...@gmail.com wrote:
 Is this a job for a freelancer or they want to hire someone as their
 permanent worker?
 Hetz

 2011/9/11 Gabor Szabo szab...@gmail.com

 Hi,

 I was asked to forward the following e-mail.

 If anyone is interested please contact Noam directly.

 regards
    Gabor
    http://szabgab.com/

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


How to write a Perl module and package it as a CPAN (like) distribution

2011-07-21 Thread Gabor Szabo
hi!

The next meeting of the Tel Aviv Perl Mongers of is going to take place
on 27 July in Ramat Gan. As happened in the past few months.
The gathering starts at

We are going to have one talk that will cover a number of topics including
- writing a module
- OOP
- Testing
- packaging

The title is


***  How to write a module and package it as a CPAN (like) distribution ***


You are all invited to the meeting!

Location: Shenkar College, Anna Franck 12, Ramat Gan, room 323!
Date: 27 July 2011
Time: We get together at 6:30pm, and talks begin at 7:00pm.
URL: http://perl.org.il/

regards
  Gabor

--
Gabor Szabo
http://szabgab.com/

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


Re: How to write a Perl module and package it as a CPAN (like) distribution

2011-07-21 Thread Gabor Szabo
Let me spam you again with some fixes as Orna pointed out I have a
half finished sentence

The gathering starts at ...  18:30

and I skipped the name of the high esteemed speaker who would be myself ;)

Thanks Orna!

regards
   Gabor


On Thu, Jul 21, 2011 at 11:50 AM, Gabor Szabo szab...@gmail.com wrote:
 hi!

 The next meeting of the Tel Aviv Perl Mongers of is going to take place
 on 27 July in Ramat Gan. As happened in the past few months.
 The gathering starts at

 We are going to have one talk that will cover a number of topics including
 - writing a module
 - OOP
 - Testing
 - packaging

 The title is


 ***  How to write a module and package it as a CPAN (like) distribution ***


 You are all invited to the meeting!

 Location: Shenkar College, Anna Franck 12, Ramat Gan, room 323!
 Date: 27 July 2011
 Time: We get together at 6:30pm, and talks begin at 7:00pm.
 URL: http://perl.org.il/

 regards
   Gabor

 --
 Gabor Szabo
 http://szabgab.com/


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


Re: [Israel.pm] Job offer:Linux system and scripting developer

2011-07-17 Thread Gabor Szabo
mbs,

excuse me but who are you and what is that we ?
No person name? No company name?

... and where would the job be located?

Just a few things I think you have left out from the message.

Gabor

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


Re: memory card reader is not mounting

2011-06-18 Thread Gabor Szabo
I am not sure if that was the only problem but it seems the card
reader was partially broken.
Plugging the memory unit into another machine that has a built-in
reader made wonders.
That machine also runs Windows 7 but I don't think that was the point :)

Gabor

On Thu, Jun 16, 2011 at 10:31 PM, Omer Zak w...@zak.co.il wrote:
 1. Do you have a memory card inside the reader (before or after
 connecting the reader to the PC)?
 2. Did you expect the memory card to be automounted?
 3. Does manual mount work?
 4. Do the various udev scripts work properly to create the
 appropriate /dev special file?

 --- Omer


 On Thu, 2011-06-16 at 22:09 +0300, Gabor Szabo wrote:
 Running Ubuntu 10.10 I connected a Zeikos memory card reader via usb 2.0

 in /var/log/messages I get the following but the disk is not mounted.

 Jun 16 21:55:08 localhost kernel: [475372.063775] usb 2-1: new high
 speed USB device using ehci_hcd and address 20
 Jun 16 21:55:08 localhost kernel: [475372.214741] scsi23 : usb-storage 
 2-1:1.0
 Jun 16 21:55:09 localhost kernel: [475373.211970] scsi 23:0:0:0:
 Direct-Access     USB Mass  Storage Device       PQ: 0 ANSI: 0 CCS
 Jun 16 21:55:09 localhost kernel: [475373.212487] sd 23:0:0:0:
 Attached scsi generic sg2 type 0
 Jun 16 21:55:09 localhost kernel: [475373.215088] sd 23:0:0:0: [sdb]
 32372736 512-byte logical blocks: (16.5 GB/15.4 GiB)
 Jun 16 21:55:09 localhost kernel: [475373.216263] sd 23:0:0:0: [sdb]
 Write Protect is off
 Jun 16 21:55:09 localhost kernel: [475373.219840]  sdb: sdb1
 Jun 16 21:55:09 localhost kernel: [475373.222703] sd 23:0:0:0: [sdb]
 Attached SCSI removable disk


 I wonder what is the problem and I how could I access the memory card?

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


Next Tel Aviv Perl Mongers meeting 29th June

2011-06-16 Thread Gabor Szabo
Hi,

the next meeting of the Tel Aviv Perl Mongers http://telaviv.pm.org/
will take place on 29th June in the
Shenkar College, Anna Franck 12, Ramat Gan, room 323.

We get together at 6:30pm, and talks begin at 7:00pm.

The schedule is as follows:


Scraping A Cookbook by ynon perek

I recently got a chance to convert a live web site
(http://www.anonymous.org.il) into an iPhone app. The process involved
deciding which parts will go into the app, how it will look, and
scraping the content to an SQLite db that was to be deployed on the
iPhone (along with an app).
In the talk, I will present some of the perls I used to get/convert
the textual and image data, and use them to talk about XPath, DOM and
SAX for digging the right data.

Duration: 40 minutes

#myjourneytoperl - graphing a meme by Dotan Dimet

Agenda: on March 30th, at the urging of Matt Trout, perl people on
Twitter posted text graphs showing their path to Perl from and through
other programming languages. Inspired by the directed graph format used,
I decided to capture these posts and combine them into a single giant
graph which I would render using the graphviz toolkit. I'll talk about
the tools I used (mojolicious, GraphViz, the twitter JSON api), the
problems I encountered (Unicode!) and the snapshot of the Perl community
that emerged.

Duration: 15 minutes


Writing a blog engine in 15 minutes by Gabor Szabo
==
It will be especially easy for people who are using Windows as they can
download a single package that have everything they need.
We will create a Dancer based web application and then allow a single
user to create blog posts.

Duration: 15 minutes


regards
--
Gabor Szabo
http://szabgab.com/

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


memory card reader is not mounting

2011-06-16 Thread Gabor Szabo
Running Ubuntu 10.10 I connected a Zeikos memory card reader via usb 2.0

in /var/log/messages I get the following but the disk is not mounted.

Jun 16 21:55:08 localhost kernel: [475372.063775] usb 2-1: new high
speed USB device using ehci_hcd and address 20
Jun 16 21:55:08 localhost kernel: [475372.214741] scsi23 : usb-storage 2-1:1.0
Jun 16 21:55:09 localhost kernel: [475373.211970] scsi 23:0:0:0:
Direct-Access USB Mass  Storage Device   PQ: 0 ANSI: 0 CCS
Jun 16 21:55:09 localhost kernel: [475373.212487] sd 23:0:0:0:
Attached scsi generic sg2 type 0
Jun 16 21:55:09 localhost kernel: [475373.215088] sd 23:0:0:0: [sdb]
32372736 512-byte logical blocks: (16.5 GB/15.4 GiB)
Jun 16 21:55:09 localhost kernel: [475373.216263] sd 23:0:0:0: [sdb]
Write Protect is off
Jun 16 21:55:09 localhost kernel: [475373.219840]  sdb: sdb1
Jun 16 21:55:09 localhost kernel: [475373.222703] sd 23:0:0:0: [sdb]
Attached SCSI removable disk


I wonder what is the problem and I how could I access the memory card?

regards
   Gabo

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


Re: sponsorship?

2011-05-29 Thread Gabor Szabo
On Sun, May 29, 2011 at 6:43 PM, geoffrey mendelson
geoffreymendel...@gmail.com wrote:



 if you go back to his writings, he's been anti-Israel and
 pro-Palestinain since the days of Ariel Sharon. If you google him, you find
 that he espouses those views even now.

On the HaMakor list someone already made a similar claim. I searched and have
not found anything blatantly anti-israeli. He points out various
things I don't like
to hear about Israel but that does not make those points incorrect.
I am sure you will now reply with a lits of links to his posts,
otherwise people might think you are just making empty accusations.

Gabor

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


Re: how do you handle (un)supported linux distributions?

2011-05-19 Thread Gabor Szabo
On Wed, May 18, 2011 at 5:40 PM, Dotan Cohen dotanco...@gmail.com wrote:

 For a desktop you can run an unsupported OS, such as an old Fedora.
 But for a server, use only a supported OS. Server operating systems
 generally are supported for five to nine years. Just look at RHEL,
 version 4.9 was released shortly after 6.0 and 5.6. That's a lot of
 support.

 Why do you resist upgrading the Ubuntu server?

The version I use on the serve is the LTS (Long Term Support) which
is supported for 5 years. We are in mid-term.

While the upgrades of Ubuntu on my desktop usually went fine
here and there I encountered issues. I could live with that as it only
affected me. If my server breaks then I am in for rough night and
a few hundred other people might not get the service.
So I am reducing risk and sticking to use old versions of
various applications and libraries.

regards
   Gabor

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


Re: how do you handle (un)supported linux distributions?

2011-05-19 Thread Gabor Szabo
On Thu, May 19, 2011 at 11:22 PM, Dotan Cohen dotanco...@gmail.com wrote:
 On Thu, May 19, 2011 at 15:46, Gabor Szabo szab...@gmail.com wrote:
 The version I use on the serve is the LTS (Long Term Support) which
 is supported for 5 years. We are in mid-term.


 So it is a supported OS. Your subject line implied that it is no
 longer receiving [security] updates.

That's case for some of the companies I encounter.
Not for the places where I am in charge.


 While the upgrades of Ubuntu on my desktop usually went fine
 here and there I encountered issues. I could live with that as it only
 affected me. If my server breaks then I am in for rough night and
 a few hundred other people might not get the service.
 So I am reducing risk and sticking to use old versions of
 various applications and libraries.


 Agreed, this is prudent. So long as your software works with the
 install library versions, that is. One issue I'm having now is a RHEL
 3 server with MySQL 4. A non-critical but nice to have application
 (Joomla) needs MySQL 5, and that would mean updating the whole server
 and a slew of running applications that will break in who knows how
 many ways. This leads me to an ambiguity: on one hand, never touch a
 running server! On the other, upgrading from RHEL 3 to 4 to 5 and
 possibly to 6 would have eased the migration path and allow this
 server to still be used for new applications. As it is, it will
 probably be relegated to running only the current legacy apps, even
 though the hardware is more than adequate for the needs of newer
 applications.

According to http://en.wikipedia.org/wiki/RHEL
RHEL 3 was end-of-life half a year ago. Unless you have the extended support.

There are at least two sides of this coin:
One of them is that if you stick to the vendor supported packages (e.g. MySQL)
then as time goes by you will be more and more limited to put new applications
on your server as they require newer versions of those other packages.

The other one is that every upgrade has its risks. What if the new version
of MySQL (or any other dependency your applications have) made some
changes that break your application? The longer you wait with the upgrade
the bigger these differences can be. The higher the risk for the upgrade.

Of course if you put Joomla (for example) that does not come with your
distribution
on your server then you already put some non-vendor package there.
Why not then replace the MySQL with one that does not come from your OS vendor?
Where do you draw the line between
   This thing I can install only from my OS vendor
and
  This thing I can install from elsewhere. (e.g. source, binary from
the developer, etc.)

regards
   Gabor

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


how do you handle (un)supported linux distributions?

2011-05-18 Thread Gabor Szabo
Hi,

On my desktop I run Ubuntu. I keep upgrading it to the latest version,
usually a few weeks after it was officially released.
On my server I run Ubuntu 8.04 LTS and I don't plan to upgrade it.
When time comes I will rent a new server, put the new version of
Ubuntu LTS on it and move all of my services there.

When I look at my clients - they tend to run RHEL, Suse or even CentOS a
lot more often than Ubuntu. Also they usually stick to older versions.
Even on the desktop.
In many cases they run unsupported versions of the OS.

I assume most of the people here also keep their desktops upgraded but
I wonder how do you manage your own servers and what happens at your
workplace/clients?

regards
   Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


Re: GPL as an evaluation license

2011-04-10 Thread Gabor Szabo
2011/4/10 Aviad Mandel aviad.man...@gmail.com

 I hope this clarifies why GPL's limitation of distribution is so appealing
 as an evaluation license: It stops the evaluation users exactly at the point
 where they want to really use the software, in embedded terms. And if I'm
 not wrong about the whole idea, a well-polished license like GPLv3 is by far
 better than anything I can come up with, with or without ten lawyers, since
 it's written based upon experience with legal issues worldwide, which I will
 never be able to do.


I don't know about the legal aspects and  I might not know much about the
industry
you are targeting but at some my clients there is a strict no GPL policy
while at
others the use of open source (especially GPL) requires the approval of the
legal
department which is complex. Most developers and their managers try
to avoid it which effectively means using new open source code is difficult.
Even if they are already using a lot of open source tools and code.

IMHO in most of these cases the GPL license will be a deterrence
from even trying the thing.

Your industry might be different.

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


Re: GPL as an evaluation license

2011-04-10 Thread Gabor Szabo
On Sun, Apr 10, 2011 at 2:26 PM, Tzafrir Cohen tzaf...@cohens.org.ilwrote:

  
  I don't know about the legal aspects and  I might not know much about the
  industry
  you are targeting but at some my clients there is a strict no GPL
 policy
  while at
  others the use of open source (especially GPL) requires the approval of
 the
  legal
  department which is complex.

 The alternative is not Apache or whatever. The alternative is a complex
 propritary license. Which has to go through the legal department anyway.

 In many cases the alternative is to write the thing in-house in a
less reusable way, without unit-test but with more bugs.



  Most developers and their managers try
  to avoid it which effectively means using new open source code is
 difficult.
  Even if they are already using a lot of open source tools and code.
 
  IMHO in most of these cases the GPL license will be a deterrence
  from even trying the thing.

 But this is when the GPL is used in production. Not for evaluation.


So the developer will say: OK I know the company does not want me to use
GPL code so let me just check it out to see if it would work even though
though I was told they cannot use it.



 Oh, and there are certainly other industries:


Luckily there are already


   Gabor


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


Tim O'Reilly in Tel Aviv?

2011-04-08 Thread Gabor Szabo
http://twitter.com/#!/timoreilly/status/56248124934586368

Gabor

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


Online car rental - with Firefox

2011-04-07 Thread Gabor Szabo
I am trying to rent a car for a trip in the US so I tried

http://www.ofran.co.il/   but the form does not update the list of places

I tried http://www.shlomo.co.il/   which allowed me to fill in the form

and when I reached this page:
https://www.shlomo.co.il/new/he/SearchResults.asp?it=2

I got this:

LibSixt error '80004003'

Object reference not set to an instance of an object.

/new/includes/globalFunctions.asp, line 643

That's about car rental in Israel using Firefox 3.6.16


Oh, apparently http://www.hertz.co.il/ works

Gabor
ps. just venting frustration

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


VLC can read it but I cannot?

2011-04-04 Thread Gabor Szabo
I have a CD with a short video film on it. I can see the video using
VLC but when I try to copy the
VIDEO_TS I get an error:


ls -al /media/cdrom/
ls: cannot access /media/cdrom/.: Permission denied
ls: cannot access /media/cdrom/..: Permission denied
ls: cannot access /media/cdrom/VIDEO_TS: Permission denied
total 0
d? ? ? ? ?? .
d? ? ? ? ?? ..
?? ? ? ? ?? VIDEO_TS
gabor@localhost:~$ ls -al /media/cdrom/VIDEO_TS
ls: cannot access /media/cdrom/VIDEO_TS: Permission denied


sudo ls -la /media/cdrom/
ls: cannot access /media/cdrom/VIDEO_TS: Permission denied
total 6
dr--r--r-- 3 4294967295 4294967295   88 2006-09-26 16:23 .
drwxr-xr-x 4 root   root   4096 2011-04-04 23:00 ..
?? ? ?  ? ?? VIDEO_TS
gabor@localhost:~$ sudo ls -la /media/cdrom/VIDEO_TS
ls: cannot access /media/cdrom/VIDEO_TS: Permission denied

Any idea why is that and how could I copy the video?


BTW running Ubuntu 10.10 and this is a personal video.

Gabor

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


TA.pm, Wednesday 23/2 How to get involved in an Open Source project

2011-02-20 Thread Gabor Szabo
Hi,

at the next Tel Aviv Perl Mongers meeting I am going to give
an introduction on how to get involved in an open source project.

Hopefully This presentation is going to be interesting to anyone who
wants to get involved if if s/he does not want to write code.
I am interested in seeing how web and graphic designers
or people who can write nice text can get involved in the project.
Both in English and in Hebrew.

Part of this presentation is me learning what are the questions
that people who are not developers need to get answered before
they can contribute to a project.

I'll use the example of the web site of Perl in Israel http://perl.org.il/ .
I'll show some of the tools needed for this specific project such as using
Subversion, HTML, CSS, and a template system but of course we will also
see some Perl code for those who are interested in that.

The main point I guess is the communication among people and the
social aspect of a project.

We'll see.

Some more ideas about the presentation can be read here:
http://szabgab.com/blog/2011/02/tel-aviv-perl-mongers-getting-started-in-open-source.html

I'd be happy if you forwarded this invitation to your web designer
friends as well

Tel Aviv Perl Mongers: http://telaviv.pm.org/

regards
Gabor

-- 
Gabor Szabo                     http://szabgab.com/
Perl Ecosystem Group       http://perl-ecosystem.org/

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


Re: Networking: How to add another router

2011-02-13 Thread Gabor Szabo
On Sun, Feb 13, 2011 at 6:47 PM, Geoff Shang ge...@quitelikely.com wrote:
 Hi,

 I find myself with the need to connect 5 ethernet devices to 4 available
 ports.

I probably misunderstand the whole problem, wouldn't a HUB or a switch
solve that?

Gabor
http://szabgab.com/

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


Re: [OT][NON-JOB OFFER] Beauty and the Geek 3 (Channel 10)

2011-01-17 Thread Gabor Szabo
So this is yet another show that is trying to reinforce the
stereotype that girls need to be beautiful and stupid while
guys need to be clever.
Do they also pick the girls to be blond?

Or do they run the show with half of the beauties being
male for half of the geeks who are female?

I have a (probably unfounded) hope that guys on the linux
lists will look for other things in women than just their
external (!) beauty.

BTW Was the name of the show originally
The Beauty and the Beast?

Yeah, go geeks. Apply!

Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


Re: What to tell 13 year old kids about Linux and Open Source?

2011-01-10 Thread Gabor Szabo
Mordecha,

That actually sounds like a brilliant idea.

Maybe I could ask them to bring all kinds of spare parts of a
computer and old computers they might have at home and we
could try to put together one ore more new computers and
install Linux on it.

This project could be spread on several meetings as we might
not be able to finish it within 1 hour.

I am a bit afraid though that
1) I won't be able to handle the task - after all I have hardly
touched any hardware recently
2) What if some of the pieces are not or not well supported by Linux?
3) Would it be interesting in the end to have an old computer?


BTW I am most familiar with Ubuntu as I have been using it in
the last couple of years but I wonder if it isn't too bloated for
old and under-powered computers? Maybe I should try to install
DSL http://www.damnsmalllinux.org/ ?

regards
   Gabor


2011/1/10 Mordecha Behar mordecha.be...@mail.huji.ac.il:
 Another thing I just thought of.
 As has been correctly pointed out, kids this age are nearly always
 end-users.
 So why not point out the end user experience of Linux? Lots of eye-candy,
 stability, not needing to reboot every time you install a program, the
 simplicity of finding and installing programs (package managers), great
 runtime on old hardware...
 In fact, that might be a nice class or group project for them to do,
 resurrect an old defunct computer and install Linux on it.
 מחשב לכל ילד is a nice program, but we all know that they lack funds. How
 cool would it be for this class to have an entire bank of computers that
 people have thrown out and work perfectly well? Half of the computers in my
 house are +6 years old and run Linux. Why not the classrooms?

 On Mon, Jan 10, 2011 at 11:29 AM, Nadav Har'El n...@math.technion.ac.il
 wrote:

 There have been some very good ideas in this thread (and I'm collecting
 them
 to use on my daughter when she's a little older ;-)), and I just wanted to
 add my two cents:

 On Mon, Jan 10, 2011, Alex Shnitman wrote about Re: What to tell 13 year
 old kids about Linux and Open Source?:
  Come on, guys, kids don't give a rat's ass about what's legal and what
  isn't. Even many adults don't. Those arguments may work in corporations,
  but
  certainly not in a school. Same thing about vendor lock-in: you're
  talking
  in adult terms here, they know nothing about it and they don't care.

 I agree. But it's not exactly that kids don't care what is illegal and
 what
 isn't - (most of) the same 13-year-old kids will not be shoplifting, or
 stealing from friends, for example - but when kids see that the *norms*
 are
 different from the *written laws*, they tend to accept the former (if they
 even know the latter). When a kid sees all kids around him are copying
 software, and no adult is doing anything to actively stop it, he learns
 that
 it is acceptable.

  The first thing I'd stress is customizability, as Mordechay has
  excellently
  mentioned. Imagine that you write code that is then used by millions of
  people all over the world. That kind of thing talks to kids. The second
  thing is the community aspect: you can enter chat rooms / forums and get
  help for the software you use. And if you wrote something or became an
  expert in something, people will come to you for advice. That's really
  cool.

 I think we need to separate between two completely different types of kids
 -
 wanabee-programmers, and the rest of the kids.

 To wanabee-programmers, I'd stress the customizability, possibility to
 modify
 everything the program does, learning from other people's code, publishing
 your version to others, and so on, as well as the community aspects. You
 can tell them that with Linux they can do on their home computer amazing
 stuff like run their own servers just like the big companies do.

 To everyone else, I doubt these will be interesting - I doubt that 80% of
 the kids in a typical class will even consider looking at source code, or
 hang around in geeky forums about software. To these kids, I do believe
 that other issues can be appealing, including freeness (tell them their
 parents can save 1,000 shekels when buying a new computer by not buying
 Windows or Office), and, belive it or not, convenience (Linux
 distributions
 come with hundreds of software, that on Windows you need to install
 separately).

 You can also tell them that X% of the Internet's servers use free
 software,
 that their favorite companies like Google, Facebook or whatever use them,
 and so on.

 You can tell them that Linux programmers are rarer and make more money in
 the job market ;-)

 You can tell them about the possibility of running both Windows and Linux,
 e.g., using a live CD or a virtual machine (although the latter is pretty
 complicated).

 And tell us how it went!

 Thanks,
 Nadav.

 --
 Nadav Har'El                        |       Monday, Jan 10 2011, 5 Shevat
 5771
 n...@math.technion.ac.il
 |-
 Phone 

What to tell 13 year old kids about Linux and Open Source?

2011-01-09 Thread Gabor Szabo
hi,

in the school of my son they are interested in getting some 1 hour long
presentations from parents about various interesting subject.

I could talk hours and days about Linux and Open Source in general
but I wonder what do you think. What would be interesting to 13 year
old kids?

I am not sure free speech is interesting to them and unfortunately
they are probably used to that every software is free beer.
Given the cheats and cracks.

So what do you think?

regards
   Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


Re: New Document: How to Start Contributing to or Using Open Source Software

2010-12-28 Thread Gabor Szabo
On Mon, Dec 27, 2010 at 8:37 PM, Shlomi Fish shlo...@iglu.org.il wrote:
 Hi all,

 I recently finished working on a new document titled How to Start
 Contributing to or Using Open Source Software intended to get more people
 involved in the world of free and open source software (FOSS). You can find it
 here:

 http://teachingopensource.org/index.php/How_to_start_contributing_to_or_using_Open_Source_Software

 Short link: http://bit.ly/gkeXn5

 Any comments, corrections or suggestions would be welcome.

Nice.

I just wanted to embark on another mission to get more people to contribute to
open source in general and Perl is specific. I think you article might help in
that though after I reached the Some Mental Preparation  part I am
a bit worried.

See my comments:


In the What is shrinkwrap software? section it sounds as
if open source software was not commercial.
IMHO there is an overlap and between the two.


The in What is open source software?  you are saying that
open source does not stand against commercialism which is of course
right but now sounds a bit contradicting the previous section.


Why open source software? Starts by the free beer approach.
I am not sure it is good to put that as the first item and thereby emphasize it
but if you do it you might want to add something like legally to
make that part clear.



Some Mental Preparation 
Wow, you start by turning people off? I understand you want to be as honest as
possible but you just lost everyone at that point. Everyone except the
fighters maybe.
Is the situation really that bad? I don't think so.

I'd write the opposite way, something like this:

While most open source projects are very welcoming to the newcomers
there too might
be bad apples who might sound offending. In most of the cases this is
just due to lack
of communication. So if you ever feel offended, either talk
(privately!) to the project leader
or look for another project.

And even this might be a bit too much on the negative side.

OTOH the Lessing quote was very good and moving.


regards
   Gabor
   http://szabgab.com/

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


Next Rehovot.pm meeting 14/December: Dancer the modern Perl web framework

2010-12-12 Thread Gabor Szabo
Hi,

sorry for the late announcement but I have been busy with lots of other tasks.

The next Rehovot.pm meeting is going to take place on this Tuesday,
14th December.
That is 2 days from now.

There are going to be two talks about Dancer, the Modern Perl Micro
Web-Framework.
First Sawyer X, one of the core developers of the project, will give
an introduction and
tell us about the good things in Dancer.

Then I am going to show you 1.5 projects in which I used Dancer and
I'll complain.
A bit.

There is no required minimum level of knowledge for these presentations.
Sawyer has already given a similar talk in front on the Python web developers.
They liked it.


The meeting will take place in the regular place in the Weizmann Inst.
in Rehovot
in Room 101 in the Levine Building.
We meet at 18:00
Talks start at 18:30.

After the talks we plan to go to a near-by place to consume some beverages.


For more details please visit the web site of the Rehovot Perl Mongers:
http://rehovot.pm.org/


regards
  Gabor


--
Gabor Szabo
http://szabgab.com/

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


Mojolicious and POE on 9th November in Rehovot

2010-10-29 Thread Gabor Szabo
On the next meeting of Rehovot.pm we are going to have two talks.

   Dotan Dimet: Mojolicious - duct tape for the HTML5 web

and

 SawyerX: P OE - Event-based, multi-tasking framework for Perl

For further details of the topics and references to the speakers please
visit our web site at http://rehovot.pm.org/meetings.html


Rehovot.pm stands for the Rehovot Perl Mongers - the local Perl user group.
While it is meeting in the Weizmann Institute in Rehovot people
form all over the country are welcome to join our meetings which are
free of charge.

The next meeting is on the 9th November at 18:00. Talks start at 18:30.

Please mark your calendar and let your co-workers know about the meeting.


regards
  Gabor Szabo, Chief Perl Monger
  http://szabgab.com/

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


Arduino in Israel

2010-10-21 Thread Gabor Szabo
hi,

is there any place in Israel where one could buy hardware for Arduino
http://arduino.cc/ ?

regards
  Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


Re: Arduino in Israel

2010-10-21 Thread Gabor Szabo
Thanks for the link.

This whole thing is very strange and they are not listed on the main
Arduino site either:
http://arduino.cc/en/Main/Buy

regards
   Gabor


On Thu, Oct 21, 2010 at 3:54 PM, Guy Corem g...@nop90.com wrote:

 I've CCed the owner - Eran Gal-Or.
 I've purchased a unit from him back on March without any problem.
 Guy
 On Thu, Oct 21, 2010 at 3:38 PM, Baruch Siach bar...@tkos.co.il wrote:

 Hi Guy,

 On Thu, Oct 21, 2010 at 03:23:10PM +0200, Guy Corem wrote:
  http://www.arduino.co.il/

 whois arduino.co.il says:

 remarks:      Domain not renewed. Being revoked.
 validity:     31-08-2010

 baruch

  On Thursday, October 21, 2010, Gabor Szabo szab...@gmail.com wrote:
   hi,
  
   is there any place in Israel where one could buy hardware for Arduino
   http://arduino.cc/ ?

 --
                                                     ~. .~   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: Arduino in Israel

2010-10-21 Thread Gabor Szabo
On Thu, Oct 21, 2010 at 3:58 PM, Udi Finkelstein linux...@udif.com wrote:
 You can also add:

 http://www.dash.co.il/index.php/cPath/1_7
 http://www.elector.co.il/index.php/krtis-pitvh-arduino.html
 https://www.4project.co.il/section.php?id=43

 I found these by searching Google  for arduino מחיר (without quotes).
 This search technique is very useful.

Thanks for the links.

I wonder why none of them are linked from http://arduino.cc/en/Main/Buy ?

Gabor

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


next Rehovot Perl Mongers meeting in 3 days: Programming Lacuna Expanse in Perl

2010-10-09 Thread Gabor Szabo
Hi,

Lacuna Expanse is a massively multiplayer online strategy game.
In short, it is a huge time sink. http://www.lacunaexpanse.com/

It was opened about 2 weeks ago.
I started to play about 5 days ago and I love it.
The only problem is that sometimes I have to give instructions
to my workers and my fleet while I am asleep.
The way to solve it is to write scripts that interact with the publicly
available API.

During the next meeting of the Rehovot Perl Mongers we'll read
through the client code written by Steffen Mueller and will learn
various programming techniques in Perl such as OOP,
automatic method generation and JSON-RPC.

It can be very interesting to anyone with basic to intermediate
knowledge of Perl or who are just interested to play the game.

The meeting will take place in the Weizmann Institute at our
usual place in the Levine Building at 18:00 on Tuesday, 12 October.

For more details check out the home page http://rehovot.pm.org/
and my blog entry:
http://szabgab.com/blog/2010/10/rehovot-perl-mongers-lacuna-expanse.html

regards
  Gabor
  http://szabgab.com/

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


Two instances of Apache on the same server

2010-10-05 Thread Gabor Szabo
I need to run two instances of Apache on the same SuSE based server but there
is something very basic I don't manage. In order to run to servers
I'll need two pid files
to hold the two process ids. So the first thing I tried was to change
the pidfile for the existing server.

I shut down Apache and the changed  /etc/init.d/apache2
the following line:

: ${pidfile:=/var/run/httpd2.pid}

to:

: ${pidfile:=/var/run/httpd2b.pid}

The problem is that after starting the web server using

/etc/init.d/apache2 start

it still created the /var/run/httpd2.pid file and NOT the
/var/run/httpd2b.pid file.

When I tried to stop the web server:
 /etc/init.d/apache2 stop
I got:
Shutting down httpd2 (not running) 

As an experience, then I renamed
/var/run/httpd2.pid to /var/run/httpd2b.pid
and tried to shut down the server again

/etc/init.d/apache2 stop

It printed:
Shutting down httpd2 (waiting for all children to terminate)
and then it got stuck for quite a while (20-30 sec maybe)
In the end it stopped the server but also left the
/var/run/httpd2b.pid file.

I am quite lost as looking at the /etc/init.d/apache2 script I don't know
where does it take the old name from. Not even where does it create
the pid file.


regards
  Gabor


ps. This is the /etc/init.d/apache2 script:
   ---
#!/bin/sh
#
# Copyright (c) 1996, 1997, 1998 S.u.S.E. GmbH
# Copyright (c) 1998, 1999, 2000, 2001 SuSE GmbH
# Copyright (c) 2002, 2003, (2004?) SuSE Linux AG
# Copyright (c) 2004(?), 2005, 2006, 2007, 2008 SUSE Linux Products GmbH
#
# Authors: Rolf Haberrecker apa...@suse.de, 2001
#  Peter Poeml apa...@suse.de, 2002, 2003, 2004, 2005, 2006,
2007, 2008
#
#
# /etc/init.d/apache2
#
### BEGIN INIT INFO
# Provides: apache apache2 httpd
# Required-Start:   $local_fs $remote_fs $network
# Should-Start: $named $time postgresql sendmail mysql ypclient 
dhcp radiusd
# Should-Stop:  $named $time postgresql sendmail mysql ypclient 
dhcp radiusd
# Required-Stop:$local_fs $remote_fs $network
# Default-Start:3 5
# Default-Stop: 0 1 2 6
# Short-Description:Apache 2.2 HTTP Server
# Description:  Start the Apache HTTP daemon
### END INIT INFO

pname=apache2
: ${sysconfdir:=/etc/$pname}
: ${apache_link:=/usr/sbin/httpd2}
: ${sysconfig_apache:=/etc/sysconfig/$pname}
: ${pidfile:=/var/run/httpd2b.pid}
: ${logdir:=/var/log/$pname}
: ${homedir:=/var/lib/$pname}

#
# load the configuration
#

#
# Note about ulimits:
# if you want to set ulimits, e.g. to increase the max number of open
file handle,
# or to allow core files, you can do so by editing /etc/sysconfig/apache2 and
# simply write the ulimit commands into that file.
# Example:
# ulimit -n 16384
# ulimit -H -n 16384
# ulimit -c unlimited
# See the output of help ulimit in the bash, or man 1 ulimit.
#
test -s /etc/rc.status  . /etc/rc.status  rc_reset

. /usr/share/$pname/load_configuration
export ${!APACHE_*}

httpd_conf=${APACHE_HTTPD_CONF:-$sysconfdir/httpd.conf}

apache_bin=$(/usr/share/$pname/find_mpm 2/dev/null)

test -L $apache_link  apache_bin=$(readlink $apache_link)

if [ -z $APACHE_MPM ]; then
APACHE_MPM=${apache_bin##*-}
fi

if ! [ -x $apache_bin ]; then
echo 2 ${warn}$apache_bin-$APACHE_MPM is not a valid httpd2 binary.
echo 2 Check your APACHE_MPM setting in /etc/sysconfig/$pname. $norm
rc_failed 5
rc_status -v1
rc_exit
fi

# a proper home should be set, otherwise the server might end up
# with HOME=/root and some script might try to use that
HOME=$homedir

get_server_flags()
{
unset server_flags
case $action in startssl) server_flags=-DSSL;; esac
for i in $APACHE_SERVER_FLAGS; do
case $i in
-D) ;;
-D*)server_flags=$server_flags $i;;
*)  server_flags=$server_flags -D$i;;
esac
done
}

action=$1
case $action in
stop|try-restart|*status*|probe)
;;
*)
shift; get_server_flags
${get_module_list_done:=false} || /usr/share/$pname/get_module_list
 export get_module_list_done=true
${get_includes:=false} || /usr/share/$pname/get_includes  export
get_includes_done=true
;;
esac

#
# main part
#
case $action in
start*)
if [ -e $pidfile ]; then
$0 status /dev/null
ret=$?
if [ $ret = 1 ]; then
echo Warning: found stale pidfile (unclean 
shutdown?)
elif [ $ret = 0 ]; then
echo Apache is already running ($pidfile)
rc_failed $ret
rc_status -v1
rc_exit
fi
fi

echo -n Starting httpd2 (${APACHE_MPM:-${apache_bin#*-}}) 
cmdline=$(echo 

Re: Two instances of Apache on the same server

2010-10-05 Thread Gabor Szabo
On Tue, Oct 5, 2010 at 3:58 PM, Yedidyah Bar-David
linux...@didi.bardavid.org wrote:

 No recent experience with SuSE, but you probably have to also edit
 apache's configuration file, perhaps somewhere in /etc/apache or
 /etc/httpd or something like that. Search for 'PidFile'.

I grep-ped the whole /etc for -i pid  and the only hit was in
/etc/init.d/apache2

Gabor

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


Re: comparing two directory structures

2010-09-06 Thread Gabor Szabo
On Sun, Sep 5, 2010 at 5:36 PM, Ehud Karni e...@unix.mvs.co.il wrote:
 On Sat, 4 Sep 2010 12:21:40, Gabor Szabo wrote:

 I guess there is an obvious command for this, I just don't know it.

 How can I compare two directory structures if the content is the same
 *disregarding*
 actual file content, or comparing that only if the file names and
 sizes are the same?

 As I understand diff -r  would do it but it would also compare files
 line by line.

 I had the same problem, so I patched diff to do it.

 I added 2 switches -Z: compare by siZe only,
                   -M: different Modification time is a difference.

 For a full description with the patches see:
    http://www.mail-archive.com/bug-diffut...@gnu.org/msg00023.html

 As these are images and movies, I don't want to compare them line by
 line or event byte by byte.

 Seems very common these days.


Very nice.
I could not find it out from the archive, has it been accepted?

Gabor

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


Re: comparing two directory structures

2010-09-06 Thread Gabor Szabo
On Mon, Sep 6, 2010 at 1:34 PM, Ehud Karni e...@unix.mvs.co.il wrote:
 On Mon, 6 Sep 2010 09:03:52 Gabor Szabo wrote:

 Very nice.
 I could not find it out from the archive, has it been accepted?

 No. I got no reply from the diffutil maintainer.

Maybe you need to send it as a new e-mail with [PATCH] in the subject?

Gabor

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


comparing two directory structures

2010-09-04 Thread Gabor Szabo
hi,

I guess there is an obvious command for this, I just don't know it.

How can I compare two directory structures if the content is the same
*disregarding*
actual file content, or comparing that only if the file names and
sizes are the same?

As I understand diff -r  would do it but it would also compare files
line by line.

As these are images and movies, I don't want to compare them line by
line or event byte by byte.
As a first approximation I only want to list files that exists in one
directory but not in the other
or when the files have different size.

Gabor

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


Communities in Action

2010-05-26 Thread Gabor Szabo
In the beginning of May there was an event called Communities in Action
in Oslo where several open source and not so open source communities met
giving talks etc.
See a blog post about it:
http://my.opera.com/cstrep/blog/communities-in-action-2010-in-oslo
and the program:
http://wiki.cantara.no/display/PE/Program+Communities+in+Action+2010


I personally don't have much time to organize such thing in Israel but
I'd be happy to organize
the Israel Perl Mongers track of it. Are people from other local
communities interested in such
one-day event?
Are there people interested in organizing such event or do you think
there would be companies
interested in doing it?

regards
   Gabor

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


Re: How do you calculate?

2010-05-20 Thread Gabor Szabo
On Thu, May 20, 2010 at 4:34 PM, Geoff Shang ge...@quitelikely.com wrote:
 On Thu, 20 May 2010, Nadav Har'El wrote:

 For years, I've been wondering: How do other Unix or Linux users do simple
 calculations?

 I use `bc -l`.  I've been using it for so long now that I can't remember
 exactly what clued me into needing `-l`, though I have a vague recollection
 of a friend of mine telling me about it.  I agree that having anything other
 than `-l` as the default is rather nuts.  I've been typing `bc -l` for
 solong that to not type `-l` is an effort.

wow, and I have been sitting in the dark all these years and typing
2000/3and moving 3 decimal points in my head to get to 2/3 ;-)

Gabor
now I am embarrassed 8-|

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


Who is contributing to Open Source development?

2010-05-15 Thread Gabor Szabo
Hi,

do you know about any research on mapping the profile of
people who are contributing to an open source project?

I found an interesting report from 2008:
http://www.redhat.com/about/where-is-open-source/

but I'd like to know are things like correlation to
- country
- GDP / capita of the country
- freedom of speech in the country
- personal income
- living in urban or rural area
- ... (probably a few other things I cant think about now)


Anyone with better Google fu or who remembers
such research, please send me links.

regards
  Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


Re: The web site of HaMakor does not work in Firefox

2010-05-03 Thread Gabor Szabo
On Sun, May 2, 2010 at 11:20 PM, Lior Kaplan kaplanl...@gmail.com wrote:
 Hi Gabor,

 The issue should be fixed by playing a bit with the site's CSS, so it will
 look better with all resolutions. The browser doesn't have anything to do
 with the problem.

Thank you!
Gabor

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


Re: [Haifux] Thanks for participating in the rant workshop

2010-04-29 Thread Gabor Szabo
Thank you all for your efforts to make our web a better place to live in!

Gabor

-- 
Gabor Szabo
http://szabgab.com/

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


The web site of HaMakor does not work in Firefox

2010-04-28 Thread Gabor Szabo
When looking at the website of HaMakor http://www.hamakor.org.il/
I see the butterfly on the top of the English About us menu item
and I cannot click on the menu item.

Typing http://www.hamakor.org.il/en/ worked and the menu item is highlighted.

Using FF 3.5.9 on Ubuntu 9.10.


regards
Gabor
http://szabgab.com/

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


Fwd: Ben Gurion - arrivals in Firefox

2010-04-27 Thread Gabor Szabo
This might interest some of you. (was in HTML originally but I
textified with Gmail)

Gabor

-- Forwarded message --
From: Telma Shamir tel...@iaa.gov.il
Date: Mon, Mar 22, 2010 at 11:59 AM
Subject: Ben Gurion - arrivals in Firefox
To: szab...@gmail.com


Dear Mr. Szabo,

Thank you for your e-mail.

In reply to your remark I would like to inform you as follows:

The IAA site was characterized in 2003, written

in CMS Microsoft technology and supports internet

Explorer browser.

This type of system is based on technology which

Varies often, and so do the users' requirements.

The Life Expectancy of such software is estimated at

5 to 7 years.

Since 2003 we have had many such requests for other

Browsers from users.

The IAA has considered the requests and has concluded

That vast changes should be made. However, in order to

do so we need to develop a new site which will respond

among others to the need for other browsers.

The new site is expected in a few months.



In spite of the said above, and in order to satisfy

the need of the users of other browsers in the meantime the IAA is now

Updating the flight screen (arrivals and departures) information, the most

sought information on our site, with an emphasis on adjusting the information

to the users with disabilities. The flight information will comply
with the W3C standard.

We do hope that the update will be complete soon.

In the meantime you may ask the Information at Ben-Gurion Airport –
972-3-975 (1 for English and then 9 for human voice).

We are sorry for the inconvenience caused to you and

other users.

Best regards,

Thalma Shamir

Manager, Public Affairs

Ben-Gurion Airport

Tel:  972-3-9752386

Fax: 972-3-9752387

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


Re: Kosher for Passover software

2010-04-01 Thread Gabor Szabo
On Thu, Apr 1, 2010 at 10:55 AM, Shlomi Fish shlo...@iglu.org.il wrote:

 Well, first of all, it should be noted that the $ sign is generally
 associated with greed for money (Like Make $$$ fast.) etc.

So you say Larry Wall makes all of us Perl programmers greedy?

He basically invented the extensive use of the $ signs:

use 5.010;

$what = the_answer;
$$what = 42;

say $the_answer;

say $$$what;


 If M$ implied respect for both the dollar sign and for Microsoft, it would
 be OK, but fact is it undermines both.

I think  /M$/  just means it ends with an M but I am just a greedy Perl hacker.

Gabor
http://szabgab.com/

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


Google Summer of Code and TPF call for students

2010-03-28 Thread Gabor Szabo
Hi,

The Perl Foundation (TPF) is participating in GSoC 2010 and will begin
accepting
applications from students on the 29th.  Please share this info with your local
academic contacts.


If you are a college student interested in Open Source software, now is
the time to get involved.

 http://code.google.com/soc/

Each year, Google offers students the opportunity to spend their summer
coding on open source projects. You propose a project, and if selected,
you're assigned a mentor and provided a $4500 stipend. It is a
competitive program to get into, but offers an amazing amount of
real-world experience and the ability to get seriously involved in an
open source project of your choosing. The Perl Foundation spans a wide
variety of projects including Perl 5, Perl 6, and Parrot with many
great mentors knowledgeable in areas ranging from language design,
virtual machines, and compilers through web and desktop applications.
This program is a great chance to get more involved in the Perl
community and put a substantial project worth of source code in your
portfolio.

Applications are due April 9th.

 http://www.perlfoundation.org/perl5/index.cgi?gsoc


Thanks,
Gabor

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


Ben Gurion - arrivals in Firefox

2010-03-15 Thread Gabor Szabo
Does anyone know if there is any web site where one can find out details of
arrivals on Ben Gurion airport even with Firefox?

http://www.iaa.gov.il/Rashat/he-IL/Airports/BenGurion/informationForTravelers/OnlineFlights.aspx?flightsType=arr

has some javascript that immediately hides the details so I need to
view source and then search for the text.
Trying to search tells me it only works with IE 5.5 and newer!

Gabor
-- 
Gabor Szabo http://szabgab.com/

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


Hebrew marked as 'iw' on Google translate

2010-01-10 Thread Gabor Szabo
Hi,

I was just looking at http://translate.google.com/
and noticed that the language code they use for hebrew is 'iw' and not 'he'.
which would be the ISO 639-1 standard.

Any idea why are they using a different code?
Is it only Hebrew or do other languages have
code that is different from the ISO 639-1 in the Google
translation tool?

if there is some other standard where Hebrew is actually 'iw'
that might be the one Google is using?

regards
   Gabor

-- 
Gabor Szabo http://szabgab.com/

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


What to do with a constant flow of attempts to login to my compuet?

2010-01-03 Thread Gabor Szabo
I just noticed someone bombarding my machine trying to login via ssh.
From auth.log

Jan  3 06:31:48 s6 sshd[22774]: Failed password for invalid user
amavisd from 202.138.142.216 port 35172 ssh2
Jan  3 06:31:48 s6 sshd[22773]: Failed password for invalid user
clamav from 202.138.142.216 port 39941 ssh2
Jan  3 06:31:49 s6 sshd[22780]: Invalid user clamav from 202.138.142.216
Jan  3 06:31:49 s6 sshd[22780]: pam_unix(sshd:auth): check pass; user unknown
Jan  3 06:31:49 s6 sshd[22780]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=202.138.142.216
Jan  3 06:31:49 s6 sshd[22781]: Invalid user appserver from 202.138.142.216
Jan  3 06:31:49 s6 sshd[22781]: pam_unix(sshd:auth): check pass; user unknown
Jan  3 06:31:49 s6 sshd[22781]: pam_unix(sshd:auth): authentication
failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=202.138.142.216
Jan  3 06:31:52 s6 sshd[22780]: Failed password for invalid user
clamav from 202.138.142.216 port 35699 ssh2
Jan  3 06:31:52 s6 sshd[22781]: Failed password for invalid user
appserver from 202.138.142.216 port 40470 ssh2


So what is your suggestion. What to do with it?

Gabor

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


Rehovot Perl Mongers - first meeting on 17 November - from Matlab to PDL

2009-11-10 Thread Gabor Szabo
I have already blogged about it and announced on the regular
perl mailing lists but let me announce it here are well.

We have started to organize monthly meetings of the
Rehovot Perl Mongers in the Weizmann Institute.

The first meeting will take place on 17th November. A week from today.

Speakers are

1) Hadar Levi Aharoni
2) Avishalom Shalit
3) and myself (Gabor Szabo)


We are going to talk about
1) Matlab
2) PDL - The Perl Data Language and how we can replace Matlab by PDL
3) A short update on Padre, the Perl IDE

Details are on my blog:
http://szabgab.com/blog/2009/11/1257443063.html

Please RSVP to me if you are planning to come!

In addition I am looking for project ideas we can work on.
Do you have an application written in Matlab that you think
would be interesting to port to PDL? Let us know and we will
try to include it in the projects of the meeting.

Gabor

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


Shekem Electric selling desktops with Linux

2009-10-31 Thread Gabor Szabo
I usually don't think much of the big electronic networks when it comes
to buying a computer but yesterday why flipping through the week-end
papers I pleasantly surprised that Shekem Electric is selling
Acer desktops with Linux installed.

http://www.shekem-electric.co.il/?CategoryID=281ArticleID=1326
http://www.shekem-electric.co.il/?CategoryID=281ArticleID=1325


Does anyone here have experience with them?


Gabor

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


Re: can the BIOS be changed from Linux? - failed overclocking with new computer

2009-10-28 Thread Gabor Szabo
On Tue, Oct 27, 2009 at 2:46 PM, Gilboa Davara gilb...@gmail.com wrote:
 On Mon, 2009-10-26 at 07:28 +0200, lior wrote:
 On Mon, 26 Oct 2009 06:44:17 +0200, Gabor Szabo szab...@gmail.com wrote:
  I just bought a new computer, install Ubuntu 9.10 beta (not the RC as
  it was not out yet)
  and after I try to reboot, the computer does not even reach the BIOS
  boot sequence.
  (blank screen).
  After letting it rest for some time I can turn it on, then it gets to
  the BIOS boot and displays the
  following error:
 
  Warning!!! The previous overclocking had failed, and system will
  restore its default setting.
  Press any key to continue...
 
  Pressing a key makes it boot but the happens again after one or two
  bootings.
 
  Oh, an *I* have not touched the BIOS and *I* did not configure
  overclocking.
 
  I already took the computer back once and they told me about some rare
  thing that happens
  only once every 2 years that the BIOS is flips.
  I think they just either did not configure it well or for some reason
  it gets broken after the first boot.
  Or something is broken or incompatible in the hardware.
 
 
  The question if Linux might change the BIOS or cause this problem?
  If not, what do you think could be the reason and the fix?
 
  Here are the details of the computer (from the order form) just in
  case someone can see
  some parts that do not work well with Linux or with each other.
 
  CPU: Q8200 2.33 Gh 4MB Core 2 Quad
  mother board: G41M-E43 DDR3 HDMI MSI
  screen card: Nvidia GeForce 9400Gt 512MB P.P.View
  HD: 500 Gb SATA2 16 Mb Hitachi
  Memory: CL7 DBT GEIL 2x2Gb (4Gb) DDR3 1066 Mhz
  DVD: GH22NS SATA LG DVDX22 DL
  power: 350W FAN 12 CM Power man
 
 

 I think you might be underpowered. I input the above specification in the
 newegg PSU calculator and got ~390W.

 http://educations.newegg.com/tool/psucalc/index.html

 The boot sequence is one point in time where you might notice this.

 Lior

 I second the above.
 You need at -least- a 450w PSU for this machine.
 (In your case, the CPU + GPU alone can eat more than 250w...)

 - Gilboa

Interesting.
I took back the computer again. They called me 3 days later and
told me they tried to reboot it 100 times and it worked fine.

They also told me to look at the power calculator of MSI
http://www.msi.com/index.php?func=power
and that one shows that I need less than 300 W.

Very strange and I am not sure what to do with this whole situation.


Gabor

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


can the BIOS be changed from Linux? - failed overclocking with new computer

2009-10-25 Thread Gabor Szabo
I just bought a new computer, install Ubuntu 9.10 beta (not the RC as
it was not out yet)
and after I try to reboot, the computer does not even reach the BIOS
boot sequence.
(blank screen).
After letting it rest for some time I can turn it on, then it gets to
the BIOS boot and displays the
following error:

Warning!!! The previous overclocking had failed, and system will
restore its default setting.
Press any key to continue...

Pressing a key makes it boot but the happens again after one or two bootings.

Oh, an *I* have not touched the BIOS and *I* did not configure overclocking.

I already took the computer back once and they told me about some rare
thing that happens
only once every 2 years that the BIOS is flips.
I think they just either did not configure it well or for some reason
it gets broken after the first boot.
Or something is broken or incompatible in the hardware.


The question if Linux might change the BIOS or cause this problem?
If not, what do you think could be the reason and the fix?

Here are the details of the computer (from the order form) just in
case someone can see
some parts that do not work well with Linux or with each other.

CPU: Q8200 2.33 Gh 4MB Core 2 Quad
mother board: G41M-E43 DDR3 HDMI MSI
screen card: Nvidia GeForce 9400Gt 512MB P.P.View
HD: 500 Gb SATA2 16 Mb Hitachi
Memory: CL7 DBT GEIL 2x2Gb (4Gb) DDR3 1066 Mhz
DVD: GH22NS SATA LG DVDX22 DL
power: 350W FAN 12 CM Power man



Gabor
ps, search for the warning message turned up a number of reports, (with windows)
that indicate either broken mother board or incorrect BIOS configuration but I'd
like to get your opinion too.

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


Re: Perl question: array member of referenced hash

2009-10-24 Thread Gabor Szabo
2009/10/24 Shachar Shemesh shac...@shemesh.biz:
 Noam Rathaus wrote:

 Shachar,

 { } in Perl are casting when they surround a value
 And the second set of { } around the 'a' mean variable of Hash




 Grumble grumble grumble

not surprised as this is one of the funky places of Perl 5.


 Okay, I'm sorry for being difficult. I really couldn't find the answer in
 the Perl documentation.

 I understand the second set of curly braces. I also, somewhat, understand
 that the - replaces the % (i.e. - reference dereferencing). What I'm not so
 clear is what the first set of curly braces do (what do you mean by
 casting - casting to what? How is that decided?). I'm also not clear on
 why the surrounding round brackets are needed. I understand they are so this
 will be a list context, but I don't understand why it's needed once I put a
 @ to dereference the array.

 Thanks,
 Shachar

 foreach my $elem (@{$ref-{a}})


err, I don't think that casting is the right word to use here. What
{} does here is
disambiguates the expression. Here is a table

$x - scalar
@x - array
%x - hash

$ra = \...@x  reference to array

sticking @ infront of the reference to an array dereferences it
@x is the same as @$ra   (you could also write and @{$ra} but it is
not necessary)
$x[1]  is the same as  $$ra[1]   (element of array, replace @ by $ and
attach the index)
 but it is ugly so it can also be written as $ra-[1]


$rh = \%x  reference to hash

sticking % infront of the reference to a hash dereferences it
%x is the same as %$rh  (could be also written as %{$rh} but it is not
necessary)
$x{foo} is the same as $$fh{foo} which is the same as $fh-{foo}

Now what if you have two dimensions: first dimension is a hash second
dimension is an array.

%h  is a hash
@something = ('foo');
$h{a} = \...@something;

Which means
print $h{a}[0];# 'foo';


$ref = \%h;   reference to hash

%h is the same as %$ref
$h{a}  is the same as $$ref{a}  or as $ref-{a} which is the reference
to the array: \...@something

sticking @ in front of it would dereference the array which would yield

@$h{a}   or  @$$ref{a}  @$ref-{a}   which is the same as @something

but it is not clear what does either of these mean
(looking at the last one, @$ref could mean $ref is a reference to an array and
that you are dereferencing @$ref  and the resulting thingy is a hash ref)

So we wrap the reference in a curly brace to make it clear that is a
single variable:

@{$h{a}}   or  @{$$ref{a}}  @{$ref-{a}}  which is the same as @{something}

so the {} is basically around the name' of the variable.



Hope this helps
   Gabor

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


Re: Perl question: array member of referenced hash

2009-10-24 Thread Gabor Szabo
On Sat, Oct 24, 2009 at 11:25 PM, Shachar Shemesh shac...@shemesh.biz wrote:
 Let me try to summarize what I understood from your excellent explanation:

if that works for you :-)



 All that is left is understanding why the round braces around the whole
 expression.

Oh, the syntax of foreach has those parentheses

foreach my $iterator (things to iterate over) {
}

Where the things to iterate over can be a simple list of values, an array or
anything that returns a list of values which of course can be any expression.

foreach my $iterator (1,2,3,4,5) {
}

or for the lazy ones

foreach my $iterator (1..5) {
}

or for the really lazy ones:

for my $iterator (1..5) {
}


or

foreach my $iterator (@names) {
}


foreach my $iterator (@$ref) {
}

foreach my $iterator (function_that_returns_thingies()) {
}


Gabor

http://szabgab.com/blog.html
Perl Training Israel http://www.pti.co.il/

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


  1   2   3   4   >