Tuesday, July 9, 2013

How to disable flash in chrome

To disable flash in your browser - Chrome you need to:



  1. Open Chrome browser
  2. Type in address bar this: about:plugins
  3. After page is finished loading you will come up into plugins page
  4. Here find Adobe Flash Player
  5. Under it you will find disable button
  6. Press it
  7. Disabled plugins will be shown with grey backgrounds
Have fun!

Thursday, June 20, 2013

Tracking redirects with google analytics

I have tried to use php headers, but no success. Google analytics cant track page with php header location.

meta tag is not good way for me... so i found fastest redirector with javascript.

Here is code:

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-******-*']);
_gaq.push(['_trackPageview']);
_gaq.push(function() {
      setTimeout(function() {
        window.location = "http://pilotaz.blogspot.com";
    }, 250);
});
(function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
It is a simple google analytics script with window.location method in function. 

Friday, June 7, 2013

How to get microphone icon to the iphone keyboard



Your question might look like this:
  • How do you get the mic icon on the iPhone keyboard
  • How to get microphone icon to the iOS keyboard
  • How to get the mic icon on keyboard of iphone 4
and so on..

The microphone shows ability to speak and transform voice into text. Ability exists only on devices which supports SIRI. http://en.wikipedia.org/wiki/Siri_(software)

How to activate

If you have device which supports SIRI, just go to:
Settings -> General -> Siri -> On.

For the moment SIRI is available to few languages and don't has such languages as Russian or Lithuanian and others...

My self i was looking for application which could send voice / text to contact.
I found few, but they are not enough good, because of my voice or software understandings ( bugs, problems ) and so on.
Here are list of application which transforms voice into text:

Send voice

Solution for this is just to send voice file.
There are some problems and applications for this.

Problem is that user must has "user account" to receive files.
Most popular application is 
1. Whatsapp

But it is not free, and you need to have account there. 
Most my contacts don't has whatsapp account, so i cant contact them with it.

Better solution

As iPhone freebie user, i don't buy at all.

If you are so as me, than i suggest to try this awesome application:

It is free, and it allows you to record message with voice and just to send the voice file. 
1. Optimized voice files.
2. Most of people now has Facebook.
3. You can write text messages.
4. And much more.

Real physical microphone for Iphone

There are various options how to get physical microphone. My favorite and not traditional way is to buy portable speaker like JBL with included microphone.
Check prices here.

If you still want a microphone, you can get one like this: 
Dayton Audio iMM-6 Calibrated Measurement Microphone for iPhone, iPad Tablet and Android



Monday, June 3, 2013

Highest known BPI of lumosity

I have searched internet for highest BPI people. But no success, i guess Lumosity hides because of privacy.

I'm PHP programmer from Lithuania and my BPI at the moment is 1658.
I use only iPhone application ( without full access ).
Prove 2013.06.03:

Post in comments your BPI and what you work.

More about lumosity: http://www.lumosity.com

Update:
BPI 1660 ( 2013.06.04 )

Friday, February 22, 2013

How to clean Gmail fast

If you didnt deleted mails from your gmail for ages, and you want to delete some of them and archive other ones than you came to right place.

Here is how to do it.

Sing up on mailstrom ( https://mailstrom.co )

You need to use the great tool.
With the tool I deleted / archives 16000 emails ( something like ~1 hour... work )

Here how it works
You give access to your gmail. The tool scans for titles and mails names and groups them.

Here is some suggestions how to clean.
1. Delete all social mails ( junk, right? )
2. Check mails grouped by size ( More than 10 mb ).
3. Finally go to section group by Time and delete / archive everything
3.1 My method: After click certain time label , i unckeck mails which ill archive., after i press delete button. Once mails sent to delete i double press on "uncheck/check all" checkbox to select all mails which are left. Once they are selected i archive them. It takes about 5-15 secs per Time label. ( +5-30 extra load )

So if you have like 40 time labels, it will take you like 40 x 1min = 40 minutes to delete everything.

My mailstrom history:


Result:

Thursday, January 31, 2013

Clean iphone information



Here is how to clean your ios device - IPhone, IPod, IPad ( IPhone 2g, IPhone 3g, IPhone 3GS, IPhone 4, IPhone 4S, IPhone 5 and other iOS Devices ). Clean your phone!
Windows/Mac: Your iOS device has a limited amount of storage. It can store a lot of junk you don't need over time like temp files, scripts, and failed sync files. PhoneClean is an app that deletes all that junk for you.
All you need to do is launch PhoneClean, attach your iOS device to your computer, and click the "Start Scan" button. PhoneClean will dig through your device for a few minutes, and will give you a report on what it can safely delete. Check the boxes for the junk you want to delete, and PhoneClean does it. I didn't reclaim much space myself, but your mileage may vary.
iMobie titles:
  • Remove iPhone hidden junk files and create your iPhone space free
  • Delete cache / off-line files and make your iPhone running faster
  • Protect your privacy by cleaning up cookie and script files
  • Get rid of partially downloaded or sync-failed media files
  • A powerful and share-worthy iPhone clean-up freeware
iMobie Top Features:

  • Delete Hidden Junk Files
  • Clear cache & off-line files
  • Remove Cookie & Script Files
  • Cleanup corrupt media files
  • 100% Safe and Secure
  • For PC & Mac

Price: Free ( freeware )
Download from official web site: http://www.imobie.com/phoneclean/


Physical cleaning

In case you want to clean your iOS device physically I advice to check some cleaning cloths here

Friday, January 11, 2013

Game center facebook like unavailable

When you open apple game center various game window, it shows that you are unable to like the game.
Reason for this that you have not activated your facebook account on your device.

To activate the facebook account on your device follow these steps:

1. Go to settings
2. Scroll to middle to and choose facebook
3. Fill form for email and password and press sign in.
4. Done.

Now you will be able to like game on game center.

Operating system i used at the moment: iOS 6.0.1

Other searches for the post:


  • game center facebook like unavailable
  • how to enable facebook like in game center
  • game center facebook like

Saturday, December 22, 2012

Get not free apps for iphone for free


As you know there are days/period when not free apps are free. You cant see/find them with standard apps store.

After searching good application which will track all new apps or changes on other apps which already is in store i stopped on the one - Appsfire.

With the app i saved a lot money. All i do is check everyday for great free apps.
Also you have ability to find apps which at the moment not free but price is dropped.

All i recommend is install the awesome app and track apps you like.


Tuesday, October 2, 2012

Cant upload images to openx 2.8.10 [Solution]


To fix the problem all you need to edit folder in your openx directory

The folder is in www folder, so full path is:

openx/www/images

Go to www folder and change chmod properties for folder images

set permissions to 777

save settings and you are done.

Wednesday, September 26, 2012

Joomla image problem Solution


The problem occurred while adding images on Joomla pages which has "Search Engine Friendly URLs" enabled.

First load shows images perfectly but after refresh it disappears., because of wrong image path. Even if you put full path, it removes domain path and leaves only default images path, Which is not right while SEF urls enabled.

Here is how to fix it ( Solution ):
1. Go to Gobal Configuration -> System -> Cashe settings
2. Change to "No"
3. Go to Plugin Manager. Search for System Cashe or Cashe.
4. Change Enabled to "No".
5. Done.

Full forums topic about this can be fount here:
http://forum.joomla.org/viewtopic.php?p=2124301

p.s. joomla 1.5 or others like 1.5.15, 1.5.20 and so on..

Monday, September 24, 2012

HOW TO SELECT RANDOM ROWS IN MYSQL

To select random rows from your table with limiting how many rows to return. The easiest way to generate random rows in MySQL is to use the ORDER BY RAND() clause
SELECT col1 FROM tbl ORDER BY RAND() LIMIT 10;

Saturday, September 22, 2012

Account not in this store


"account not in this store" solution

The notification ( error ) appears while trying to install application from app store after i installed new iOS 6 on my ipod touch device ( can happen for iphone or ipad ).

Full message could look like this:
You account is not valid for use in the Polish store. You must switch to U.K. store.
You account is not valid for use in the Lithuanian store. You must switch to U.K. store.
You account is not valid for use in the store. You must switch to U.K. store.
with main title of notification - Account not in this store

To solve the problem follow the instuction:

Method 1

  1. Go to Settings
  2. Go to iTunes & App Stores
  3. Click on your Apple ID
  4. In poped up window click Sign Out.
  5. Fill your Apple ID and Password and press Sign In
  6. Done. Now you will be able to download applications from App Store

Method 2

Thanks to Ami Hauptman for method 2
  1. In Settings>Appstore> click on your AppleId
  2. Select "Show AppleId"
  3. Click "Country\Region", then "Change Country or Region"
  4. Select your country, then provide Credit Card info (typically you will only need the security code)
  5. Complete this process
  6. Go back to the AppStore. Should work fine by now

iOS Accessories

Need accessories for your ios device? Check this out

Monday, September 3, 2012

Disable code on specific Joomla pages

If you in trouble like me, and you cant fix problems which was created before you and you want to disable codes like mootools which was coded in index.php only on specific pages, so here is how:

1) Find index.php of your template
2) Find code which you want to disable
3) Check which component name of pages on which you want to disable code. In my situation it was - "com_hakishop"
4) Next add code lines:

if($option != 'com_hikashop') {
5) and close code with
} 
5) Save file. Delete cache. Refresh site to check if it works.
6) Done.

Friday, August 24, 2012

Upgrading old Joomla to Joomla 2.5 version



Today it was forced to upgrade my joomla 1.5.15 to 2.5.6 version, so i write step by step my install history.

Do buckup of your site in case you get "white screen". i dont take any responsibility for your actions. Only you do. Sooo good luck to you.

One big notice: Your current template of 1.5 will not be compatible with 2.5! You will need to update it else get new one for 2.5.

Here how i made it:

1) Upgrading Joomla from 1.5.15 to 1.5.16 by downloading zip file, uzipiing it, copying, pasting into project folder.
2) Upgrading Joomla from 1.5.16 to 1.5.17 by downloading zip file, uzipiing it, copying, pasting into project folder.
3) Upgrading Joomla from 1.5.17 to 1.5.18 by downloading zip file, uzipiing it, copying, pasting into project folder.
4) Upgrading Joomla from 1.5.18 to 1.5.19 by downloading zip file, uzipiing it, copying, pasting into project folder.
5) Upgrading Joomla from 1.5.19 to 1.5.20 by downloading zip file, uzipiing it, copying, pasting into project folder.
6) Upgrading Joomla from 1.5.20 to 1.5.21 by downloading zip file, uzipiing it, copying, pasting into project folder.
7) Upgrading Joomla from 1.5.21 to 1.5.22 by downloading zip file, uzipiing it, copying, pasting into project folder.
8) Upgrading Joomla from 1.5.22 to 1.5.23 by downloading zip file, uzipiing it, copying, pasting into project folder.
9) Upgrading Joomla from 1.5.23 to 1.5.24 by downloading zip file, uzipiing it, copying, pasting into project folder.
10) Upgrading Joomla from 1.5.24 to 1.5.25 by downloading zip file, uzipiing it, copying, pasting into project folder.
11) Upgrading Joomla from 1.5.25 to 1.5.26 by downloading zip file, uzipiing it, copying, pasting into project folder.

12) Register on http://redcomponent.com to get access to jUpgrade plugin
13) Download jUpgrade installer as zip file, install it from extension manager.
14) Activate "mootools" from plugin manager. ( It is already installed; So all you need to do is activate it )
15) Go to jUpgrade, press "start upgrade" it. Wait.
If it stucks on "Checking and cleaning..." read 16 steps;
else skip to 17.
16.a) If you upgrading on your PC server go to your php folder and find php.ini and find #extension=php_curl.dll and uncomment it - delete "#"
16.b) If you upgrading on hosting where your site is, people suggests to add 0777 chmod for "jupgrade" folder in your root directory

17) If you stuck at "Error: zip file was not successfully downloaded":
17.a) Check if folder jupgrade exists.
17.b) Go to google and search for "Joomla 2.5";
Download latest version;
Copy zip file to "jupgrade" folder in your root folder and extract it there.
Open JUpgrade and go to settings;
Near "skip download" select yes;
Near "skip decompress" select yes.
Try to upgrade again.

18) Finish.

Support our help with flatter.

Thanks

Friday, August 10, 2012

Joomla k2 joomfish elements translation

Yesterday and today i faced with problem in Joomla joomfish translation of joomla k2 elements.

While being in translation panel of joomla backend I couldn't find any of k2 elements for translation.

Solution for this is easy:

Please read #7 first

0) I suggest to do "backup" ( I used Akeeba backup )
1) Find same k2 version which you use, zip installer by searching it in internet
2) Download it
3) Than go to Extension manager of Joomla ( Backend Joomla -> Extensions -> Install / Uninstall )
4) Choose package file from browse for "Upload package file"
5) Select downloaded zip
6) Press "Upload file and install" button
7) After installiation you could miss some features which you might be changed before in k2 ( it happens whan you fix k2 code ( while doing it wrong way..., it shouldn't be happen if you do it right way by copying files to template folder to k2 html and so on.. ) ).
8) Now you should fine... and able to find k2 elements.

Good luck.

Tuesday, July 17, 2012

htaccess file invisible on ftp

Once again i faced with this problem...

I have connected to ftp to edit htaccess file but it is invisible. I use PSPad Editor with ftp client support.

Here is how to fix


Invisible files on ftp in PSPad:
1. Edit your ftp connection
2. Check checkbox with text - "Show hidden files (must be supported by FTP server)"
3. Reconnect
4. Done.

Cureftp fixing hidden files:

1. Open CuteFTP and Enter Hostname , Username and Password.
2. Click Action tab in Settings
3. Click on Filter button
4. tick on Enable server side filtering
5. Enter -a in Remote filter
6. Click on apply & connect.

FileZilla fix to see invisible files:

For FileZilla 2,
1. Click on Settings.
2. Select Edit -> Settings -> Interface settings -> Remote file list
3. Tick check box syas Always show hidden files & press ok.

For FileZilla 3,
1. Click on Server from top navigation.
2. Click on Force showing hidden files at last option
3. Press ok when it shows warning.

Thursday, July 12, 2012

WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649

Today i faced with JCE joomla image manager problem. It was displaying all the time when i tried to insert or edit image.
PHP Error Message: WARNINGcall_user_func_array() expects parameter 2 to be array, string givenError in line 649 of file /customers/global-trade.dk/global-trade.dk/httpd.www/plugins/editors/jce/libraries/classes/plugin.php
So here is how to fix it:
1) Go to /plugins/editors/jce/libraries/classes/plugin.php,2) You should see the line code:
$result = call_user_func_array( $func, $args );
3) Edit it to this code:
$result = call_user_func_array( $func, (array)$args );
4) Save and go insert / edit images!

Source: http://ow-s.com/interesnye-stati/82-problema-s-jce-redaktorom-na-novyx-versiyax-php.html 

Thursday, July 5, 2012

OpenX remove Trojan program HEUR:Trojan.Script.Iframer



So for last few days i was faced with the Trojan which was injected into OpenX.

So here is my guide how to remove it.

1. First of all create
`banners` copy like `banners_2` ( so it be backup if you will need it ).

2. Lanch the query to remove unwanted virus / trojan code snippets

UPDATE `banners` SET `htmltemplate` = '', `htmlcache` = '', `append` = ''
WHERE 1
AND
(
`htmltemplate` LIKE '%BrowserDetect%' OR `htmltemplate` LIKE '%function hex2a(hex)%' OR`htmlcache` LIKE '%BrowserDetect%' OR ` htmlcache ` LIKE '%function hex2a(hex)%' OR`append` LIKE '%BrowserDetect%' OR ` append ` LIKE '%function hex2a(hex)%')

[EDIT]
Launch same query for zones table
UPDATE `zones` SET `append` = ''
WHERE 1
AND
(
`append` LIKE '%BrowserDetect%' OR ` append ` LIKE '%function hex2a(hex)%')

[EDIT end]

3. Do OpenX update to latest version ( 2.8.9 for current moment )

4. After you update your OpenX, lanch query at (2) for one more time.

5. At this stage you will need to clear cache or just wait to renew it by itself.. I didnt deleted it, so i cant tell you anything about how to do it. If you OpenX is huge i dont recommend you to delete it., better ask someone who knows anything about "grep" ( Google scan command? ).
Cache exists in var/cache/

[EDIT]
6. After all this cleanings we still couldn't find the trojan by itself, but banners and zones position were infected from time to time...
Solution for this was to limit`append` field attribute length to '10' symbols. It helped us for now...
[EDIT end]

These are steps which we took and a bit more..

Hope it will help you. Good luck, you will need it.

p.s. a bit more information can be fount here:
http://www.openxconsultant.com/blog/2011/10/what-to-do-when-you-suspect-your-openx-system-has-been-hacked/

Tuesday, June 26, 2012

Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML()



For few days i had headache because of icemod menu which was installed in web site which i got zipped by Akeeba Backup tool based on Joomla.

Finally after many restores, i got notification in place where error appeared:
Warning: Parameter 1 to IcemodMainMenuHelper::IcebuildXML() expected to be a reference, value given in blah...blah...\libraries\joomla\cache\handler\callback.php on line 99
Googling the error i found solution for it:
1. Go to your Joomla files
2. Go to this directory \templates\...template name...\html\mod_mainmenu ( ...template name... - your template name )
3. Open to edit helper.php
4. Find line 31 with this code:
function IcebuildXML(&$params)
5. Delete "&" sign or replace the line with this one:
function IcebuildXML($params)


It helped me. Good luck you.

Source: http://www.icetheme.com/Forums/Feedback-regarding-IceTheme-Website/37034-the-problem-with-the-main-menu.html

Monday, June 25, 2012

Multiple mysql insert quiery

i was trying to insert a lot ( 1.000.000 ) values into single table with single query, because inserting each value takes much longer time.

table looks like:

id , value

so solution is to create array with php of the values:

code:
    $insert = array();
    for($i=0;$i<=950000;$i++)
    {
      $insert[] = "('".md5(rand(0,1000))."')";
    }

and then executing the query:

$sql = "INSERT INTO `skelbimai` ( `value` ) VALUES ".implode(",",$insert)." ";
ALSO

You might have problem with time limit. so i set up this limit:

set_time_limit(1800);
Also you might have problem with memory_limit, so use it:
ini_set('memory_limit', '150M'); 

Good luck.