Sunday, September 27, 2015
Anagram and Rhyme Generator
I had some fun today with Anagram Generator and Rhyme Generator. For those who are unfamiliar with these, anagrams are rearrangements of the letters in a word. And of course, the rhyme tool is very useful if you want to do poetry.
Saturday, September 26, 2015
Allow PHP in Posts and preg_match
Allow PHP in Posts is a very cool plugin when you need to execute PHP in your posts, but you need a little time to get used to it, because it is kind of tricky. For instance I did not manage to use the preg_match function with square brackets. It simply replaces [a-z] with <a-z>. The only fix I could find is to use Code Snippets and add all the preg_match parts there, then use Shortcodes like [php function=5].
Also don't forget about [PHP debug=1] option which can be really useful.
Also don't forget about [PHP debug=1] option which can be really useful.
Monday, September 21, 2015
remove accents and diacritics from a string in PHP
I needed to remove some diacritics from a text and the easiest way I've found is this:
$newstring = iconv('UTF-8', 'US-ASCII//TRANSLIT', $original_string);
Monday, August 24, 2015
EU ruins the beauty of Internet with cookie control and data protection
Some EU laws are getting ridiculous. Look how many websites have this stupid cookie warning, but only the legitimate ones, the bad guys don't give a f* about this.
And the data protection directive is so vague that it will only serve for abusive actions.
Friday, August 21, 2015
WPMU: You do not have sufficient permissions to access this page.
While moving, a blog from WPMU to a single wordpress, I kept getting this message: "You do not have sufficient permissions to access this page."
I have played for about an hour with wp_usermeta and wp_users. Tested all kinds of settings in wp_capabilities and wp_user_level but still nothing worked.
Then I have spotted it in wp_options. The option_name wp_user_roles was missing and instead was something like wp_123_user_roles. After I renamed it, all worked like a charm.
Sunday, July 26, 2015
your personal website archive
While archive.org is the biggest online website archive - you have no control over it. If you want something that archives on command, you can use archive.is . It takes a "snapshot" of a webpage that will always be online even if the original page disappears. You can use it for your own sites or for other sites you like visiting. This way, you'll be able to see them even if they turn off or get suspended.
I found a firefly in my yard
It seems to be a larvae and every night I find her in the same place. After looking around in the vicinity I have found a few more. But this is the first year they appeared, I have no idea why or where they came from. Anyway, it's very nice to have them around.
Subscribe to:
Posts (Atom)

