conta ro fa-ti PFA… ba nu, mai bine nu. Sau poate totusi da?

January 12th, 2016

nici eu nu stiu ce sa aleg….

Related posts

How to remove password from committed svn revision

June 6th, 2015

Or pretty much make any changes to a committed revision.

You start by checking out the revision and doing an md5sum and a sha1sum on the desired file(s). You will need these hashes.
Next is to make your desired changes to the file(s) and then run another md5sum and sha1sum on them. You will need these hashes too.
Note also the file sizes in bytes if you make changes: before and after.

NOTE: It is best to use the same size in replaced values, because I haven’t found a good way to update the size. Yet…

Next, you dump the repo.
#svnadmin dump /path/to/repo > dump_file

Now you alter it. First the values:
#sed "s/password/XXXXXXXX/g" dump_file > dump_file_tmp
NOTE: see how the number of chars in the password matches the number of X’es? This is important as it keeps the file size intact.

next the hashes
#sed -e "s/orig_md5/altered_md5/" -e "s/orig_sha1/altered_sha1/" dump_file_tmp > dump_file_ok
NOTE: for both md5 and sha1.

Be careful, if you have more values, use the -e parameter to sed and pass each value as a separate expression, OR, use other file names, because if you keep changing the same dump file you will end up having only changed the last value.
Same with hashes.

Now you backup the old repo
#mv /path/to/repo /path/to/repo_backup

Create it clean
#svnadmin create /path/to/repo

And load the altered dump file
#svnadmin load dump_file_ok

Now you can verify the affected revisions to confirm the changes. All should be good, if not, you have the backup, and try again, paying much attention to every detail I wrote above.

Depending on your set, you may need to
#chown -R svn_user:svn_group /path/to/repo

and also re-checkout your working copy.

Related posts

Found 1st site that shares/sells your email address

May 13th, 2015

I’ve been using unique email addresses to sign-up to sites for some months now. As a result, one of them managed to share/sell my email address to a 3rd party. I don’t really care if they sold it or not, or if they have some statement in their policies or what not stating that you agree with them sharing or whatever. It’s WRONG.

I’ve made a new account on the publi24 dot ro site, which is a romanian ads/listings site and which shared/sold my email address to romimo dot ro who email me via bounce dot tele dot net
Yes, they appear to be under the same company, but it is still WRONG.

That’s what they call “legal spamming”. I which they both go out of business.

Related posts

VMWare ESXi force MAC Address re-generation

April 2nd, 2015

This is on 5.1u2

I don’t know how this happened as I am doing these steps every time, yet today the newly created VM with added templated disk is getting the same MAC address every time.

I tried the solutions with deleting those 5 entries form the fwx file, to no avail.

The next logical thing to do is to move the VM to another folder. I simply renamed the VM container folder. And that solved my problem.

BUT, renaming the folder back, surprise, gets the old MAC address and UUIDs back! I don’t know why and I don’t have time to figure it out, so I just leave it in new folder and choose “I copied it” when powering on the VM.

Related posts

[Solved] Adobe Reader 11 on Windows XP SP3 does not start

October 21st, 2014

So I had to setup a brand new WinXP SP3 and amongst other things, I installed Adobe Reader 11. But it wouldn’t start. It plain simply didn’t work.
I already had .NET framework 4 installed so that puzzled me. Googling showed up a bunch of irrelevant posts.
Then finally I figured… lets RTFM. (that’s normally the last thing you do when you’re an IT person).
And obviously, it’s there. Minimum requirements: IE 7. WinXP SP3 comes with IE6 by default.

So, download IE 8 (use a 3rd party site since WinXP is no longer supported by MS and as such they no longer offer IE7 nor 8 to download) and problem solved.


Related posts

ESXi: vmware workstation 10 bridged network not working

August 23rd, 2014

So You installed a virtual machine solution (of any kind, in this case VMWare WorkStation) inside a gues running on a VMWare ESX or ESXi, and using bridge netw9orking is not working for you inside the guest from the virtual host.

If you tried all the solutions on the net pertaining to host issues (firewall, vpn software, etc) there is one issue pertaining to the ESX/ESXi host itself:
– by default, the virtual NIC has promiscuous mode disabled.
Which means that traffic coming from a VM which is not of its IP will be discarded.

So, solution is to go in vsphere client, to the esxi configuration page, Networking, click on “Properties” on your desired switch, click Edit in the ports tab, then go to Security tab and set promiscuous mode to “accept”.


Related posts

Delphi: Unit X was compiled with a different version of Y

May 29th, 2014

The dreaded message everybody gets every now and then.

The classic solution is:
– find all related pas and dcu files on your HDD and make sure there is only 1 copy of each.

However, sometimes this is not sufficient and that is because there is also a DCP and/or a BPL that was built with that unit somewhere on the IDE searchPath found before the one you are building. So you delete all pas/dcu, build the package and still get the error. This happens when you build a package which depends on the package in which the unit resides. And that is because when building packages, delphi will look at the DCP, not the DCUs (when the DCP is linked of course).
So basically the same problem as with the DCU.

In conclusion, the actual complete solution is to
– search and remove all affected DCUs
– make sure there is only 1 version of the PAS
– search and remove all affected BPLs and DCPs

Sometimes, you will need to close the IDE, and then when you start it again you may receive the other dreaded message: “Cannot load package”.

Now, it’s time to search for that package in the registry, specifically in the
– “Disabled Packages” key
– “Known Packages” key
– “Package Cache” key
Best is to remove it from everywhere. Then you re-install it once you manage to compile everything.

Related posts

Permanent Disposable Email Addresses to counter spam ( alternatives)

May 3rd, 2014

As I’ve been writing about this topic not long ago here, I’m using for some time now the services of
Problem is, lately it has become unreliable. Emails that I’ve been told have been sent, never arrived, others arrived with 1 or 2 days delays.
So it’s unusable now.

I spent quite some time yesterday and today to find an alternative. That is a free service, that provides permanent disposable email addresses in he form of forwarding. I couldn’t find any. Not a single one.

And since I don’t want to pay, nor do I want to use the providers interface to access my mail, I re-considered google and yahoo as possible solutions.
Now the main reason against these free and pretty reliable services is that people complain your actual account name is known (anybody can remove the “+garbe” or the “dots” and know what your real account is.

But this is the catch. You are creating another email address, specially for disposable use. You don’t use your main account (EVER) and all email that goes to that account,m via filter, can be sent directly to trash as that is pretty sure spam. After all, you didn’t give out that address to anyone.

So,. since I’m still pissed at yahoo plus their filtering sucks (as in the amount of filter you can set up), however I’m not sure if there are limitations to the disposable addresses that you can create, someone can look into it and let me know, I will talk about the gmail solution.

Now, gmail allows a maximum of 30 characters in the user name. That includes dots when you register. So you register with an account of 30 character, letters and digits.
I used keepass random password generator to generate one for myself.

Then I tested the dots. I added dot between each and every letter/digit and sent an email to that address resulting in an address with 30 characters and 29 dots, form several different email providers. It worked like a charm.

So this gives you a total of (God I hope my math is right :) please correct me if it’s not):
– 0 dot addresses: 1
– 1 dot addresses: 29 = 29! / 1! * (29-1)!
– 2 dot addresses: 29! / 2! * (29-2)! (combinations of 29 taken by 2)
– 3 dot addresses: 29! / 3! * (29-3)!
– 28 dot addresses: 29! / 28! * (29-28)!
– 29 dot addresses: 1

Adding those up resulting in what is described here:

so eventually we end up with a combination of 2^29-1 = 536.870.911 aliases = disposable email addresses.

I think that covers my needs pretty well.

For your more regular 8-10 character addresses, you can have about to 255-1023 dotted aliases. That should normally be sufficient. So there is no real need to go the length of a 30 character address for this purpose.

Next step is to create a catch-all filter on the base (non-dot) alias, and have those emails dealt with some how. I’ll just apply a label for now and move them out of my inbox. If and when I’ll have time and desire to deal with them, I will have them handy.
Once the system is proven to work fine, I will change this filter to “delete”.

The reason for not moving it to spam is that you may get valid email sent to spam by mistake. No spam filter is perfect.

Next step is to have some more easy way of managing these disposable aliases, not using a spreadsheet…

So I’m thinking about a GreaseMonkey script by itself or with a web-service (somewhere to store the information), a dedicated application (written in Delphi and maybe for windows and android/ios (I don’t have anything to test these though)).

My preferred way would probably be a GreaseMonkey script as then I can use the GMail API directly and without hassles. I’ll have to do some research on this.

But for now, the traditional spreadsheet it is :)

Later note: One more thing to keep in mind when settings things up:
– you need to add another email address for each dot-alias if you plan on replying to emails received by that alias. You do that by going to settings-accounts and import and “Add another email address you own”.
– make sure to uncheck the “Treat as an alias”
– make sure to select “Reply from the same address the message was sent to” the first time you set up such an alias, otherwise your main, non-dotted account will be used in replies and we really don’t want that

Related posts

SVN: import subfolder as new repository root

April 6th, 2014

I’ve done a little research and found the partial solution here:

Problem was that using it would error as it tries to create the subfolder.
So I dug some more and then found:

Problem here was that I still had the root of the sub-folder creation attempt raising
svnadmin: File not found: transaction ‘0-1’, path

A little digging turned up:

Which doesn’t solve anything but lit my Eureka bulb: there is no sense in creating an empty root folder. It already exists. So What I did was to delete it’s creation from the fixed dump file which was looking like this notice empty Node-path and action “add”):

Node-action: add
Node-kind: dir
Prop-content-length: 10
Content-length: 10


Not to be confused with other empty Node-path which actually set properties!!!

Now remains only 1 problem: I also want the user to be changed. This is a problem because in the dump, the username is preceded by a line starting with V followed by a number. This number is the length of the username.

There are some interesting solutions here:

However, I am trying to keep my server yum-compatible, and svndumptool is in no public yum repo, to my searching today.
My solution involves a multiline SED. Relevant articles are

As I have multiple subfolders to be split up into new repositories, I’ve created a script to do the job, including setting up an apache vhost for each.

The relevant part of the script looks like this:

svndumpfilter include $grp/$usr --drop-empty-revs --renumber-revs  < $repo_dump > $repo_dump.$usr
sed -e "s/Node-path: $grp\/$usr/Node-path: /" < $repo_dump.$usr >$repo_dump.$usr.fixed1
sed -e "s/Node-copyfrom-path: $grp\/$usr/Node-copyfrom-path: /" < $repo_dump.$usr.fixed1 >$repo_dump.$usr.fixed2
sed -e "/Node-path: /{ N; N; N; N; N; N; s/Node-path: \nNode-action: add\nNode-kind: dir\nProp-content-length: 10\nContent-length: 10\n\nPROPS-END//}" < $repo_dump.$usr.fixed2 >$repo_dump.$usr.fixed3
sed -e "/svn:author/{ N; N; s/svn:author\n.*\n$svn_usr_from/svn:author\nV $svn_usr_len\n$svn_usr_to/}" < $repo_dump.$usr.fixed3 >$repo_dump.$usr.fixed4
svnadmin load $repo_dir/$cust_group/$cust_customer --ignore-uuid < $repo_dump.$usr.fixed4

Related posts

VMWare ESXi – VM is gray when adding new hardware

March 26th, 2014

VMWare ESXi 5.0 U1

It happened to me that I created a new VM, then copied over a template VMDK but forgot to add it. When I started the VM it complained of no OS, so I edited the config and added the HDD.
Right after this operation, the VM became gray and was no longer manageable.
I removed it from inventory, then added it back again and now it was showing properly as powered on.
I powered it off, then on again.

Now, the VM kept showing a text cursor “dancing” on the screen like crazy.
I powered it off, removed the HDD, then added it back and powered it on.

Now, it’s usable.

Related posts