วันศุกร์ที่ 18 พฤศจิกายน พ.ศ. 2559

ทดสอบ printf และ scanf

#include <iostream>
#include <string.h>

char * s1(char* b);

int main()
{
    setbuf(stdout, NULL);
    char *s, *b;
    s = (char *) malloc(15);
    b = (char *) malloc(15);
    strcpy(s, "test");
    strcpy(b, "xxx");
 
    s = s1(b);
 
    printf("input:");
    scanf("%15s",s);
 
    printf("%s ...",s);
     
    free(s);
    free(b);  

}

char * s1(char* b){
    return b;
}

วันเสาร์ที่ 20 สิงหาคม พ.ศ. 2559

การตั้งชื่อโดเมนเนม

การตั้งชื่อโดเมนเนมมักจะเจอปัญหาในการตั้งชื่อแล้วเจอแต่ชื่อซ้ำ
แต่ก็มีคนทำเครื่องมือช่วยคิดชื่อ domainname ไว้ให้ ช่วยให้ประหยัดเวลาในการคิดชื่อเว็บได้มากเลยครับ

http://www.leandomainsearch.com/

http://www.bustaname.com/word_maker

https://www.shopify.com/tools/business-name-generator

http://www.namemesh.com/domain-name-search/

วันอาทิตย์ที่ 14 สิงหาคม พ.ศ. 2559

Strength

ทดสอบหา Strength ของตัวเองมาจากเว็บไซต์หนึ่ง

ตรงหัวข้อ Optimism น่าจะจริงเพราะงานอดิเรกของผมก็คือ rewrite code ตัวเองที่เคยเขียนไว้ให้ดีขึ้นๆหรือบางทีแค่ให้โค้ดเป็นระเบียบขึ้นเฉยๆ แต่ตรง Innovation นี่สิหมายถึงอะไร bookmark ไว้เอาไว้ทำความเข้าใจวันหลัง -__-'


Your Top 5 Strengths Are:
Innovation (100%): 

* Actively seek out positions where your ideas will be valued and encouraged.
* Be a designer, sales strategies, marketing guru, or customer service rep for new products and ideas.
* Search out and request ideas from others to stimulate your thinking.
* Constantly think of ideas that can improve businesses and the lives of others.
* You enjoy the power of words; punchy ideas stimulate your thinking - focus and play with this fact.
* For decisions, you need to know that everything fits together. Be aware and plan for decisions.
* If a decision seems to stand out as particularly bothersome, then check if it is an exception before worrying about it.
Optimism (94%): 

* Look for positions where you can be as close to customers as possible.
* Actively help plan events - like new product launches and user groups.
* Do use your humor and good attitude to excite people.
* Being positive does not mean you'll be in good mood - be aware and let others know, as needed.
* Cynics quickly sap your energy and you dislike cheering negative people - minimize these instances.
* You enjoy celebrating and should actively find ways to recognize achievements.
Faith (94%): 

* Make efforts to discover your true passion and tie it to your work, no matter what you do.
* Align, but don't compromise, your values to that of your organization.
* You respect others for learning about your family and community - give them the opportunity.
* You give more value to greater levels of service than more money - let others know this.
* People may not share your beliefs, but you feel they need to understand & respect - let them.
Self Motivation (88%):

* You don't need your hand-held; help others understand you need space to make meaningful decisions.
* Seek to take on a role where persistence is essential to success.
* Continually take on roles that demand an aura of certainty and stability.
* You have a strong self-concept that you are an agent of action - nurture it.
* You are most effective when you feel you are in control of your world - be aware and help others understand this.
* You need clear feedback to develop your instincts - review your failures and successes for lessons learned.
Strategic Thinking (88%): 

* Be on the leading edge of your organization, groups, and strategic plans.
* Be involved in organizational planning and risk management efforts.
* Always give yourself plenty of time to think through a situation.
* Read books, take a training course, or attend a seminar in strategic planning and futurism.
* Seek chances to share your ideas in writing and presentations.
* Seek solutions that worked in other places, learn from them, and try to apply them to your life and work.
Your Remaining Results Are:
Risk Taking (88%):
Communication (81%):
Purpose (81%):
Curiosity (81%):
Problem Solving (75%):
Ambition (75%):
Balance (69%):
Visionary (63%):
Resourcefulness (63%):
Leadership (63%):
Focus (56%):
Salesmanship (56%):
Teamwork (56%):
Adaptability (44%):
Integrity (25%):


Your Bottom 1 Weakness Is:
Determination (19%):


* Constantly be on the lookout for new goals and improvements.
* You're good at initiating and organizing a project, start your own and help others.
* Get feedback from people as others' expectations will energize you.
* Actively participate in helping a bogged down team into action.
* When down, think of new improvements to do tomorrow - stay on track.
* Be careful of those who really want to project and analyze - they are a non-fit for your work style!

Thank Website
http://richardstep.com/richardstep-strengths-weaknesses-aptitude-test/free-aptitude-test-find-your-strengths-weaknesses-online-version/

วันอาทิตย์ที่ 17 มกราคม พ.ศ. 2559

หลักการ submit โปรแกรมใน codecanyon

หลักการ submit โปรแกรมใน codecanyon

- ชื่ออธิบายตรงกับโปรแกรม
- ตั้งชื่อแบบ Camelcase ยกเว้น is,of,an และคำสั้นๆ (1-3 ตัวอักษร)
- และยกเว้นคำย่อเช่น CMS
- ใช้คำ industry standard เช่น jQuery และ WordPress
- ไม่ใช้คำอธิบายไม่มีความชัดเจน เช่น best, beautiful file
- คำที่ไม่เกี่ยวข้องเช่น username และคำที่ไม่เกี่ยวกับไฟล์
- ไม่ใช้คำว่าคล้ายๆ กับอะไร ให้คำอธิบายว่าจริงๆ มันคืออะไร
- คำอธิบายไม่เกิน 100 ตัวอักษร
- คำอธิบายชัดเจน เพราะคนซื้อทุกคนไม่ได้เชี่ยวชาญ
- อธิบายข้อมูลเชิงเทคนิคทั้งหมด เพื่อให้เข้าใจว่าคืออะไร และทำอะไรได้บ้าง
- ลองคิดตัวเองว่าเป็นคนซื้อจะ search ยังไง ข้อมูลอะไรที่ต้องการทราบ
- แสดงภาพตัวอย่างของ item ของคุณที่กำลังทำงาน
- แบ่งช่องไฟและย่อหน้าให้อ่านง่าย
- ห้ามใช้ชื่อสินค้าของคนอื่นใน item tags

- ชื่อแรกควรเป็นคำนามหรือกิจกรรม
- ถ้าชื่อเกี่ยวข้องกับฟิลด์ หรือกลุ่มอุตสาหกรรม หรือ เฉพาะทางให้ระบุให้ชัดเจน
- ระบุ function การทำงานเช่น tileable image
- mood หรือ style เช่น รูปแบบของ theme แต่ไม่ใช้คำที่กว้างเกินไป
- ไม่ใช้คำที่กำกวม
- เช็คคำสะกด
- อาจจะใช้คำสองคำขึ้นไปได้
- ไม่ใช้ Camelcase ยกเว้นคำย่อ

ลิงค์ที่จะใช้ได้ใน description
- ลิงค์เกี่ยวกับคุณสมบัติและที่มาที่จำเป้น
- เอกสารวิธีใช้ online, support forum แต่ต้องไม่เชื่อมโยงไปถึงลิงค์คู่แข่ง
- เนื้อหา third party plugin เพื่ออธิบายเชิงเทคนิค, api ฯลฯ
- ตัวอย่างเพิ่มเติม demo
- social media account
- ไม่อนุญาติให้ลิงค์ไปยังลิงค์คู่แข่ง

Image Preview
- ขนาด 590x300 jpg ที่ไม่มี logo ของเว็บที่มีชื่อเสียง
Thumbnail
- ขนาด 80x80 jpg,gif,png

ไฟล์หลัก (Main File)
- ชัดเจนและจัดลำดับได้ดี
- รูปตัวอย่างเพิ่มเติม jpg และใหญ่ไม่เกิน 900x900
โดยตั้งชื่อในแบบ 01_preview1.jpg, 02_preview2.jpg
โดยแยกรูปไว้ใน folder เฉพาะสำหรับรูปภาพเพิ่มเติม

Tag
- จำกัดอยู่ที่ 15 tags

Comment
- 1 comment or more per function
- descriptive comment than short comment

โครงสร้างไฟล์
- แบ่ง folder ส่วนที่เกี่ยวข้องใน folder เดียวกัน
- การแก้ไขได้ง่าย
- validate แล้ว
- style ที่ดีและ best practice
- ห้ามใส่ script, document, image ไว้ใน root folder ที่เดียวกัน
- html5 จะต้องไม่มี javascript
- App จะต้องเน้นการช่วยเหลือ work flow สำหรับ web developer
- Plugin จะต้องมีตัวอย่างและฟังชั่นใน server ของคุณ
- เช็คว่า asset สามารถนำมาขายร่วมได้

help file
- pdf, doc, txt หรือ html
- ควรจะทำให้มองเห็นภาพ
- ควรจะมีภาพ แต่ไม่ควรใช้แทน text ขั้นตอนการใช้งาน
- อาจจะใช้ Screenr.com ที่จะใช้บันทึกวิธีการใช้