Posts Tagged ‘yesterday’

Run 2 and more Skypes simultaneously on Mac OS X – Run multiple Skype acccounts on same Mac

Saturday, June 21st, 2014

run-2-and-more-skypes-simultaneously-on-mac-os-x-multiple-skype-account-login-on-mac
For people running Mac OS X, the question of 
how is it possible to use 2 skype accounts in parallel on Mac probably makes good sense?

I don't own a Mac notebook and thefore I'm a Mac newbie, however, I'm into situation where I and my wife Svetlana went (for 3 days) to my hometown Dobrich and we have with us only her Mac OS X powered Mac Book air.

 

One user is already logged in Skype, (my wife) is expecting some relatives and friends to contact us and  same time I had to login to check few servers via ssh and discuss some server downtime issues from yesterday in Skype .
Thus we
need 2 skype instances to run separately on her Macbook air powered PC with Mac OS X Leopard
 

Earlier I've blogged how to make 2 and more Skype accounts work simultaneously on one Windows PC because I had to set it up for a company, in this short article I will explain how is possible to run many skype clients on Mac OS X.

 

1. Open Mac Terminal from Finder

finder-terminal-screenshot-mac-os-x-leopard-run-many-skypes-mac-os

2. In Terminal run the first Skype Instance

Type in Terminal:

open /Applications/Skype.app/Contents/MacOS/Skype

3. Run Second Skype instance

In older Skype Mac OS versions, I read the

/secondary

Skype command option was there and could be used to run a second parallel skype instance on Mac, however in newer releases this option was removed and if you try to invoke it warning window pops up saying an instance is already running.

mac-os-x-you-have-another-copy-of-skype-running-screenshot

To get around the issue and run the second Skype, quickest way is to run another Skype client under privileged user through sudo command (this is unsecure – but anyways as Mac OS is proprietary and we don't have access to code and probably there are tons of spy and report software integrated into the OS, it doesn't really matter.)

mac-os-x-skype-run-screenshot-pic

To get around the issue and run the second Skype, quickest way is to run another Skype client under privileged user through sudo command (this is unsecure – but anyways as Mac OS is proprietary and we don't have access to code and probably there are tons of spy and report software integrated into the OS, it doesn't really matter.)

4. Script it into 2nd_skype.sh for later use

To run and use two parallel skypes regularly it might be useful to make shell script out of it and place it somewhere, 2nd_skype.sh script should be something like:


#!/bin/bash
open /Applications/Skype.app/Contents/MacOS/Skype
sudo /Applications/Skype.app/Contents/MacOS/Skype

Then make the script executable with:

chmod a+x 2nd_skype.sh

5. Run more than 2 Skypes (Run multiple Skypes on same Mac PC hack)

There is another "hack" method with deleting the Skype.pid (Process ID). Skype recognize where it is running by checking its Skype.pid on start up.

Deleting the pid after each next Skype client launch,  allow the user to run as many Skypes as you want on Mac OS X but it is not clear for how long it time it will work.

rm -f ~/Library/Application Support/Skype/Skype.pid

Then launch again Skype in background from Mac Terminal

open -nW '/Application/Skype.app' &

In case if you wonder why the open command is used, since above line could be run also directly and Skype will pop-up, by using open command you instruct the program to detach itself from Terminal from which it run, so later if Terminal is closed Skype app. will not terminate.

Another approach is to create, a many users lets say 5 users and use the Skype sudo run method each client with a separate user.

sudo user1 /Applications/Skype.app/Contents/MacOS/Skype
sudo user2 /Applications/Skype.app/Contents/MacOS/Skype
sudo user3 /Applications/Skype.app/Contents/MacOS/Skype
sudo user4 /Applications/Skype.app/Contents/MacOS/Skype

sudo user5 /Applications/Skype.app/Contents/MacOS/Skype

I enclose the script with the custom icon (Skype) ready to be launched and Voila, on script launch Skype multiple login prompts pops up.

For the lazy ones who don't want to tamper with writting scripts or doing hacks to run Skype multiple times on Mac there is even a Multi Skype Launcher app for Mac.

 


 

Linux: List last 10 (newest) and 10 oldest modified files in a directory with ls

Tuesday, April 8th, 2014

An useful thing on GNU / Linux sometimes is to list last or oldest modified files in directory.

Lets say you want to list last 10 modified files with ls from today / yesterday. Here is how:
 

ls -1t | head -10
my.cnf
wordperss_enabled_plugins.txt
newcerts/
mysql-hipo_pcfreakbiz.dump
NewArchive-Jan-10-15.zip
hipo_pcfreakbiz-mysqldb-any-out-1389361234.tgz
Tisho_Snimki/
wordpress/
wp-cron.php?doing_wp_cron=1.1
wp-cron.php

 

To list 10 oldest modified files on Linux:

 

ls -1t | tail -10
    my.cnf
    pcfreak_sql-15_10_05_2012
    mysql-tuning-primer*
    tuning-primer.sh*
    system-administration-services.html
    blog_backup_15_07_2012.tar.gz
    www-files/
    dump.sql
    courier-imap*
    djbdns-1.05.tar.gz


Cheers 😉

How to run your Own / Personal Domain Web WHOIS service in a minute with SpeedyWHOIS

Thursday, April 5th, 2012

Running your own personal WHOIS service speedy whois in browser screenshot

I've been planning to run my own domain WHOIS service, for quite sime time and I always postpone or forgot to do it.
If you wonder, why would I need a (personal) web whois service, well it is way easier to use and remember for future use reference if you run it on your own URL, than wasting time in search for a whois service in google and then using some other's service to get just a simple DOMAIN WHOIS info.

So back to my post topic, I postpopned and postponed to run my own web whois, just until  yesterday, whether I have remembered about my idea to have my own whois up and running and proceeded wtih it.

To achieve my goal I checked if there is free software or (open source) software that easily does this.
I know I can write one for me from scratch, but since it would have cost me some at least a week of programming and testing and I didn't wanted to go this way.

To check if someone had already made an easy to install web whois service, I looked through in the "ultimate source for free software" sourceforge.net

Looking for the "whois web service" keywords, displayed few projects on top. But unfortunately many of the projects sources was not available anymore from http://sf.net and the project developers pages..
Thanksfully in a while, I found a project called SpeedyWhois, which PHP source was available for download.

With all prior said about project missing sources, Just in case if SpeedyWhois source  disappears in the future (like it probably) happened with, some of the other WHOIS web service projects, I've made SpeedyWhois  mirror for download here

 
Contrary to my idea that installing the web whois service might be a "pain in the ass", (like is the case  with so many free software php scripts and apps) – the installation went quite smoothly.
 
To install it I took the following 4 steps:
 
1. Download the source (zip archive) with wget 
 
# cd /var/www/whois-service;
/var/www/whois-service# wget -q https://www.pc-freak.net/files/speedywhois-0.1.4.zip
 
2. Unarchive it with unzip command 
 
 
/var/www/whois-service# unzip speedywhois-0.1.4.zip
3. Set the proper DNS records

My NS are using Godaddy, so I set my desired subdomain record from their domain name manager.
 

4. Edit Apache httpd.conf to create VirtualHost
 
This step is not mandatory, but I thought it is nice if I put the whois service under a subdomain, so add a VirtualHost to my httpd.conf
 
The Virtualhost Apache directives, I used are:
 
<VirtualHost *:80>
        ServerAdmin hipo_aT_www.pc-freak.net
        DocumentRoot /var/www/whois-service
        ServerName whois.www.pc-freak.net
        &lt;Directory /var/www/whois-service
        AllowOverride All
        Order Allow,Deny
        Allow from All
        </Directory>
</VirtualHost>
 
Onwards to take effect of new Webserver configs, I did Apache restart
 
# /usr/local/etc/rc.d/apache2 restart
 
Further on You can test whois a domain using my new installed SpeedyWHOISWeb WHOIS service  on http://whois.www.pc-freak.net
Whenever I have some free time, maybe I will work on the code, to try to add support for logging of previous whois requests and posting links pointing to the previous whois done via the web WHOIS service on the main whois page.
 
One thing that I disliked about how SpeedyWHOIS is written is, if there is no WHOIS information returned for a domain request (e.g.) a:
 
# whois domainname.com
 
returns an empty information, the script doesn't warn with a message there is no WHOIS data available for this domain or something.
 
 
This is not so important as this kind of behaviour of 'error' handling can easily be changed with minimum changes in the php code.
If you wonder, why do I need the web whois service, the answer is it is way easier to use.
I don't have more time to research a bit further on the alternative open source web whois services, so I would be glad to hear from anyone who tested other web whois service that is free comes under a FOSS license.
In the mean time, I'm sure people with a small internet websites like mine who are looking to run their OWN (personal) whois service SpeedyWHOIS does a great job.

Star Trek (2009) – The Future Begins short movie feedback

Tuesday, November 22nd, 2011

Star Trek - The Future Begins 2009 Front Cover and movie review

Yesterday I watched Star Trek (2009) , the movie was recommended to me by a friend as a worthy one to be seen even for people who are not fans of Sci-Fi
I’m a fan of sci-fi but lately I’m not that keen as in the short past. So I thought let’s see if this movie is worthy from the perspective of an ex-sci-fi maniac 😉
I should also say that I was a bit skeptical in the beginning as I’ve never been a big fan ot Star Trek , neither too much impressed by Star Wars

To sum it up the movie is a nice enjoyable one to take up 2 hours on watching good visual effects and human stories. There is an evil guy like with most sci-fi movies. Which prankly is a funny one 😉
The general movie plot is not much, neither its easy to grasp some of the moments of the movie, but this should be part of the cyberpunk part of it I guess.
Generally I enjoyed the movie and I would recommend it to my dear readers to have a look if they’re bored and they want to have 2 hrs of enjoyment 😉

How to fix php “Fatal error: Class ‘SimpleXMLElement’ not found” and “Fatal error: Class ‘JLoader’ not found” on FreeBSD

Tuesday, June 21st, 2011

One of the contact forms running on a FreeBSD server configured to work on top of Apache+MySQL suddenly stopped working.

The errors that appeared on the webpage during a page request to the form url was:

Fatal error: Class 'SimpleXMLElement' not found in /var/www/joomla/plugins/system/plugin_googlemap2_helper.php on line 2176 Fatal error: Class 'JLoader' not found in /var/www/joomla/plugins/libraries/loader.php on line 161

As you see in the output the website which was causing the issues was running a Joomla version 1.5.23 Stable configured with RSForm!ver 1.5.x (as a contact form solution) and Google Maps version 2.13b plugins.

The Google Map from Google Maps plugin and the RSform were configured to appear on one physical configured article in Joomla and seemed to work just until now. However yesterday suddenly the error messages:
Fatal error: Class ‘SimpleXMLElement’ not found
Fatal error: Class ‘JLoader’ not found

came out of nothing, it’s really strange as I don’t remember doing any changes to either Joomla or the PHP installation on this server.
There is one more guy who has access to the Joomla installation which I suspect might have changed something in the Joomla, but this scenario is not very likely.

Anyways as the problem was there I had to fix it up. Obviously as the error message Fatal error: Class ‘SimpleXMLElement’ not found reported the server php simplexml was missing!

Just to assure myself the php simplexml extension is not present on the server I used the classical method of setting up a php file with phpinfo(); in it to check all the installed php extensions on the server.

Finally to solve the issue I had to install the module from ports php5-simplexml , e.g.:

freebsd# cd /usr/ports/textproc/php5-simplexml
freebsd# make install clean

Afterwards to make the new settings take place I did restart of my Apache server:

freebsd# /usr/local/etc/rc.d/apache2 restart
Syntax OK
Stopping apache2.
Waiting for PIDS: 63883.
Performing sanity check on apache2 configuration:
Syntax OK
Starting apache2.

Now my Joomla contact form is back to normal 😉

If someone has any idea why this error occured without any php or server modifications, and how comes that all worked fine beforehand even though I did not have the simplexml module instlaled on the server o_O, I would be enormously greatful.

I blog again :)

Tuesday, April 28th, 2009

I haven’t blogged for quite some time. First I glorify the Almighty God our Blessed Holy Trinity for his abundant mercy towards me!! Glory be to the Father, The Son and The Holy Spirit! Now and forever and ever! Amen. I start with this loud words and I have so many things to say. But yes yesterday a joyful news came to me it seems my Exemption letter for Internship has been Approved! I prayed to God that he make them approve this exemption letter because I want to graduate asap and go back to Bulgaria. Here in the Netherlands I feel really terrible, the spiritual state of the country is simply softly said terrible, even though they seem to be an advanced country from the tangible aspect of the things from the intangible/spiritually poor. Not to say that I feel like the devil is controlling most of their lives already. The complete mix of negroes, chinese, indonesians and all other type of races makes the country mixed. Here in the air it feels like a spirits of gluttony are crawling around all the time, also quite often I feel like madness crossing around the air. Sometimes I have that strange thoughts in my mind that something is really wrong with that country. Maybe I had a nice point about that.This SHR project is getting schizophrenic, anyways glory be to God for his abundant mercy towards me and sustaining me always. Yesterday was a terrible day I felt so confused such a profound spiritual sorrow was rulling me that I can hardly bear it, I had a couple of terrible days this days. Since some time I am suspecting there is something wrong here, everytime I have classes with most of the teachers here I feel terrible afterwards and I usually need a couple of days to recover to some sane state. In their presence I experience profound spiritual sorrow and suffering, I’ve been in a similar spiritual states before and I know that this simply can be described in the biblical word hell. Since some time I suspect something is wrong with this guys (I mean the tachers), a couple of days Mr. Joop Vinke the guy who seems to be like a dean to us mentioned during some of the theater sports answered my question where have been yesterday “to the rotary club” and then he added like every other day before, it was not clear is he mean it or not. My suspects became even stronger, because I know that one of my employers used to be attending rotary club as well I know some really terrible things happened in his life and I think he quit that club, anyways. Last week on Friday I met one of my other teachers (Mr. Da Ponte) and I spoke with him, the conversation flowed as he mentioned something about the Lord making the sun circle around the earth, I was interested by his statement so asked him if he believes in God and if he is a roman catholic. He said he is not roman catholic and then what followed was a sort of preach about what he believes and his God as I continusly asked him questions. From his description I left with the impression that he is probably believing in the same God of the masonry (I’ve red about that just a couple of days before). So many things matched, the teacher even mentioned that a lot of teachers in that school are also believing in God and I was left with the impression that he meant the same God as he believes, so I make the connection that they are probably rotarians, masons or taking participation in some sort of organization like that which has to deal pretty much with the occult. A couple of days before I spoke with a brother in Christ (Stelian) and I explained him what is happening and about this BHC (business ethics classes), I explained him how much they want you to accept what they say and if you don’t you are not worthy, I also explained to Stelio the whole story and how this guys are able to make you feel really bad. Since this guys tried to teach us their methods and I tried a couple of times their methods and saw the effect how by doing “something” “unconsciously” you can alter the other into a state of broken spiritness and terrible suffering while at the same time you feel overflowed with joy, a sort of stealing his living power or Angels so to say. I don’t want to enter into details about that since its to me surely related with demonic manifestation. I’ve also remembered that one of the guest lecturers that Mr. Vinke has brought here mentioned that he is rotarian, the coincidences started becoming too much seriously. I also spoke with a student who has graduated and I asked him if he feels that bad thing inside of him, I was stunned when he confirmed. Also in that SHR project it really is schizophrenic I feel that spiritually something really wrong is happening there I started thinking and I could recognize many of the things done in classes of Mr. Vinke has to deal with the paranormal even though not openly showed, even his theater sports has a lot of unconscious spiritism involved, not to mention his Werewolf games including vampires, whitches etc. a lot of the theater sport games include games which include things with dying, you play dead etc., etc. I also have noticed that teachers often are pointing me and saying that I’m not changing, many of the students here are changing seriously for bad. I know by my saviour Jesus Christ who said “by their fruits you will know them”, seeing their fruit suffering, confusion, hate, lies etc. I started being more and more convinced that this guys are dealing with the devil. So if my theory is right and I think it probably is, most of the teachers are members of the rotary club. Maybe they even see it as harmless way to improve their business contacts but I know this is not the case, and this guys are giving oaths, having their strange believes spiritual leaders and do worship the devil even though not openly. I shared all that with a couple of my colleagues and many of them probably just thought that I’m out of my mind. But the holy spirit in me testified all that the things I am thinking are true. I’ve shared what is happening with a brother in Christ (a priest) in the orthodox Church Bulgaria and he said he is gonna mention my name on the altar before God on the Divine Liturgies. I guess this matters because today even though I am not completely okay I feel much relieved and better and I feel God! Glory be to the Immortal and Holy of Israel now and unto ages of ages. I try to learn the gospel a bit early in the morning and a bit late at night before I go to bed I also try to pray a bit each morning and evening and trust the Lord to keep me and protect me from the schemes of the evil one! Yesterday I was at Ina’s place and tried to explain her that this project we do now has something to deal with evil spiritism. I even have suspected that this guys from the rotary club ask their members to share information about certain people that the rotary members work with and then try to bring some curses and spells if they see somebody as a problem to their practices. I suspect that this guys somehow use their members as a channels to spread their evil spirituality. I’ve also taken the advice of Stelio to start caring an Icon in me whenever I go to school. Quite often here and especially in the dormitory I feel something is happening inside of me, my heart starts beating unsteady I also feel spirits flying around and trying sort of trying to conquer me this more or less has to deal with their broken spirituality here. Often I feel completely exhausted like somebody stealing my living power and willingness. Also I have noticed that here in their discoteques, they don’t allow you to enter with a hat? My assumption is that there are somethings placed in the discoteques which has to deal with inducing thoughts in you. On saturday I and Sali entered into a discoteque, I was not so willing so I’ve removed my hat I’ve borrowed temporary from Sali. After being in the discoteque on the day after and on Monday I had terrible headache and felt weak and pretty much like almost dying, Also I felt something on my forehead happening, just like I felt on a numerous times the Holy Spirit annointance and the Lord’s spiritual sign on my forehead, I’ve red in revelation that the Antichrist is going to put something on ppl’s forehead and and their right hands I’m more and more starting to think that this in some phase is already working, I’ve felt aches on my right hand on a numerous occasions, here often Its like I fight for my spiritual survivance. People around I see as they’re dead and just living to consume “limed tombs” as they are called in the gospel. I know that all I’ve written here might seem like too much of a conspiracy, however I’m pretty much sure that many of the things I suppose are true to a certain high degree or even completely.END—–

To Lumier with a bike the yesterday “action”

Monday, February 16th, 2009

Saturday was quite shaking. The morning start yearly around 8:30.Anton a friend of mine for whom I am working and for whom I am admining twoservers. Called yearly in the morning and informed me that winner.bg is not working for several hours. I logged on the server and tried to see what’s wrong.It seemed that the whole MySQL was quite messy. It even refuses to start.There were corrupted data the system seemed to be restarted twice.I won’t enter into much details here just put some moral mostly.I was desperate things looked like everything was lost. The old sqlbackups made by the automated script I use were completely useless causethey were dumped with characterset latin1 …. So everything which was in cp1251appeared like “?” questionmarks. I thought there was encoding problem and the problem might be solved with iconv, however unfortunately that was not the case.The dumps were completely useless. So as a prescription if you use cp1251 or koi8r or any cyrillic encoding and you’ve explicitly definition in /etc/my.cnfoutlining that be sure not to dump with –default-character-set=latin1 ! Never ever! do this. At a moment I felt completely forgotten by God doubt came along for a second, nevertheless I started praying even though only with hope and without faith enough I screamed “Lord Jesus Christ, Son of the Blessed God, have mercy on me the sinner!”. Eventually until 16:45 most of the problems were fixed. Praise the Lord! Hallelujah! I could see one more time clearly God fixing things for me. To be honest I was so messed at a poing before all came to its place that I was not knowing exactly what I am doing. I followed a couple of steps one of which was completely unsinstall the mysql server and exchange it with 5.0.75 from 5.0.65. I had to switch to innodb recovery mode level 4 and dump some of the databases and import them back. A lot of the databases I simply copied in binary format to the newly created sql server. The sql server started working again ! Blessed be God My helped and refugee! I did some shopping on Saturday 5:30 ’till 18:00. Then I tried to recover the databaess with the screwed cyrillic letters. I had to contact ganchev “shudder” a friend of mine who is pretty good in coding and worked at the same company I did for some years. He couldn’t help however he advised me to check the dumps with hexdump -C and see if the “?” questionmarks are questionmarks. In my case they were so the backups were completely useless. I was lucky that one of the database my friend Tony has backed up and the other one was for a website who was started just a few days before so data there could be recovered with a little effort and it’s not gonna be so fatal I guess. Later on during the evening I updated a couple of services like apache php eaccelerator and so on on the two freebsd servers I take care for. On the Sunday morning I had to fix a little thing a consequence from the nightly update. The php5-gd port didn’t upgraded with the portupgrade -ri cause according to portaudit it has a security flaw. However quite flashy and luckily I fixed the problem. The rest of the Sunday I spend in talks with Paco, then we went to Sali and went to Lumiere the coffee restaurant where Sali managed to arrange work for Papi. The idea of us going there was to negotiate if possible to increase Papi’s daily sallary cause today he receives only 20 EUR per day for 10 hours of work. We went to Lumiere with Bikes that Sali gave us. On our way Papi fall off his bike and hurt his leg badly … 🙁 We went there and drinked coffee, thanks God they didn’t charged me for the coffee because the restaurant owners (Aidyn and Tazira) said the coffee I don’t need to pay for. After that we went back home we had small argue with Papi for which I deeply regret. I should thanks God for granting me from his divine mercy and doing so much for me the sinner. Quite in a few minutes I’ll be praying a bit and going to bed. Let’s hope that the Lord will be blessing me and helping me in my work and studies in the coming week just like he did so far. Just to conclude my post. Glory be to you Almighty and all merciful Lord my stronghold and my refugee! Hallelujah!END—–

Not feeling well

Saturday, May 31st, 2008

Yesterday and today I feel like hell. I’m trying to pray a bit but still it doesn’t help much, seems like I’m in a big temptation again. To be honest I’m sick of temptations, they were too much for me during the time. Still I hope God would fix the things for me.END—–

Opera!

Saturday, May 10th, 2008

Yesterday I and Alex went to an Opera. We watched Opera by Giuseppe Verdi called “La Traviata”.It’s the second time I see this opera, the first time was when I was still a puppil.Pretty awesome opera the actors were really good. And this classic music! Awesome!After the Opera performance I phoned to Ivo a.k.a. (Order)we went to a sort of pub which wasextremely cheap considering the fact it was near the center and the food and drinks were really good.After all this we had a walk around in Varna and hitted the road back to Dobrich.Kimmo My finish colleague is leaving for Finland and was organizing farewell party.Unfortunately because of the Opera I was unable to go to the party. Yesterday was a really niceday considering that nice opera show. The bad news for me yesterday was that I didn’t passedthe written exam in German and I have to go to the re-sit at Tuesday. With the Lord’s helpI hope I would pass it 🙂 Also I’m going to start for the Accounting exam because It’s at Monday.END—–

End of Management Games / Lectures

Wednesday, April 16th, 2008

Today was the last day of the lectures with Joop Vinke. Here is how my day passed. I woke up at 9:00, washed my teeth dressed combed my hair and went to the police station to look for our quarter police officer. I need to renew my personal ID card because it has been expired already for 4 years already. Thanks God everything went smoothly in the police station. After that I went to school we had lectures with Joop Vinke. After the school I went home and played around with my FreeBSD system. I succesfully upgraded gnome 2.20 to 2.22.

Using the binary packages from

http://www.marcuscom.com/tb/packages/7-STABLE-FreeBSD/gnome/. I’m trying to upgrade gnome from source for already almost 3 weeks with portmanager. After all of the required ports rebuilded still gnome wasn’t functioning, so in order to make it working I downloaded packages from http://www.marcuscom.com/tb/packages/7-STABLE-FreeBSD/gnome/ and ran a little loop with

for i in *; do pkg_add -vf $i; done

 

to make all the .tbz files install I did that yesterday night today at the afternoon everything was installed and gnome ran just fine I only had to link few libraries because they were searched on a different places. All works just fine now I only have to rebuild few of my games because they’re now linked to an old libraries. In the evening we went out with Javor for a coffee. As very often we went to the fountain we had a nice talk and then we went to his apartment to watch a film. He recommended a film called 1984 and we watched that. My impression is that this film is totally psychodelic and freaky, but still interesting to see. After I went home I went to see my grandma and now I’m home tired on a few steps of my bed 🙂 I should also mention that today I upgraded clamav on 3 of the servers I maintain. It seems there are few configuration options which changed in the new clamav release (0.93). It was an easy day as a whole if we don’t count my physical infirmity.

END—–