Alex (SirShurf) Frenkel's Blog

A web log of a PHP professional

Archive for the ‘Uncategorized’ Category

jQuery.unique() but for normal Arrays….

leave a comment »

It is stated in the manual that jQuery.unique() will only work for DOM objects. My problem was (well, first was to ready the manual correctly) that I needed to merge uniquely simple string arrays.

After banging my head for a long time I have finally found how to do it, and here is my solution

Array.prototype.unique = function()
{
var arrData = this;
var arrUnique= [];
for (var i = arrData .length; i--; )
{
var strData= arrData [i];
if ($.inArray(strData, arrUnique) === -1)
{
arrUnique.unshift(val);
}
}
return arrUnique;
}

Written by Alex (Shurf) Frenkel

January 17, 2011 at 4:20 pm

Posted in Uncategorized

Does anybody know ActiveReport for PHP?

leave a comment »

One of my clients need something like ActiveReport (.net) with PHP.

Does anybody know anything I can use?

Written by Alex (Shurf) Frenkel

June 28, 2010 at 11:37 am

Posted in Uncategorized

Tagged with , ,

Yood in Rodeo Today!

leave a comment »

Rodeo Pub Lazer Lloyd Blues Band:needs no introduction group will perform the great blues-rock.
If you love Rock ‘n Roll and/or Blues – this is the show!!!

http://www.facebook.com/event.php?eid=116224591752905&ref=mf

http://www.myspace.com/yoodrock

Lazer Lloyd – Lead Guitar/Vocals,
Moshe Yankovsky – Drums/Vocals,
Ilan Hillel – Bass/Vocals

Written by Alex (Shurf) Frenkel

May 27, 2010 at 6:38 pm

Posted in Uncategorized

Tagged with ,

Skittles giving a free sample bug http://www.tryfreecandysample.com?i=138969

with 2 comments

Well, looks like Skittles giving a free sample bug.

All you need to do is add 20 friends for them to spam 🙂

http://www.tryfreecandysample.com?i=138969

Written by Alex (Shurf) Frenkel

May 19, 2010 at 10:26 am

Posted in Uncategorized

Tagged with ,

Get Microsoft Sql table list form PHP

leave a comment »

One of the things I lost time today was how to get the list of table from Ms SQL server from PHP on Unix (Ubuntu).

I will write another post how to connect to it later, but currently what I have found is that MsSQL does not have “SHOW TABLES” command like MySQL do.

In order to get the list of table we need to send:
select name from sysobjects where xtype = ‘U’

This way we would get all of the user tables in our database.

Written by Alex (Shurf) Frenkel

May 12, 2010 at 2:20 pm

Posted in Uncategorized

Tagged with , , , , ,

Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111

leave a comment »

For the past couple of days, for some reason I was unable to connect to the MySQL database on the system I worked, it was not a problem till now, since all I needed was a data grid, but now I had to use workbench.

The error I was getting was: Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111

Well, it took me a couple of hours to gast that but I have finally found the reasone.

Early this week we have changed the bind address of the MySQL server in the my.inf file to be the external address of the system.

What i had to do was to match the address of the bind from localhost to the external one, so the correct command was:

ssh -v -f -N -L 3307:192.168.0.1:3306 user@host.server.com

Written by Alex (Shurf) Frenkel

May 5, 2010 at 9:46 pm

Posted in Uncategorized

Tagged with , ,

Apple tree water color paint

leave a comment »

another thing I am going to post is our Art creations.

Here is the first one: Apple tree watercolor pencel painting.

Apple tree watercolor painting

Apple tree watercolor painting

Original art, water colors by Svetlana Margulis, from Israel.

THIS IS AN ORIGINAL PAINTING NOT A PRINT

Medium: Artists quality watercolor

This item can be purshased at out etsy shop: Svetlana’s Art Gallery

Written by Alex (Shurf) Frenkel

April 18, 2010 at 10:15 am

First Post

with one comment

Well, after reading many posts, I have desided to start my own blog to.

I have many reason for that, but the most importent for me currently is that I am tiered of searching for the same information again and again.

In this blog I would group all of the information I have found that I belive is needed for me to continue development of application.

Written by Alex (Shurf) Frenkel

April 17, 2010 at 2:27 pm

Posted in Uncategorized

Tagged with , , ,