ก๊วนซอฟท์แวร์ </softganz> SoftGang (Gang Software)

Web &amp; Software Developer Gang.

603 items|« First « Prev 53 54 (55/61) 56 57 Next » Last »|
โดย Little Bear on 20 พ.ค. 51 13:18

To change phpMyAdmin's default cookie login expire time (default is 1800 sec).

Change the $cfg['LoginCookieValidity'] in file config.inc.php to set new value of time in second that you want.

Ubuntu : location of config file is /etc/phpmyadmin/config.inc.php

$cfg['LoginCookieValidity'] = 246060; // is 1 day

Remark : also change auth_type to cookie by

$cfg['Servers'][$i]['authtype'] = 'cookie'; // authtype is config , cookie , http

โดย Little Bear on 15 พ.ค. 51 22:37

I'm a new Ububtu user for a month but many year of Firefox.

This is my Firefox Extension.

โดย Little Bear on 15 พ.ค. 51 20:31

My home have 3 computer. I want to share internet for all computer.

I search from internet and found Howto Share internet connection from http://ubuntuforums.org.

Following this step and it work!!!!!!

Note: Type all the following commands in a root terminal, DO NOT use sudo. Please use su or sudo su -

  1. Start by configuring the network card that interfaces to the other computers on you network:

    # ifconfig ethX ip

    where ethX is the network card and ip is your desired server ip address (Usually 192.168.0.1 is used)

    My note : My ethX was eth0 and ip was 192.168.1.1

  2. Then configure the NAT as follows:

    # iptables -t nat -A POSTROUTING -o ethX -j MASQUERADE

    where ethX is the network card that the Internet is coming from

    # echo 1 > /proc/sys/net/ipv4/ip_forward

  3. Install dnsmasq and ipmasq using apt-get:

    # apt-get install dnsmasq ipmasq

  4. Restart dnsmasq:

    # /etc/init.d/dnsmasq restart

  5. Reconfigure ipmasq to start after networking has been started:

    # dpkg-reconfigure ipmasq

  6. Repeat steps 1 and 2.

  7. Add the line "net.ipv4.ip_forward = 1" to /etc/sysctl.conf

    # gedit /etc/sysctl.conf

  8. Reboot. (Optional)

After reboot , It's work and I set Windows XP on VMware 2Beta to use this share by set DNS to my ISP.

Everything OK!!!!!

Thank for anaoum from http://ubuntuforums.org very much.

From : http://ubuntuforums.org

และมีคำแนะนำให้ใช้ firewall ชื่อ firestarter install (Its just a frontend to iptables.In its preferences, set "internet connected device" to the internet, and "local network device" to the local device. Then enable NAT and DHCP if you want...) โดย

sudo apt-get install firestarter

ที่ http://www.opentle.org บอกว่า

ไม่ต้องลงอะไรเพิ่มแค่พิมพ์ตามนี้ (แต่ต้องเป็น root ก่อน)

echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

(eth0 คือขาที่ ออกเน็ต) เครื่อง ลูกก็ ตั้งให้ ip class เดียวกับ eth0 เอา ถ้าไม่อยากแจก dhcp ถ้าอยากแจกก็ ลง package dhcp ซะ

ยังไม่ได้ลองเลย ไว้มีโอกาสค่อยลองดูนะครับ

โดย Little Bear on 14 พ.ค. 51 13:23

Software requirement

  • ระบบสมาชิก การสมัครสมาชิกใหม่
  • ใบสำคัญรับเงิน
  • การ์ดลูกหนี้
  • ระบบจัดการเอกสาร เช่น รายงานการประชุม , ระเบียบกลุ่มออมทรัพย์นักพัฒนาภาคใต้ , แบบฟอร์ม ฯลฯ ระบบจัดการเงินกู้ เงื่อนไขการอนุมัติ ค่าบำรุง ยอดเงินค้างชำระ

รายงาน

  • พันธะผูกพันการกู้เงิน
  • ยอดเงินออม
  • ยอดคงเหลือเงินกู้

ลูกหนี้

  • หัวของการ์ดลูกหนี้ ประกอบด้วย เอกสารสัญญากู้ที่ ..., รหัสสมาชิก, ประเภทเงินกู้ (เงินกู้สามัญ,เงินกู้พิเศษ,เงินกู้สินเชื่อเพิ่มศักยภาพการทำงาน,เงินกู้ประวัติดี), ได้รับอนุมัติเงินกู้เป็นจำนวน ... บาท เมื่อวันที่ ... เดือน ... พ.ศ. ... กำหนดชำระคืน ... งวด ๆ ละ ... บาท ตั้งแต่เดือน ... พ.ศ. ... ถึงเดือน ... พ.ศ. ...
  • รายละเอียดในการ์ดลูกหนี้ เป็นตารางโดยมีหัวตารางคือ งวด, เดือน-พ.ศ. (ที่จ่ายชำระ), ชำระเงินต้น(บาท), ชำระค่าบำรุง(บาท), ชำระค่าปรับเงินต้น(บาท), ชำระค่าปรับค่าบำรุง(บาท), ยอดคงค้าง(บาท)
  • รายชื่อผู้ร่วมกู้ (กรณีกู้พิเศษ มีรายชื่อผู้ร่วมกู้ได้หลายราย)
  • คำอธิบายภาพ : DSCN2463
  • ขั้นตอนการทำงาน
    • บันทึกการกู้เงิน เป็นการบันทึกรายละเอียดการกู้เงิน ประกอบด้วย เอกสารสัญญากู้ที่ ..., รหัสสมาชิก, ประเภทเงินกู้ (เงินกู้สามัญ,เงินกู้พิเศษ,เงินกู้สินเชื่อเพิ่มศักยภาพการทำงาน,เงินกู้ประวัติดี), ได้รับอนุมัติเงินกู้เป็นจำนวน ... บาท เมื่อวันที่ ... เดือน ... พ.ศ. ... กำหนดชำระคืน ... งวด ๆ ละ ... บาท ตั้งแต่เดือน ... พ.ศ. ... ถึงเดือน ... พ.ศ. ...
    • บันทึกการรับชำระเงินกู้ โดยเลือกใบกู้เงิน (จากเลขที่ใบกู้หรือหมายเลขสมาชิกหรือชื่อสมาชิก) ป้อนวันที่,  ชำระเงินต้น(บาท), ชำระค่าบำรุง(บาท), ชำระค่าปรับเงินต้น(บาท), ชำระค่าปรับค่าบำรุง(บาท)
    • บันทึกรายการชำระโดยทุกอย่างอิงกับเลขที่ใบกู้เงิน เพื่อให้สามารถแสดงรายการเคลื่อนไหวทุกอย่างในการ์ดลูกหนี้ได้อย่างถูกต้อง

โดย Little Bear on 12 พ.ค. 51 20:54

I try to install VMWARE 2 Beta on Ubuntu 8.04 Hardy by follow this step (from ubuntu-tutorials.com)

How to install VMware Server 2.0 Beta in Ubuntu 7.10 “Gutsy Gibbon”

  1. Download VMware Server 2.0 Beta available from the VMware website. Write down the serial number it generates for you at registration.
  2. Unpack this archive to a location on your machine (perhaps /tmp).
  3. Before you configure and compile VMware Server we need to disable ipv6 support in Ubuntu as it is not currently compatible.
  4. sudo aptitude install build-essential xinetd
  5. cd /tmp/vmware-server-distrib ; sudo ./vmware-install.pl
  6. Answer the questions presented during the installation. The defaults should be safe in most cases.
  7. Because Ubuntu does not use the root user account we also need to setup access for your main user. Replace root with your username on line 10 of: /etc/vmware/hostd/authorization.xml (ACEDataUser).
  8. At this point I had to restart my machine to put the changes in place. I did try restarting the service(s) after changing the config, but it still didn’t allow access.
  9. Access your VMware Server via http://localhost:8222 or https://localhost:8333
  10. Accessing the remote console tab to view your virtual machine will also require an extension installed to Firefox. This also requires a browser restart after the extension is installed.



This instruction was work on Ubuntu 8.04 too.

Relate links : - Cant connect to VMWare server using remote console - How to install VMware Server 2.0 Beta in Ubuntu 7.10 “Gutsy Gibbon”

โดย Little Bear on 19 เม.ย. 51 16:09

บทความฉบับนี้สำเนามาจาก http://linux.thai.net เห็นว่าน่าสนใจจึงขอทำสำเนามาไว้ในเว็บไซท์นี้ เพื่อช่วยเผยแพร่แนวคิดอีกช่องทางหนึ่งด้วยครับ

ฉบับแปล ของหน้านี้

เราหยุดการแนบไฟล์เวิร์ดได้

โดย Richard M. Stallman, มกราคม 2545

 [image of a Philosophical Gnu]

คุณเกลียดการได้รับเอกสารเวิร์ดที่มากับอีเมลไม่ใช่หรือ? เอกสารแนบที่เป็นเวิร์ดนั้นช่างน่ารำคาญ แต่ที่แย่ยิ่งกว่านั้น มันยังขัดขวางผู้คนไม่ให้เปลี่ยนมาใช้ซอฟต์แวร์เสรีอีกด้วย บางทีเราอาจหยุดการแนบไฟล์เช่นนี้ได้ ด้วยการร่วมกันออกแรง สิ่งที่ต้องทำคือขอร้องแต่ละบุคคลที่ส่งไฟล์เวิร์ดมาหาเรา ให้ช่วยพิจารณาวิธีการส่งเอกสารเสียใหม่

โดย Little Bear on 13 เม.ย. 51 15:48

softganz@softganz-desktop:~$ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head

  134  ls
  101  sudo
  62  cd
  15  wine
  15  chmod
  14  ping
  13  grep
  10  ps
  10  bin/nas200
    7  top

เอามั่ง(เหมือนกัน) ฐานที่เลิกใช้ Windows หันมาหา Ubuntu เต็มตัว

ปล. แต่ก็ยังมี wine อยู่นะ

โดย Little Bear on 29 มี.ค. 51 11:04

Web 2.0 มีการแยกระหว่างเนื้อหา(XHTML) กับ ดีไซน์(Layout & Design) ออกจากกัน ซึ่งการเขียน CSS Style Sheet จะมีความสำคัญกับการออกแบบเป็นอย่างมาก

CSS Properties Index เป็นที่รวบรวม CSS Property ตั้งแต่รุ่น CSS1 , CSS2 , CSS3 ว่ามี property อะไรบ้าง ค่า default ของแต่ละ property คืออะไร

ก็เลยขอเอามาเก็บไว้เป็นแหล่งอ้างอิงนะครับ

Edit : เพิ่มเติม Full property table จาก W3C

Edit : CSS Selectors

ที่มา meiert.com

โดย Little Bear on 23 ก.พ. 51 09:23


Example PHP code for download file that nobody know your file url

ตัวอย่าง code สำหรับดาวน์โหลดไฟล์โดยไม่ให้ใครรู้ url ของไฟล์ที่กำลังดาวน์โหลด

603 items|« First « Prev 53 54 (55/61) 56 57 Next » Last »|