Volodymyr Osypov blog

May 15, 2008

Code plugin and Nomore stupid machines

Filed under: News — Tags: , , , , , , , , — admin @ 10:22 am

I really hate when a computer pretends to be smarter than me, that's why I turned off visual editor in Wordpress and now I can control everything and that's great. I don't have to battle anymore with changes editor made to my code! In this way I'm like Will Smith character in 'I, Robot' movie, believe every developer is on the same part.

Other thing is that I've installed nice plugin for code and now my code will be nice-looking like:
PHP

PHP:
  1. <?
  2. $str="Hello World";
  3. echo $str;
  4. ?>

HTML

HTML:
  1. Hello World!
  2. </td>
  3. </tr>
  4. </table>

JavaScript

JAVASCRIPT:
  1. <script type="text/javascript">
  2. function sayit(str) {
  3. alert(str);
  4. }
  5.  
  6. var mystr='Hello world!';
  7. sayit(mystr);
  8. </script>

Also, Today I've got the free Ubuntu CD :)
Btw, my Google interview is rescheduled to Friday.

May 14, 2008

Yahoo! interview (part 3) questions

Filed under: News — Tags: , — admin @ 9:30 am

Yesterday I had 3rd interview for Yahoo. Questions were just more general, than previous ones.

Julien asked me to tell about my Work expirience and studying at the university.

The technical questions were (sorry for my English ;) ):

- What happens in integer memory presentation when we multiples it with 2,4,8.

It is shifted 1,2,3 bytes left.

- What is the difference between variables by value and by reference (again this question :) ).

- In what cases we provide a function with parameters by value and when do we use parameters by reference?

When we need that the value of function to be changed after function run then we give it to the function by reference, otherwise by value.

- How will be the size of structure in C with fields of char and long type?

- How to multiply and integer with 7 without using * and + operations?

in PHP: $b=($a << 3) -$a;

- What means "var" keyword in JavaScirpt?

to declare variables.

- Can we determine variables without using "var"?

Yes, we can.

After that I asked what Operation System do Yahoo! Engineers use. Julien answered that theyuse Linux, but also test on Windows, IE. I have also asked him what does he think about IE. He answered, that it has a lot of issues which are bad, but he has tested IE8 and it is much more better.

May 13, 2008

How to call from USA to Ukraine

Filed under: Uncategorized — Tags: , , — admin @ 8:18 am

Yesterday I had scheduled interview for Google, but at the time they had to call they didn't. The reason was they couldn't reach me. Strange, I found this information in google.com in 15 seconds or so:

  • 011 - US exit code; must be dialed first for all international calls made from the USA or Canada
  • 380 - country code for Ukraine
  • area code - 2 digit area codes
  • phone number - 7 digits
  • US to Ukraine international dialing format: 011 + 380 + ?? + ??? ????

Paradox - people from Google couldn't find how to call to Ukraine :)

OK, we rescheduled for today. Also third Yahoo! interview will be todays or next few days.

May 12, 2008

CSS gradient idea :)

Filed under: CSS, Ideas — Tags: , , — admin @ 9:46 am

It would be cool to have gradient fill in CSS. You determine 2 colors and the break point of colors changing in %.

Like { background: grad(#000,#fff,50%); }

May 10, 2008

Linkedin mod for SMF approved!

Filed under: SMF — Tags: , , — admin @ 9:09 am

My SMF linkedin.com profile mod, which development process you can read in thiss blog, is approved already! All my bugs were fixed, textes are now adding to the language files, valid XHTML ("alt" for "img" tag) and you can aways get it here:

http://custom.simplemachines.org/mods/index.php?mod=1172

It will work on 1.1.4 and 1.1.5 (haven't tried on others)

May 9, 2008

Map coordinates using JavaScript

Filed under: JavaScript — Tags: , , — admin @ 10:41 am

Nowadays we have Google Maps with API, that helps us to creat great web applications with maps, but what if our city isn't well detailed in Google Maps? Then we need to create something ours. Or we have a picture and need to determine the coordinates of mouse click.

I want to show you just simple example with the map. When user clicks on it - a little flag displays in this point. We need map.gif (picture with map) and pointer.gif (little picture with flag).

(more...)

May 8, 2008

Custom labels for Google or whatever

Filed under: Ideas — Tags: , , — admin @ 10:46 am

Just one interesting idea :)

It would be cool if users could change the texts of links in their accounts for example in Google Mail or whereever.

It will be really fun and I think many will like it. You can change the labels of menu items to everything you wish (Incoming->rcvdMail, Pictures->Pix, Friends->Dudes, My Profile->Ma Face, Yes->YEP!, No->NAH!) and then you can save all changes in special format (XML file) and you can share it with your friends.

May 6, 2008

Yahoo! interview (part 2) questions

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

Like 2 hours ago my second Yahoo! interview finished. Actually the Engineer I talked to called yesterday, but we resheduled it to today.

The questions were both about serverside (PHP) and client side programming. I will just briefly write about main questions.

- What is the difference between implode() and explode();

- What is the difference between include() and require() ? (this seems to be the fave one from Yahoo! as it was asked last time:) )

- What caching do you know/use (like Zend Optimizer) ?

- How do you debug your PHP scripts.

- Do you know anything about Simpleton? (I didn't, so I asked and got a nice answer, and really I saw an example of the code in one PHP 5 book, but they didn't write it was a singleton method)

- How to improve performance of the webpage (HTMl, CSS) ? (my answer was to use more divs instead of tables, with tables use <col>, <colgroup> with "fixed", all styles and JavaScripts ot put in files and mention them in <head> section.)

- What is the difference between static and dynamic bind? (maybe I know this but if you can ask me in Russian, but in English the only BIND I know well is DNS for *nix :) )

He also asked me about my Master's Degree work (Apache log-files analyzer). And I described how does it work.

After that I have asked some questions about Yahoo! Search development, like do they use some exclusive frameworks, libraries or use common ones (they do both, and there are developers who create the frameworks like what you want it to be); is Santa Clara office totally for Yahoo! Search or are there also other departments (Santa Clara is the home only for Yahoo! Search). I have also told about how my current job boring is, because it's always the same like: cutting, HTML-coding, Joomla installing and tuning and no researches, explorings. Also I've told that I'm interested in this position because SEO is my interest and I always use Yahoo! to see the external links and search engines is the really interesting area for me.

Now I'm waiting for email from this great man from Yahoo! and for the next interview :) PPl in Yahoo! are really fast, I'm still waiting for the sheduling the first Google interview. But to be honest position in Yahoo! is more interesting for me.

May 3, 2008

Yahoo! interview (part 1) questions

Filed under: News — Tags: , — admin @ 7:46 am

Few days ago I had first Yahoo! interview, because I'm interesting in PHP Developer position at Yahoo! Search. Though Yahoo! engineer was an hour late, because of some misunderstood in time difference, we had a nice brief conversation that night.

First questions were about PHP:

- What is the difference between include_once() and include() ?

- What is the difference between include() and recuire() ?

- What is the difference between if ... else ... and switch ... ?

- What some of options of the PHP.INI file are?

- What is the difference between a reference and a regular variable?

and also some Questions about CSS:

- What is the difference between "position: absolute" and "position: relative"?

- What is the difference between "display: block" and "display: inline"?

I think I have passed these questions well and soon will have a new interview. :)

PS: Also will have soon first interview for Google. :)

« Older Posts

Powered by WordPress