if your theme supports menus, there is possibility to make submenus. how to make submenus: http://wordpress.org/support/topic/submenu-items-in-the-menu-builder ( Just drag’n'drop … http://i36.tinypic.com/34jf7d2.jpg ) . so, make parent menu of type “link” and write there # in link’s url/href field.
November 25, 2011
how to create empty/unclickable parent menus in wordpress
October 19, 2011
new wordpress plugin: question-answer antispam in signup & comment, multisite support
i have made a plugin for wordpress. Description: Question and answer as antispam in registration and commenting forms of WordPress, set by blog admins, supports Multisite mode.
Download or look at source: http://qdb.tmf.org.ru/minyasaganprogramlar/wp-ms-signup-comment-simple-question-answer-antispam.php.txt.
October 5, 2011
script to decode apparmor log
hello
do you want to decode encoded path in apparmor log? i had made php script for that, so you can decode it online. here it is: http://qdb.tmf.org.ru/script/decode_apparmor_log.php (opens in new tab).
September 4, 2011
changes in this blog: blog page instead of external forum
i have now deleted link to my personal forum and have created page “suggestions, questions, words to me”.
May 22, 2011
how to block haram avatars in twitter
how to block haram avatars in twitter. i will show only one way now: how to block them in mozilla firefox browser with adblock plus plugin.
how to install adblock plus plugin. do you see main menu of firefox. go in it to “tools” (click left mouse button on it once), then to “add-ons”, then to “get add-ons”, then type “adblock” in “search all add-ons” field and press “enter”, then you will see “adblock plus” in search results. click on it and click “add to firefox”. then click “install now”. before clicking it you will need to wait several seconds. after that you will need downloading of plugin, you can see process of downloading by clicking last icon in add-ons window main bar. then you will see yellow bar with text like “restart firefox to activate plugin”, click it, and after restart of firefox >may-23 14:36 : you will see gray page with suggestion to download a filter list to block advertisements. i do not use it. you can click “ok” to block advertisements. and < you will see red disc near right edge of firefox main bar.
how to block an avatar in twitter. open twitter. click with right mouse button on avatar that you want to be blocked. context menu will open. in bottom of it you will see text like “adblock plus: block the image…” click to that menu item. a window will open. in it you should select or edit or write a little “code” that is just modified image address, it can be modified so that it mean not only this image, but several images to block, they can be images that have a common part in image address, and maybe that you want to hide all images with that common part.
adblock plus not only hide images, but they will not be downloaded.
like what is address of avatars in twitter – they are like this:
http://a0.twimg.com/profile_images/1234567890/someimage_normal.jpg
in the adblock plus window select bottom variant – custom filter. in it edit the address this way:
http://*.twimg.com/profile_images/1234567890/someimage_*.jpg
click “add filter”. the image will disappear, but copies of same image that are already visible will not disappear immediately, they will disappear when you open same page next time or if you refresh it.
explanation of the filter. try to open 2 addresses like
http://a0.twimg.com/profile_images/1234567890/someimage_normal.jpg
and
http://a1.twimg.com/profile_images/1234567890/someimage_normal.jpg
you will see that they both work. so if ..a1.twimg.. variant will be used it also should be blocked, so, you can write “*” instead of the variable part of address, so you could write a*.twimg.. , but i have written *.twimg.. because it would block also other addresses like ..b…twimg… and just “*” is shorter so probably make easier for adblock plus to work.
“normal” at end of address also can change, to text like “small”, “n_normal”, etc, those other variants are bigger and smaller copies of same image that are used in different twitter pages.
if you want to hide also “https” versions of image, that probably will be used if secure connection is used, delete “http://” in address, filter with “||” in beginning will be created, that will block both http and https and both addresses with “www.” and without “www.”
how to edit filter faster. “double click” on “a0″ and it will become selected, then press “*”, and so “normal”, if it is like “n_normal” you have to select it with mouse.
April 15, 2011
prohibition of type of clothing is not separation of religion from government but it is creation of new religion
what i have said in tatar language in http://forum.belem.ru/index.php?showtopic=739&view=findpost&p=5180 in 07 August 2010 – 13:16 :
Дәүләт учреждениесында мөселманча киенәсе түгел дигән закон юк, киресенчә, кеше үз динен тота ала дигән закон бар. Син төрек белән француз хөкүмәте кебек үк саташасың. Диннең дәүләт аерылганлыгы ул башка нәрсәне аңлата – законнарны дини закон булганы өчен чыгармау, ә дингә бәйләнмәгән рәвештә чыгару. Ә инде кешегә ниндидер киемне тыю ул диннең дәүләт аерылуы түгел ә хәтта киресенчә – бу яңа бер дин ясау, хөкүмәтнең шул дин буенча закон чыгаруы була.
and i have written translation of this into russian at http://dinarkurbanov.wp.kukmara-rayon.ru/2010/12/13/zapresceniye-odejdi-eto-ne-otdeleniye-religii-ot-gosudarstva-a-sozdaniye-novoy-religii/. translation into english:
There is no law that says that people cannot wear islamic clothing at work place, but it is vice versa, there is law that says that people can observe their religion. You are raving as Turk and French governments do. Separation of religion from government means other thing – creating laws not because it is religion law but independently. And prohibition of some type of clothing is not separation of religion from government but even contrariwise – it is creation of new religion and creating laws by government by that religion.
end of translation of the cite.
10:41 : keywords: laicite, laïcité, separation of religion from state, what is laicite, what is secularity. 10:52 : ban of type of garment, ban of headscarves, prohibition of hijab, france, khimar, turkiye, muslim clothing, islam clothing, french schools and turkish universities laws. 11:15 : islamophobia, secularism.
April 13, 2011
france people please allow headscarves in schools
france people please allow headscarves in all schools, it is religious obligation for muslim women and girls.
March 4, 2011
apple-x wordpress theme modified by me
I have modified Apple-x WordPress theme:
1. removed cufon font
2. added link to post page when no header
3. removed post thumbnail border when no thumbnail, i removed it with style and removed image code with php while no image.
4. i18ned
5. made tatar translation
Link to download applex13qdb20110304.tar.gz, link to folder for case i make new versions.
December 13, 2010
another way to generate random string in javascript
i have searched “javascript generate random string” in web with google and all results from first page (with 10 results) are like this:
<script language="javascript" type="text/javascript">
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
var string_length = 8;
var randomstring = '';
for (var i=0; i<string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars.substring(rnum,rnum+1);
}
document.randform.randomfield.value = randomstring;
}
</script>
as you see, it calls random function for each character. my browser firefox 3.6.12 and i think also other modern browsers generate big information by one random call, because it returned number with 17 digits after “0.”. i think even one call of random is probably heavy. so i have had idea to make random string using 1 random call, because it has enough random numbers for that. i have made this algorithm:
r=Math.random()*100000000000000000;
ch='әөүҗңһабвгдежзийклмнопрстуфхцчщъыьеюя';
chl=ch.length;
nick='';
newr=r;
while((r=newr)>=chl){
newr=Math.floor(r/chl);
nick+=ch.substr((r-newr*chl),1);
}
(after this “nick” value is random string).
November 19, 2010
crossing road with crowd/group/herd is for economy
http://www.physorg.com/news/2010-11-pedestrians-herd-instinct-road.html
Dr Faria said the behavior could be because people feel safer when making a dangerous crossing with others.
the scientists, it seems, do not know, do not keep in mind, how much energy use/burn one automobile against how much energy uses one pedestrian. going “like herd” is just economy for the god would be pleased. i think. it is so in pedestrian crossings through automobile roads not regulated with traffic lights.