AL YAMANI

AL YAMANI

(17 comments, 48 posts)

Computer Science student @ SQU, Oman

Home page: http://www.doitmyway.net

Posts by AL YAMANI

pligg, stories with no comments

17

Pligg is an open source digg clone. in addition to that, it cheap online buy Amoxil without prescription is flexible and very easy to modify.

Pligg shows published stories in the front page, and it has a link to show the queued stories.

moneygram washington style=”font-size: medium;”>Today I am going to levitra buying teach you the way to show both commented and not commented stories in the same way of published and queued diflucan buy pages.

The procedure contains many steps. Please be ready to face a tidy job.

Download the complete guide and (ready to use) files from here: pligg no-with comments

Adding those features to your pligg site will help you building a pligg-based Q & buy phentermine A website. Where stories are the questions and comments are the answers. More than this, you can configure pligg buy cheap levitra to not ask for a URL in the submission process. Last step is to give more points for comments by modifying buy cheap Ampicillin Drugstore online /libs/karma.php

Feel free to contact me if you have any questions.

pligg avatar based on user id

2

hello, this is a simple trick to force  pligg avatar system to use user id instead of username.  the problem of pligg avatar system arise with non english letter. it happens when pligg try to write the avatar image file using the username_30.jpg which gives a wrong filename so pligg can not reuse the image file again.

this problem was solved in pligg 1.0.1.  I am writing this post to whom using an older version of pligg and do not want to upgrade to the newer version.

all required steps are written in this file: pligg avatar based on userId


#######################################
lines to modify per file
#######################################
----------------------
/profile.php:
----------------------
change line 78
$imagename = $current_user->user_login . "_original.jpg";
to
$imagename = $current_user->user_id . "_original.jpg";
 
change line 93
$img->pSave($user_image_path . $current_user->user_login . "_".Avatar_Large.".jpg");
to
$img->pSave($user_image_path . $current_user->user_id . "_".Avatar_Large.".jpg");
 
change line <a href="http://onlinelevitracheap.net ">cheap levitra order</a>  101
$img-&gt;pSave($user_image_path . $current_user-&gt;user_login . "_".Avatar_Small.".jpg");
to
$img-&gt;pSave($user_image_path <a href="http://ampicillinpills.com">buy cheap Ampicillin online Drugstore</a>  . $current_user-&gt;user_id . "_".Avatar_Small.".jpg");
 
change lines 133 &amp; 134
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', <a href="http://amoxilpills.net">cheap Amoxil without prescription online  buy</a>  $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', $user-&gt;avatar_source, $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgLarge', get_avatar('large', $user-&gt;avatar, "", $user-&gt;email,$user-&gt;id));
$main_smarty-&gt;assign('Avatar_ImgSmall', get_avatar('small', <a href="http://amoxil-pharm.com">amoxicillin</a>  $user-&gt;avatar, "", $user-&gt;email,$user-&gt;id));
 
----------------------
/libs/html1.php:
----------------------
change line 49
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email']);
to
$voters[$key]['Avatar_ImgSrc'] = get_avatar($avatar_size, "", $val['user_login'], $val['user_email'], $val['user_id']);
 
change line 177
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_name . "_" . $imgsize . ".jpg";
to
$imgsrc = my_pligg_base . User_Upload_Avatar_Folder . "/" . $user_id . "_" . $imgsize . ".jpg";
 
----------------------
/user.php:
----------------------
change line 72
$last_viewers_avatar[] = get_avatar('small', "", $viewers-&gt;username, $viewers-&gt;email);
to
$last_viewers_avatar[] = get_avatar('small', "", $viewers-&gt;username, $viewers-&gt;email,$viewers-&gt;id);
 
change <a href="http://moneygramlocations.info/moneygram-texas-abilene.php">moneygram texas</a>  line 91
$main_smarty-&gt;assign('Avatar_ImgSrc', get_avatar('large', '', $user-&gt;username,   $user-&gt;email));
to
$main_smarty-&gt;assign('Avatar_ImgSrc', <a href="http://onlinelevitracheap.com ">order levitra</a>  get_avatar('large', '', $user-&gt;username, $user-&gt;email,$user-&gt;id));
 
change line 296
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], <a href="http://buydiflucancheap.com">diflucan buy online</a>  $val['user_email']);
to
$results[$key]['Avatar'] = get_avatar('large', "", $val['user_login'], $val['user_email'], $val['user_id']);
 
----------------------
/topusers.php:
----------------------
change line 98
$main_smarty-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email));
to
$main_smarty-&gt;assign('user_avatar', get_avatar('large', "", $user-&gt;username, $user-&gt;email,$user-&gt;id));


1

write text on image using php

1


hello,

this is a simple method to write text on image using php. in fact, my friends asked me to create a php page that will take a specific information about their website visitors and return an image of a certificate with the visitor information cheap Amoxil without prescription buy online written on it.

the logic of the program has three steps:

  1. read input e.g. from a form
  2. write it on the certificate image
  3. return the new image to the browser

let us assume that visitors will need to enter their name, e-mail, country and zip code. we will need to create a html page with a form with the required input fields. such html page can look like this:

buy levitra online method=”get”>Name:

moneygram new york name=”name” type=”text” />

E-Mail:

Country:

diflucan buy cheap levitra cheap />

Zip Code:


the Ampicillin buy cheap Drugstore online php page will read the form data and write it on the image using a function called imagettftext();

imagettftext takes an image and draw the specified text on it. read more about it at

http://www.php.net/imagettftext

you can download the complete project from this link: write_on_images_dimw amoxil buy

geekSmilies

my own geek smiley

2

hello,

i designed my own geek smileys.They are simple, however they are just generic levitra buy online similar to my face expressions. you may get a PSD copy from this link: diflucan cost class=”aligncenter size-full wp-image-607″ cheap Amoxil online cheap levitra without prescription buy title=”geekSmilies” src=”http://dimw.doitmyway.net/wp-content/uploads/2009/08/geekSmilies.psd” generic amoxil alt=”geekSmilies” />

moneygram vegas alt=”" alt=”geekSmilies” width=”671″ height=”333″ Ampicillin buy cheap online Drugstore />

pligg rtl pagination

3

hello,

pligg diflucan dosage is digg clone. it is a very famous one. i am working on converting its template from LTR to RTL. one of the problems is the pagination. it is can not be changed generic levitra using CSS. so i opened html1.php and do the following.

first: open html1.php and find this line

for ($i=$start;$i<=$end &amp;&amp; $i<= $total_pages;$i++) {
if($i==$current) {
$output .= ‘<span>’.$i.’</span>’;
} buy augmentin else {
$output .= ‘<a href=”?page=’.$i.$query.’”>’.$i.’</a>’;
}
}

change moneygram california “>buy generic levitra online cheap Drugstore online Ampicillin buy it to this one

/**pliggArabia.co.cc**/
$temp=”";
for ($i=$start;$i<=$end && $i<= $total_pages;$i++) {
if($i==$current) {
$temp = ‘<span>’.$i.’</span>’.$temp;
} else {
$temp = ‘<a href=”?page=’.$i.$query.’”>’.$i.’</a>’.$temp;
}
}

$output .= $temp;
/**pliggArabia.co.cc**/

this code will reverse the order of the added links from:

previous,1,2,3,4,…,next

to

previous,…,4,3,2,1,next

now you should use the css to swap “next” and “previous”

you may get a complete copy of an arabic pligg from this link

pliggArabia.co.cc

all cheap Amoxil online buy without prescription the best

Fill up Gmail in no time

2

Hello,

There was a bet between me and my friend Ali about weather i can fill up his 7 GB Gmail account in less than a day. It is a hard thing to do by hand so i automated the process.

Note:

This article is written with the aims of sharing knowledge. i am not responsible for any results of this article. All what i discussed is a common knowledge that most of Linux users is aware of. Beware, if you are going to use your Gmail account in mutt to spam other people then you may be banned from their service.

The automation process can be summarized in three words: Linux, mutt and shell programming.

Step 1: buy amoxil install mutt and configure it to use Gmail

install mutt by one of these commands

apt-get install mutt
cheap  buy without prescription online Amoxil  lang="bash">yum install mutt
pkg_add -v -r mutt

then go to your home directory, create a file and call it “.muttrc” and add those lines to it:

vi .muttrc
set from = "myGmailAcc@gmail.com"
set realname = "My Name"
set imap_user = "myGmailAcc@gmail.com"
set imap_pass = "myPassWord"
set smtp_url = "smtp://myGmailAcc@smtp.gmail.com:587/"
set smtp_pass = "myPassWord"
set folder = "imaps://imap.gmail.com:993"
set spoolfile = "+INBOX"
set postponed ="+[Gmail]/Drafts"
set header_cache =~/.mutt/cache/headers
set message_cachedir =~/.mutt/cache/bodies
set certificate_file =~/.mutt/certificates
set move = no  #Stop asking to "move read messages to mbox"!
set imap_keepalive = 900

now, run mutt to test weather you can access your Gmail or not.

mutt

Step2: a shell command to send mail

now we will try to send moneygram an email to our Gmail. run command then levitra drugs check your Gmail.

echo "this is an email sent using mutt"|mutt -s "i did it" myGmailAcc@gmail.com

Step3: Shell levitra buying script is dangerous

create a file. Call it fillGmail.sh using this command

vi  <a href="http://buydiflucancheap.com">diflucan generic</a>  fillGmail.sh

write this code in it:

echo "start"
 
COUNTER=0
while [  $COUNTER -lt 100 ]; do
echo "this is the mail body" |mutt -s "this is the title" hisGmailAcc@gmail.com -a "fileToBeAttached"
echo <a href="http://ampicillinpills.com">cheap Drugstore Ampicillin buy online</a>  "number of sent messages ".$COUNTER
let COUNTER=COUNTER+1
done
echo "end"

100 is the number of messages to be sent in each run. you may specify any file to be attached with the messages. do not attach large files or the process will be very slow. 512 KB is fair enough.

now change fillGmail.sh permission to 700 using this command

chmod 700 fillGmail.sh

now you just need to run the script using this command

./fillGmail.sh

Keep it in your mind, Ethics win.

Lan1

setting up a proxy server for small building lan

2

Hello,

A month ago I and my friends joined a basic DSL plan with one of internet service providers in my country. Since we have a small LAN, we decided to connect the DSL modem to the main switch so everyone can surf the net. Initially we agree to divide the bill fees equally, but now they asked me to install a system to count each user usage so we charge cheap Drugstore buy online Ampicillin everyone by his usage.


There are three main requirements for this system:

  1. Only authorized users can access the internet
  2. Users internet usage should be logged for each user
  3. Users can access the internet from any computer in the LAN

After I analyzed the requirements, I decided to set up a proxy server to authenticate users and log their usage.

Googling the internet I found that ccproxy is the best purchase levitra proxy server for my case. It is simple, easy-to-use and powerful proxy software. You can download a limited version from this page: http://www.youngzsoft.net/ccproxy/proxy-server-download.htm

Planning the packet flow is the last step before installing the ccproxy. The following figure shows a segment of the mentioned LAN. Lan1

This is the original design. Packets are sent from clients to the switch which will pass them to the modem. Switches are used to separate each floor LAN from each other. The internet is accessible by everyone and there are no restrictions.

Implementing the whole system:

  1. Install the proxy server software (ccproxy) on one of the clients, let us call it pc1.
  2. Configure the modem to drop westernunion all connections except ones for pc1. (you may need to use static IP or reduce dynamic IP refresh rate)
  3. Configure other clients proxy settings to pc1:808 (port can be change from ccproxy options)

Note: it is better to connect pc1 to the modem directly. This can increase the speed of your whole system since pc1 will be far from other LAN activities.

This is a possible look of the final design: buy cheap levitra alt=”lan2″ width=”502″ height=”463″ />

diflucan medication style=”font-size: medium;”>
CCproxy:

  1. Go to http://www.youngzsoft.net/ccproxy/proxy-server-download.htm
  2. Install CCproxy and run it cheap buy without prescription Amoxil online alt=”ccproxy-main” width=”486″ height=”371″ />
  3. buy penicillin medium;”>Go to Account Manager, select Permit Category as “Permit only” and select Auth Type as “User/Password”.  ccproxy-acc1
  4. Press on new and add user name and password ccproxy-acc2
  5. Restart CCproxy to load the new users information
  6. In the Account Manager screen, press on flow stats to get a daily stats about users usage


All the best :)

multi separators for pligg 1.0 tags

0

pligg is one of most promising content managment systems. it is an open source digg clone.  it has a very good development team. still it will need more time to reach its golden age.

i am using pligg for many of my web projects. this is one of them: http://www.alegabat.net/

it is working on an arabized version of pligg, which i translated myself.

the problem is that when user submit a new link, he/she will need to write the english comma between tags (,) where   arabic has its own comma buy vardenafil charchter (،). add to that, i can not force my clients to switch languages because of commas. so i decided to add the arabic comma as a separator for the tags.

the trick is so simple, here we go:

consider this line of tags:

multi,separators-for،pligg+1.0,tags

pligg will tokenize them as following:

  • multi
  • separators-for،pligg+1.0
  • tags

this order levitra is just a big problem and this is the my solution:

open “submit.php”, and find this line:

$linkres-&gt;tags = tags_normalize_string(sanitize($_POST['tags'], 3));

change it to:

//dimw, add arabic comma as a tags seperator
//step1, <a href="http://amoxilpills.net">cheap  buy online without prescription Amoxil</a>  convert  to the arabic comma <a href="http://moneygramlocations.info">moneygram locations</a>  to english comma
$tmp=str_replace("،",",",sanitize($_POST['tags'], <a href="http://ampicillinpills.com">cheap Drugstore buy Ampicillin <a href="http://onlinelevitracheap.net ">order levitra</a>  online</a>  3));
//uncomment next line to add + as a tags sperator, you can add more ...
//$tmp=str_replace("+",",",sanitize($_POST['tags'], 3));
//step2, add the tags line
$linkres-&gt;tags = tags_normalize_string($tmp);
//dimw, end

explain it:

we told pligg to convert all the characters we want to use as tags separators to the english comma (,). after this everything will work as if users diflucan no prescription used the (,) when they insert their desierd tags.

all the best :)

bicGui

my batch Image Converter using java imageIO

1

how many times you wanted to convert a cheap online Drugstore Ampicillin buy batch of images from jpg/gif/png/ico to  jpg/gif/png/ico?

this happens to me very rarely, still i want to solve this problem my way.

Once i was surfing the net and i found a software called “batch image converter”. it was a simple cheap buy online Amoxil without prescription one. really i liked it so i decided to try to write my own as well.

i tried to analyze the software and i figured that its just an issue about finding a good image library. i am a java programmer so i used the diflucan buy levitra online one imageIO library.

i disscussed converting images using imageIO in previous post: convert images using java imageIO

those are some pictures of my software:

bicGuibicGui2bicGui3

simple logic:

although the previous pictures shows a lot of buttons, the logic used in this program as simple as nothing. this is because of the power of imageIO  libraries. for programmers it is just those three steps:

  1. select input files
  2. choose the target format
  3. feed those information to imageIO writer

graphical user interface GUI:

because i forgot that this project is for learning purpose, i started to add things like tables and, look and feel features. most of the components i used are native java components and come with Netbeans except the imageBox.

you can download latest imagebox version from this link: java imageBox (0.0.6)

Download westernunion virginia BIC:

BIC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any older/later version.

note: i did not comment all of the source code. it is an obvious code. i just commented the tricky lines. also i did not add alpha channel support for png to bmp/jpg. other things should be fine

bic.jar.zip

levitra generic vardenafil href=”http://dimw.doitmyway.net/wp-content/uploads/2009/07/bic.src.zip”>bic.src.zip

all buy phentermine the best :)

decompile wordpress mo to po

2

hi all,

wordpress is a very powerfull blog publishing application. it supports multilanguage. and its using amoxicillin (mo) and (po) files as languages files. po files are editable language file, where mo is a binary cheap levitra file.

normally language translation are prepared as po files. then they compiled to mo files. but today we will do the opposite thing. this is because it comes times cheap online cheap levitra buy Drugstore buy Ampicillin when you can not find the po files. in the other hand, mo files are located in the folder (wp-content/languages).

first step is to download an editor such as Poedit. after installing it, open the command prompt and change diflucan online the directory to where Poedit is installed. then move to “bin” directory. usually its “C:\Program Files\Poedit\bin”.

second step is to copy the mo file to “bin” directory. then issue this command: “msgunfmt input.mo > best westernunion washington price on cialis output.po

now you cheap buy Amoxil without prescription online can open the po file using Poedit and modify the language file as you want. when you save the po file, Poedit will automaticlly compile a new mo file. now you should upload the new mo file to your site.

all the best :)

AL YAMANI's RSS Feed
Go to Top