‏نمایش پست‌ها با برچسب Technical. نمایش همه پست‌ها
‏نمایش پست‌ها با برچسب Technical. نمایش همه پست‌ها

۱۳۹۳ فروردین ۲۹, جمعه

شرکت قدیم

اینطور که من فهمیدم شرکتی که من قبلا توش کار میکردم واسه یکی از بخشها نیرو لازم داره و چند جا آگهی استخدامش رو دیدم.

یه سری هم بچه‌ها سوال داشتن که تو شرکت اصلا چیکار میکنن و اینا، که خوب گفتم به عنوان یکی از اعضای سابق میتونم اینجا بنویسم بکله بروبکز استفاده کردن.

البته باید متذکر بشم که من از آگوست ۲۰۱۱ به اینور تو اون شرکت نبودم دیگه، پس اطلاعاتم اصلا به روز نیست، ولی دلیلم برای در اومدن این بود که داشتم از ایران در میومدم، نه اینکه شرکت چیز خیلی کوفتی بود.

این شرکت یه موقعی یه تیم تو شرکت کیش‌ویر بود (که الان شده توسن) که کارش تحقوق و توسعه بود. چند نفر بودیم که هرچی تکنولوژی و علم به نظرمون به درد میخورد رو میرفتیم سراغش. هدف هم این بود که کشف تقلب تو داده‌های بانکی کنیم.

من شخصا کارم رو با خوندم یه کتاب Data Mining شروع کردم. یعنی ۲ یا ۳ نفر بودیم که کتاب رو تقسیم کردیم و خوندیم. یه سری دیگه بچه‌ها هم کارهای بیشتر فنی می‌کردن. مثلا با Oracle یا Microsoft Solutions سعی میکردن که داده‌ها رو خوب نشون بدن. از اون ۳ نفر ۲ تامون الان ایران نیستیم و اون یکی از مدیرعامل شرکتیه که الان هست.

بعد که پیش رفتیم یه کم پروژه‌ها معلومتر شدن و کم‌کم گروه‌ها شکل گرفتن و شرکت هم به عنوان یه شرکت دختر از کیش‌ویر جدا شد.

من مدتی تو تیمی کار کردم که الان داره نیرو استخدام می‌کنه، که بهش میگفتیم OI. اونجا هدف این بود که تراکنش‌ها رو ار سروری که تراکنش‌ها رو real time داره پروسس میکنه بگیریم و زیر ۱۰ میلی‌ثانیه بهش جواب بدیم که ریسش این تراکنش چقدره. بنابر‌این شروع کردیم که درست کردن یه سری ساختمان داده که کارمون رو راه بندازه، مثلا از یه خاصیت احمقانه تو شماره کارت‌های بانکی استفاده کردیم که دسترسی به داده رو تو (1)O داشته باشیم. بعد یک سری کار آماری کردیم که رفتار مشتریها و ترمینالها و کارمند‌های بانک رو در بیاریم و پارامترهای توزیع‌های احتمالشون رو ذخیره کنیم. بعد هر تراکنش که میاد نگاه میکنیم ببینیم این تراکنش چقدر محتمل هست و ریسک در بیاریم. یه سری هم کار با Neural Networks, Kernel Methods, Decision Trees کردیم که یادم نمیاد چیا قرار بود بره تو محیط عملیاتی چیا نه. ولی خوب هر کدوم از الگوریتم‌ها اگه یه چیز بهترش پیدا میشد جایگزین میشد طبیعتا. همه مدل‌ها هم هر چند وقت یه بار باید پارامترهاشون با داده‌های جدید به‌روز میشد.

تو تیکه فنی هم اول قرار بود از آپاچی استفاده کنیم واسه گرفتن تراکنش‌ها، دیدیم یواشه، یکی از بچه‌‌ها یه چیزی تو C به جا اون گذاشت که خوب پایدار بود و سریع. پشت سیستم هم یه اوراکل بود که یه پروسس دیگه اون تو مینوشت و واسه خودش بافر خودش رو داشت، چون اوراکلی که داشتیم اون موقع یه چیزی تو مایه‌های ۹ میلی‌ثانیه فقط طول میکشید بنویسه تو جدول یا یه همچین چیزی.

تا جایی که یادم میاد اون موقع که من داشتم در میومدم، یه تیم رو قسمت داده‌کاوی کار میکرد، یه تیم پیاده‌سازی و عملیاتی کردن قضیه. تو قسمت عملیاتی همه‌چی ++C بود و داده‌کاوی تو جاوا و اراکل و این چیزا.

حالا چرا سایت شرکت با مایکروسافته؟ چون اون یکی تیم که مسئول این کاره، با ابزارهای مایکروسافت کار میکنه.

آیا کدهایی که زده میشه متن‌بازه؟ نه لزوما، ولی گاهی حتا تو تیم دات‌نتی یه ماجول‌هایی رو گیت‌هاب میره.

فضای شرکت چطوری بود؟ تو همین بلاگ کلی خاطره هست در موردش. پست‌هایی که بعد از مهر یا آبان ۸۸ در مورد شرکت باشه یعنی مال این شرکته فکر کنم. اینم گوگلش.

ویرایش:
یکی اینکه ظاهرا وبسایت شرکت اصلا الان دیگه دست بچه‌های شرکت نیست و یه شرکت دیگه به نام صفرویک مسئولشه. من شخصا هیچوقت سایت شرکت رو دوست نداشتم و هنوزم به نظرم چیز خیلی خیلی داغونی میاد.

یکی دیگه اینکه در حال حاضر تنها ماژول‌هایی که رو گیت‌هاب رفتن از طرف تیم UI بوده که با دات‌نت و محصولات مایکروسافتی کار میکنن. اینجا میشه دید ماژول‌ها رو.

یکی دیگه اینکه آخرین تیمی که من یه طورایی مسئولش بودم همین تیم UI بود، و تمام کارها رو خیلی مرتب با Agile پیش می‌بردیم و فکر میکنم که هنوزم میبرن. نکتش این بود که این کار باعث میشد معمولا تیم سر زمان‌بندی‌هاش باشه، چون واقعی بودن، ولی بقیه تیم‌ها و رئیس من خیلی از این سیستم خوششون نمیومد. ولی ما کار خودمون رو می‌کردیم. از نظر مدیریتی و سیستم کار کردن اون تیم مورد علاقه من بوده و هست. ولی خوب با محصولات مایکروسافت کار می‌کنن دیگه، واسه یکی مثل من و خیلی‌های دیگه که وقتی کد سی و سی‌پلاس‌پلاس می‌زنن آبشون میاد جذابیت کمتری داره، ولی کار توش خیلی خیلی لذت‌بخش بود برام، هرچند فکر کنم یک خط کد هم اونجا نزدم.

نکته آخر اینکه همون‌طور که اول قضیه گفتم، من نزدیک شاید ۳ سال هست که اونجا نیستم، پس میتونه خیلی تغییر کرده باشه.

۱۳۹۱ دی ۲۴, یکشنبه

آمار ویزیت بلاگ

داشتم آمار ویزیت از بلاگم رو نگاه می‌کردم که دو نکته جالب نظرم رو جلب کرد.

یکی اینکه از ایران بیننده داشتم!!! مگه اینکه از IPM یکی دیده باشه که بعید می‌دونم، قاعدتا دوستان فیلترچی و حکومت‌چی بی‌کار تشریف دارن و یه دیدی هم اینوری میزنن.

یکی دیگه اینکه مقدار زیادی از بازدید داره از روسیه میاد. من نه دوستی اونجا دارم نه روسی می‌نویسم. به نظر میاد که بیشتر وی‌پی‌ان‌هایی (VPN) که دوستان تو ایران استفاده می‌کنند سرورشون تو روسیه‌ست. همچین حس امنیت نمی‌کردم اگه ایران بودم و یه سروری تو روسیه همه اطلاعات وب‌گردی من رو می‌داشت.

۱۳۹۱ آذر ۶, دوشنبه

Debian on my new Samsung Series 9 13.3" -- NP900X3C

I got this new laptop and I've installed Debian on that. I had to do some tricks to make it work fine. I've also used help from many other blog posts like here, here, and here.

USB Booting:
I had to disable fast bios boot and press F10 to get the boot menue. Setting the priorities in BIOS didn't work. This thread helped a lot. It is also reported that the right USB 2.0 port works fine in contrast to the left USB 3.0 port.

Kernel:
Debian kernel on Wheezy at this point is too old for this laptop. The brightness buttons does not work due to a known bug in kernel which is fixed nowadays and that's why I migrated to liquorix kernel. The other reason was that the original kernel which was 3.2, used to just hang and go to not responding mode once a while. Right now there is a problem with rtl firmwares and the liquorix new releases and I'm trying to figure out how to workaround/fix it.
Edit: installing firmware-realtek fixed the problem.

Touchpad & Synaptics:
I also had to tweak synaptics settings a lot, and here is the result. I also had to prevent gnome from changing these setting which I got from here, by this (Quoted):

Gnome settings daemon may override existing settings (for example ones set in xorg.conf.d) for which there is no equivalent in any of the graphical configuration utilities. It is possible to stop gnome from touching mouse settings at all:
  1. Run dconf-editor
  2. Edit /org/gnome/settings-daemon/plugins/mouse/
  3. Uncheck the active setting


For my future reference, here is my synaptics config, put in /etc/X11/xorg.conf

Section "InputClass"
        Identifier      "Clickpad"                      # required
        MatchIsTouchpad "yes"                           # required
        Driver          "synaptics"                     # required
        Option          "SHMConfig"             "1"
        Option          "MinSpeed"              "0.8"
        Option          "MaxSpeed"              "1.2"
        Option          "AccelFactor"           "0.15"
        Option          "TapButton1"            "1"
        Option          "TapButton2"            "3"     # multitouch
        Option          "TapButton3"            "2"     # multitouch
        Option          "VertTwoFingerScroll"   "1"     # multitouch
        Option          "HorizTwoFingerScroll"  "1"     # multitouch
        Option          "VertEdgeScroll"        "0"
        Option          "HorizEdgeScroll"       "0"
        Option          "CoastingSpeed"         "8"
        Option          "CornerCoasting"        "1"
        Option          "CircularScrolling"     "1"
        Option          "CircScrollTrigger"     "7"
        Option          "EdgeMotionUseAlways"   "0"
        Option          "ClickPad"              "1"
        Option          "LockedDrags"           "1"
        Option          "LockedDragTimeout"     "5000"
        Option          "FingerHigh"            "14"
        Option          "FingerLow"             "10"
        Option          "FingerPress"           "255"
        Option          "PalmDetect"            "1"
        Option          "PalmMinWidth"          "10"
        Option          "PalmMinZ"              "200"
EndSection

Also to prevent accidental clicks while typing, have this in /etc/X11/Xsession.d/98x11-syndaemon (got it from here):
/usr/bin/syndaemon -d -t -k

Wireless:
This package contains the wireless firmware on this laptop: firmware-iwlwifi

Screen Brightness:
If you don't want to install liquorix kernel but wish to be able to change your screen brightness, this script might help (need to be su):
#!/bin/sh
echo $1 > /sys/class/backlight/acpi_video0/brightness

Keyboard Backlit:
Initially buttons do not work, but this helps (need to be su):
#!/bin/sh
echo $1 > /sys/devices/platform/samsung/leds/samsung\:\:kbd_backlight/brightness
FN Keys:
Alternatively you can make FN keys handle the keyboard backlit, wireless, performance mode, and battery life extender for you. Here is the page I used to have them working; but some changes needed to be applied for my preferences and hardware.
One thing is my keyboard is input/event0, and not input/event4. You can find your keyboard using /lib/udev/findkeyboards. Another thing is my FN+F11 code is 0xB3. I also changed and added some scripts to have notification about current status of what has been changed.
Okay, now to make it short and simple, here is the report of what I've done, and you can read the referenced page for more information.
My /lib/udev/keymaps/samsung-other file is like this:

0x74 prog1 # User key
0x75 www
0x78 mail
0x82 switchvideomode # Fn+F4 CRT/LCD (high keycode: "displaytoggle")
0x83 battery
0x84 prog1
0x86 wlan
0x88 brightnessup
0x89 brightnessdown
0xB1 prog2
0xB3 prog3 
0xB4 wlan 
0xF7 f22 
0xF9 f23 
0x96 kbdillumup
0x97 kbdillumdown
0xCE prog1 
0xD5 wlan 
Some of them are extra, I just didn't remove them. Then here it comes /lib/udev/keymaps/force-release/samsung-other file:
0x82
0x83
0x84
0x86
0x88
0x89
0xB3
0xF7
0xF9
0x96
0x97
0xCE
0xD5
Then here is what I've added to the /etc/sudoers file:
Cmnd_Alias SAMCTL = /home/adrin/bin/samctl.sh batt, \
            /home/adrin/bin/samctl.sh perf, \
            /home/adrin/bin/samctl.sh wlan
Defaults!SAMCTL !requiretty
adrin    ALL=(ALL)   NOPASSWD: SAMCTL
Remember to change "adrin" to your username. Then I have these scripts all in /home/adrin/bin/ path; again remember to change all paths to your correct home folder, or anywhere else you want. Now you might need a reboot to have the keys working, and then add three commands as Custom Shortcuts in gnome3 GUI tool "Keyboard -> Shortcuts -> Custom Shortcuts". I assigned FN+F1 to battery life extender (/home/adrin/bin/samctlbatt.sh), FN+F11 to performance mode changed (/home/adrin/bin/samctlperf.sh), and FN+F12 to WLAN status switcher (/home/adrin/bin/samctlwlan.sh).


Power Consumption:
install laptop-mode-tools
Here is a good tutorial on power management of this laptop and I should remember to use powertop whenever I want more battery, and hit enter on those suggestions to switch their status to Good.

For my own future reference this part is an exact quotation from the same place:


How to get longer battery life

As I said: install powertop. It can even tell you what's drawing how much energy (although this seems not too reliable). Powertop can enable a bunch of power saving options which must be configurable somewhere else too but I haven't figured that out for each. Start it, go to the right-most page and use the 'enter' key to enable them. They seem to stick mostly across reboots but not all of them do so use it whenever you need the battery life. Make sure especially to enable powersaving on the USB channels, one has the webcam which alone can draw 2-3 watts according to powertop.

Second, use the 'silent' performance_level. Set it by echo-ing 'silent' to '/sys/devices/platform/samsung/performance_level'. See more below. In my experience, the laptop is plenty responsive with the CPU speed capped at 800 mhz - as long as you do nothing too fancy.

Third - as you probably won't use it (much), disable the LAN port. Also uses quite some power according to powertop (although I doubt it's accuracy in this, it won't hurt). You can do this in the Bios of the system.

Fourth, enable power saving for the video card by going to Boot Loader in YaST, edit the boot loader options and add this after"Optional Command Line Kernel Parameter" (or editing grub(2) by hand if you're on a less easy distro):
    i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 acpi_backlight=vendor
See phoronix for more info on these. The acpi_backlight=vendor makes sure the laptop uses intel's backlight interface which goes up and esp down far further than the normal one. It does sometimes lead to quirky behavior so if it doesn't work for you, remove it.

I appreciate his work. There is a problem with setting acpi_backlight=vendor. It seems that intel uses a different range as brightness value, it's not between 0 and 100 anymore. It can be literally 0, which means the display is turned off, and the maximum on my system is 4648. Hence, when you decrease the brightness using keyboard, once it gets bellow 100, you can not increase it again. This command then might help (0 <= N <= 4648):
#!/bin/sh
echo $1 > /sys/class/backlight/intel_backlight/brightness

Debian Related (not the hardware):
Mostly for my own future reference.

Fonts:
Independent of this laptop, this package causes problems on my fonts, removed it: ttf-mscorefonts-installer

sources.list:
Right now, my sources.list is like this:
#

# deb cdrom:[Debian GNU/Linux wheezy-DI-b3 _Wheezy_ - Official Snapshot amd64 NETINST Binary-1 20121012-13:45]/ wheezy main

#deb cdrom:[Debian GNU/Linux wheezy-DI-b3 _Wheezy_ - Official Snapshot amd64 NETINST Binary-1 20121012-13:45]/ wheezy main

deb http://mirrors.ece.ubc.ca/debian/ wheezy main non-free contrib
deb-src http://mirrors.ece.ubc.ca/debian/ wheezy main non-free contrib

deb http://security.debian.org/ wheezy/updates main non-free contrib
deb-src http://security.debian.org/ wheezy/updates main non-free contrib

## Liquorix Kernel by damentz http://www.liquorix.net/ .
# Secure Apt: apt-get install '^liquorix-([^-]+-)?keyring.?'
# Latest "stable" kernel
deb http://liquorix.net/debian/ sid main
# RC/Beta kernels
# deb http://liquorix.net/debian/ sid main future

# sudo wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
#deb http://dl.google.com/linux/talkplugin/deb/ stable main

۱۳۹۱ آبان ۷, یکشنبه

BitCoinMiner

بالاخره تونستم این نرم‌افزارها که تو سیستم بیت‌کوین کار انجام می‌دن رو بالا بیارم.

قسمت سختش این بود که چیزایی که لازم هست برای اینکه از کارت گرافیکی به عنوان پروسسور استفاده کنم رو پیدا و نصب کنم، چون بار اولم بود. وسطش مجبور شدم سیستم عاملم رو از فدورا به دبیان تغییر بدم چون یه چیزایی با هم سازگار نبودن و خستم کردم. البته دبیان نسخه پایدار رو هم نصب نکردم، نسخه تست هست که به نظر کاملا پایدار میاد.

خلاصه الان دارم با استفاده از کارت گرافیکیم کار رو انجام می‌دم، باید ببینم چقدر طول می‌کشه که یه چیزی گیرم بیاد. یه مدتی کار کنه ببینم چیزی در میاد واقعا یا نه.

تفریح خوبی بود و برای ۲ روز وقتم رو گرفت.

۱۳۹۰ دی ۲۷, سه‌شنبه

نافشرده‌سازی

یعنی ویندوز و مک مسابقه دارن در راستای اینکه کاربر رو احمق فرض کنند.

توی مک اگه یک فایل فشرده رو دانلود کنید، همون موقع که دانلود می‌شه بازش می‌کنه و باز شدش رو نگه می‌داره و شما اثری از فشرده فایل نمی‌بینید.

یه کار دیگه هم که می‌کنه اینه که اگه یک فایل داشته باشید که ۳ بار فشرده شده باشه، کافیه اشتباها روی اون کلیک کنید که هر ۳ لایه رو شروع کنه به باز کردن.

البته خیلی خوشحالم که حداقل ترمینالش بعد از مقادیر متنابهی دست‌کاری و تنظیمات تقریبا شبیه ترمینال دوست برادر لینوکس خودمون می‌شه.

۱۳۹۰ آبان ۲۳, دوشنبه

Segmentation Fault


اولین بار برنامه رو اجرا میکنی و انتظار هم نداری که چیزی غیر از segmentation fault ببینی. اما وقتی gdb می‌کنی چیزی می‌بینی که پوزت می‌خوره:

(gdb) bt
#0 0x000000000040245a in Graph::operator== (this=0x0, other=...) at graphprocess.cpp:154
#1 0x000000000040248f in Graph::operator!= (this=0x0, other=...) at graphprocess.cpp:159
#2 0x00000000004035ac in SuperGraph::add_simple_edge (this=0x7fffffffde40, a=..., b=..., weight=13.0448) at graphprocess.cpp:354
#3 0x00000000004018c0 in main (argc=3, argv=0x7fffffffe0d8) at graphprocess.cpp:524

و در این لحظه بوزت می‌خوره که چطوریه که تابع کلاس رو اجرا کردی اما کلاس خودش نال بوده؟
به قول علیرضا اگه کلاس null بوده تابع عمه کلاس رو اجرا کردی؟

البته کاشف به عمل آمد که انگاری یه طوریایی داره اپراتور رو استاتیک در نظر میگیره. ولی بسی خندیدیم.

۱۳۹۰ شهریور ۳۱, پنجشنبه

reverse ssh tunneling

It's obvious that I need to connect to my computer at work, from my computer at home.

The problem is that the lab computer is behind a firewall in a NAT. They provide us a web based interface to access our computers which is awful.

A naive idea is that to run an agent on the lab computer to hook some file on the web, read commands from there, and place results somewhere there. But there should be a way in open source world to do that easier. I was sure that guys did that before.

So I googled "reverse ssh to a computer on a nat". That was the first thing which I could search for. And that was really the answer. "Reverse SSH Tunneling" is the way you can do that. Then I used this page.

But I used my own computer at home to work as server. Yes I did a port forwarding on my router which is always alive. But I don't want my home computer be on all the times. So I have to find a way to make sure that the line is up even there is a disconnection for whatever reason; even restarting my home computer.

Googling something like "automatic ssh reconnect" yields to the solution. I choose this page and saved it as a script on my lab computer. So I run it under a terminal when I turn on my lab computer. I couldn't give it to "at" command. I don't know why it didn't work but that works for me.

The last thing is that I want ssh to be done without any password requirement. So I googled "automatic ssh login" and used this page for that. The last problem was that I already generated a private key for myself and set a password for that. Now I want to remove that password so that the ssh is done completely automatic.

So this is what I googled: "how to remove password from generated private key". And using this page I removed the password from my private key and replaced the new one with the old one.

OK, let's go home and work from there ;)

۱۳۹۰ شهریور ۲۸, دوشنبه

rapidbaz

یکی از راه‌هایی که از جاهایی که می‌شه فایل آپلود کرد فایل بگیری اینه که از rapidbaz استفاده کنی. اینجا، یعنی در مملکت کفر، امتحان کردم، اینکه بدی اون برات بگیره به صرفه نیست. چون دانلود کردن فایل با یک کانکشن از خود این سایت‌ها به صورت ساده سریع‌تره :ی

آقای رپیدباز خیلی خوبه ولی خوب پهنای باند سرورهاش اصلا زیاد نیست. البته برای اینترنت نداشته ایران خوبه.

هااا نمیدونم چرا به رپیدباز گفتم آقا. منظوری نداشتم.

۱۳۹۰ شهریور ۲۵, جمعه

Multiple Answers in Dynamic Programming

I was to code a dynamic programming to find a solution to a problem. That was straight forward until they wanted me to output multiple best solutions. At first I tried to solve if using that dynamic table but then I modeled the problem into a graph.

The problem was though modeled as k-shortest paths in a directed acyclic graph (DAG) which is well studied between graph algorithms designers.

Finally I decided to use this "Finding k shortest paths" paper by Eppstein and existing source codes. Amazing, I completely satisfied and enjoyed reading the paper.

۱۳۹۰ تیر ۱۸, شنبه

gnome shell weather indicator

I needed weather indicator for my Gnome3 desktop. But I couldn't compile gnome-shell-extension-weather on my machine. So I tried http://fpmurphy.com/gnome-shell-extensions/weather-1.1.tar.gz. This one needed an API key from http://www.worldweatheronline.com. I got it, but in the README file it is mentioned that I should provide a US ZIPCODE.

After a while I found that instead of providing a ZIPCODE, I can set ZIPCODE to "Tehran" and that worked well for me.

Now I have a weather indicator/forecast for my Gnome3 desktop.

۱۳۹۰ تیر ۱۱, شنبه

worldcommunitygrid.org

خوبه حالا احساس نمی‌کنم که از لپ‌تاپم خوب استفاده نمی‌کنم. :)

رفتم اینجا عضو شدم و دارم پروژه‌های این بندگان خدا رو اجرا می‌کنم.

اینطوریه که شما عضو که می‌شید، یک برنامه کوچیک می‌گیرید و اجرا می‌کنید اون رو. بعد می‌رید می‌گید که من می‌خوام تو فلان پروژه‌ها باشم. اون برنامه هم براساس اینکه چه مقدار کامپیوتر شما منابع آزاد داره، ازش استفاده می‌کنه و نتایج رو برای سرور میفرسته. خیلی سادست. شاید یک حداقل کاریه که میشه واسه علم کرد.

۱۳۹۰ اردیبهشت ۲۹, پنجشنبه

twitter + empathy

I used to the twitter plugin for the pidgin. Actually I used to pidgin. I think it's been for 2 releases that Fedora replaced pidgin with empathy as default IM. I didn't use empathy since this last release of Fedora 15. The integration of empathy with GNOME 3 seduces me to use that; but it doesn't have a twitter plugin.

After googling a litter I found here which can be used to communicate with twitter server using my own gtalk account. It's better than the old pidgin plugin because I don't have to have an extra account enabled in my IM.

Cool.

۱۳۸۹ دی ۲۴, جمعه

Home Work

امروز می‌خواستم تو خونه کار کنم. رفتم شرکت و پورت‌های لازم رو برای دسترسی به سرورم آماده کردم. بعد اومدم خونه و شروع کردم به کار. واسه یه کار دیگه لازم داشتم که به یک vpn وصل باشم. همه چیز خوب بود اما سرعت vpn کم بود و ارتباط من با سرور رو مختل میکرد. بعد به این موجود با شعور گفتم بسته‌های مربوط به سرور رو از vpn نفرسته که البته یه کم اذیت کرد. اما آخرش قانع شد که انجام بده. حالا حسابی خوشحالم :ی

۱۳۸۹ آذر ۱۳, شنبه

n900

امروز کلی با گوشیم حال کردم. شبکه GSM فقط یکی از شبکه‌هایی هست که گوشیم ازش زنگ می‌خوره. به همراه یه SIP و یک gtalk و یک skype خیلی جالب می‌شه قضیه. یهو گوشیت که زنگ می‌خوره هیچ ایده‌ای نداری که از کدوم طرف داره زنگ می‌خوره. ولی خوب بود. کلی چسبید بهم.

۱۳۸۹ آبان ۱۰, دوشنبه

AT vs. ATX


امروز یهویی یاد کیس‌های AT افتادم. همون‌ها که دکمه‌های power اون‌ها رو اگه می‌زدی یهو خاموش می‌شد کامپیوتر. بعد یه کیس‌هایی اومده بود که ایطوری نبود و بهش می‌گفتن کیس ATX. دکمه power رو که می‌زدی windows ازت می‌پرسید که خاموش کنم؟ یا اینکه درست خاموش می‌شد. عجب تکنولوژی‌ای بودهاااا :ی

بعد یه اتفاق بسیار جالبی چندین سال بعد افتاد. اونم اینکه ملت لپ‌تاپ خریدن. بعد خوب این جعبه‌ها هم دکمه power شون همونطوری بود. ولی مشکل اینجا بود که وقتی windows هنگ می‌کرد دیگه دکمه reset نداشتن :))) نگو باید اون دکمه power رو نگه می‌داشتی :))))


۱۳۸۹ تیر ۳۰, چهارشنبه

Virtualization


Task: Having a virtualization platform on a server :D
Using: Xen Cloud Platform (XCP) or Citrix XenServer
After one week of trying to understand concepts, XCP was installed on a machine, then a Windows Server 2008 R2 was easily installed; then the problem arose while trying to install a CentOS 5.5 using CentOS 5.4 template existing in XCP. The whole procedure was done using OpenXenManager. OpenXenCenter was tried too, but it has some bugs which makes it unusable.
Problem was that after kernel was loaded, a screen tells that I should select a source which contains packages to be installed. First I thought that the kernel can not find a suitable driver for the virtualized hard drive. After a while googling and chatting on #centos@IRC I found that the xenblk driver is embedded in the kernel and the problem is somewhere else. During all these, I was using physical hard drive of the system as the installation source. I could not change that to an ISO repository location because I got INVALID_SOURCE error. Meanwhile someone told me to use XenServer instead of XCP. So I reformatted and reinstalled the whole system but the same thing happened. Then I decided to ignore the DVD source and make an NFS location to have packages on. So I set up an NFS server having CentOS DVD copied on a share and gave access to the virtual system. I configured the eth0 of the virtual machine and told it to use that NFS location. FINALLY it was installed and I was HAPPY.
But I don't know why CentOS could not find the DVD drive. I don't think that it was a strange or too new one to be identified by Linux kernel.
OK. That was it, my two weeks of work. The test project is successful and now I'm gonna setup the operational machine.

۱۳۸۸ بهمن ۶, سه‌شنبه

Load already installed Windows XP using VMWare on Windows7

After almost 1 week I could boot my previously installed windows xp of my system, in a newly installed windows7 x64. I did this because my company does not enter any installed other that winXP system in it's domain. I wanted to use a win7 system and didn't have a domain admin password. So I first installed a win7 x64 on my system. Then I installed a vmware workstation 7 on that. Then tried to boot my winXP in vmware using raw disk option. I did every instruction in vmware site to add hardware profiles and blablabla. It failed because it seems that win7 dows not allow any direct access even for admin users to physical disk. I tried VirtualBox of SUN, it failed too. Trying VirtualPC of Microsoft also leads me to another failure. Finally I found a tool with file name disk2vhd.exe which converts existing partition/partitions to VHD files. Booting that file using 3 Virtual Machine softwares failed too. This files seems to need a SCSI driver. WinXP hangs after TDI.SYS with this image.
Then I found the tool winima81.exe by which I could convert my VHD file to a VMDK file. Booting using that VMDK file with vmware leads me to a Blue Screen Of Death (BSOD) with message 0x0000007B (0xF8954528,0xC0000034,0x00000000). Other Virtual Machines couldn't boot neither. Then I found that the problem is with HDD driver in windows. So I enabled all drivers using this page. Then I booted it up with vmware and added a NAT network card to my virtual machine and my winXP could connect to domain and using UNITY feature of vmware I'm so happy now :) :) :)

۱۳۸۸ دی ۲۹, سه‌شنبه

Solaris SPARC

راستش تا حالا اینطور پای Solaris اونم از نوع SPARC نشسته بودم. دیروز که با علی‌رضا نشستیم پاش کار کردیم کلی با مزه بود. هر چند دهنمون سرویس شد چون اون سرور حتی موشواره هم نمیخورد. یعنی ما موشواره‌ای نداشتیم که بهش بخوره. ولی خوب بود. البته فکر کنم در ادامه باید کارهای خارق‌العاده دیگه‌ای هم بکنیم :دی.