tag:blogger.com,1999:blog-85773825223904580782024-03-13T22:58:10.611-07:00NAZIR'sHuseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-8577382522390458078.post-23505294232530402612022-08-20T07:43:00.001-07:002022-08-20T07:43:27.903-07:00BIP39 design experiments<p><span style="background-color: white; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">I've been using some software and hardware wallets for years. Like most of you I am familiar with mnemonic seed phrases used in wallet creation/restoration operations.</span></p><p><span style="background-color: white; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">Last week I decided to go a bit deeper on the design of these words. I worked with 24 word phrases which is basically 23+checksum word to validate the integrity of the phrase.</span></p><p><span style="background-color: white; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">You can find the code I wrote for calculating checksum in following github repository :</span></p><p><span style="background-color: white;"><span style="color: #24292f; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;">https://github.com/hnzr/bip39_checksum</span></span></p><p><span style="background-color: white; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px;">Checksum calculation is the first part of the code.</span></p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">On top of checksum calculation added the functionality for finding any missing word if checksum is given. </p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">You can use it just like me. You can also use it for generating your own mnemonic seed phrase. If you will use it in real life. Use it on an OFFLINE computer with temporary OS with your own security risk.</p><p dir="auto" style="background-color: white; box-sizing: border-box; color: #24292f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; font-size: 16px; margin-bottom: 16px; margin-top: 0px;">You can follow the instructions in the following link to create seed phrase with rolling dice and then use the python code to fix the 24th word with correct one.</p><p dir="auto" style="background-color: white; box-sizing: border-box; margin-bottom: 16px; margin-top: 0px;"><span style="color: #24292f; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;">https://en.bitcoin.se/articles/create-your-own-wallet-seed-using-regular-dice</span></p><p dir="auto" style="background-color: white; box-sizing: border-box; margin-bottom: 16px; margin-top: 0px;"><span style="color: #24292f; font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;">You can even add some additional randomness by changing some of the words with alternatives, using the brute-force function.</span></p>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com0tag:blogger.com,1999:blog-8577382522390458078.post-74058766606317911612017-01-10T07:36:00.000-08:002017-01-12T05:36:16.350-08:00WAN conditions for your service<br />
When you are about to launch a new network service you should be prepared to face with real life conditions.<br />
Your service should be ready for some delay, jitter and packet loss. This post aims to create a LAB environment to test our service if it is ready for real-life or not.<br />
<br />
All we need to have a debian server (virtual or physical) with two ethernet interfaces and 30 minutes of time for installation and configuration.<br />
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixegSjY_oxTlZmeBxomqce8lW0FYJAh6VTb86FsEUi_we5uAchM-IU7k6pgWW1oD0CCb3FHoJ4BOHOYxlZR8APZHTL5E2FKm2qZGVgbS3eU4Xl_UPLBuVxf-vxm7ALBoAqv4HTsoeIoOk/s1600/TrafficShaper.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="103" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixegSjY_oxTlZmeBxomqce8lW0FYJAh6VTb86FsEUi_we5uAchM-IU7k6pgWW1oD0CCb3FHoJ4BOHOYxlZR8APZHTL5E2FKm2qZGVgbS3eU4Xl_UPLBuVxf-vxm7ALBoAqv4HTsoeIoOk/s320/TrafficShaper.png" width="320" /></a></div>
<br />
In my case I used a virtual server on vmware that has 1 vCPU and 1GB RAM.<br />
<br />
I used 8.6.0 netinst cd image from debian.org https://cdimage.debian.org/debian-cd/8.6.0/i386/iso-cd/debian-8.6.0-i386-netinst.iso<br />
<br />
After minimal installation I configured the network :<br />
cat /etc/network/interfaces<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
# This file
describes the network interfaces available on your system</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
# and how to
activate them. For more information, see interfaces(5).</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
source
/etc/network/interfaces.d/*</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
# The loopback
network interface</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
auto lo</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
iface lo inet
loopback</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
# The primary
network interface</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
allow-hotplug eth0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
iface eth0 inet
static</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
address 192.168.1.253</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
netmask 255.255.255.0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
network 192.168.1.0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
broadcast <span style="font-size: 14.6667px;">192.168.1</span>.255</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
gateway 192.168.1.1</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
# dns-* options are implemented by the
resolvconf package, if installed</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
dns-nameservers 8.8.8.8</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
allow-hotplug eth1</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
iface eth1 inet
static</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
address <span style="font-size: 14.6667px;">192.168.2</span>.253</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
netmask 255.255.255.0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
network <span style="font-size: 14.6667px;">192.168.2</span>.0</div>
<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
broadcast <span style="font-size: 14.6667px;">192.168.2</span>.255</div>
<br />
Then I created a script that controls the traffic between two interfaces.<br />
cat /root/trafficshaper<br />
<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
#!/bin/bash</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
INT1="eth0"</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
INT2="eth1"</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
BWLIMIT="256kbit"</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
PLOSS="50%"</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
DELAY="300ms
10ms"</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
startme() {</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc add dev $INT1 root handle 1:0
netem delay $DELAY loss $PLOSS</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc add dev $INT1 parent 1:1
handle 10: tbf rate $BWLIMIT buffer 1600 limit 3000</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc add dev $INT2 root handle 1:0
netem delay $DELAY loss $PLOSS</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc add dev $INT2 parent 1:1
handle 10: tbf rate $BWLIMIT buffer 1600 limit 3000</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
}</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
stopme() {</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc del dev $INT1 root handle 1:0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc qdisc del dev $INT2 root handle 1:0</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
}</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
case "$1"
in</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
start)
startme ;;</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
stop)
stopme ;;</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
list)</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc -s qdisc ls dev $INT1</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
tc -s qdisc ls dev $INT2</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
;;</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
restart) stopme; startme ;;</div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
*) echo "usage: $0
start|stop|restart|list"</div>
<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
esac</div>
<br />
<br />
Now all we have to do is edit the file to set the conditions<br />
<br />
<span style="font-family: "calibri"; font-size: 11pt;">BWLIMIT="256kbit"</span><br />
<div style="font-family: Calibri; font-size: 11pt; margin: 0in;">
PLOSS="50%"</div>
<div style="font-family: Calibri; font-size: 11pt; margin: 0in;">
DELAY="300ms 10ms"</div>
<div>
<br /></div>
<div>
then execute </div>
<div>
/root/trafficshaper start</div>
<div>
<br /></div>
to make your service face with real life :)<br />
<br />
example :<br />
shaper@tshaper:~$ su - root<br />
Password:<br />
root@tshaper:~# ping 192.168.1.1<br />
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.<br />
64 bytes from 192.168.1.1: icmp_seq=1 ttl=255 time=0.803 ms<br />
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=1.05 ms<br />
64 bytes from 192.168.1.1: icmp_seq=3 ttl=255 time=1.01 ms<br />
64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=0.749 ms<br />
64 bytes from 192.168.1.1: icmp_seq=5 ttl=255 time=0.894 ms<br />
64 bytes from 192.168.1.1: icmp_seq=6 ttl=255 time=1.09 ms<br />
64 bytes from 192.168.1.1: icmp_seq=7 ttl=255 time=0.786 ms<br />
64 bytes from 192.168.1.1: icmp_seq=8 ttl=255 time=0.912 ms<br />
64 bytes from 192.168.1.1: icmp_seq=9 ttl=255 time=0.846 ms<br />
^C<br />
--- 192.168.1.1 ping statistics ---<br />
9 packets transmitted, 9 received, 0% packet loss, time 8003ms<br />
rtt min/avg/max/mdev = 0.749/0.906/1.097/0.120 ms<br />
root@tshaper:~# /root/trafficshaper.sh start<br />
root@tshaper:~# ping 192.168.1.1<br />
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.<br />
64 bytes from 192.168.1.1: icmp_seq=2 ttl=255 time=297 ms<br />
64 bytes from 192.168.1.1: icmp_seq=4 ttl=255 time=305 ms<br />
64 bytes from 192.168.1.1: icmp_seq=6 ttl=255 time=306 ms<br />
64 bytes from 192.168.1.1: icmp_seq=7 ttl=255 time=294 ms<br />
64 bytes from 192.168.1.1: icmp_seq=8 ttl=255 time=293 ms<br />
64 bytes from 192.168.1.1: icmp_seq=10 ttl=255 time=308 ms<br />
64 bytes from 192.168.1.1: icmp_seq=12 ttl=255 time=306 ms<br />
64 bytes from 192.168.1.1: icmp_seq=13 ttl=255 time=309 ms<br />
64 bytes from 192.168.1.1: icmp_seq=16 ttl=255 time=304 ms<br />
^C<br />
--- 192.168.1.1 ping statistics ---<br />
17 packets transmitted, 9 received, 47% packet loss, time 16040ms<br />
rtt min/avg/max/mdev = 293.008/302.931/309.238/6.076 ms<br />
root@tshaper:~# /root/trafficshaper.sh stop<br />
<br />
<br />
References and further reading :<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
<div style="margin: 0in;">
<a href="http://vxpertise.net/2012/12/simulating-a-wan-connection-in-the-lab-part-1/">http://vxpertise.net/2012/12/simulating-a-wan-connection-in-the-lab-part-1/</a></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<a href="http://lartc.org/howto/lartc.ratelimit.single.html">http://lartc.org/howto/lartc.ratelimit.single.html</a></div>
<br />
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<a href="https://wiki.debian.org/TrafficControl">https://wiki.debian.org/TrafficControl</a></div>
<div style="font-family: Calibri; font-size: 11.0pt; margin: 0in;">
<br /></div>
Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com0tag:blogger.com,1999:blog-8577382522390458078.post-5434623528545354662016-01-04T00:50:00.000-08:002016-01-06T10:47:31.062-08:00Scriptize Your HSS Bulk Operations<div class="MsoNormal">
<br />
The main idea is scriptize anything that takes more than
script creation time. Creating a script will probably take less than half an
hour for most of routine work. Once you prepare a script you will use it
multiple times as needed, with small tweaks.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
I have prepared the this script about one year ago. For a
load test I need 1000 concurrent users on IMS. The hardest thing was creating
those users on HSS.<o:p></o:p></div>
<div class="MsoNormal">
It took about 15 minutes :)<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->1.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Export a template from from hss using your
favorite ldap browser. (I prefer ldapadmin)<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->2.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Rename variable fields. (I use varuserid,
varpass)<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->3.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Create a csv file for variable values.<o:p></o:p></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->4.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Run script<o:p></o:p></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l0 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]-->5.<span style="font-size: 7pt; font-stretch: normal;">
</span><!--[endif]-->Import output file to hss<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
You can find script and example data files in section
Script1<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
After some time we need to change the service profile of the
subscribers for another test. This was only a template file change ;)</div>
<div class="MsoNormal">
<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Template file for changing the service profile:</b><o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-SubscriberServiceProfileId=varuserid@somedomain.com,HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-SubscriberServiceProfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
changetype: modify<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
replace: HSS-ConfiguredServiceProfiles<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ConfiguredServiceProfiles: centrex<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
And finally lets clean up our mess.</div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>For deleting subcribers
we have created following template can be used.<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal">
changetype: delete<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
From the beginning of the history, man is used to make tools
in order to make his life simpler. Don’t hesitate to use your frontal lobe.<o:p></o:p></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b>Script1 : generatesubs.pl
<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
#!/usr/bin/perl -w<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
# Print the value of the command line arguments<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$numArgs = $#ARGV + 1;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
if ($numArgs<2) {<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print "Usage :
\n";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print
"./generatesubs.pl output_file csv_file \n";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print "Example :
./generatesubs.pl test.out values.csv \n";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
die;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
} else {<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print "Output file
is $ARGV[0]\n";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print "CSV file is
$ARGV[1]\n\n";<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
open OUTPUTFILE, ">", "$ARGV[0].ldif" or die $!;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
open INPUTFILE2, "<", $ARGV[1] or die $!;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
while (<INPUTFILE2>) {<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$_ =~ s{^\Q$/\E}{};<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
my @number = split /,/, $_, 2;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
open INPUTFILE,
"<", "template.ldif" or die $!;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
while (<INPUTFILE>) {<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$_ =~ s/varuserid/$number[0]/g;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
$_ =~ s/varpass/$number[1]/g;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
print OUTPUTFILE $_; <o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
close INPUTFILE;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
}<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
close OUTPUTFILE;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
close INPUTFILE2;<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b>Static Template File : template.ldif<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-Subscriber<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscriberID: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscriberBarringInd: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ChargingProfId: DefaultChargingProfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PrivacyIndicator: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-IsPsiContainer: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ChargingId: varuserid<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-PrivateUserID=varuserid@somedomain.com,HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-User<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PrivateUserID: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-RoamingAllowed: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-AllowedAuthMechanism: Digest<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-UserPassword: varpass<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-SubscriberServiceProfileId=varuserid@somedomain.com,HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-SubscriberServiceProfile<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscriberServiceProfileId: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ConfiguredServiceProfiles: tispan<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscribedMediaProfile:<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PhoneContext: somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-MaxSessions: 3<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-PublicIdValue=sip:varuserid@somedomain.com,HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-PublicIdentificationData<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PublicIdValue: sip:varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PrivateId: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscriberServiceProfileId: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-XcapAllowed: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ImplicitRegSetId: 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SessionBarringInd: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-IsDefault: TRUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-MaxNumberOfContacts: 4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
dn: HSS-PublicIdValue=tel:\+varuserid,HSS-SubscriberID=varuserid@somedomain.com,HSS-SubscriberContainerName=HSS-Subscribers,applicationName=HSS,nodeName=hssnodename<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
objectClass: HSS-PublicIdentificationData<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PublicIdValue: tel:+varuserid<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-PrivateId: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SubscriberServiceProfileId: varuserid@somedomain.com<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-ImplicitRegSetId: 1<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-SessionBarringInd: FALSE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-IsDefault: TRUE<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
HSS-MaxNumberOfContacts: 4<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b>Variable Values file : values.csv
<o:p></o:p></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
908502091001,Pass123456<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
908502091002,Pass123456<o:p></o:p></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><br /></b></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b>reference for ldiff options</b><o:p></o:p></div>
<br />
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
https://www.digitalocean.com/community/tutorials/how-to-use-ldif-files-to-make-changes-to-an-openldap-system<o:p></o:p></div>
Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com3tag:blogger.com,1999:blog-8577382522390458078.post-71034442806184479552012-09-21T12:33:00.002-07:002012-09-21T12:33:19.041-07:00Haftasonu Projesi - Çevreci ArabaKış geldi. Haftasonu evde yapılabilecek bir sürü oyun, oyuncak ve aktivite var.<div>
Bu hafta atık malzemelerden araba yapıyoruz. Aşağıdaki linkte video'yu bulacaksınız.</div>
<div>
Fotoğrafları paylaşırsanız sevinirim.</div>
<div>
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="http://2.gvt0.com/vi/A963BG3k_h4/0.jpg"><param name="movie" value="http://www.youtube.com/v/A963BG3k_h4&fs=1&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="http://www.youtube.com/v/A963BG3k_h4&fs=1&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<div>
<br /></div>
<div>
<a href="http://www.youtube.com/watch?v=A963BG3k_h4&feature=youtube_gdata_player" style="background-color: white; color: #1155cc; font-family: arial, sans-serif; font-size: 13px;" target="_blank">http://www.youtube.com/watch?<wbr></wbr>v=A963BG3k_h4&feature=youtube_<wbr></wbr>gdata_player</a>
</div>
<div>
<br /></div>
<div>
Tüm babalara çocuklarıyla iyi hafta sonları.</div>
<div>
<br /></div>
Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com0tag:blogger.com,1999:blog-8577382522390458078.post-91591294201014519452011-11-18T07:56:00.001-08:002011-11-18T08:16:24.798-08:00Yeni masallar<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Bir süredir ihmal ettim masalları yayınlamayı.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Dört tanesini aşağıda yayınlıyorum diğerleri de haftaya geliyor.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="background-color: #f6f6f6;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Bremen Mızıkacıları</span></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBtjAD-x9R3ZTsSbmSdbVDVJc56cllq_jwKFozqNlUor6BdtBJAI6oe5Z3OUCdL_XUU2RMv6RaNAYGenI-YfTQjzHb55RVtNE4OyAlHrPNO-PCICc8cfThzaXOdgdU8pnHvUack7JJCtI/s1600/BremenMizikacilari.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBtjAD-x9R3ZTsSbmSdbVDVJc56cllq_jwKFozqNlUor6BdtBJAI6oe5Z3OUCdL_XUU2RMv6RaNAYGenI-YfTQjzHb55RVtNE4OyAlHrPNO-PCICc8cfThzaXOdgdU8pnHvUack7JJCtI/s320/BremenMizikacilari.jpg" width="320" /></a></div>
<br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<br />
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/BremenMizikacilari.mp3">Bremen Mızıkacıları</a></span></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Caillou İlk Oyunum</span></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNt0qmAqxsQdMY9ZU3XJXuUzd05o-mZ0RNTB6G5pwzdNKkKoMD78ZaMIk25naioCDo-jh4wSV46Kcx1PA9Kgx_0aa0GJrqh9IZhtys1JTJoljUa5zJnTsvXugXb2QKmwseiqEdA6fBQU4/s1600/CaillouIlkOyunum.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNt0qmAqxsQdMY9ZU3XJXuUzd05o-mZ0RNTB6G5pwzdNKkKoMD78ZaMIk25naioCDo-jh4wSV46Kcx1PA9Kgx_0aa0GJrqh9IZhtys1JTJoljUa5zJnTsvXugXb2QKmwseiqEdA6fBQU4/s320/CaillouIlkOyunum.jpg" width="320" /></a></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
</div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<br /></div>
<div class="separator" style="background-color: #f6f6f6; clear: both; text-align: left;">
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/CaillouIlkOyunum.mp3">Caillou İlk Oyunum</a></span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Külkedisi</span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV7xYi6psWdgDBdb1jTPLBylI6GT_Vr0GGM3k9IQfoJZYwV5p3iSzG7E3lagOvTWOPQ1pF73AIDSRa9jrLr4uZgcRlh9iAsya9cZe8xyUfuSBTvNyQXe1RmScsXX41i2kURbAjnmjTJD4/s1600/Kulkedisi.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV7xYi6psWdgDBdb1jTPLBylI6GT_Vr0GGM3k9IQfoJZYwV5p3iSzG7E3lagOvTWOPQ1pF73AIDSRa9jrLr4uZgcRlh9iAsya9cZe8xyUfuSBTvNyQXe1RmScsXX41i2kURbAjnmjTJD4/s1600/Kulkedisi.jpg" /></a></div>
<div class="separator" style="clear: both;">
</div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both;">
<div class="separator" style="clear: both;">
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/Kulkedisi.mp3">Külkedisi</a></span></div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Şakacı Dino</span></div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVovQDSqUwOjxfM-pzsMqa8810k73HT2JEDc-mFiXykYn5egtquxOIpXLWgPd7HPTYemYuUGPwpr8KVoWDIbITJY2L8ZsL7L-FiLlM6LtVJSVTHscLj-QUGx4Ps-BRW1PX3FF3_SaTkr0/s1600/SakaciDino.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVovQDSqUwOjxfM-pzsMqa8810k73HT2JEDc-mFiXykYn5egtquxOIpXLWgPd7HPTYemYuUGPwpr8KVoWDIbITJY2L8ZsL7L-FiLlM6LtVJSVTHscLj-QUGx4Ps-BRW1PX3FF3_SaTkr0/s320/SakaciDino.jpg" width="224" /></a></div>
<div>
</div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></div>
<div class="separator" style="clear: both;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/SakaciDino.mp3">Şakacı Dino</a></span></div>
</div>
<div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
</div>
</div>
</div>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com034890 Pendik/Istanbul, Türkiye40.879326 29.25813540.8673205 29.238394 40.8913315 29.277876tag:blogger.com,1999:blog-8577382522390458078.post-59302056931512878332011-11-10T08:02:00.000-08:002011-11-10T08:04:16.950-08:00Rakun Kunkun<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Rakun kunkun bir çevreye duyarlılık hikayesi :)</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiacmvdak0PmELVPj6Xm2kyLC_yNppFC8dzaxh9X8mVJKZaTAmy8FyuZKdO-I9aYxRrlLF5MuR0G-mZL1YtalDrkS93MR9yhh9sogsEW0NXvjLyvF-DBY_cQZJ9gE__AhyphenhyphenUX565JkZ1d-I/s1600/RakunKunkun.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiacmvdak0PmELVPj6Xm2kyLC_yNppFC8dzaxh9X8mVJKZaTAmy8FyuZKdO-I9aYxRrlLF5MuR0G-mZL1YtalDrkS93MR9yhh9sogsEW0NXvjLyvF-DBY_cQZJ9gE__AhyphenhyphenUX565JkZ1d-I/s320/RakunKunkun.jpg" width="219" /></a></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="background-color: #f6f6f6; font-size: 13px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></span><br />
<span class="Apple-style-span" style="background-color: #f6f6f6; font-size: 13px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/RakunKunkun.mp3">Rakun Kunkun</a></span></span><br />
<span class="Apple-style-span" style="background-color: #f6f6f6; font-size: 13px;"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span></span>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com034890 Pendik/Istanbul, Türkiye40.879326 29.25813540.8673205 29.238394 40.8913315 29.277876tag:blogger.com,1999:blog-8577382522390458078.post-20705664051206927862011-11-08T14:59:00.000-08:002011-11-08T14:59:26.483-08:00Dinozor<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Dinozorlara Giriş I :)</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Artık dinozorlarla ilgili pek çok yeni şey biliyoruz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwuGuJlMR7OTqWW34D4qWLcebgeKBCd4uYgwpHx6S-nxe4r0LeE3OUuK23LLmKk6TVdt0kxLrn6YWtqfvRhpavAZbvivkfok9SfXpERUDkwmPOWSMGEuPW5PiY_rX8774-s1lY1BnxYMA/s1600/Dinozor.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwuGuJlMR7OTqWW34D4qWLcebgeKBCd4uYgwpHx6S-nxe4r0LeE3OUuK23LLmKk6TVdt0kxLrn6YWtqfvRhpavAZbvivkfok9SfXpERUDkwmPOWSMGEuPW5PiY_rX8774-s1lY1BnxYMA/s320/Dinozor.jpg" width="273" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://dl.dropbox.com/u/38124796/blog/Dinozor.mp3"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Dinozor</span></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<br />Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com034890 Pendik/Istanbul, Türkiye40.879326 29.25813540.8673205 29.238394 40.8913315 29.277876tag:blogger.com,1999:blog-8577382522390458078.post-30145501348656812742011-11-04T06:04:00.000-07:002011-11-08T15:00:07.450-08:00Mavi Çiçek<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masal konusunda her zaman text'e bağlı kalmıyoruz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Bazen de doğaçlama yapıyoruz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Hatta sipariş edilen kahramanları özenle yerleştiriyoruz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span><br />
<a href="http://dl.dropbox.com/u/38124796/blog/DogaclamaMaviCicek.mp3"><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Mavi Çiçek</span></a>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com034890 Pendik/Istanbul, Türkiye40.879326 29.25813540.8673205 29.238394 40.8913315 29.277876tag:blogger.com,1999:blog-8577382522390458078.post-5311704554044616192011-11-04T05:59:00.000-07:002011-11-08T15:00:46.569-08:00Cici Kızlar<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Cici Kızlar Müzik Yapıyorlar ve Cici Kızlar Hediye masallarını aşağıdaki linklerden dinleyebilirsiniz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZUjY7WQo5dcTE6dIFfGfA4W4pvIp5COnQJDhMu3r3lX9xCE39Fqjtn2KWf_oSDnemobNSA4Zr1vhxz1vKxoFNS4OszI-zBFPfHJ-9zcnmRfEGa_RmbPziJczRd3FXekM6m-ovTwL3c4/s1600/CiciKizlarMuzikYapiyorlar.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVZUjY7WQo5dcTE6dIFfGfA4W4pvIp5COnQJDhMu3r3lX9xCE39Fqjtn2KWf_oSDnemobNSA4Zr1vhxz1vKxoFNS4OszI-zBFPfHJ-9zcnmRfEGa_RmbPziJczRd3FXekM6m-ovTwL3c4/s320/CiciKizlarMuzikYapiyorlar.jpg" width="221" /></a></div>
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/CiciKizlarMuzikYapiyorlar.mp3">Cici Kızlar Müzik Yapıyorlar</a></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><br /></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCFHQyedZyXwb2ew_sWK43mhRqgQDkHYPO5LHIXkctrQro1BQTzfl2sr8ABZeRphAsijjBEAI5FgYH4L69uLfzL237mRL4iRKJb1EqQ3YYWZXqzK-5A0RBp7nHJcAyY_FiH_CQafEGpgA/s1600/CiciKizlarHediye.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCFHQyedZyXwb2ew_sWK43mhRqgQDkHYPO5LHIXkctrQro1BQTzfl2sr8ABZeRphAsijjBEAI5FgYH4L69uLfzL237mRL4iRKJb1EqQ3YYWZXqzK-5A0RBp7nHJcAyY_FiH_CQafEGpgA/s320/CiciKizlarHediye.jpg" width="221" /></a></div>
<br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span><br />
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif;"><a href="http://dl.dropbox.com/u/38124796/blog/CiciKizlarHediye.mp3">Cici Kızlar Hediye</a></span><br />
<br />
<br />
<br />Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com034890 Pendik/Istanbul, Türkiye40.879326 29.25813540.8673205 29.238394 40.8913315 29.277876tag:blogger.com,1999:blog-8577382522390458078.post-17327948351784376032011-10-31T11:31:00.000-07:002011-10-31T11:31:23.073-07:00Oyuncakçı Dükkanı<span class="Apple-style-span">Kızım Ada kendi odasında uyumaya başladığından beri çok istisnai durumlar hariç her gece masal okuyorum.</span><br />
<div>
<span class="Apple-style-span"><br />
</span><br />
<div>
<span class="Apple-style-span">Geçen hafta aklıma bu masalları kaydedip arşivlemek ve büyüdüğünde dinleyebileceği, paylaştığımız bu anları hatırlatacak anılar bırakmak istedim.</span></div>
</div>
<div>
<span class="Apple-style-span"><br />
</span></div>
<div>
<span class="Apple-style-span">Sonra da bu kayıtları iki satır yazı ve resim ekleyip blog halinde yayınlamak geldi aklıma.</span></div>
<div>
<span class="Apple-style-span"><br />
</span></div>
<div>
<span class="Apple-style-span">İşte ilki Oyuncakçı Dükkanı masalımız :)</span><br />
<span class="Apple-style-span"><br /></span></div>
<div>
<span class="Apple-style-span">Bizi takip etmeye devam edin... </span><br />
<span class="Apple-style-span"></span><br />
<div>
<span class="Apple-style-span">Masalı aşağıdaki linke tıklayarak dinleyebilirsiniz.</span><br />
<span class="Apple-style-span"><span class="Apple-style-span"><a href="http://dl.dropbox.com/u/38124796/blog/OyuncakciDukkani.mp3">Oyuncakçı Dükkanı</a></span></span></div>
<div>
<span class="Apple-style-span"><br /></span></div>
</div>
<div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikGZmVEOg6kodD49WWa0oaoWgoyEqu7I8qf8WAQmrIpNV1FWxJjQAyzyqd_6HEWM5nhCSLm2xiSFNw5ii5HOEeAcQHYj7jD9G-29o_n6vLk2u3pl2docHwmxZHkI6cyeIYJoGF7UWQKNE/s1600/OyuncakciDukkani.jpg" style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" id="BLOGGER_PHOTO_ID_5669694455190304050" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEikGZmVEOg6kodD49WWa0oaoWgoyEqu7I8qf8WAQmrIpNV1FWxJjQAyzyqd_6HEWM5nhCSLm2xiSFNw5ii5HOEeAcQHYj7jD9G-29o_n6vLk2u3pl2docHwmxZHkI6cyeIYJoGF7UWQKNE/s320/OyuncakciDukkani.jpg" style="display: block; height: 200px; margin-bottom: 10px; margin-left: auto; margin-right: auto; margin-top: 0px; text-align: left; width: 200px;" /></a></div>
</div>
<div>
<div class="separator" style="clear: both; text-align: -webkit-auto;">
<br /></div>
<br /></div>
<span class="Apple-style-span"><br />
</span>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com134890 Pendik/Istanbul, Türkiye40.879326 29.2581350000000388.3224145 -30.507489999999962 73.4362375 89.023760000000038tag:blogger.com,1999:blog-8577382522390458078.post-89187269583858233782011-10-05T04:14:00.000-07:002011-10-05T04:50:03.231-07:00Windows 8 at First Sight<div><div><div><div><font face="arial">You might have noticed Microsoft has announced the developer preview of the new Windows 8 operating system.</font></div><div><font face="arial"></font><br /></div><div><font face="arial">Probably I am one of the pioneers who dare to test the operating system in daily life.</font></div><div><br /><br /><font face="arial">As a netbook user all I need is to boot my netbook and connect Internet then VPN. Most of the time I only use RDP client to connect my virtual pc located on my companies private cloud or my laptop at office (a heavier laptop which I hate to carry with me.)<br /></font></div><div> </div><div><font face="arial">RDP client was already in the start panel. I just installed the connection manager from my 3G mobile provider, configured for VPN, and installed Office 2010 from microsoft.<br /></font> </div><div><font face="arial">And after just 30 minutes nearly everything was ready. </font></div><div><font face="arial">It worked like a charm 1 boot 2 connect 3 remote :)</font></div><div><font face="arial"></font><br /> </div><div><font face="arial">Here are My First Impressions</font></div><div><font face="arial"></font> </div><font face="arial"></font></div><div><div><font face="arial">-Fast boot (11 seconds)<br />-Fancy and handy start pane (requires a touch panel tablet investment)</font></div><font face="arial"><u><font style="color: rgb(0, 102, 204);"></font></u></font><font face="arial"><div><br /></div><img id="BLOGGER_PHOTO_ID_5659969727293984034" style="margin: 0px auto 10px; width: 400px; height: 250px; text-align: center; display: block; cursor: pointer;" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTts_U_5jfV6pEYQnH9csbMkPYNPuPO3VTzXI7XangDj2GOkFvxfVWwwkPXSTCGGj0K30aXE6AEZqbqwsemiuxlma-pmwLX8cnCG5IzYYomRb97EwB2UQT6QozRKAvUnpfkbcq1XrWImk/s400/start_here.png" /><u><font style="color: rgb(0, 102, 204);" face="Georgia"></font></u><br />-Smart features (eg in copy window)<br />You can Pause while copying and see the history of the transfer speed.</font></div><div><div> <img id="BLOGGER_PHOTO_ID_5659968247109292786" style="margin: 0px auto 10px; width: 320px; height: 206px; text-align: center; display: block; cursor: pointer;" border="0" alt="" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSAI3ZkDr0rvFauo9_8LA9sIgHHmYZC3B7A6HUSueCVVmPMoX1WDzXkELLfXqgfSkkDXkF30dnvHKZxiQwEfQ_ShVz91QlfLSwbS7zEZoTpy3aR_TFhVZ8VfTUQxK9YmLR2oEjNLvMgeA/s320/copy_window.png" /><u><font style="color: rgb(0, 102, 204);"><br /></font></u></div><div><font face="arial"> As far as I see Microsoft will be ready for tablets in 2012.</font></div><div> </div><div> </div></div></div></div>Huseyin NAZIRhttp://www.blogger.com/profile/16327644228209670522noreply@blogger.com0tag:blogger.com,1999:blog-8577382522390458078.post-45117557239491996632010-07-19T13:09:00.000-07:002010-07-19T17:34:31.596-07:00Automated Test CallsThe most effective way of monitoring a Telecommunication system is placing regular test calls.<br /><br />I have got tired of placing manuel test calls. Thus I have automated the test call process for SIP devices.<br /><br />1. Create static gateway accounts for the poller IP address on the softswitch side.<br /><br />2. Create a route for the test number and return a spesific reject reason code for checking success. In my case I used Busy (486). Do this in your outmost softswitch to check everything is ok on your system.<br /><br />3. Download and compile sipsak utility for handling sip session.<br /><br />wget http://download.berlios.de/sipsak/sipsak-0.9.6-1.tar.gz<br />gunzip sipsak-0.9.6-1.tar.gz<br />tar xvf sipsak-0.9.6-1.tar<br />cd sipsak-0.9.6<br />./configure<br />make<br />make install<br /><br />4. Create a perl script for building INVITE for sipsak. gencall.pl in my example. You may need to change this invite message according to your softswitch if you have problems.<br /><br />#!/usr/bin/perl<br /><br />print "INVITE sip:".$ARGV[0]."@".$ARGV[1]." SIP/2.0\n";<br />print "From: test <sip:test@".$ARGV[1].">;tag=2764495678\n";<br />print "To: <sip:".$ARGV[0]."@".$ARGV[0].">\n";<br />print "Contact: <sip:test@local_ip_address_here:5060>\n";<br />print "Call-ID: B528090B-8FB8-4C26-A64E-155".int(rand(10000))."@local_ip_address_here\n";<br />print "CSeq: ".int(rand(10000))." INVITE\n";<br />print "Max-Forwards: 70\n";<br />print "Content-Type: application/sdp\n";<br />print "User-Agent: TestAPP\n";<br />print "Content-Length: 208\n";<br />print "\n";<br />print "v=0\n";<br />print "o=test 369949494 369949510 IN IP4 local_ip_address_here\n";<br />print "s=TestAPP\n";<br />print "c=IN IP4 local_ip_address_here\n";<br />print "t=0 0\n";<br />print "m=audio 8000 RTP/AVP 18 101\n";<br />print "a=rtpmap:18 G729/8000\n";<br />print "a=rtpmap:101 telephone-event/8000\n";<br />print "a=fmtp:101 0-15\n";<br />print "a=sendrecv\n";<br /><br />5. Create a testcall script that will execute in every 10 minutes and send you an email if less than %50 asr. testcall.pl in my example.<br /><br />#!/usr/bin/perl -w<br /><br /># Insert your constants here<br /><br />my $MAILSENDER='testcall@nazir.biz'; # Insert your mail Sender here<br />my $SENDTO='huseyin@nazir.biz'; # Insert mails to send the report here<br /><br />my $dialed_number='901111234567';<br />my $servers_to_check;<br />$servers_to_check[1]='server1_ip_address';<br />$servers_to_check[2]='server2_ip_address';<br />$servers_to_check[3]='server3_ip_address';<br />$servers_to_check[4]='server4_ip_address';<br /><br />$max_servers=4;<br /><br />my $CLLres='';<br /><br /><br />sub send_call<br />{<br /> #print "./gencall.pl ".$_[0]." ".$_[1]." | sipsak -vvv -f - -s sip:".$_[0]."@".$_[1]." >callres\n";<br /> open (CLL, "|/testcall/gencall.pl ".$_[0]." ".$_[1]." | /usr/local/bin/sipsak -vvv -f - -s sip:".$_[0]."@".$_[1]." >callres\n");<br /> close (CLL);<br /> open ($CLLres, 'callres');<br /><br /> my $success=0;<br /> while (<$CLLres>)<br /> {<br /> #print $_;<br /><br /> if (rindex($_,'486') ne -1)<br /> {<br /> $success=1;<br /> #print "\n\n\n****SUCCESS****\n\n\n";<br /> }<br /> }<br /><br /> close $CLLres;<br /> system ("rm callres\n");<br /><br /> return $success;<br />}<br /><br />for($j = 1; $j <= $max_servers; $j++)<br />{<br /> my $check=0;<br /><br /> for($i = 1; $i < 5; $i++) {<br /> $check=$check+send_call($dialed_number, $servers_to_check[$j]);<br /> }<br /><br /> my $checkfile="/tmp/check_".$servers_to_check[$j];<br /><br /> if ($check>1)<br /> {<br /> #remove file<br /> unlink($checkfile);<br /> print "\n\n\n****SUCCESS****\n\n\n";<br /><br /> }<br /><br /><br /> if ($check<2 && !(-e $checkfile))<br /> {<br /><br /> #create file<br /> open FILE, ">", $checkfile;<br /> print FILE ".";<br /> close FILE;<br /><br /> print "Sending Mail\n";<br /><br /> open (MAIL, "| /usr/sbin/sendmail -t");<br /><br /> print MAIL "To: $SENDTO\n";<br /> print MAIL "From: $MAILSENDER\n";<br /> print MAIL "Subject: SIP Server Failure : ".$servers_to_check[$j]."\n\n";<br /><br /><br /> print MAIL "Please Check the server to avoid problems\n\n";<br /> print MAIL "Host Information : ".$servers_to_check[$j]."\n\n";<br /><br /> close (MAIL);<br /><br /> }<br />}<br /><br />6. create a cron job to execute a test call regularly. Every 10 minutes in my example.<br /><br />crontab -e<br />*/10 * * * * /testcall/testall.plAnonymousnoreply@blogger.com0