-
Which private PHP proxy?
I'm looking for a private PHP proxy to put it on my hosting. I see there is lots of them so I'm wondering if I could get a recommendation on which ones are the best? Or something like "this one is better then the rest because of: ..."? Thank you!
-
Wordpress - Galleria plugin?
i'm not sure if that was sarcasm or what? I never uploaded pictures directly through post/page (didn't even know I could do that because I didn't need it) but rather through 'media' part, so I didn't know what this "Simply upload photos as normal" was reffering to that... Now that I know - it's quite easy. Details I guess =)
-
Wordpress - Galleria plugin?
yeah, just figured it out a few minutes ago.. what needed to be done is upload images from inside post/page and [gallery] shortcode would show them all
-
Wordpress - Galleria plugin?
http://wordpress.org/extend/plugins/photo-galleria/screenshots/ has anyone used it? I don't understand where I'm supposed to put the images? this is what readme.txt says: but it just doesn't say where I should put the images. anyone with an idea? thank you!
-
Different color interpretation image/css
nope... but now I did and it fixed the problem. thank you
-
Different color interpretation image/css
nope, the header is jpg and the rest is pure css (no image fillers)
-
Different color interpretation image/css
yes, here comes screenshot this is for example in safari on macos leopard this is what I get on linux/windows in opera/firefox/any newer version of IE
-
Different color interpretation image/css
I just stumbled upon a problem that some browsers (IE6 and Safari) interpret/show image colors different from css color.. while both actualy have the same hex value... so what I get are like different shades of the same color that are supposed to be the same... any hints on what to google? I guess this is a common problem thank you
-
Decoding gzip (using PHP sockets)
I've also tried removing the limit
-
PHP class public parameter as two dimensional array, how?
bah, nevermind. the $i was in the wrong place so the indexes of $trackName, were completely wrong...
-
PHP class public parameter as two dimensional array, how?
Ok, so I have a class and I would like to be able to get any trackName (two dimensional array) after initializing an object in another php script. This is a part of the class that is relevant: class fetchData{ public $artistName; public $trackName; public function getArtistTracks(){ $i = 0; if( $tracks = getTracks() ){ foreach ( $tracks['results'] as $track ){ // $artistName is an array of strings (defined as public) $name[$this->artistName][$i] = $track['name']; $i++; } } return $name; } // later in the class one other function there is this function initialize(){ ... ... $this->trackName = $this->getArtistTracks(); } } Here is how I thought I could call artistName and trackName from another script: $temp = new fetchData(); echo $temp->artistName[3]; // this works (returns 'some_artist_name' for example) echo $temp->trackName[$temp->artistName[3]][1]; // this doesn't work echo $temp->trackName['some_artist_name'][1]; // this also doesn't work I tried a few other ways. For example instead of this: $name[$this->artistName][$i] = $track['name']; I would put this: $this->name[$this->artistName][$i] = $track['name']; without the return in getArtistTracks() and without the line in initialize() but that didn't work also. how can I get these trackNames from within another script? thank you =)
-
Decoding gzip (using PHP sockets)
I tried that already but couldnt decode it. Thanks for the effort tho'
-
Decoding gzip (using PHP sockets)
yeah sure, here it is: HTTP/1.0 200 OK Date: Fri, 13 Aug 2010 09:33:07 GMT Server: Apache/1.3.39 (Unix) X-Proxy-Fix-Up: headers fixed up X-Web-Node: www157 Content-Encoding: gzip Vary: Accept-Encoding Connection: close Content-Type: text/xml; charset=utf-8; ��������]�r�F�}�W �}A�X��� ٔ<���R�T�����v��H߳���2���4H��`���t�A2�tvV�p�m7�G�?����g�~��]ٸzw��۶B���^~s���١�����g������>�������>�i���u�,k?����j7���o�?�������:\;�����n��WU��>8����es�k_r!�������m�ڽ<=�����˫�����ɧO�^l�}QmO����<.ؽ���C��vk��INO�_���K��/�o>l�x�F����G������_�0~BUR���\��� _�G�[���-U&�n���C@ �pT��6 MMQå��^�A-��'Ч'G��x��>DhɌ�Z /(�D�q^r�+��N;�hP��S�(�z������æq;�� ���w�쭚�f� �8�պ��ڹdf#2h�M�̄����JQT9k9�T0��)J��2�8 '�Q����8՚Х��M"36��)������jΉ6�r�/��r��l��DŽ��ٹ��6��F�M� jS�5c�!�;j;E��~��+�0�� Ծ�y']>H���f�P�����yk �_ �����]�2Z�}櫶��X�A�d.+AU%K���!�(�F���yE<A��s�\���s���O]�< �a���M�r�&�l�C��m���os� ��^���v.���n��e��B��Z��l� ��<�yTY�|���o0�׃P�f#���,��i�;�A'h"�E�G��? ���m�_���m��JDh�1��#, � �eH…�L��4~ �z��hN�6/nv��g0l��N�� �H���W���~���5 �G�~����m�T��ΚO���\Y�BamB̬�%��FZ1�iIT�Ž�|yS�6?ʷ���B�����yi � �8��#>��\7m�����W�l���}��1V3�#��J[ÔD��]�CV+�PA�'"�H�֯�A��N������O� �ă!sʹ��0�;�'&�Kh��i�]y[�FO��Ēw�yl��!% a����CM+a��>%}'�z�;�)[:z����2w`��v=�9gsw\���{���y���궍��(�m�� ��ɏU��� NB�+!<'��*8����gJ$5K���i���N�4\ ��z�}j�<Z�L��L�ύm���}�+�k>���?����y�o�1�`]]Ƙ/X����'R1�*͂צ�BZ���h˩,��?��~�@���y0��w‡������/y��\���M̓@a��I���,�@�������yo���S?*�I���l�ݥ�g����ٻ���=I8G>�(9q�A0���S0T�KGK�1*�|s/h~4? ��׃�-�>��aӾ ��!4��1�����������4�J��k���������DZʥ����d�@��]\"���R�·EBD�ɖ�˶^F�b�_��EM�'BQ'��j�:�rdػ�ټW0�.�{�f�_՛:{�on�\1��G��ʖTkT�����X�;�Z+J�P� B�Aȼ2�r=�.$Sji�M��@� ��1�G�c��f����~M�BU����ze�4X"��v�� ���2�wb��P�ᐵx[+4-H�N��:H(d�w���q��.l��uQ��X�a/H�*�� ~������Ąأ���寂����Iŗv�`�$�Q�I��8�Яv��W�i�=���"�?n���"f Ζ�^���e��Cp��ĕ�E�4���B� 1�+��F�p��]�+���b潘�1]��N51�X�L�8XЈ��3���hڃ�s���$ʸ��zs�{��D�& *���YL;�-<2�IDMe�v�0�~܋����S�t��Dl8l:�S4w�w�w��/�����vS͞��8�nwu��ۘX<�0��S�4U �E#��K�J�t��O��2�x.$f�d3�Tœr(* !��A-9���Q*{_�1'lL�S�mU U�X�MBhk%�$�:R����A��8+��\,ݦ FM�-5�� j�sw���o.�w��J2-%�\r�ie*ZVtv���k�ol���&;����bG�5Dh^X툠 ��{ĭ����U:����ℓb']�6�t�R�4ݡ�i�tB��AB��c>6�lR�'�Y���{�\��vu�x�����Cy=��n$�j�uN)Sb�c 5��D�Rd�!�e�z����7/�@���O�q�;���ٛ��9h�c���`�Q!��A�Q� �4*(��*�f��h�Q��j�B�#h f�a�� U��v���9�����m����>4�}��cL&�ᚂZ�)��]�QUي$�4܊:�&w�=��=ud��e\�c3c��b�A0l�������=��~`�<_b��g���QW�cY��������`(��QK��pش<vB*#A ٌ�h���i:�!�˃�w��6��S�Y��8�*ʑ!��� �t8�"Sp�)��E��Z��h����p���;(��;�&Rz�e�p���j�u�w[���ʀ�+���H�mR���JT`N-���"���^��Z4dгY|j�֦��Ш����V��δ� {4ϸ/ۺ�Λݵ��9R46C`�UV�y��9�Þa!Df^1W��mZ�z��{�V���0�x6qx ;ez����#�#���cy{h��gd�#���z�����v�s��$�7Z��)^�@q���P�1��+���-V:���8����>k�ᰉûP�)�pM�Gx��c���_�v�n�l�w]�}�f���-�o�q�n��n�7u��Po�,��q���+¼.D��!h!�[G8S�p>���H�{L9���\ఉ}�P�)��pM��?`���s� ��k).�ײ �ۧI�T���o����g?�B�s(�O�K;y‰=\;�q��]{�]�D����awQBa�좄k"!�P����{z�T �Gs�m�s��}l�K�X%&ev���.��j,�X|6����:e;X ��8=��曦���O/��C9���=ݡ�S�\�B)cI�JӊY�5%E��BT�•��ʚ��\�ydM‘�>MD�c6 6�#�a'x�M$x��q����G�ď~�]:��X_^i�qW�h-��GZ;�L�*�1��p��^��:�#K�f1��`�ڔ� H�R� �9�������ikJ�~#*�D�* NY��T�NNY�zi�� b�^:�M�sA'T��:H�q�5gsv\,<����yǕs�{�Ë���lff�Fg(jZ�3uB�3\ аw�|`��M�q~?����y}�W�~k�"�Z"5�ܠ�w)6"���B#�,�J�pB�~'[�U�=.������^ ;���5��y��c�X�{�EB��5���Y�+E���2-K'%�2Ľ�G���So ��m� ��ͱY:��æ�`� qp�&B�udߜ������qAp�%�˫�[o�y ��(TU9ڵ$~B��9�(�t�$�%Կ;��N�|�n�{ `�1]|G56qGvʎ<�&R�%pD}l�|W�6�Go7����}�o6���{��~���i�ĂNHE��r�!��E�bRR/�� �K�`� ؊q�1��ͣ951��N���j���=����Ӌ��E�[z�ɶ~�o��l���~g���~�n�ol�e q,fI8=���/����o`��q�:��p5$�A��7���� �H�l ?��Օ�7E�ba�wUW�"o���0d��SRbg�26�[oe�R����m0j�n��S�pVCB(r}`ؼ��<����6�!�{���GD����� )9�2��^Sɽ�^p�M �6�mŅL�n���A0l�Z(��pM�,�8���;73���s���el�ED3~RT�¥@�2q�Kd�g�`��6a��\��D��/�����Nȉ$h"!'2�~5�l=.~�i��]xG�5Z�X�P���TNZ#�ˢ�#����b�N�|l��j�� hb��p@u�ot�l:����r���3�u��`#a^��t��o��zl%8DDK���V ���u����egsv\�Me�4�w�� �^�z��d�_��16G��N3㙔H�D!ΔB�0)LCD�E�!��� �:a��q��fh���{�a���&0�)�&P�gM:ģ��3o~oܹ�Z���?ٝ������<�R���ϿϿ{�_w���T������0vJ0�DJ8|D� L�_��/ݓ��7n�-�|��9�OO�����^l���o������܄���� if you want me I could put it into a text file and upload it but I guess there is no difference...
-
Facebook.. Poking!
you could probably automatize the proces via ruby + watir library. you would have to set the ruby script to log you in, then to go to your facebook homepage, check if anyone poked you, then get the ID of the pokeback element and 'press' poke back... shouldn't be too much of a problem if you're willing to sit down and code a bit. good luck
-
Decoding gzip (using PHP sockets)
Ok, so there is this PHP implementation of Last.FM API some guy wrote and I'm using it for a small project of mine. His implementation doesn't request gzipped data from Last.FM servers so I decided to modify his implementation to work with gzip to reduce bandwidth. I have no problem in requesting gzipped data, that works just fine and all the data comes compressed (checked). The problem is decoding it. I'm pretty new with PHP and I was trying to decode it for the last two days but nothing I tried worked. Here is the function that asks for and receives the data. If anyone could please help me make this function decode the data I'd be really grateful. function send ($msg) { // Send message over connection fwrite($this->handle, $msg); $response = array(); $line_num = 0; while ( !feof($this->handle) ) { $response[$line_num] = fgets($this->handle, 4096); $line_num++; } // Return response as array return $response; } where $this->handle is: $this->handle = fsockopen($this->host, $this->port, $this->error_number, $this->error_string); Of course I did some google-ing first and here are a few solutions people recommend I tried that didn't work out (for me): gzdecode() gives me "Fatal error: Call to undefined function gzdecode()" After google-ing it I found out gzdecode() will be implemented in php6? (on localhost I have 5.3.0 installed). I also tried using this simple function I found here <?php function gzdecode($data){ $g=tempnam('/tmp','ff'); @file_put_contents($g,$data); ob_start(); readgzfile($g); $d=ob_get_clean(); return $d; }?> This one doesn't get the job done, it decodes nothing but only returns funny characters.. gzinflate (and also gzuncompress) function gives me "Warning: gzinflate() [function.gzinflate]: data error" Thank you =)