tag:blogger.com,1999:blog-6487562188235810552024-03-13T23:20:12.611-07:00bgood4you
Idei prin care sa devenim mai buni, mai civilizati, mai umaniUnknownnoreply@blogger.comBlogger103125tag:blogger.com,1999:blog-648756218823581055.post-43641883516791093392017-09-05T02:45:00.001-07:002017-09-05T02:45:14.395-07:00How to add captcha to Google Forms?It took me some time to search over internet, but can't find it.<br />
<br />
Finally I saw a post about how to remove it. WTF? Some people got it and want to remove it, but I don't know how to add it.<br />
<br />
Some more investigation and here it is: Form Settings > General > Collect email addresses<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-tJJGqJZojoM/Wa5xFbKAQjI/AAAAAAAAiaQ/bo0SHCYl3CwVU8zeySC_Qjn8Hzfvb_fVwCLcBGAs/s1600/google_forms_activate_captcha.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="248" data-original-width="508" height="156" src="https://3.bp.blogspot.com/-tJJGqJZojoM/Wa5xFbKAQjI/AAAAAAAAiaQ/bo0SHCYl3CwVU8zeySC_Qjn8Hzfvb_fVwCLcBGAs/s320/google_forms_activate_captcha.PNG" width="320" /></a></div>
<br />
<br />
<br />
<br />
Enable it. Ok, the email is mandatory. That's it. We can live with that.<br />
<br />
Looked at my form. But I didn't see the captcha even it is supposed to be enabled. Oh, now, dead end.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
Almost I had right. Not with death, but with the end.<br />The captcha is at the end of the form. Mine was more than a screen and didn't see it.<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-jFmiPU7Kunc/Wa5x0T1uYcI/AAAAAAAAiaY/_p0OTqTBLzcmlDkOap4QCB9P9Vqw5Vn1QCEwYBhgL/s1600/google_forms_show_captcha.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="560" data-original-width="465" height="320" src="https://3.bp.blogspot.com/-jFmiPU7Kunc/Wa5x0T1uYcI/AAAAAAAAiaY/_p0OTqTBLzcmlDkOap4QCB9P9Vqw5Vn1QCEwYBhgL/s320/google_forms_show_captcha.PNG" width="265" /></a></div>
<br /><br /><br />
<br />
<br />
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-31248152942870847462016-10-19T00:32:00.000-07:002016-12-19T02:44:20.108-08:00Idei pentru reducerea ambuteiajelor#zeroambuteiaje<br />
<br />
0. banda unica #ratb1<a href="https://fb.com/speedupb" target="_blank"> https://fb.com/speedupb</a><br />
<br />
1. #IaStangaLegal - constientizare si impunere respectare viraj stanga paralel, fara intersectare, cf art. 110, alin 1 si 2, din Regulamentul pentru aplicarea O.U.G. nr.195/2002 <a href="http://bgoodforyou.blogspot.ro/2013/05/legislatie-pentru-biciclisti_20.html" target="_blank">Link Legi</a><br />
<br />
2. #DreaptaLiber - permis viraj dreapta pe rosu<br />
<br />
3. #PasajeFaraSemafoare - eliminare semafoare de la intersectiile de deasupra pasajelor/sub poduri si introducerea de sensuri unice pe strazile laterale care sa ofere acces liber pe toate directiile (stil trifoi cu 4 foi) (en Cloverleaf interchange <a href="https://en.wikipedia.org/wiki/Cloverleaf_interchange">https://en.wikipedia.org/wiki/Cloverleaf_interchange</a>)<br />
<br />
4. Politia Rutiera si Locala sa aplice sanctiunile legale, nu sa le ignore<br />
<br />
5. Eliminat semaforizare in 3 timpi<br />
<br />
6. PMUD in forma actuala e gresit <a href="http://bgoodforyou.blogspot.ro/2016/03/de-ce-nu-este-bun-pmud-bucuresti-ilfov.html">http://bgoodforyou.blogspot.ro/2016/03/de-ce-nu-este-bun-pmud-bucuresti-ilfov.html</a><br />
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-366615170495355942016-10-05T06:36:00.001-07:002016-10-05T06:36:14.339-07:00what to use instead of ping for existence of a network address?Instead of ping can be used:<br />
- mtr<br />
- nc<br />
- arping<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-37509793751005972602016-06-02T06:55:00.004-07:002016-06-02T06:55:56.092-07:00 cp: not writing through dangling symlink cp: not writing through dangling symlink<br />
<br />
Solution: The symbolic link destination file doesn't exist.<br />
<br />
Steps:<br />
ln -s /tmp/not.existent.file link<br />
cp a.file link<br />
cp: not writing through dangling symlink<br />
ls -l /tmp/not.existent.file<br />
ls: No such file or directory Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-72743696150054896292016-03-21T06:10:00.001-07:002016-10-14T05:50:16.665-07:00Biciclistii si pietonii de pe trecere <span class="_5mdd _1n4g">10. bicicletă – <b>vehiculul</b> prevăzut cu două roţi, propulsat exclusiv prin forţa musculară, cu ajutorul pedalelor sau manivelelor.<br />
<br />
(2) <b>Pietonii au prioritate</b> de trecere faţă de conducătorii de <b>vehicule</b> numai atunci când sunt angajaţi în traversarea drumurilor publice prin locuri special amenajate, marcate şi semnalizate corespunzător, ori la culoarea verde a semaforului destinat pietonilor.<br />
<br />
====> biciclistul trebuie să îi lase să traverseze. Prioritatea se aplica in punctul de intalnire: deci pietonii trec primii.<br />
<br />
b) neacordarea priorităţii de trecere pietonilor angajaţi în traversarea regulamentară a drumului public prin locurile special amenajate şi semnalizate, aflaţi pe SENSUL de deplasare a <b>AUTOVEHICULULUI</b> sau tramvaiului; (OUG)<br />
<br />
====> asta sanctioneaza legea. Nu sanctioneaza "vehiculele" ci "autovehiculele". Deci nu poti sa fii amendat ca nu ai oprit cu bicicleta la trecerea de pietoni. Biciclistul îşi poate continua drumul după ce i-a lasat să treacă, deşi mai sunt şi alţii pe trecere dar nu au ajuns in punctul de intalnire pentru a le acorda prioritate.</span>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-16728456986977477672016-03-01T09:25:00.001-08:002017-03-09T01:50:26.614-08:00De ce este gresit PMUD Bucuresti-Ilfov?PMUD in varianta actuala este <b>Gresit</b> (vezi <a href="https://www.blogger.com/blogger.g?blogID=648756218823581055#D">Detaliat</a>):<br />
A). principial - nu s-au respectat principiile pmud.<br />
B). faptic - castig (3%) mic pentru populatie la un cost imens - 7 MILIARDE eur.<br />
<br />
Versiunea "<a href="https://drive.google.com/open?id=0B4ajljK8rgyTNkkzREhIX1pYMFk" target="_blank">mai 2016</a>" - ciudat cum au mai scos o versiune desi ziceau ca proiectul de redactare se incheiase de cateva luni.<br />
<br />
Si mai important au modificat cifrele !<br />
<br />
Versiunea "<a href="https://drive.google.com/open?id=0B4ajljK8rgyTcWcwZmJ6QS1OSjg" target="_blank">dec 2015</a>" - pe baza acestuia este facuta analiza.<br />
<br />
Principiile PMUD se gasesc la <a href="http://eltis.org/" target="_blank">http://eltis.org/</a> > <a href="http://eltis.org/mobility-plans" target="_blank">Mobility Plans</a> > Online SUMP Guidelines > <a href="http://www.eltis.org/guidelines/phase-i-preparing-well" target="_blank">Phase I - Preparing well </a><br />
<br />
<br />
Fig 1: Principii<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-t-PikdtZ1LE/V_yjHDOu5qI/AAAAAAAAdnc/Iy-5vfRgjcUPxh5JZvxviCg62T0P96AAwCLcB/s1600/pmud_principiiEltis.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="276" src="https://2.bp.blogspot.com/-t-PikdtZ1LE/V_yjHDOu5qI/AAAAAAAAdnc/Iy-5vfRgjcUPxh5JZvxviCg62T0P96AAwCLcB/s320/pmud_principiiEltis.png" width="320" /></a></div>
SMUP - Sustainable Urban Mobility Plan<br />
<br />
Fig 2:<br />
Cresterea prea mica a populatiei expuse: 3% de la 12% la 15%<br />
Reducerea nesemnificativa a congestiei: 2% de la 27.7% la 25.7% (congestie rutiera)<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-A72l8o6g-N8/V_yhmPq4NQI/AAAAAAAAdnI/QnaQKlwcZOId5OWtVy7-RQalAYRZIYlRgCLcB/s1600/pmud_ceSeVaFace_mark.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="143" src="https://1.bp.blogspot.com/-A72l8o6g-N8/V_yhmPq4NQI/AAAAAAAAdnI/QnaQKlwcZOId5OWtVy7-RQalAYRZIYlRgCLcB/s320/pmud_ceSeVaFace_mark.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Fig 3:<br />
Nicio solutie viabila pentru cei care merg cu RATB. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-DkMd6YS6HeU/V_yhqhSvcXI/AAAAAAAAdnM/SBe46E6B9hUOxu36vHH_5tf1HzbKbesugCLcB/s1600/pmud_ceAvemAcum_modified.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="152" src="https://4.bp.blogspot.com/-DkMd6YS6HeU/V_yhqhSvcXI/AAAAAAAAdnM/SBe46E6B9hUOxu36vHH_5tf1HzbKbesugCLcB/s320/pmud_ceAvemAcum_modified.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
PMUD este Planul de Mobilitate Urbana Durabila.<br />
<br />
Facebook hashtag #pmud #pmudbi<br />
<br />
Site: pmud.ro <br />
<br />
<br />
<b>Ce putem face? </b><br />
Daca <b>nu</b> /sunteti de acord cu PMUD in forma actuala, dati mail catre <b>pmud@pmb.ro</b> sau catre PMB > <a href="http://pmb.ro/contact/petitie/petitie.php" target="_blank">Petitii </a><br />
<br />
sau catre <b>contact@pmud.ro</b><br />
<br />
Stimata doamna/ Stimate domn,<br />
<br />
Va rog sa inregistrati dezacordul meu fata de varianta <span class="lG">PMUD</span> propusa acum.<br />
<br />
PMUD in varianta actuala este <b>gresit</b>:<br />
A). principial - nu s-au respectat principiile pmud.<br />
B). faptic - castig (3%) mic pentru populatie la un cost imens - 7 MILIARDE eur.<br />
<br />
<h3 id="D">
Detaliat:</h3>
1. PMUD ca si concept este foarte bun. Proiectul propus la Bucuresti este <b>gresit</b>. <br />
Nu s-au respectat pasii si principiile PMUD. Ca sa fie folositor, UE a elaborat niste principii si pasi.<br />
Acestia se gasesc la <a href="http://eltis.org/" target="_blank">http://eltis.org/</a> > <a href="http://eltis.org/mobility-plans" target="_blank">Mobility Plans</a> > Online SUMP Guidelines > <a href="http://www.eltis.org/guidelines/phase-i-preparing-well" target="_blank">Phase I - Preparing well</a><br />
<br />
Ca idee generala ar trebui sa porneasca de la identificarea nevoilor de deplasare ale oamenilor, sa le bage in soft si sa rezulte solutia optima.<br />
<br />
Este <b>gresit</b> sa consulti Metrorex si alte institutii ca sa vezi ce planuri au si sa le integrezi pe acestea in PMUD. Este contrar principiilor PMUD. <br />
<br />
2. Cum s-au gasit acele 3 scenarii care s-au bagat in soft? Acestea sunt <b>gresite </b>pentru ca sunt extrem de limitate fiindca nu au rezultat in urma principiilor. Si, conform teoriei sistemelor, softul a produs o solutie <b>gresita</b>: "garbage in, garbage out" (gunoi bagi, gunoi obtii sau mizerie bagi, mizerie obtii.)<br />
<br />
<br />
3. Solutia optima propusa este ineficienta. Rezultate extrem de mici utile locuitorilor dar cu costuri extrem de mari. Obtinem doar o infrastructura ineficienta, exact ce avem si acum pentru ca nu s-au urmat principiile si pasii pmud.<br />
<br />
Daca veti analiza cu atentie datele acestuia, trecand peste termenii tehnici neexplicati, se va constata:<br />
<br />
- cresterea prea mica a populatiei expuse: 3% de la 12% la 15% (pag 18 tabelul de jos) - fig 1<br />
- reducerea nesemnificativa a congestiei: 2% de la 27.7% la 25.7% (pag 18 tabelul de jos)<br />
- neoferirea de solutii pentru cei 1.5 milioane transportati de RATB (pag 19 tabel) - fig 2. Este ireal cum la cresterea populatiei se estimeaza reducerea numarului de calatori in 2030. <br />
- focus pe metrou desi costul infrastructurii acestuia este enorm<br />
<br />
<br />
<br />
Va rog sa cereti analizarea scenariului bazat pe "banda unica ratb pe toate arterele". Acesta va expune 80% din populatie si congestia se va reduce mult mai semnificativ.<br />
<br />
Va multumesc pentru atentie si astept cu deosebit interes raspunsul dumneavoastra!Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-72298321091788763282016-02-08T05:31:00.000-08:002016-02-08T05:31:10.273-08:00pysphere wiki from googlecode<pre></pre>
<pre></pre>
<pre></pre>
<pre>Because pysphere was removed from google code (since it's shut down), I searched and found this page :
http://pysphere.googlecode.com/svn-history/r93/wiki/GettingStarted.wiki
(r94 doesn't exist)
Below is a wiki page format:
#sidebar TableOfContents
= Quick guide to start using PySphere =
== Installation ==
PySphere is platform independent and works with python 2.5, 2.6, and 2.7.
The simplest way to install it is using [http://pypi.python.org/pypi/setuptools setuptools]' easy_install:
`easy_install -U pysphere`
Or using [http://pypi.python.org/pypi/pip pip]:
`pip install -U pysphere`
You can also find the source package and windows installer in the [http://code.google.com/p/pysphere/downloads/list downloads section].
To install it from the windows executable just run the file and follow the wizard's instructions.
To install it from the source package:
# unzip pysphere-0.1.5.zip
# python setup.py install
== Connecting to a server ==
PySphere can interact with ESX, ESXi, Virtual Center, Virtual Server, and it should work with any other VMWare product exposing the vSphere Web Services SDK.
First you need to create a server instance from the `VIServer` class:
{{{
>>> from pysphere import VIServer
>>> server = VIServer()
}}}
Next, you must call the connect method and provide the server hostname or IP and the user credentials. E.g. For an ESX server on 192.168.100.100 with a registered user 'jdoe' with password 'secret':
{{{
>>> server.connect("192.168.100.100", "jdoe", "secret")
}}}
By default, pysphere will look for the web service at VMWare's default URL which is `https://[SERVER]/sdk`.
If your server is configured to use http instead of https or if it's serving on a different port, then you need to provide the connect method with the full URL instead of just the hostname or IP. For example:
{{{
>>> server.connect("http://192.168.100.100:8080/sdk", "jdoe", "secret")
}}}
For debugging you can also provide the keyword argument `trace_file` with a path to a file where the SOAP requests and responses generated during you session will be stored:
{{{
>>> server.connect("192.168.100.100", "jdoe", "secret", trace_file="debug.txt")
}}}
== Server properties and methods ==
If you want to start working with VMs right away you may skip this section.
Once you created your VIServer instance and got connected you are able to retrieve info from the server.
=== Getting the server type and vSphere API version ===
To get Server Type
{{{
>>> print server.get_server_type()
VMware vCenter Server
}}}
To get API Version
{{{
>>> print server.get_api_version()
4.1
}}}
=== Getting the server's registered VMs ===
This method will return a list of strings with all the VM's .vmx file paths that are registered in the server. You can use them later to connect to those vms.
{{{
>>> vmlist = server.get_registered_vms()
}}}
You may also use one or more filters through keyword arguments:
* datacenter: Name of the datacenter to get vms from.
* cluster: Name of the cluster to get vms from.
* resource_pool: Name of the resource pool to get vms from.
* status: one of 'poweredOn', 'poweredOff', 'suspended'. To get only VM with that power state.
Note: if cluster is set then datacenter is ignored and if resource pool is set both, datacenter and cluster, are ignored.
For example, to get all powered on VMs from the 'Windows XP' resource pool:
{{{
>>> vmlist = server.get_registered_vms(resource_pool='Windows XP', status='poweredOn')
}}}
=== Disconnecting from the server ===
Once you've finalized your program or script it's recommended to logout from the server, that will release all the objects at the server side that were created during your session. If not, the server will eventually drop your session after a period of inactivity.
To disconnect from the server, just execute:
{{{
>>> server.disconnect()
}}}
== Working with virtual machines ==
Once you have created your VIServer instance and invoked the connect method (see [GettingStarted#Connecting_to_a_server Connecting to a server]) you are ready to retrieve VM instances and operate with them.
The are two main methods you can use to get a VM instance:
# *get_vm_by_path*: retrieve a virtual machine by its virtual machine configuration file path. To get this value via the VMWare VI Client:
# Right click on the vm icon from the resources tree and select "Edit settings..."
# Go to the "Options" tab.
# The value is on the "Virtual Machine Configuration File" field
# *get_vm_by_name*: retrieve a virtual machine by its assigned name.
It's recommended that you use the first method. It is faster and you won't have two VMs with the same path whereas you might have more than one VM with the same name assigned in which case get_vm_by_name will return the first one to be found.
Example:
{{{
>>> from pysphere import VIServer
>>> server = VIServer()
>>> server.connect("192.168.100.100", "jdoe", "secret")
>>> vm1 = server.get_vm_by_path("[DataStore1] Ubuntu/Ubuntu-10.vmx")
>>> vm2 = server.get_vm_by_name("Windows XP Professional")
}}}
both methods can receive an additional "datacenter" keyword argument that will limit the search within the specified datacenter:
{{{
>>> vm1 = server.get_vm_by_path("[DataStore1] Ubuntu/Ubuntu-10.vmx", "DEVELOPMENT")
>>> vm2 = server.get_vm_by_name("Windows XP Professional", "IT")
}}}
=== Getting VM properties ===
====*Virtual Machine Status:*====
The following code
{{{
>>> print vm1.get_status()
}}}
will print one of these values (strings):
* 'POWERED ON'
* 'POWERED OFF'
* 'SUSPENDED'
* 'POWERING ON'
* 'POWERING OFF'
* 'SUSPENDING'
* 'RESETTING'
* 'BLOCKED ON MSG'
* 'REVERTING TO SNAPSHOT'
The first three states are the basic ones. i.e. a virtual machine will always be in one of those three statuses, however by inspecting the list of queued tasks the other statuses can be implied. E.g. if a VM is powered off but a user has started a power on action, then the implied status will be 'POWERING ON'. The status 'BLOCKED ON MSG' means that VM can't be used until the user decides an action to be taken on that VM (one of the most common message triggered is "This virtual machine may have been moved or copied")
Some products as "VMware Server/ESX/ESXi" do not support querying the tasks history so you'll always get one of the first three statuses.
Besides, you can force pysphere to return one of the three basic statuses by providing the extra keyword argument "basic_status" with 'True':
{{{
>>> print vm1.get_status(basic_status=True)
}}}
You might also ask if the VM is in a particular status (which will return True or False) by invoking these methods:
{{{
>>> print vm1.is_powering_off()
>>> print vm1.is_powered_off()
>>> print vm1.is_powering_on()
>>> print vm1.is_powered_on()
>>> print vm1.is_suspending()
>>> print vm1.is_suspended()
>>> print vm1.is_resetting()
>>> print vm1.is_blocked_on_msg()
>>> print vm1.is_reverting()
}}}
====*Getting basic properties:*====
Pysphere provides two methods to get some basic properties from a VM in a simple way. If you are looking to retrieve any other property that is not being listed here see the [AdvancedUsage Advanced Usage] section.
* *get_properties*: retrieves a python dictionary with all the properties available at the time (Not all the vms will have all the properties, as some properties depend on the specific configuration, vmware tools, or the machine power status).
* *get_property(property_name)*: retrieves the value of the requested property, or None if that property does not exist. E.g:
{{{
>>> vm1.get_properties()
{'guest_id': 'ubuntuGuest',
'path': '[DataStore1] Ubuntu/Ubuntu-10.vmx',
'guest_full_name': 'Ubuntu Linux (32-bit)',
'name': 'Ubuntu 10.10 Desktop 2200',
'mac_address': '00:50:56:aa:01:a7'
}
}}}
{{{
>>> print vm1.get_property('mac_address')
'00:50:56:aa:01:a7'
}}}
Due to performance reasons, when pysphere creates the VM instance, all the properties are queried in a single request and cached. But some of them are volatile, their values might change, new properties can appear or an existing property might disappear. For example, to get the `ip_address` property the VM needs to have the VMWare tools installed and to be powered on. To be sure the value you request is updated you might add the 'from_cache' keyword argument to `get_property` or `get_properties` with the value `False`. This will refresh the cache of all the properties, not only the requested.
{{{
>>> print vm1.get_property('ip_address', from_cache=False)
>>> print vm1.get_properties(from_cache=False)
}}}
This is the list of all the properties you can request:
* name
* path
* guest_id
* guest_full_name
* hostname
* ip_address
* mac_address
* net
====*Getting the resource pool name:*====
To get the name of the immediate resource pool the VM belongs to, execute:
{{{
>>> print vm1.get_resource_pool_name()
Linux VMs
}}}
===*Power ON/OFF, Suspend, Reset*===
To power on, power off, suspend, or reset a virtual machine you should call one of these methods:
{{{
>>> vm1.power_on()
>>> vm1.reset()
>>> vm1.suspend() #since pysphere 0.1.5
>>> vm1.power_off()
}}}
By default all of them are executed synchronously, i.e, the method won't return until the requested operation has completed.
If you want to execute those operations asynchronously, you must provide the keyword argument `sync_run=False`. In that case, the method will return a task object which you can use to query the task progress and result. The methods and attributes of this task object will be explained later (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]).
{{{
>>> task1 = vm1.power_on(sync_run=False)
>>> task2 = vm2.reset(sync_run=False)
>>> task3 = vm2.suspend(sync_run=False) #since pysphere 0.1.5
>>> task4 = vm3.power_off(sync_run=False)
}}}
Additionally, the power_on method supports an additional 'host' keyword argument you can supply to indicate in which host the VM should be powered on (e.g. If you are working with a Virtual Center with several ESX severs registered). If this argument is either invalid or not provided the current host association is used.
{{{
>>> vm1.power_on(host="esx3.example.com")
}}}
===*Snapshots: Revert to, Create, and Delete*===
====*Revert to snapshot*====
There are three methods you can use to revert a virtual machine to a snapshot:
* *revert_to_snapshot*: reverts to the current snapshot.
* *revert_to_named_snapshot*: reverts to the first snapshot matching the given name.
* *revert_to_path*: reverts to the snapshot matching the snapshots path and index (to disambiguate among snapshots with the same name).
For example:
{{{
>>> vm1.revert_to_snapshot() #reverts to the current snapshot
>>> vm1.revert_to_named_snapshot("base") #reverts to the "base" snapshot
>>> vm1.revert_to_path("/base/updated") #reverts to the "updated" snapshot which is a child of snapshot "base"
}}}
The "revert_to_path" method also accepts an "index" keyword argument which defaults to 0. If you have two or more snapshots with the exact same path you can use this argument to disambiguate among them. E.g.:
{{{
>>> vm1.revert_to_path("/base/updated", index=1) #reverts to the 2nd "updated" snapshot withing the "base" snapshot node
}}}
As with the "power_on", "power_off", "reset" methods (see [GettingStarted#Powering_ON/OFF,_Reset: Powering ON/OFF, Reset]) the revert operations are executed synchronously, i.e, the method won't return until the requested operation has completed.
If you want to execute those operations asynchronously, you must provide the keyword argument `sync_run=False`. In that case, the method will return a task object which you can use to query the task progress and result. The methods and attributes of this task object will be explained later (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]).
{{{
>>> task1 = vm1.revert_to_snapshot(sync_run=False)
>>> task2 = vm2.revert_to_named_snapshot("base", sync_run=False)
>>> task3 = vm3.revert_to_path("/base/updated", sync_run=False)
}}}
Besides, as with the "power_on" method, there's an additional 'host' keyword argument you can supply to indicate in which host the VM should be reverted (e.g. If you are working with a Virtual Center with several ESX severs registered). If this argument is either invalid or not provided the current host association is used.
{{{
>>> vm1.revert_to_snapshot(host="esx1.example.com")
>>> vm1.revert_to_named_snapshot(host="esx2.example.com")
>>> vm1.revert_to_path(host="esx3.example.com")
}}}
====*Delete snapshots*====
As with `revert_to_*` methods, there are also three analogical methods to remove a snapshot: the current snapshot, by name, and by path:
* *delete_current_snapshot*
* *delete_named_snapshot(name)*
* *delete_snapshot_by_path(path, index=0)*
E.g.:
{{{
>>> vm1.delete_current_snapshot()
>>> vm1.delete_named_snapshot("base")
>>> vm1.delete_snapshot_by_path("/base2/foo")
}}}
In the case of `delete_snapshot_by_path` you can provide the "index" keyword argument to disambiguate among snapshots with the same path (defaults to 0).
The three methods have a "remove_children" keyword argument that defaults to False, setting it to True will delete not only the specified snapshot but also all of its descendants.
E.g.:
{{{
>>> vm1.delete_current_snapshot(remove_children=True)
>>> vm1.delete_named_snapshot("base", remove_children=True)
>>> vm1.delete_snapshot_by_path("/base2/foo", remove_children=True)
}}}
The delete operation is also executed synchronously, just add the `run_sync=False` keyword argument to execute it asynchronously and get the task object (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]). E.g.:
{{{
>>> task1 = vm1.delete_current_snapshot(sync_run=False)
>>> task2 = vm1.delete_named_snapshot("base", sync_run=False)
>>> task3 = vm1.delete_snapshot_by_path("/base2/foo", sync_run=False)
}}}
====*Create snapshot*====
To take a snapshot with the current state of the VM, run:
{{{
>>> vm1.create_snapshot("mysnapshot")
}}}
You can also provide a snapshot description via the "description" keyword argument:
{{{
>>> vm1.create_snapshot("mysnapshot", description="With SP2 installed")
}}}
The create operation is also executed synchronously, so you won't get the control back until the snapshot has been created, to execute it asynchronously and get the task object just add the `run_sync=False` keyword argument (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]). E.g.:
{{{
>>> task1 = vm1.create_snapshot("mysnapshot", sync_run=False)
}}}
_since pysphere 0.1.6_
In pysphere-0.1.6 optional keyword arguments were added to this method:
* *memory*: If True (default), a dump of the internal state of the virtual machine (basically a memory dump) is included in the snapshot. Memory snapshots consume time and resources, and thus take longer to create. When set to False, the power state of the snapshot is set to powered off.
* *quiesce*: If True (default) and the virtual machine is powered on when the snapshot is taken, VMware Tools is used to quiesce the file system in the virtual machine. This assures that a disk snapshot represents a consistent state of the guest file systems. If the virtual machine is powered off or VMware Tools are not available, the quiesce flag is ignored.
E.g:
{{{
>>> vm1.create_snapshot("fastsnapshot", memory=False, quiesce=False)
}}}
====*List snapshots*====
By calling the following method:
{{{
>>> snapshot_list = vm2.get_snapshots()
}}}
You'll get a list of `VISnapthot` objects, each of which support the following methods:
* *get_name*: Returns the snapshot's name
* *get_description*: Returns the snapshot's description text, if any.
* *get_create_time*: Returns a time tuple with the snapshot creation time.
* *get_parent*: Returns a VISnapshot object representing this snapshot's parent. Or None if this is a root snapshot.
* *get_children*: Returns a list of VISnapshot objects representing direct child snapshots.
* *get_path*: Returns the full path of ancestors names (separated by '/') E.g.: `"/base/base1/base2"`
* *get_state*: Returns the status in which the VM was when the snapshot was taken: 'poweredOff', 'poweredOn', or 'suspended'
For example, having a 'base_old' snapshot with a 'base' child snapshot:
{{{
>>> print snapshot_list
[<pysphere.vi_snapshot.VISnapshot instance at 0x05244738>,
<pysphere.vi_snapshot.VISnapshot instance at 0x052448A0>]
}}}
{{{
>>> for snapshot in snapshot_list:
... print "Name:", snapshot.get_name()
... print "Description", snapshot.get_description()
... print "Created:", snapshot.get_create_time()
... print "State:", snapshot.get_state()
... print "Path:", snapshot.get_path()
... print "Parent:", snapshot.get_parent()
... print "Children:", snapshot.get_children()
...
}}}
Might print out:
{{{
"""
Name: base_old
Description:
Created: (2008, 7, 30, 18, 0, 17, 54, 0, 0)
State: poweredOn
Path: /base_old
Parent: None
Children: [<pysphere.vi_snapshot.VISnapshot instance at 0x052448A0>]
Name: base
Description: With Service Pack 2
Created: (2011, 9, 28, 11, 9, 36, 165, 0, 0)
State: poweredOn
Path: /base_old/base
Parent: <pysphere.vi_snapshot.VISnapshot instance at 0x05244738>
Children: []
"""
}}}
===*Guest power operations: Shutdown, Reboot, and Stand By*===
Each of these three methods issues a command to the guest operating system asking it to prepare for a shutdown, reboot or suspend operation, and returns immediately not waiting for the guest operating system to complete the operation (Requires the VM to be powered on and have the VMWare tools running)
{{{
>>> vm1.shutdown_guest()
>>> vm1.reboot_guest()
>>> vm1.standby_guest()
}}}
Notice that these methods in contrast to their equivalents `power_off`, `reset`, and `suspend` introduced before (see [GettingStarted#Power_ON/OFF,_Suspend,_Reset Power ON/OFF, Suspend, Reset]) don't work on a "hard" level but on a guest OS level, i.e. shutdown_guest will attempt to perform a clean exit on the system while power_off is practically equivalent to unplug the power cord on a physical machine.
===*Other guest operations: Files and processes*===
_*since pysphere 0.1.5*_
The following methods work on servers implementing vSphere 5.0 or later.
They allow you to perform operations with the guest OS. So you'll need the vmware tools to be running on the system.
Before executing any these guest operations you'll need to login in the guest OS:
{{{
>>> vm1.login_in_guest("os_username", "os_password")
}}}
If you don't get any exception then the login was successful.
====*Files and Directories*====
Once you have successfully executed `login_in_guest` you are ready to perform files and directories operations on the guest system:
* *make_directory(path, create_parents=True)*: Creates a directory in the guest OS specified by `path`, if `create_parents` is `True` (default) all the directory components in the path are created if they don't exist.
* *move_directory(src_path, dst_path)*: Moves or renames a directory in the guest system from `src_path` to `dst_path`.
* *delete_directory(path, recursive)*: Deletes the directory specified by `path` in the guest OS. If `recursive` is `True` all subdirectories and files are also deleted, else the operation will fail if the directory is not empty.
* *list_files(path, match_pattern=None)*: Returns information about files or directories from the guest system. `path` is the complete path to the directory or file to query. `match_pattern` is a filter for the return values specified as a perl-compatible regular expression (if not provided then '.*' is used). The method returns a list of dictionaries with these keys:
* path: The complete path to the file
* size: The file size in bytes
* type: either 'directory', 'file', or 'symlink'
* *get_file(guest_path, local_path, overwrite=False)*: Downloads a file from the guest to the system running pysphere.
* *send_file(local_path, guest_path, overwrite=False)*: Uploads a file from the system running pysphere to the guest system.
* *move_file(src_path, dst_path, overwrite=False)*: Renames a file in the guest system from `src_path` to `dst_path`. If `overwrite` is `False` (default) and `dst_path` already exists the method fails, while if `overwrite` is set to `True` clobbers any existing file.
* *delete_file(path)*: Deletes the file specified by `path` from the guest system.
A few examples:
{{{
>>> vm2.login_in_guest("admin", "secret")
>>>
>>> vm2.send_file("/home/seba/netcat.exe", r"c:\netcat.exe")
>>>
>>> vm2.make_directory(r"c:\my\binary\tools")
>>>
>>> vm2.move_file(r"c:\netcat.exe", r"c:\my\binary\tools\nc.exe")
>>>
>>> for f in vm2.list_files(r"c:\my\binary\tools"):
... print "'%s' is a %s of %s bytes." % (f['path'], f['type'], f['size'])
'.' is a direcotory of None bytes.
'..' is a directory of None bytes.
'nc.exe' is a file of 1258291 bytes.
>>>
>>> vm2.delete_directory(r"c:\my", True)
}}}
====*Processes and environment variables*====
Once you have successfully executed `login_in_guest` you are ready to perform processes operations on the guest system:
* *start_process(program_path, args=None, env=None, cwd=None)*: Starts a program in the guest operating system and returns the process identifier (PID). You need to specify `program_path` which is the absolute path to the program to be executed. Optionally you might set:
* `args`: a list of strings with the arguments to the program.
* `env`: a dictionary with string keys an values defining the environment variables to be set for the program.
* `cwd`:The absolute path of the working directory for the program to be run. VMware recommends explicitly setting the working directory. If this value is unset or is an empty string, the behavior depends on the guest operating system (for Linux guest operating systems the working directory will be the home directory of the user associated with the guest authentication, for other guest operating the behavior is unspecified).
* *terminate_process(pid)*: Terminates a process identified by `pid` in the guest OS.
* *list_processes()*: List the processes running in the guest operating system, plus those started by `start_process` that have recently completed. The list contains dicctionary objects with these keys:
* `start_time`: a datetime tuple with the process creation time.
* `end_time`: if the process was started using `start_process` then the process completion time will be available if queried within 5 minutes after it completes (a datetime tuple), returns `None` otherwise.
* `pid`: the process id.
* `name`: the process name.
* `cmd_line`: the full command line.
* `owner`: the process owner
* `exit_code`: if the process was started using `start_process` then the process exit code will be available if queried within 5 minutes after it completes, otherwise it will be `None`.
* *get_environment_variables()*: Reads the environment variables from the guest OS (system user). Returns a dictionary with var names as keys and var values as their corresponding dictionary values.
A few examples:
{{{
>>> vm2.login_in_guest("admin", "secret")
>>>
>>> vm2.list_processes()
[{'cmd_line': 'C:\\WINDOWS\\system32\\services.exe',
'end_time': None,
'exit_code': None,
'name': 'services.exe',
'owner': 'NT AUTHORITY\\SYSTEM',
'pid': 612,
'start_time': (2011, 12, 6, 15, 26, 22, 0, 0, 0)},
{'cmd_line': '"C:\\Program Files\\VMware\\VMware Tools\\vmacthlp.exe"',
'end_time': None,
'exit_code': None,
'name': 'vmacthlp.exe',
'owner': 'NT AUTHORITY\\SYSTEM',
'pid': 800,
'start_time': (2011, 12, 6, 15, 26, 24, 0, 0, 0)},
{'cmd_line': 'C:\\WINDOWS\\system32\\svchost -k DcomLaunch',
'end_time': None,
'exit_code': None,
'name': 'svchost',
'owner': 'NT AUTHORITY\\SYSTEM',
'pid': 812,
'start_time': (2011, 12, 6, 15, 26, 25, 0, 0, 0)}
...
...
]
>>> pid = vm2.start_process("notepad.exe", args=["test.txt"], cwd="c:\\")
>>> print pid
1680
>>>
>>> vm2.terminate_process(1680)
>>>
>>> vm2.get_environment_variables()
{'ALLUSERSPROFILE': 'C:\Documents and Settings\All Users',
'COMPUTERNAME': '24377799E194466',
'CommonProgramFiles': 'C:\Program Files\Common Files',
'NUMBER_OF_PROCESSORS': '1',
'OS': 'Windows_NT',
'PATHEXT': '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH',
'PROCESSOR_ARCHITECTURE': 'x86',
'Path': 'C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem',
'ProgramFiles': 'C:\Program Files',
'SystemDrive': 'C:',
'SystemRoot': 'C:\WINDOWS',
'TEMP': 'C:\DOCUME~1\admin\LOCALS~1\Temp',
'TMP': 'C:\DOCUME~1\admin\LOCALS~1\Temp',
'USERDOMAIN': '24378797F195962',
'USERNAME': 'admin',
'USERPROFILE': 'C:\Documents and Settings\admin',
'windir': 'C:\WINDOWS'}
>>>
}}}
===*Cloning a Virtual Machine*===
_*since pysphere 0.1.6*_
To clone a virtual machine (only available for Virtual Center servers):
{{{
>>> new_vm = vm1.clone("Clone Name")
}}}
The method returns a new instance of virtual machine. The only mandatory parameter is the new VM name. There are some other keyword arguments you might pass:
* `sync_run`: if True (default) waits for the task to finish, and returns a VIVirtualMachine instance with the new VM (raises an exception if the task didn't succeed). If sync_run is set to False the task is started asynchronously and a VITask instance is returned (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]).
* `folder`: name of the folder that will contain the new VM, if not set the vm will be added to the folder the original VM belongs to.
* `resourcepool`: MOR (Managed Object Reference)of the resource pool to be used for the new vm. If not set, it uses the same resource pool than the original vm (see [AdvancedUsage#Managed_Object_References]).
* `power_on`: If the new VM will be powered on after being created (defaults to True)
* `template`: Specifies whether or not the new virtual machine should be marked as a template (default False).
Note: `resourcepool` is ignored for a clone operation to a template. For a clone operation from a template to a virtual machine, this argument is required.
===*Migrating a Virtual Machine*===
_*since pysphere 0.1.6*_
To cold or hot migrate a VM to a new host or resource pool:
{{{
>>> vm1.migrate()
}}}
Other optional keyword argumentes:
* `sync_run`: if True (default) waits for the task to finish. If sync_run is set to False the task is started asynchronously and a VITask instance is returned (see [GettingStarted#Running_Tasks_Asynchronously Running Tasks Asynchronously]).
* `priority`: Either 'default', 'high', or 'low'. Priority of the task that moves the vm. Note this priority can affect both the source and target hosts.
* `resource_pool`: MOR (Managed Object Reference) of the target resource pool for the virtual machine. If the parameter is left unset, the virtual machine's current pool is used as the target pool (see [AdvancedUsage#Managed_Object_References]).
* `host`: MOR (Managed Object Reference) of the target host to which the virtual machine is intended to migrate. The host parameter may be left unset if the compute resource associated with the target pool represents a stand-alone host or a DRS-enabled cluster. In the former case the stand-alone host is used as the target host. In the latter case, the DRS system selects an appropriate target host from the cluster (see [AdvancedUsage#Managed_Object_References]).
* `state`: Either 'POWERED ON', 'POWERED OFF', or 'SUSPENDED'. If specified, the virtual machine migrates only if its state matches the specified state.
===*Running Tasks Asynchronously*===
As mentioned before, there are many methods of a virtual machine that execute synchronously by default (i.e. you don't get the flow control back until the operation has completed) but support asynchronous execution by providing the keyword argument `sync_run=False`.
This is a list of the virtual machine methods which support this argument:
* power_on
* reset
* suspend
* power_off
* revert_to_snapshot
* revert_to_named_snapshot
* revert_to_path
* delete_current_snapshot
* delete_named_snapshot
* delete_snapshot_by_path
* create_snapshot
* clone
When invoking the method with `sync_run=False`, a `VITask` object will be returned. For example:
{{{
>>> task = vm1.power_on(sync_run=False)
}}}
this `VITask` object has the following methods:
* *get_state*: Return the current status of the task. Possible values are:
* `"error"`: The task finished but not successfully.
* `"queued"`: The task is still queued and waiting to be executed.
* `"running"`: The task is being run.
* `"success"`: The task finished and was successfully executed.
* *get_error_message*: If the task status is 'error', returns the error description message.
* *wait_for_state*: receives a list of statuses and waits the indicated time at the most (or indefinitely if a timeout is not provided) until one of the given statuses is reached. Returns the reached status or raises a VIException if it times out.
Example:
{{{
>>> task = vm1.power_on(sync_run=False)
>>> try:
... status = task.wait_for_state(['running', 'error'], timeout=10)
... if status == 'error':
... print "Error powering on:", task.get_error_message()
... else:
... print "Succesfully powered on"
... except:
... print "10 seconds time out reached waiting for power on to finish"
}}}</pre>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-28289287038423772152015-09-03T05:42:00.002-07:002015-09-03T05:42:34.254-07:00Biciclistii si partea dreaptaUnde este reglementat in codul rutier ca biciclistii trebuie sa mearga pe partea dreapta a drumului ?<br />
<br />
(OUG)<br />SECŢIUNEA a 2-a<br />Reguli pentru circulaţia vehiculelor<br />§ 1. Poziţii în timpul mersului şi circulaţia pe benzi<br />Art.41. - (1) Vehiculele şi animalele, atunci când circulă pe drumurile publice <br />pe care le este permis accesul, trebuie conduse pe partea din dreapta a drumului public, în sensul de circulaţie, cât mai aproape de marginea părţii carosabile, cu respectarea semnificaţiei semnalizării rutiere şi a regulilor de circulaţie.<br /><br />(Regulament)<br />Art. 101. – Când drumul are două sau mai multe benzi pe sensul de mers, vehiculele se conduc pe banda situată lângă acostament sau bordură. Celelalte benzi pot fi folosite succesiv, de la dreapta spre stânga, dacă banda de circulaţie utilizată este ocupată, cu obligaţia de a reveni pe banda din dreapta <br />atunci când acest lucru este posibil.<br /><br />Art. 161. – (1) Se interzice conducătorilor de biciclete sau mopede:<br />p) să circule pe alte benzi decât cea de lângă bordură sau acostament, cu excepţia cazurilor în care, înainte de intersecţie, trebuie să se încadreze regulamentar pentru efectuarea virajului la stânga;<br /><br /><br />Art. 107. – (1) La intersecţiile prevăzute cu indicatoare şi/sau cu marcaje pentru semnalizarea direcţiei de mers, conducătorii de vehicule trebuie să se încadreze pe benzile corespunzătoare direcţiei de mers voite, cu cel puţin 50 m înainte de intersecţie şi sunt obligaţi să respecte semnificaţia indicatoarelor şi marcajelor.<br /><br />Aici, la virajul pentru stanga, avem o situatie ciudata: zice incadrare cu cel putin 50m inainte. Deci teoretic ar putea fi si de la 400m<br />
<br /><br />Si, informativ, trebuie sa mai tinem cont si de: <br />i) să circule pe partea carosabilă în aceeaşi direcţie de mers, dacă există o cale laterală, o potecă sau un acostament practicabil, ce pot fi folosite;<br /><br />2. acostament – fâşia laterală cuprinsă între limita părţii carosabile şi <br />marginea platformei drumului;<br /><br />Dar atentie... nu pe trotuar. Acostamente sunt gasite pe drumurile nationale, ex pe DN1.Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-648756218823581055.post-91095032363959461252015-07-16T05:15:00.000-07:002015-07-16T05:15:10.469-07:00Casca ochii, nu te baza pe casca de biciclist<br />
Anti casca de biciclisti<br />
* http://www.spokesman.com/blogs/transportation/2015/jun/26/why-im-done-wearing-helmet/#_=_<br />
<br />
* http://bicyclesafe.com/images/helmetchart.gif<br />
<br />
* https://www.youtube.com/watch?v=n-AbPav5E5M<br />
<br />
* http://www.cycle-helmets.com/helmet_statistics.html <br />
<br />
Pro casca:<br />
<br />* https://www.facebook.com/643215972394022/photos/a.647123052003314.1073741829.643215972394022/859648820750735/?type=1<br /><br />
Stupid marketing:<br />
- don't know the cause of injury<br />
- don't know the context<br />
<br />
<br />
<br />
<br />
Parerea mea:<br />In majoritatea cazurilor nu este necesara casca de biciclist. E mult mai important sa fii atent. Daca intra o masina in tine, casca nu te prea mai ajuta.<br />
<br />
Exista studii conform carora biciclistii care poarta casca nu mai sunt asa atenti. Si asa le creste riscul de accident. De asemenea, soferii la fel. De exemplu trec mai aproape de cei echipati.<br />
<br />
Merg zilnic inclusiv iarna. <br />
Am facut off-road Oltenita - Giurgiu fara casca si in sandale (non-bike).Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-39796857658453221132015-07-09T04:46:00.001-07:002015-07-09T04:46:23.835-07:00Biciclisti si depasireSunt multi care considera Gresit trecerea biciclistilor pe langa masinile oprite la semafor ca fiind depasire.<br />
<br />
Sa vedem ce gasim prin codul rutier.<br />
<br />
http://bgoodforyou.blogspot.ro/2013/05/legislatie-pentru-biciclisti_20.html<br />
<br />
<br />
7. bandă de circulaţie – subdiviziunea longitudinală a părţii carosabile, materializată prin marcaje rutiere sau alte mijloace, dacă are o lăţime corespunzătoare pentru circulaţia într-un sens a unui şir de vehicule, <b>altele decât vehiculele care se deplasează pe două roţi;</b><br />
<br />
<br />
Art.45. - (1) Depăşirea este manevra prin care un vehicul trece înaintea altui vehicul ori pe lângă un obstacol, aflat pe acelaşi sens de circulaţie, prin schimbarea direcţiei de mers şi ieşirea de pe banda de circulaţie sau din şirul de vehicule în care s-a aflat iniţial.<br /><br />(4) Nu constituie depăşire, în sensul alin.(1), situaţia în care un vehicul circulă mai repede pe una dintre benzi decât vehiculele care circulă pe altă bandă în acelaşi sens de circulaţie.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-67403565362855383462015-07-03T00:23:00.002-07:002015-07-03T00:23:54.251-07:00Electronice foto furate in vama veche<div class="_6a _6b">
<h5 class="_5pbw" data-ft="{"tn":"C"}">
<div class="fwn fcg">
<span class="fcg"><span class="fwb"><a class="profileLink" data-ft="{"tn":"l"}" data-hovercard="/ajax/hovercard/user.php?id=100001007636475" href="https://www.facebook.com/mihaela.dinca27">Mihaela Dincă</a></span> shared <a class="profileLink" data-ft="{"tn":"l"}" data-hovercard="/ajax/hovercard/user.php?id=100000872296923" href="https://www.facebook.com/ana.bivolan">Ana Bivolan</a>'s <a class="profileLink" data-ft="{"tn":"E"}" href="https://www.facebook.com/photo.php?fbid=907212759317792&set=a.590451647660573.1073741826.100000872296923&type=1">photo</a>.</span></div>
</h5>
<div class="_5pcp">
<span><span class="fsm fwn fcg"><a class="_5pcq" href="https://www.facebook.com/mihaela.dinca27/posts/938452579531654" target=""><abbr class="_5ptz timestamp livetimestamp" data-shorten="1" data-utime="1435869398" title="Thursday, July 2, 2015 at 11:36pm">10 hrs</abbr></a></span></span> · <span><a class="uiLinkSubtle" data-ft="{"tn":"+E"}" data-hover="tooltip" href="https://www.facebook.com/mihaela.dinca27?fref=ts#" rel="dialog" role="button">Edited</a></span> · <div class="_6a _29ee _4f-9 _43_1" data-hover="tooltip" id="u_jsonp_26_p">
<span></span></div>
</div>
</div>
<div class="_5pbx userContent" data-ft="{"tn":"K"}">
<div class="text_exposed_root text_exposed" id="id_55963861df27a0698791837">
Prietenilor
noştri li s-a furat o poală scumpă de bunuri (aparatură foto, laptopuri
şi nu numai). Plus această gentuţă, unicat în România şi deci foarte
uşor de remarcat. Vă rugăm dacă aflaţi ceva să îi contactaţi la nr de
telefon 0724171564 sau pe fb: <a href="https://www.facebook.com/ManeaRazvan">https://www.facebook.com/ManeaRazvan</a>.<br /> Vă rugăm să daţi share acestui post!<br />
Lista de bunuri furate:<br />
<div class="text_exposed_show">
Nikon d3 body serie numar 2085595<br /> Nikon 70-200mm f 2.8 serie numar 413354<br /> Nikon(blitz) sb 800 serie numar 3204917<br /> Samyang 14 mm AE f 2.8 serie numar d113a0361<br /> Card memorie 32 gb Transcendent Compact flash udma 7 scriere 400x<br />
Hard 500 gb my passport (argintiu)<br /> Camera sj4000 wifi (roz)<br /> Incarcator laptop acer aspire 1 , 19v 4,7 a<br />
plus alte camere si laptopuri ale altor amici de breasla....(o sa revin in curand cu detaliile despre celelalte obiecte furate)<br />
detalii colegi pagubiti:<br />
Laptop Lenovo Flex 2 serie: WB15230535 adresa MAC: B0-10-41-A3-E7-F5<br /> Incarcator Laptop<br /> Mouse HP<br /> Camera foto Canon 600D serie: 5170B139 [AA]<br /> 2 carduri de memorie Lexar Micro SDHC – 32 Gb<br /> Obiectiv Canon 70-200 f4<br /> Obiectiv Sigma 17-70<br /> Casti Audio Technica ATH-M30x<br /> Cutit artizanal<br /> Incarcator telefon Samsung<br /> Power Bank Samsung<br /> Ceas de mana Jaragar<br /> Rucsac HP<br /> Portofel + acte + bani<br />
si<br />
Telefon Samsung galaxy Express LTE cumparat in 14.10.2014, EMAI: 358267054754331<br /> Laptop Lenovo Ideapad u310<br /> Incarcator laptop<br /> Mouse genius<br /> Geanta laptop ING<br /> Geanta de umar marca Toucan – culoare roz<br /> Portofel + acte + bani</div>
</div>
</div>
<div data-ft="{"tn":"H"}">
<div class="mtm">
<div class="_5cq3" data-ft="{"tn":"E"}">
<a class="_4-eo" href="https://www.facebook.com/photo.php?fbid=907212759317792&set=a.590451647660573.1073741826.100000872296923&type=1" rel="theater" style="width: 201px;"><div class="uiScaledImageContainer _4-ep" id="u_jsonp_26_c" style="height: 394px; width: 201px;">
<img alt="Ana Bivolan's photo." class="scaledImageFitWidth img" height="395" src="https://scontent.xx.fbcdn.net/hphotos-xpt1/v/t1.0-9/s526x395/11709272_907212759317792_822233395690789618_n.jpg?oh=74f145ee315ce2f6a872e4e6fef078a2&oe=562A1BF9" width="201" /></div>
</a></div>
</div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-3678080059452682062015-01-26T06:36:00.002-08:002015-01-26T06:36:48.882-08:00atomac httplib.BadStatusLine: ''I tried to figure out (as tester) why atomac version 1.1.0 gave error httplib.BadStatusLine: '' when running from script.<br />
<br />
When running from command line it worked very well : getwindowlist(); getobjectlist().<br />
<br />
<br />
Well... I couldn't . So having a machine with Xcode installed I did upgrade for atomac from git:<br />
<br />
git clone https://github.com/ldtp/pyatom.git<br />
<br />
And the problem disappears :)Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-946485539966914982014-10-13T05:27:00.003-07:002014-10-13T05:27:49.069-07:00Jenkins no ttyWhen running a jenkins job which does a sudo command in a script, some errors occurs related to failed authentication.<br />
<br />
A possible fix for it is:<br />
- add user in sudoers without password (or use ssh keys)<br />
- on redhat systems (including centos) we still get:<br />
sudo: sorry, you must have a tty to run sudo<br />
<br />
To solve it , comment the line in /etc/sudoers using visudo :<br />
<br />
<pre class="lang-bsh prettyprint prettyprinted"><code><span class="typ">Defaults</span><span class="pln"> requiretty</span></code></pre>
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-74878156927689570982014-01-06T02:01:00.002-08:002014-01-06T02:01:38.095-08:00Ubuntu update asks for cdromThere are some new updates in Ubuntu.<br />
Happy you want to install them.<br />
But a strange messages raises asking to insert the release cd in /media/cdrom.<br />
<br />
How to solve it:<br />
- start Update Manager<br />
- click Settings button<br />
- on each tab verify the all cdrom mentions to *NOT* be checked. If are, un-tick them.<br />
<br />
I had it on 2nd tab - Other Software on first line, not on first tab Ubuntu software.<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-77227841962750791252013-09-05T01:54:00.001-07:002013-09-05T01:54:17.823-07:00Echipament bicicleta iarna<a href="http://odbike.co.kr/images/upfile/11120610430525.jpg">http://odbike.co.kr/images/upfile/11120610430525.jpg</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://3.bp.blogspot.com/-d-JeIWFJJgQ/UihGrEv1rQI/AAAAAAAAP98/SosVvmddoqo/s1600/ciwintercycling12.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://3.bp.blogspot.com/-d-JeIWFJJgQ/UihGrEv1rQI/AAAAAAAAP98/SosVvmddoqo/s320/ciwintercycling12.jpeg" width="304" /></a></div>
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-37410789115150481722013-07-02T03:26:00.001-07:002013-07-04T02:05:13.064-07:00Intercept communicationTools used in testing<br />
<br />
- snoop - f=ussdb_en_1bigItem2Words.txt ;
/usr/sbin/snoop -x 10.33.96.91 port 8080 | tee $f
<br />
- fiddler http://fiddler2.com/<br />
- tcpMon<br />
- wireSharkUnknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-21469814477907939912013-06-18T01:23:00.001-07:002013-06-18T01:53:53.929-07:00Ubuntu workgroup of Windows network<b><a href="http://ubuntuforums.org/showthread.php?t=1169149">ubuntuforums.org/showthread.php?t=1169149</a></b><br />
<br />
<span style="font-size: medium;"><b>Problem 2:</b> </span><br />
To fix this problem will require some editing of configuration files via
CLI. There are easier ways to change the workgroup that Ubuntu belongs
to, but many of these methods also tend to cause other problems.<br />
<br />
The best and most reliable way to change Ubuntu's workgroup is by
editing the /etc/samba/smb.conf file. This means that it may be easier
to assign all of your Windows computers to the “WORKGROUP” workgroup (as
outlined under "Problem 1"). Otherwise, use the following directions to
edit /etc/samba/smb.conf in order to change the workgroup that Ubuntu
is a member of.<br />
<br />
<br />
<b><i>Problem 2 - part 1</i></b><br />
Open this file for editing with the following command:<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 36px;">gksudo gedit /etc/samba/smb.conf</pre>
</div>
Scroll down to the section that looks like this:<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 120px;"> #======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = <span style="color: red;">WORKGROUP</span></pre>
<pre class="bbcode_code" style="height: 120px;"><span style="color: red;">
</span></pre>
</div>
Change “<span style="color: red;">WORKGROUP</span>” in “workgroup = <span style="color: red;">WORKGROUP</span>” to match your Windows workgroup.<br />
<br />
<br />
<b><i>Problem 2 - part 2</i></b><br />
It may also help to add netbios name = <span style="color: red;">computer-name</span> just below "workgroup = WORKGROUP".<br />
<br />
Your "<span style="color: red;">computer-name</span>" can be anything, but
common convention is to use the name you gave it when you installed
Ubuntu (everything after the "@" symbol on the CLI prompt).<br />
<br />
For example, here's my CLI prompt:<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 36px;">dmizer@<span style="color: red;">shinkansen</span>:~$</pre>
</div>
And here's my smb.conf file:<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 132px;">#======================= Global Settings =======================
[global]
## Browsing/Identification ###
# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = WORKGROUP
netbios name = <span style="color: red;">shinkansen</span></pre>
<pre class="bbcode_code" style="height: 132px;">
</pre>
<pre class="bbcode_code" style="height: 132px;">Now, save the file by clicking on "File" > "save", close gedit, and restart samba with the following command (Pre Jaunty):</pre>
</div>
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 36px;">sudo /etc/init.d/samba restart</pre>
</div>
If, after running the above command, you see this error (Since Jaunty):<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 36px;">sudo: /etc/init.d/samba: command not found</pre>
</div>
Use the following command (or reboot) instead:<br />
<br />
<div class="bbcode_container">
<div class="bbcode_description">
Code:</div>
<pre class="bbcode_code" style="height: 36px;">sudo service smbd restart</pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-27930650018286881972013-05-26T11:33:00.000-07:002013-05-26T11:33:07.570-07:00How remove others tag I made in Facebook?- you want to tag yourself in some pictures<br />
- but mistakenly you clicked on others name<br />
- you tagged others in facebook, even you didn't want that<br />
<br />
The facebook help tells how to remove tag of yourself . But you want to remove tag of the others you made.<br />
<br />
On PC browser open the picture and notice on right the names tagged (on that big white background with picture ) . Put mouse over them. A menu appears allowing to remove the tag of others you added.Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-39195980720489989052013-05-20T02:17:00.003-07:002019-02-26T23:46:15.971-08:00Legislatie pentru biciclisti<br />
Legislatia pentru traficul rutier uzual (Codul Rutier) cuprinde:<br />
<br />
- OUG 195/2002 <br />
- HG 1391/2006 (Regulamentul de aplicare a OUG)<br />
<b><br /></b>
<b>Nota: Toata legislatia </b>este disponibila acum pe<b> <a href="http://legislatie.just.ro/">http://legislatie.just.ro</a> </b>(al Ministerului de Justitie).<b><br /> </b><br />
<b>Linkurile directe sunt:</b><br />
- OUG: <a href="http://legislatie.just.ro/Public/DetaliiDocument/41006">http://legislatie.just.ro/Public/DetaliiDocument/41006</a><br />
- Regulament: <a href="http://legislatie.just.ro/Public/DetaliiDocumentAfis/184740" target="_blank">http://legislatie.just.ro/Public/DetaliiDocumentAfis/184740 </a><br />
<br />
Linkuri initiale pe situl Politiei *1)<br />
- <a href="http://bpr.b.politiaromana.ro/index.php/legislatie/506-oug-195-din-2002-actualizata.html" target="_blank">OUG 195/2002 </a> <br />
- <a href="http://bpr.b.politiaromana.ro/index.php/legislatie/505-hg-1391-din-2006.html" target="_blank">HG 1391/2006</a> <br />
<br />
<i>*1) Pt ca Politia le-a scos de pe site le pun aici in format <b>doc:</b></i><br />
<b><a href="https://drive.google.com/file/d/0B4ajljK8rgyTTG05UXdRdnBJWDA/view?usp=sharing" target="_blank">OUG</a></b><br />
<b><a href="https://drive.google.com/file/d/0B4ajljK8rgyTLXhkb3pGMUxNaE0/view?usp=sharing" target="_blank">Regulament</a></b><br />
<br />
Cum se citeste o lege?<br />
- se citesc cu atentie definitiile termenilor<br />
- daca unul nu este definit se aplica fie din alta lege, fie din DEX<br />
- se citeste cu mare atentie propozitia articolul si se deduce ce e permis si ce e interzis<br />
De exemplu:<br />
(3) Bicicletele si mopedele care circula pe drumurile publice trebuie sa fie echipate cu mijloace de iluminare si dispozitive reflectorizant-fluorescente. Este interzisa circulatia acestora pe timp de noapte fara aceste mijloace si dispozitive in stare de functionare.<br />
<br />
Rezulta ca in afara drumurilor publice (ex parcuri, poteci de munte) se poate circula si FARA iluminare, adica legea nu te obliga. Daca te prinde noaptea pe acolo e treaba ta:P.<br />
Este interzis circulatia noaptea fara astea. Deci daca nu ai, te dai jos de pe bicicleta si mergi ca pieton.<br />
<br />
Pentru biciclisti avem urmatoarele informatii (xx: inseamna Art. xx).<br />
<b>NB: Biciclistilor li se aplica si regulile referitoare la vehicule!!!.</b><br />
<b><br /></b>
<b>OUG</b>:<br />
10. bicicleta - vehiculul prevazut cu doua roti, propulsat exclusiv prin forta musculara, cu ajutorul pedalelor sau manivelelor;<br />
<br />
25. pista pentru biciclete - subdiviziunea partii carosabile, a trotuarului ori a acostamentului sau pista separata de drum, special amenajata, semnalizata si marcata corespunzator, destinata numai circulatiei bicicletelor si mopedelor;<br />
<br />
35. vehicul - sistemul mecanic care se deplaseaza pe drum, cu sau fara
mijloace de autopropulsare, utilizat in mod curent pentru transportul de
persoane si/sau bunuri ori pentru efectuarea de servicii sau lucrari;<br />
<br />
<span style="background-color: white; color: #454545; font-family: "arial" , "helvetica" , sans-serif; font-size: 12px; line-height: 18px;">§ 1. Pozitii in timpul mersului si circulatia pe benzi</span><br />
<span style="background-color: white; color: #454545; font-family: "arial" , "helvetica" , sans-serif; font-size: 12px; line-height: 18px;">41:</span><br />
<span style="background-color: white; color: #454545; font-family: "arial" , "helvetica" , sans-serif; font-size: 12px; line-height: 18px;">(1) Vehiculele si animalele, atunci cand circula pe drumurile publice pe care le este permis accesul, trebuie conduse pe partea din dreapta a drumului public, in sensul de circulatie, cat mai aproape de marginea partii carosabile, cu respectarea semnificatiei semnalizarii rutiere si a regulilor de circulatie.</span><br />
<span style="background-color: white; color: #454545; font-family: "arial" , "helvetica" , sans-serif; font-size: 12px; line-height: 18px;"><br /></span>
(3) Daca un drum este prevazut cu o pista speciala destinata circulatiei bicicletelor, acestea, precum si mopedele vor fi conduse numai pe pista respectiva.<br />
<br />
63:<br />
(5)[...] Motocicletele fara atas, mopedele si bicicletele pot fi oprite sau stationate si cate doua, una langa alta.<br />
<br />
70:<br />
(2) Pentru a conduce o bicicleta pe drumurile publice, conducatorul acesteia trebuie sa aiba varsta de cel putin 14 ani.<br />
<br />
(3) Bicicletele si mopedele care circula pe drumurile publice trebuie sa fie echipate cu mijloace de iluminare si dispozitive reflectorizant-fluorescente. Este interzisa circulatia acestora pe timp de noapte fara aceste mijloace si dispozitive in stare de functionare.<br />
<br />
73:<br />
Regulile privind circulatia pe drumurile publice a mopedelor, bicicletelor, vehiculelor cu tractiune animala, a conducatorilor de coloane militare, cortegii, grupuri organizate, precum si de animale se stabilesc prin regulament<br />
<br />
<br />
98:<br />
(1) Amenzile contraventionale se stabilesc in cuantumul determinat de valoarea numarului punctelor-amenda aplicate.<br />
(2) Un punct-amenda reprezinta valoric 10% din salariul minim brut pe economie, stabilit prin hotarare a Guvernului.<br />
<br />
(4) Clasele de sanctiuni sunt urmatoarele:<br />
a) clasa I - 2 sau 3 puncte-amenda;<br />
b) clasa a II-a - 4 sau 5 puncte-amenda;<br />
c) clasa a III-a - de la 6 la 8 puncte-amenda;<br />
d) clasa a IV-a - de la 9 la 20 puncte-amenda;<br />
e) clasa a V-a - de la 21 la 100 puncte-amenda.<br />
<br />
<br />
101:<br />
<b>(1) Constituie contraventii si se sanctioneaza cu amenda prevazuta in clasa a III-a de sanctiuni urmatoarele fapte savarsite de persoane fizice:</b><br />
<b>8. nerespectarea normelor privind circulatia bicicletelor si mopedelor;</b><br />
<br />
105:<br />
Constituie contraventii si se sanctioneaza cu amenda prevazuta in clasa a V-a de sanctiuni urmatoarele fapte savarsite de catre persoane juridice:<br />
<br />
20. neindeplinirea obligatiei, de catre autoritatile publice locale, de a efectua amenajari rutiere destinate circulatiei pietonilor, biciclistilor, vehiculelor cu tractiune animala si calmarii traficului, precum si nesemnalizarea sau semnalizarea necorespunzatoare a acestora;<br />
<br />
128:<br />
(1) Autoritatile administratiei publice locale au urmatoarele atributii:<br />
e) iau masuri pentru amenajarea de trotuare si drumuri laterale pentru circulatia pietonilor, vehiculelor cu tractiune animala, a tractoarelor, de piste pentru biciclete, precum si de benzi destinate exclusiv transportului public de persoane pe drumurile pe care le administreaza, cu avizul politiei rutiere;<br />
<br />
<b>HG (Regulament)</b><br />
<br />
§ 2. Conditiile tehnice minime pe care trebuie sa le indeplineasca bicicletele, mopedele, vehiculele cu tractiune animala si cele trase sau impinse cu mana<br />
14:<br />
<b>In circulatia pe drumurile publice bicicleta trebuie sa fie</b>:<br />
a) prevazuta cu dispozitiv de franare eficace;<br />
b) prevazuta cu un sistem adecvat, functional, de directie;<br />
c) dotata cu sistem de avertizare sonora; se interzic echiparea si folosirea sistemelor de avertizare sonora specifice autovehiculelor;<br />
d) echipata in fata cu lumina de culoare alba sau galbena, iar in spate cu lumina de culoare rosie si cu cel putin un dispozitiv fluorescent-reflectorizant, vizibil, de aceeasi culoare;<br />
e) echipata cu elemente sau dispozitive care, in miscare, formeaza un cerc continuu, fluorescent-reflectorizante de culoare portocalie fixate pe spitele rotilor.<br />
<br />
15:<br />
Remorca atasata unei biciclete trebuie sa fie echipata, in partea din spate, cu un dispozitiv fluorescent-reflectorizant de culoare rosie, iar daca lumina din spate a bicicletei este obturata de remorca, aceasta trebuie sa fie echipata si cu o lumina de culoare rosie.<br />
<br />
55:<br />
Semnalul luminos destinat numai dirijarii circulatiei bicicletelor are in campul sau imaginea unei biciclete de culoare rosie, respectiv verde pe fond negru. Aceeasi destinatie o are si semnalul luminos al unui semafor insotit de un panou aditional pe care figureaza o bicicleta.<br />
<br />
<br />
76:<br />
Marcajele aplicate pe drumurile publice sunt:<br />
4. de traversare pentru biciclisti;<br />
<br />
81:<br />
(4) Marcajul transversal constand din linii discontinue paralele, aplicate perpendicular sau oblic fata de axul drumului, indica locul destinat traversarii partii carosabile de catre biciclisti.<br />
<br />
99:<br />
(1) Circulatia pe drumurile publice a vehiculelor care nu sunt supuse inmatricularii sau inregistrarii, cu exceptia bicicletelor si a celor trase sau impinse cu mana, este permisa numai in timpul zilei.<br />
(2) Se interzice conducatorilor vehiculelor prevazute la alin. (1) sa circule cu acestea cu o viteza mai mare de 30 km/h.<br />
<br />
<br />
SECTIUNEA a 2-a<br />
Utilizarea partii carosabile<br />
100:<br />
Vehiculele trebuie conduse numai pe drumurile, partile carosabile, benzile sau pistele stabilite pentru categoria din care fac parte. In cazul in care pe drumurile publice nu sunt amenajate benzi sau piste speciale pentru mopede, <b>biciclete</b> si celelalte vehicule fara motor, acestea pot fi conduse si pe acostament in sensul de mers, daca circulatia se poate face fara pericol.<br />
<br />
135:<br />
Conducatorul de vehicul este obligat sa acorde prioritate de trecere si in urmatoarele situatii:<br />
g) cand efectueaza un viraj spre stanga sau spre dreapta si se intersecteaza cu un biciclist <b>care circula pe o pista pentru biciclete, semnalizata ca atare</b>;<br />
<br />
141:<br />
(5) In afara localitatilor oprirea sau stationarea voluntara a
<b>vehiculelor</b> se face in afara partii carosabile, iar atunci cand nu este
posibil, cat mai aproape de marginea din dreapta a drumului, paralel cu
axa acestuia.<br />
<br />
(6) Nu este permisa stationarea pe partea carosabila, in timpul noptii, a
tractoarelor, a remorcilor, a mopedelor, a <b>bicicletelor</b>, a masinilor si
utilajelor autopropulsate utilizate in lucrari de constructii, agricole
sau forestiere, a vehiculelor cu tractiune animala ori a celor trase
sau impinse cu mana.<br />
<br />
(7) Nu este permisa oprirea sau stationarea in tuneluri.<br />
<br />
142:<br />
Se interzice oprirea voluntara a <b>vehiculelor</b>:<br />
a) in zona de actiune a indicatorului "Oprirea interzisa";<br />
b) pe trecerile la nivel cu calea ferata curenta si la o distanta mai mica de 50 m inainte si dupa acestea;<br />
c) pe poduri, pe si sub pasaje denivelate, precum si pe viaducte;<br />
d) in curbe si in alte locuri cu vizibilitate redusa sub 50 m;<br />
e) pe trecerile pentru pietoni ori la mai putin de 25 m inainte si inainte de acestea;<br />
f) in intersectii, inclusiv cele cu circulatie in sens giratoriu, precum
si in zona de preselectie unde sunt aplicate marcaje continue, iar in
lipsa acestora, la o distanta mai mica de 25 m de coltul intersectiei;<br />
g) in statiile mijloacelor de transport public de persoane, precum si la mai putin de 25 m inainte si dupa acestea;<br />
h) in dreptul altui vehicul oprit pe partea carosabila, daca prin
aceasta se stanjeneste circulatia a doua vehicule venind din sensuri
opuse, precum si in dreptul marcajului continuu, in cazul in care
conducatorii celorlalte vehicule care circula in acelasi sens ar fi
obligati, din aceasta cauza, sa treaca peste acest marcaj;<br />
i) in locul in care se impiedica vizibilitatea asupra unui indicator sau semnal luminos;<br />
j) pe sectoarele de drum unde sunt instalate indicatoarele cu
semnificatiile "Drum ingustat", "Prioritate pentru circulatia din sens
invers" sau "Prioritate fata de circulatia din sens invers";<br />
k) pe pistele obligatorii pentru pietoni si/sau biciclisti ori pe
benzile rezervate unor anumite categorii de vehicule, semnalizate ca
atare;<br />
l) pe platforma caii ferate industriale sau de tramvai ori la mai putin
de 50 m de acestea, daca circulatia vehiculelor pe sine ar putea fi
stanjenita sau impiedicata;<br />
m) pe partea carosabila a autostrazilor, a drumurilor expres si a celor nationale europene (E);<br />
n) pe trotuar, daca nu se asigura spatiu de cel putin 1 m pentru circulatia pietonilor;<br />
o) pe pistele pentru biciclete;<br />
p) in locurile unde este interzisa depasirea.<br />
<br />
<div>
143:<br />
Se interzice stationarea voluntara a <b>vehiculelor</b>:<br />
a) in toate cazurile in care este interzisa oprirea voluntara;<br />
b) in zona de actiune a indicatorului cu semnificatia "Stationarea
interzisa" si a marcajului cu semnificatia de interzicere a stationarii;<br />
c) pe drumurile publice cu o latime mai mica de 6 m;<br />
d) in dreptul cailor de acces care deservesc proprietatile alaturate drumurilor publice;<br />
e) in pante si in rampe;<br />
f) in locul unde este instalat indicatorul cu semnificatia "Stationare
alternanta", in alta zi sau perioada decat cea permisa, ori indicatorul
cu semnificatia "Zona de stationare cu durata limitata" peste durata
stabilita.<br />
<br />
<br />
<br />
SECTIUNEA a 4-a<br />
Reguli pentru alti participanti la trafic<br />
§ 1. Circulatia bicicletelor si a mopedelor<br />
160:<br />
(1) Bicicletele si mopedele, atunci cand circula pe drumul public, trebuie conduse numai<b> pe un singur rand.</b><br />
(2) Persoanele care nu poseda permis de conducere pot conduce mopede pe
drumurile publice numai daca fac dovada ca au absolvit un curs de
legislatie rutiera in cadrul unei unitati autorizate de pregatire a
conducatorilor de autovehicule.<br />
(3) Daca pe directia de deplasare exista o pista pentru biciclete,
semnalizata ca atare, conducatorii vehiculelor prevazute la alin. (1)
sunt obligati sa circule numai pe aceasta pista. Se interzice circulatia
altor participanti la trafic pe pista pentru biciclete.<br />
(4) Se recomanda ca, in circulatia pe drumurile publice, biciclistul sa poarte casca de protectie omologata.<br />
<br />
161:<br />
(1) Se interzice conducatorilor de biciclete sau de mopede:<br />
a) sa circule pe sectoarele de drum semnalizate cu indicatorul avand semnificatia "Accesul interzis bicicletelor";<br />
b) sa invete sa conduca biciclete sau mopede pe drumurile intens circulate;<br />
c) sa circule pe trotuare, cu exceptia cazului cand pe acestea sunt amenajate piste speciale destinate lor;<br />
d) sa circule fara a tine cel putin o mana pe ghidon si ambele picioare pe pedale;<br />
e) sa circule in paralel, cu exceptia situatiilor cand participa la competitii sportive organizate;<br />
f) sa circule in timp ce se afla sub influenta alcoolului, a produselor
ori substantelor stupefiante sau a medicamentelor cu efecte similare
acestora;<br />
g) sa se tina de un vehicul aflat in mers ori sa fie remorcat de un alt
vehicul sau impins ori tras de o persoana aflata intr-un vehicul;<br />
h) sa transporte o alta persoana, cu exceptia copilului pana la 7 ani,
numai daca vehiculul are montat in fata un suport special, precum si a
situatiei cand vehiculul este construit si/sau echipat special pentru
transportul altor persoane;<br />
i) sa circule pe partea carosabila in aceeasi directie de mers, daca
exista o cale laterala, o poteca sau un acostament practicabil, ce poate
fi folosit;<br />
j) sa transporte sau sa traga orice fel de obiecte care, prin volumul
ori greutatea lor, stanjenesc sau pericliteaza conducerea vehiculului
ori circulatia celorlalti participanti la trafic;<br />
k) sa circule pe aleile din parcuri sau din gradini publice, cu exceptia cazurilor cand nu stanjenesc circulatia pietonilor;<br />
l) sa circule pe timp de noapte sau cand vizibilitatea este redusa, fara sa indeplineasca conditiile prevazute la art. 14 si 16;<br />
m) sa circule atunci cand partea carosabila este acoperita cu polei, gheata sau zapada;<br />
n) sa circule cu defectiuni tehnice la sistemele de franare sau cu un vehicul care nu este prevazut cu avertizor sonor;<br />
o) sa traverseze drumurile publice, pe trecerile destinate pietonilor, in timp ce se deplaseaza pe bicicleta sau pe moped;<br />
p) sa circule pe alte benzi decat cea de langa bordura sau acostament,
cu exceptia cazurilor in care, inainte de intersectie, trebuie sa se
incadreze regulamentar pentru efectuarea virajului la stanga;<br />
r) sa circule fara a purta imbracaminte cu elemente
fluorescent-reflectorizante, de la lasarea serii pana in zorii zilei sau
atunci cand vizibilitatea este redusa;<br />
s) sa conduca vehiculul fara a mentine contactul rotilor cu solul.<br />
(2) Pe timpul circulatiei pe drumurile publice, conducatorii de
biciclete sunt obligati sa aiba asupra lor actul de identitate, iar
conducatorii de mopede sunt obligati sa aiba, in plus, certificatul de
absolvire a cursurilor de legislatie rutiera si certificatul de
inregistrare a vehiculului.<br />
<br />
<br />
<br />
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-648756218823581055.post-67489095410262300342013-05-20T01:07:00.001-07:002013-05-20T01:07:41.732-07:00De ce e-book reader?- mai multe carti disponibile la un moment dat<br />
- mai usor de tinut fata de cartile groase<br />
- mai usor de dat paginile<br />
- nu se indoaie foile<br />
- afara poti sa citesti cand bate vantul<br />
<br />
Recomandat Nook sau Trekstore mini, nu kindle pentru ca nu are zoom si reflow pe pdf.<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-76117275038334507152013-03-05T07:45:00.002-08:002013-03-05T07:45:30.004-08:00OpenProj on Ubuntu<br />
Starting OpenProj gives error of java vendor:<br />
<br />
~$ openproj <br />Java auto-detection...<br />Checking java<br /> Java version: 1.6.0_27 OK<br /> Java implementation: OpenJDK NOK, OpenProj requires Sun, IBM or IcedTea implementation<br />Checking /usr/java/jre1.7.0_07/bin/java<br /> Java version: 1.7.0_07 OK<br /> Java implementation: Java(TM) OK<br />
<br />
<br />
Solution:<br />
<br />
<a href="http://blog.coffeebeans.at/?p=303">http://blog.coffeebeans.at/?p=303</a><br />
<br />
<span class="fn"><a class="url" href="http://fixerdave.blogspot.com/" rel="external nofollow">FixerDave</a></span> on <a href="http://blog.coffeebeans.at/?p=303#comment-63"><time datetime="2012-12-04T02:54:57+00:00">4. December 2012 at 02:54</time></a> <span class="says">said:</span>
<br />
<div class="comment-content">
yup, just editing the conf file with:<br />
JAVA_OPTS=”-Djava.vendor=Sun -Xms128m -Xmx768m”<br />
did the trick.<br />
Thanks to all, including Google <img alt=":)" class="wp-smiley" src="http://blog.coffeebeans.at/wp-includes/images/smilies/icon_smile.gif" /> <br />
</div>
<br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-32711707083407772742013-02-20T05:14:00.001-08:002013-02-20T05:14:26.640-08:00Despre angrenajegamele de piese ale principalilor producători<br />
<br />
http://www.freerider.ro/mag/ghid-de-achizitionare-pentru-biciclete-de-munte-24083.html<br />
<br />
cu ajutorul de la bikebox. <br />
<br />Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-16605562706010795932013-02-18T23:35:00.001-08:002013-03-02T10:07:06.643-08:00Ce aparat foto sa imi iau?Avand tangenta cu fotografia, de multe ori sunt intrebat asa ceva.<br />
Din pacate (sau fericire ca avem de unde alege) nu se poate da un raspuns direct. Trebuie sa te documentezi un pic despre ce tipuri de aparate foto exista in momentul acesta ca sa intelegi exact care ti se potriveste.<br />
<br />
Ce-ar fi important?<br />
In primul rand dimensiunea senzorului - cu cat mai mare cu atat mai bine. Cele care il au egal cu clasicul film se numesc Full Frame. Cele APS-C il au de 1.6 ori mai mic decat film. Compactele uzuale il au de 6-7 (!!) mai mic. <br />
<br />
Tipuri de aparate foto:<br />
- <b>SLR</b> - cele clasice, care au facut istorie de 50 de ani, cu film, mecanice, se repara destul de usor<br />
<br />
- <b>DSLR</b> - transformarea electronica a celor de mai sus, insa cu greutate si dimensiuni mai mari. Recomandat in Romania: Nikon (preturi ca afara, garantie 3 ani, obiective multe disponibile pe piata second hand, deci si mai ieftine)/<br />
<br />
- <b>mirror-less</b> - un tip destul de nou, electronice, dar mult mai mici si usoare fata de cele de sus. Acestea s-au facut prin renuntarea la vizualizarea imaginii prin sistemul optic de sticla (acel SLR de la celelalte). Sunt impartite in cateva categorii:<br />
- - cu senzor ca DSLR APS-C - seria Sony NEX (recomand F3 cu obiectiv 16-50)<br />
- - senzor mai mic - 4/3 (Micro Four Thirds) : Pentax, Olympus<br />
- - senzor si mai mic : Nikon V sau J<br />
<br />
- <b>compacte avansate</b>: senzor mai mare decat compactele, dar mai mic decat al celor de mai sus: <a href="http://www.orasul.ro/articles/view/fuji-x10.html" target="_blank">Fuji X10</a>(recomand); Canon G1x sau G15; Nikon P7100; Sony RX 100<br />
<br />
- <b>compactele normale</b>: senzorul cel mai mic de la aparate foto, preturi intre 200 lei si 1000-1500 lei. Aici intra o categorie aparte: <b>bridge</b> - acelasi senzor, dar focale mai mari (300-500 mm), corp mai mare si poate optiuni mai avansate.<br />
<br />
<br />
Raspunsul meu pentru cei care vor sa renunte la compacte este Sony Nex.<br />
<br />
De ce?<br />
<br />
- are aceeasi dimensiune a senzorului cu cea a unui DSLR (APS-C) *1)<br />
- este mai usor decat un DSLR<br />
- are un corp cu o forma mai mica<br />
- permite schimbarea de obiective ca un DSLR<br />
- cu anumite obiective este aproape ca un compact<br />
<br />
*1) Face parte dintr-o gama numit mirror-less *2), alaturi de Four Thirds care au insa un senzor mai mic.<br />
Comparatie Dimensiuni senzor pe wikipedia <a href="http://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Sensor_sizes_overlaid_inside_-_updated.svg/1000px-Sensor_sizes_overlaid_inside_-_updated.svg.png">aici.</a><br />
<br />
*2) De multe ori cei cu DSLR duc aparatul la ochi cand vor sa fotografieze. DSLRul are ceea ce se numeste vizor sau ocular. Imaginea care este vazuta de obiectiv se reflecta pe o oglinda, directionata printr-o prisma si apare in vizor. Calitatea acestei imagini este foarte aproape de realitate, un detaliu important pentru fotografii super profesionisti.<br />
<br />
Dintr-o alta discutie: <br />
<div>
1. dimensiuni senzor - cu cat mai mare cu atat mai bine<br />
<a href="http://en.wikipedia.org/wiki/File:Sensor_sizes_overlaid_inside_-_updated.svg" target="_blank">http://en.wikipedia.org/wiki/<wbr></wbr>File:Sensor_sizes_overlaid_<wbr></wbr>inside_-_updated.svg</a></div>
<div>
<br /></div>
<div>
<br />
<a href="http://2.de/" target="_blank">2.de</a> ce nu mirroless ?</div>
<div>
mirorless mi se pare mie ca scoate cel mai bun raport dim. senzor (aps-c) / versalitate </div>
<div>
(n-ai
chef sa cari un obiectiv mare dupa tine prin oras, ii pui unul cu
focala fixa; in concediu ii pui unul cu focala cat vrei sa faci zoom)</div>
<div>
<br /></div>
<div>
daca vrei <b>dslr</b>, atunci ia nikon din Romania (preturi apropiate cu sua) si ai 3 ani garantie (sau ceva in genul)</div>
<div>
<br /></div>
<div>
<b>mirorless</b>:</div>
<div>
- sony nex F3 ieftin si bun</div>
<div>
- nikon J sau V : senzor mai mic decat nex</div>
<div>
<br />
<b>compact</b> (obiectiv fix, dar poti face zoom)</div>
<div>
<span class="il">canon</span> g1x - are senzorul cel mai mare, deci mai bine<br />
<a href="http://www.f64.ro/products/compara_produse.html?prodss[]=23356&prodss[]=21234" target="_blank">http://www.f64.ro/products/<wbr></wbr>compara_produse.html?prodss[]=<wbr></wbr>23356&prodss[]=21234</a></div>
<div>
sony-dsc-rx100 - senzor mai mic ; scump rau</div>
<div>
Fuji x10 - foarte fain - senzor si mai mic </div>
<div>
nikon p7100/ canon G15 senzor si mai si mai mic, dar mai mare decat la compacte normale</div>
<div>
<br /></div>
<div>
senzor si mai mare, dar are obiectiv Fix si focala fixa (nu-l poti da jos, nu poti face zoom)<br />
<a href="http://www.f64.ro/fuji-finepix-x100.html" target="_blank">http://www.f64.ro/fuji-<wbr></wbr>finepix-x100.html</a></div>
<div>
<b>(foarte smecher)</b><br />
<br /></div>
<b>super-smecher (full frame)</b><br />
<br />
Sony Cyber-shot DSC-RX1 - 35mm F2 Carl Zeiss Sonnar T*Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-5367443889379843482013-02-18T00:39:00.002-08:002013-02-18T00:39:59.690-08:00Free online storage 50 GB eachEach service below gives access to 50 GB free on-line storage (alpha order):<br />
<br />
http://www.adrive.com/plans<br />
https://www.box.com/signup/o/dell_50gb_give_get<br />
https://www.mediafire.com/upgrade/# <br />
https://mega.co.nz/Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-648756218823581055.post-62195054962416596082013-01-31T04:38:00.003-08:002013-01-31T04:41:37.910-08:00ssh still asks for passwordTo login without password from server S to server D:<br />
- on server S:<br />
-- ssh-key-gen -t [rsa/dsa] -f<br />
-- ssh-copy user@D or<br />
- transfer file id...pub on D<br />
- login on D<br />
- cat id...pub >> authorized_keys<br />
<br />
It should not ask anymore for password.<br />
<i>But if ssh still asks for the password then do:</i><br />
<i>- chmod 600 authorized_keys</i><br />
<i>- chmod 700 ~user/.ssh</i><br />
<i>- chmod g-w ~user </i>Unknownnoreply@blogger.com0