2007/11/10
2007/10/27
The Leaning Tower and other miracles in Pisa, Italy
The Leaning Tower and other miracles in Pisa, Italy was added to the site http://places-to-visit.info/.
2007/10/16
2007/10/13
Python and comma
The problem - there was a tuple:t = ("abc", "def")
Somwhere inside the program was an instruction:something = t[0]
and thensomething
returned "abc"
.
Some time later it turned out that "def" was not necessary
in
t
so was modified:t = ("abc")
and sowhere inside the program instruction
something = t[0]
made that something returned "a"
.It was Bad.
Why that happened?
Beacuse t was not a tuple anymore, it became a string. Instruction
t[0]
returns first item in iterable so it returned "a"
for us.What was ommited?
A coma.
After the change it was (bad):
t = ("abc")
instead (good):
t = ("abc",)
The coma creates a tuple. In our case consisting of one item, but still the tuple.
2007/10/10
2007/10/07
Comments for not logged in users activated
Comments for not logged in users activated on site http://places-to-visit.info.
Comments are welcome.
This article The Myth of Login was an impulse to rethink our design decision. Thanks.
Comments are welcome.
This article The Myth of Login was an impulse to rethink our design decision. Thanks.
Labels:
comments,
feedback,
places-to-visit.info,
The Myth of Login
2007/10/05
2007/10/03
Security hole - text buffer, middle mouse button, Firefox
The scenario:
In my case in the text buffer was ip address of host from which somebody did something not friendly on one of my pages. I've pasted (intentionally, of course) this ip address as parameter for some command line tools. And forgot about the text buffer with ip address inside.
Some time later I've pressed mouse middle button while having mouse cursor over Firefox window. Firefox started loading web page from offending ip address.
What information was disclosed?
It's a word of caution, mostly for myself.
Update: to switch off Firefox behavior described in 6.: on page about:config set value
- The User has opened window of the Firefox.
- The User selects some text on the terminal window by draggin mouse cursor with left mouse button pressed.
- The User inserts selected text into it's intended location using mouse middle button.
- The User does a lot of other things. And some time later.
- The User presses mouse middle button over opened Firefox window.
- Firefox tries to load web page using text pasted in step 5.
In my case in the text buffer was ip address of host from which somebody did something not friendly on one of my pages. I've pasted (intentionally, of course) this ip address as parameter for some command line tools. And forgot about the text buffer with ip address inside.
Some time later I've pressed mouse middle button while having mouse cursor over Firefox window. Firefox started loading web page from offending ip address.
What information was disclosed?
- the fact that I've read logs on the server and found interesting actions and ip address connected with them
- the fact that I've done something with this address
- most important, my own ip address
It's a word of caution, mostly for myself.
Update: to switch off Firefox behavior described in 6.: on page about:config set value
middlemouse.LoadContentURL
to false
and restart browser.
Labels:
Firefox,
middle mouse button,
security hole,
text buffer
2007/09/30
Does a cat need a bottle cork?
Under entry Stało się. Mamy kolejnego mieszkańca.[It happened. We've got another resident. ÆrionÆteb asked the question "A po co mu ten korek? :P"[What use is this bottle cork for him?].
The questions seems important, so I'll try to answer it.
First answer:
1. A cat without the bottle cork. You can feel his claws. Now hidden, but ... .
2. Bottle cork arrives.
3. The difference. And the answer.
Ask not what the bottle cork is for a cat - ask what it is for you if your fingers' integrity is at stage.
Venice curiosities - part two
Venice curiosities - part two was added to the site http://places-to-visit.info.
2007/09/27
2007/09/26
And Now for Something Completely Different
Our new resident. He was found yesterday.
He was taken to a vet, some drugs were administered, he was fed and most fleas were removed.
He is constantly changing his colour from dirty gray to ... have a look yourself.
He was taken to a vet, some drugs were administered, he was fed and most fleas were removed.
He is constantly changing his colour from dirty gray to ... have a look yourself.
2007/09/25
2007/09/24
2007/09/23
2007/09/21
2007/09/20
2007/09/19
2007/09/18
Who is next to take a dip? Padua, Italy
"Who is next to take a dip? Padua, Italy" was added to the site http://places-to-visit.info/.
Few thumbnails:
Few thumbnails:
Labels:
fontain,
Italy,
Padova,
Padua,
places-to-visit.info
2007/09/16
My assistant
I've got an assistant.
Now, when I'm writing this, he sleeps under the blanket. There is a bulge where he is covered.
The bulge moves slowly by the rythm of his breathing. He is able to sleep 22 hours per day, every day.
Pictures of him:
He is called Melek.
I'm not sure anymore if I (we) owe him, or the opposite.
Now, when I'm writing this, he sleeps under the blanket. There is a bulge where he is covered.
The bulge moves slowly by the rythm of his breathing. He is able to sleep 22 hours per day, every day.
Pictures of him:
He is called Melek.
I'm not sure anymore if I (we) owe him, or the opposite.
Comments added to http://places-to-visit.info/
Comments for places added to http://places-to-visit.info/ site.
Labels:
comment,
comments,
places-to-visit.info
2007/09/15
2007/09/11
2007/09/09
Subscribe to:
Posts (Atom)