ยินดีต้อนรับแขกผู้มาเยือน กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน
ส่งอีเมล์ยืนยันการใช้งาน?
 
Please Login!

แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sornram9254.com

หน้า: [1] 2 3 ... 18
1
General Programming / How to : compile c with Notepad++
« เมื่อ: 17 ตุลาคม 2012, 01:15:16 »

Full Detail : http://www.youtube.com/watch?v=HqRxD8yHIWU
ประยุกต์กับภาษาอื่นก็ได้ครับ :)

ปล. ใครอย่ามาดราม่าให้ไล่ไปใช้ ide แทนนะ -.-*

2
โฮสติ้ง และ เซิร์ฟเวอร์ / .
« เมื่อ: 29 เมษายน 2012, 04:52:41 »
.

3
3D & Video Graphic / Re: [sony vegas] สอบถามการทำ text effect ครับ
« เมื่อ: 27 เมษายน 2012, 15:08:53 »
ผมอยากทำแบบนี้อ่ะครับ แต่ตอนเปลี่ยนอักษร smootๆ แบบค่อยๆโผล่ นะครับ ^^
จำเป็นต้องใช้ FlashPlayer

4
3D & Video Graphic / [sony vegas] สอบถามการทำ text effect ครับ
« เมื่อ: 27 เมษายน 2012, 06:51:46 »
 [sony vegas]
ผมจะทำ text effect แบบว่า
มีอีกษรอยู่ 3 ตัว    ABC
แล้วจะให้มันขยายออกมา(เปลี่ยนรูปร่างข้อความ)เป็น Aminal Bird Cat ยังไงอ่ะครับ  ?
ปล. เรียกไม่ถูก - -"

5
General Programming / [perl] Download video from Socialcam
« เมื่อ: 22 เมษายน 2012, 17:36:53 »
[perl] Download video from Socialcam
หัดเขียนครับ ผิดพลาดขออภัย ^^"
โค๊ด: [Select]
#!/usr/bin/perl
#########################################################################
# ░░░░░░░░░░░░▄▄░░░░░░░░░░░░░░ Copyright (c) 2012 by sornram9254.com
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░ This software is open source,
# ░░░░░░░░░░█░░░█░░░░░░░░░░░░░ licensed under the GNU/GPL,v3.0
# ░░░░░░░░░█░░░░█░░░░░░░░░░░░░
# ██████▄▄█░░░░░██████▄░░░░░░░ Basically,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ this means that you're allowed to modify and
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ distribute this software.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ However, if you distribute modified versions,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ you MUST also distribute the source code.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
# ▓▓▓▓▓▓█████░░░░░░░░░██░░░░░░ See http://www.gnu.org/licenses/gpl.html
# █████▀░░░░▀▀████████░░░░░░░░ for the full license.
#########################################################################
#example : ~$perl socialcam http://socialcam.com/v/z8hnY0ZJ?autostart=true#_=_
use LWP::Simple;
$ua = LWP::UserAgent->new();
chomp($file=shift);
$contents = $ua->get($file);
$found = $contents->content;
if($found =~ m/<source src=\'(.*?)\'/g){
    `wget $1`;
}

6
General Programming / [Perl] IP Information : GUI
« เมื่อ: 16 เมษายน 2012, 01:51:58 »
SS :


หัดเขียนอีกเช่นเคยครับ ยังมึนๆอยู่ while ซ้อน while - -" เขียนได้เท่านี้แหละครับ ถ้าใครมีวิธีทำให้เร็วหรือดีกว่านี้กบอกหน่อยนะครับ ^^"

โค๊ด: [Select]
#!/usr//bin/perl
#########################################################################
# ░░░░░░░░░░░░▄▄░░░░░░░░░░░░░░ Copyright (c) 2012 by sornram9254.com
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░ This software is open source,
# ░░░░░░░░░░█░░░█░░░░░░░░░░░░░ licensed under the GNU/GPL,v3.0
# ░░░░░░░░░█░░░░█░░░░░░░░░░░░░
# ██████▄▄█░░░░░██████▄░░░░░░░ Basically,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ this means that you're allowed to modify and
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ distribute this software.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ However, if you distribute modified versions,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ you MUST also distribute the source code.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
# ▓▓▓▓▓▓█████░░░░░░░░░██░░░░░░ See http://www.gnu.org/licenses/gpl.html
# █████▀░░░░▀▀████████░░░░░░░░ for the full license.
#########################################################################
use Tk;
use LWP::Simple;
$mw = new MainWindow; $mw->title("Perl GUI :)"); $mw->geometry('200x70');
$mw->Label(-text => "IP Information")->pack;
$mw->Button(-text => "Check", -command => \&get_ip )->pack(-ipadx => 40,-ipady => 5);
sub get_ip {
my $ua = LWP::UserAgent->new();
my $contents = $ua->get('http://www.melissadata.com/lookups/iplocation.asp');
my $found = $contents->content;
while( $found =~ m/<span style=\"font-size:12px;\">Your IP Address: (.*?)<\/span>/g ) {
$ip=$1;
print "IP : $1 \n";
$mw = new MainWindow; $mw->geometry('400x200'); $mw->title("Check IP : Result");
my $frm_name = $mw -> Frame() -> pack(); #New Frame
my $ent = $frm_name -> Entry(-text => "IP => $1") -> pack (-ipadx => 100,-ipady => 5);
#------------------------------------------------------------------------------------------------------------------------------------------
my $content = $ua->get('http://www.melissadata.com/lookups/iplocation.asp?ipaddress='.$ip)->content;
my ($isp) = ($content =~ m/<td class=\'columresult\'>ISP<\/td><td align=\'left\'><b>(.*?)&nbsp;<\/b>/g);
print "ISP : $1 \n";
my ($city) = ($content =~ m/City<\/td><td align=\'left\'><b>(.*?)<\/b>/g);
print "City : $1 \n";
my ($state) = ($content =~ m/State or Region<\/td><td align=\'left\'><b>(.*?)<\/b>/g);
print "State or Region : $1 \n";
my ($country) = ($content =~ m/Country<\/td><td align=\'left\'><b>(.*?)<\/b>/g);
print "Country : $1 \n";
my ($la1,$la2) = ($content =~ m/Latitude & Longitude<\/td><td align=\'left\'><b>(.*?)&nbsp;&nbsp;(.*?)<\/b>/g);
print "Latitude : $1 .::.::. Longitude : $2 \n";
my $ent = $frm_name -> Entry(-text => "ISP => $isp") -> pack (-ipadx => 100,-ipady => 5);
my $ent = $frm_name -> Entry(-text => "City => $city") -> pack (-ipadx => 100,-ipady => 5);
my $ent = $frm_name -> Entry(-text => "State or Region => $state") -> pack (-ipadx => 100,-ipady => 5);
my $ent = $frm_name -> Entry(-text => "Country => $country") -> pack (-ipadx => 100,-ipady => 5);
my $ent = $frm_name -> Entry(-text => "Latitude => $la1 .::. Longitude => $la2") -> pack (-ipadx => 100,-ipady => 5);
#------------------------------------------------------------------------------------------------------------------------------------------
}
}
MainLoop;

ปล. ขอบคุณ PongZ มากๆครับที่แก้ไขโค้ดให้ ^^
ที่มา : http://www.sornram9254.com/blog/perl-ip-information-gui

7
General Programming / [Perl] Encode & Decode MD5 : GUI
« เมื่อ: 14 เมษายน 2012, 23:26:38 »
เป็นโปรแกรม Perl ตัวแรกนะครับที่ผมเขียนเป็นแบบ GUI ถ้าผิดพลาดประการใดก็ขออภัยด้วยครับ (-/\-)
ปล. ด้านล่างไม่ใช่รูปของโปรแกรมนี้นะครับ ส่วนของโปรแกรมนี้มีแค่ En&De md5 แค่นั้น 55 ^^"

โค๊ด: [Select]
#!/usr/bin/perl -w
#########################################################################
# ░░░░░░░░░░░░▄▄░░░░░░░░░░░░░░ Copyright (c) 2012 by sornram9254.com
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░
# ░░░░░░░░░░░█░░█░░░░░░░░░░░░░ This software is open source,
# ░░░░░░░░░░█░░░█░░░░░░░░░░░░░ licensed under the GNU/GPL,v3.0
# ░░░░░░░░░█░░░░█░░░░░░░░░░░░░
# ██████▄▄█░░░░░██████▄░░░░░░░ Basically,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ this means that you're allowed to modify and
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ distribute this software.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ However, if you distribute modified versions,
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░ you MUST also distribute the source code.
# ▓▓▓▓▓▓█░░░░░░░░░░░░░░█░░░░░░
# ▓▓▓▓▓▓█████░░░░░░░░░██░░░░░░ See http://www.gnu.org/licenses/gpl.html
# █████▀░░░░▀▀████████░░░░░░░░ for the full license.
#########################################################################
use Tk;
use LWP;
use Digest::MD5 qw(md5_hex);
$mw = new MainWindow; $mw->geometry('300x150'); $mw->title("Perl GUI");

########## Encode MD5 ##########
$mw->Label(-text => "Encode MD5")->pack;
$mw -> Entry(-textvariable => \$put_en_md5) -> pack;
$mw->Button(-text => "Gen", -command => \&en_md5 )->pack;

sub en_md5 {
my $md5_hash = $put_en_md5;
my $md5_generated = md5_hex($md5_hash);
print "Encode MD5 : Result => $md5_generated\n";
########## Create New Form ##########
$mw = new MainWindow; $mw->geometry('350x70'); $mw->title("Encode MD5 : Result");
$mw->Label(-text => "$put_en_md5")->pack;
my $frm_name = $mw -> Frame() -> pack(); #New Frame
my $ent = $frm_name -> Entry(-text => $md5_generated) -> pack (-ipadx => 60,-ipady => 5);
}
########## Decode MD5 ##########
$mw->Label(-text => "Decode MD5")->pack;
$mw -> Entry(-textvariable => \$put_de_md5) -> pack;
$mw->Button(-text => "Gen", -command => \&de_md5 )->pack;

sub de_md5 {
my $md5 = $put_de_md5;
$lwp = LWP::UserAgent->new;
$lwa = $lwp->get('http://md5.rednoize.com/?p&s=md5&q='.$md5);
$hash = $lwa->content;
print "Decode MD5 : Result => $hash\n";
########## Create New Form ##########
$mw = new MainWindow; $mw->geometry('350x70'); $mw->title("Decode MD5 : Result");
$mw->Label(-text => "$put_de_md5")->pack;
my $frm_name = $mw -> Frame() -> pack(); #New Frame
my $ent = $frm_name -> Entry(-text => $hash) -> pack (-ipadx => 60,-ipady => 5);
}
MainLoop;

ที่มา : http://www.sornram9254.com/blog/perl-encode-decode-md5-gui

8

ท่านชอบ Facebook Timeline แบบใหม่หรือไม่ ? (ตอบแล้วช่วย comment ด้วยนะครับว่าเพราะเหตุใดถึง ชอบ,ไม่ชอบ,เฉยๆ)
http://www.facebook.com/questions/2715107685528/

9
ฝากไลค์แฟนเพจเหล่านี้ด้วยนะครับทุกท่าน  ความจริงมีเยอะกว่านี้ แต่เอาแค่นี้ก่อน เกรงใจครับ


อ้างถึง

แฟนเพจของเว็บผมครับ >> http://www.sornram9254.com , http://www.sornram9254.com/blog




อ้างถึง

คำคมเด็ดๆ กลอนความรัก เรื่องไร้สาระ




อ้างถึง

เรื่องราวนิสัยแบบต่างๆของคนกรุ๊ป B




อ้างถึง

ข้อคิด กำลังใจ มีให้กันเสมอ




อ้างถึง

วิทยาลัยเทคนิคพระนครศรีอยุธยา




อ้างถึง

ข่าวสาร opensource , linux , ubuntu การปรับแต่งต่างๆ




อ้างถึง

มันใจ! คนไทยอยากเห็นเด็ก "อาชีวะ" เลิกตีกัน




อ้างถึง

แผนกช่างเทคนิคคอมพิวเตอร์ วิทยาลัยเทคนิคพระนครศรีอยุธยา


[/td][/tr][/table]

10
General Programming / Re: ขอ VDO สอน Matlab Th-Eng ก็ได้ค่ะ
« เมื่อ: 07 กันยายน 2011, 05:54:15 »
ใช่ครับ ใน YT เยอะแยะไป

ปล. ผมเอาแบบอีบุ๊คมาฝากครับ อิอิ
http://www.mediafire.com/?d34bx2268yot6i8

11
Example in Python
อ้างถึง
#python2.6 <
from math import log
 
def getDigit(num, base, digit_num):
    # pulls the selected digit
    return (num // base ** digit_num) % base 
 
def makeBlanks(size):
    # create a list of empty lists to hold the split by digit
    return [ [] for i in range(size) ] 
 
def split(a_list, base, digit_num):
    buckets = makeBlanks(base)
    for num in a_list:
        # append the number to the list selected by the digit
        buckets[getDigit(num, base, digit_num)].append(num) 
    return buckets
 
# concatenate the lists back in order for the next step
def merge(a_list):
    new_list = []
    for sublist in a_list:
       new_list.extend(sublist)
    return new_list
 
def maxAbs(a_list):
    # largest abs value element of a list
    return max(abs(num) for num in a_list) 
 
def radixSort(a_list, base):
    # there are as many passes as there are digits in the longest number
    passes = int(log(maxAbs(a_list), base) + 1)
    new_list = list(a_list)
    for digit_num in range(passes):
        new_list = merge(split(new_list, base, digit_num))
    return new_list
โค๊ด: [Select]
http://en.wikipedia.org/wiki/Radix_sort

ถ้าไม่ถูกใจก็หาใหม่เลยครับ
http://www.google.co.th/search?hl=th&q=radix+sort+c%2B%2B
 [$2$] [$2$] [$2$]

12
ถาม - ตอบ ปัญหาไอที / Re: เน็ตช้าเป็นเพราะ....
« เมื่อ: 05 กันยายน 2011, 23:52:12 »
อิอิอิ  ไม่เกี่ยวหรอกค่ะ เพราะถึงแม้เวปนั้นจะมี มหีแฟลช  ก็ไม่มีผลต่อซีพียูหรอค่ะ.  เพราะโดยบราวเซอร์ปกติ(เล่นเวปต้องผ่านบราวเวอร์)..มันรองรับพวกนี้..ในอาการปกติอยู่แล้วค่ะ
อย่าลืมเรื่องภาษาต่างๆที่ใช้ในการเขียนเวป มันต้องซัพพอร์ท และรองรับกับบราวเซอร์ ;) ;)

 |n3:| |n3:| |n3:|

ตกใจคำตอบ!!
 :a4:

13
เยี่ยมครับ
สู้ๆครับทีมงาน  : )

14
เยียมเลยครับ  : D
 [$3$]

15
สภากาแฟ / [fb] ฝาก group หย่อยครับ "CompTechno" : )
« เมื่อ: 18 กรกฎาคม 2011, 04:39:07 »
CompTechno



แลกเปลี่ยนความรู้ เทคนิคต่างๆในแวดวง Computer และ IT
ทั้งด้าน
Hardware
Software

- Operating System
- Windows
- Linux
Security
Hacked
Programming

- VB
- C/C++
- Perl
- C#
- Java
- ฯลฯ
Web Programming
- PHP
- Perl
- ฯลฯ
Networking
ฯลฯ


อ้างถึง
http://www.facebook.com/groups/CompTechno

16
ถาม - ตอบ ปัญหาไอที / Re: ทำไมคอมค้าง...
« เมื่อ: 16 กรกฎาคม 2011, 00:09:45 »
เป็นได้หลายสาเหตุครับ   [$2$]
อาธิ .. .
 - ใช้งานหนัก ถ้าไม่ได้ใช้โปรแกรมหรืองานอะไรหนักๆ ก็คงมี processes บางตัวทำงานหนัก อาจเป็นการทำงานเบื้องหลัง (เป็ฯได้ทั้งโปรแกรมธรรมดา และไวรัส  [$6$])
 - เรื่องความสะอาด เช่นระบบระบายความร้อนต่างๆ ฮีทซิงค์ บลาๆ   ;)
 - วินโดวส์โมฯ บางตัว ใช้งานไปนานๆ ก็เริ่มไม่สเถียรได้ครับ ทำให้เกิดอาการเอ๋อได้  :P
 - เรื่องของฮาร์ดแวร์ บางตัวใช้งานมานาน ก็เริ่มเอ๋อๆได้ครับ หรืออาจเกี่ยวกับเรื่องของความร้อน บลาๆๆ  [$01$]
และอื่นๆอีกนิดๆหน่อยๆ  [{-23-}]

17
ลองดูที่เมนูของจอภาพครับว่าอยู่โหมดอะไร เช่นโหมดรูปภาพ โหมดหนัง ฯลฯ  แล้วลองเปลี่ยนเป็นเมนูประมาณว่าเป็นการตั้งค่าของผู้ใช้เองอ่ะครับ(เรียกไม่ถูก --*)
เพราะจอบางรุ่น ถ้าตั้งตามเมนูของมัน เช่นตั้งโหมดภาพยนต์ไว้ เวลาเราไปตั้งค่ามันเพิ่ม พอเปิดเครื่องใหม่ มันก็จะ Detect ค่าเป็นโหมดที่เราตั้งไว้ตอนแรกอ่ะครับ
 [{-11-}] ผิดถูกอย่างไรก็ขออภัยด้วยครับ ตอบตามประสบการณ์  [$2$]

18
มีอีกข้อนะครับ ผมเคยเป็น
คือเคยไปลง font อยู่ตัวนึง อักษรในเว็บเพี้ยนไปหลายเว็บเหมือนกัน  [$6$]
ถ้าท่านได้ลง font เพิ่มเติมไว้ลองลบออกไปก่อนนะครับ   [$2$]

ถ้าไม่ใช่ก็ผ่านนนน  ;)   :P

19
สมัยนี้ลองไปแลบลิ้นให้เขาดูสิ โดนตื๊บแน่นอน  [$02$]

20
[$2$] ลองตรวจสอบที่ encoding ดูนิดนะครับว่าตั้งค่าเป็นอะไรไว้ ลองปรับเป็น UTF-8 นะครับ [$2$]

 [$2$] [$2$] [$2$]

หน้า: [1] 2 3 ... 18