INCLUDE_DATA

Volodymyr Osypov blog

January 30, 2009

Unix for kids

Filed under: Soft and Programming, Uncategorized — Tags: , , , , , — admin @ 1:26 am

How to teach kids Unix?

Using pictures:

cat-head-tail.jpg

cat file - outputs the file (whole cat)
head file - outputs few first lines of file (head of cat)
tail file - outputs few last lines of file (tail of cat)

January 28, 2009

Joomla 1.5 Livejournal post plugin

Filed under: PHP, Soft and Programming — Tags: , , — admin @ 4:52 am

Last summer I had a freelance order to create Joomla 1.0 mambot, but I have all the rights for it and can sell other customers. So I published its description in my portfolio. Las week I received an email from a man who wanted to get this mambot. He bought it, but Vincent had Joomla 1.5, and my mambot didn’t work for him. That’s why I decided to reprogram it and make a Joomla 1.5 plugin.

Aftrt few hours of work Joomla 1.5 plugin was ready. If you want to buy it, feel free to contact me.

January 22, 2009

unix/linux - string replace

Filed under: Soft and Programming, Unix — Tags: , , , , — admin @ 5:48 am

To replace string in a single file you can use sed command:

sed '/s/old/new/g' file.txt > file2.txt
and then mv file2.txt file.txt

your shell also may have -i option, which allows to make changes inside the file:

sed -i '/s/старое/новое/g' file.txt

To perform replace in many files (all files of current directory) we have to write a little shell script. Let’s name it strreplace.sh


for FILE in $@; do
sed -i ’s/old/new/g’ $FILE
done

Now run strreplace.sh with parameter - list of files
For all files of current directory this will be: strreplace.sh *

December 26, 2008

Domains for sale

Filed under: News — Tags: , — admin @ 9:51 pm

Since I don’t actually use 4 my domains, I decided to sell them (some of them even have PR):

vsezvezdy.ru
pr 3

icqweb.org
pr 2
also give you all content

metalblog.org
pr 3
also give you all content

thegamerconnection.com

send your proposed price to scorpionium@gmail.com

December 25, 2008

Facebook hack - fb:prompt-permission onclick

Filed under: Facebook, JavaScript, Soft and Programming — Tags: , , , , , — admin @ 5:29 am

facebook As many of you know I work in i2we inc. and we create Facebook applications. Facebook has its own tags called FBML and own JavaScript library FBJS (all you JS-code is transferred into it, so there are some restrictions). There are also "extended permissions" - user can allow application to perform this or that action (change status, send emails and sms). User can be prompted for permission with <fb:prompt-permission> FBML tag, its required parameter is - perms, which has "extended permission" name in it, for example, "email" or "sms". It also may have optional "next_fbjs" parameter - FBJS function to run after user grants the extended permission. This prompt dialogue is called with <fb:prompt-permission> tag, text inside the tag becomes the link, when you click on it, dialog-box with 2 buttons: "Approve" and "Cancel" pops up.

We had a task to consider user completed the action even if he clicked Cancel on this dialog box, but we can't handle this situation as with next_fbjs. We decided to make an AJAX request when user clicks on dialog link, but this FBML tag doesn't have onclick. The solving was next - to put inside fb:prompt-permission <div> tag, and add to div-у onclick with the JavaScript function we need.

Here is the test example:

HTML:
  1. <input type="text" name="test" id="test" />
  2. </form>
  3.  
  4. <fb:prompt-permission perms="email"><div onclick="testjs();">Gimme permission</div></fb:prompt-permission>
  5.  
  6. <script type="text/javascript">
  7. function testjs() {
  8.      document.getElementById('test').setValue('Yes!');
  9.      //AJAX here
  10.      return false;
  11. }
  12. </script>

September 14, 2008

Googleplex - Google’s HQ

Filed under: News, Trip and travel — Tags: , , — admin @ 7:08 am

First, I thought that I will write all my American (Yes, I moved to USA, California) events chronologically, but decided to change this decision. Because it will take a lot of time, and I will forget details of current events. That's why I post the pictures of today's visit to Google's Headquarters - Googleplex.

The days started from our trip to Mountain View, where Portnov computer school is situated. First half of the lecture I was in the auditorium, and after went to Googleplex. The way to Googleplex took 45 minutes. It's Saturday, so it was a desert place, only few employees were playing volleyball.

(more...)

June 17, 2008

Firefox 3 Download Day!!!

Filed under: Uncategorized — Tags: , , , — admin @ 11:00 pm

Hooray!
My fave browser new version is finally out!

http://www.spreadfirefox.com/en-US/worldrecord

Download Day is here!
Set a Guinness World Record
Enjoy a Better Web

Sounds like a good deal, right? All you have to do to help us set the record for the most software downloaded in 24 hours is get Firefox 3 now – it’s that easy. We're not asking you to swallow a sword or to balance 30 spoons on your face, although that would be kind of awesome.

Please download Firefox 3 by 17:00 UTC on June 18, 2008. That's 10:00 a.m. in Mountain View, 1:00 p.m. in Toronto, 2:00 p.m. in Rio de Janeiro, 7:00 p.m. in Paris, Madrid, Berlin, Rome and Warsaw, 9:00 p.m. in Moscow, and June 19, 2008 at 1:00 a.m. in Beijing and 2:00 a.m. in Tokyo.

June 3, 2008

SVN - quick start tutorial

Filed under: Soft and Programming — Tags: , , , — admin @ 12:02 pm

Recently I've decided finally to learn to work with version control systems and selected SVN (Subversion). It was actually installed already on my Linux Fedora, but you can easily install it to your Fedora system using yum install subversion or just find RPM or DEB of subversion package.

Now I want to share with youthis little quick start guide and won't tell you what SVN is and it's whole description.
I have a PHP project in /var/www/html/docs/haibuy. And Apache has Virtualhost haibuy. My IP in LAN is 192.168.1.7.
(more...)

May 27, 2008

Bukovynian “business”

Filed under: Uncategorized — Tags: , , — admin @ 2:58 pm

Business in my header is in upper comas, because the way that some firms treat with web-developers is at least not ethic. I don't want to offend such beautiful place as Bukovyna, I think this can be anywhere, but two cases, which I was involved in were connected with the co-working with such firms, which were based in Chernivtsi.
In both cases client (according to himself) had lack of money, they were praying to make websites for them for not a big price, but requirements and permanent specifications were of the level of company, which pays well.

One ofthe two websites I made long ago, using only HTML, I updated it few times and it was my copyright text with e-mail address in the bottom of the page.
That's it: www.legenda.com.ua
As you see now, my copyright is deleted, now there is:
Webmaster: Hodan B.I. , Site support
But this "webmaster" is lazy or non-competent, cuz when we look at the source we see in <head>...</head> :
<meta name="author" content="Osipov Vladimir">

Second website was developed by the "Olvia" webstudio, where I used to work.
It is located here www.migovo.com.ua.
When we created it there was link to Olvia's website, but now we see "B y M a x w e l l V a z o v s k y" in the footer. Who is this one? - hell knows. Maximum work he did was changing some texts - and I doubt it gives him rights to tell that this website was created by him. And he was also lazy or just didn't know, that in <head>...</head> is
<meta name="author" content="Olvia Group">
and no Maxwells mentioned there.

I've mentioned this when recently one friend of mine asked me to have a look at these websites and prepare the commercial proposal for SEO service. When I looked at "old" well known for me pages I was embarassed by impudence and disagreed to co-work with them again. Of course it can be that the bosses don't know about this, perhaps they just asked these "Maxwells" to change something on websites, and these "Maxwells" decided that now they have rights to call themselves "The Creators". Well if they do this to someone, then someone will do this to them... sooner or later...

May 23, 2008

HTML DOM, JavaScript to add/remove table rows (part 2)

Filed under: JavaScript — Tags: , — admin @ 3:01 pm

I've promised you to improve table row delete function, that's what we will do today. So now we know the differences of DOM tree in different browsers. We saw that Firefox and Safari create additional text node "\n" so there are two ways to fix our delete row function: 1st - to delete these nodes, 2nd - just to pass them through.
(more...)

Newer Posts »

Powered by WordPress