Thứ Năm, 31 tháng 5, 2012

[Tools] QuickDo for Iphone

1. Trong trường hợp cài QuickDo mà trial đã over khi cài để activate vẫn không có tác dụng thì:


- uninstall QuickDo từ Cydia
- Xóa 2 file theo đường dẫn sau (
sử dụng ifunbox):
Raw File System/User/Library/Preferences/com.clezz.quickdo.plist
Raw File System/User/Library/Logs/AppleSupport/qd.log
Trong trường hợp không tìm thấy thư mục trên trong Raw File System. Lên Cydia cài đặt afc2dd.
- respring lại máy.
- Tiến hành cài lại QuickDo
- register lại!

2. Register

Hoạt động trên OS3.x & OS4.x & iOS 5!
Cài đặt từ source: iPhone.Gsm.vn (Cydia.vn)
Sau khi cài đặt xong, Anh/Em down file này về để lấy key!
Hoặc có thể vào trang này và key cho iPad cũng phải từ trang này:
http://j.mp/fabius_keygens
Điền ID vào là có thể lấy key được
Hướng dẫn trực tiếp:
- Cài đặt QuickDo từ Cydia.vn xong - Respring máy
- Chạy QuickDo từ SpringBoard
- Tap vào "Active" để lấy QuickDo ID
- Chạy link tạo ...... trên máy tính:
http://j.mp/fabius_keygens
- Chọn "QuickDo 3.x (for iPhone/iPod Touch)"
- Điền QuickDo ID vừa lấy ở trên
- Generate serial
- Chạy QuickDo từ SpringBoard
- Tap vào nút "Activate"
- Điền "License Code" vừa lấy ở trên vào
- Bấm nút "Done"
- Respring lại máy và sử dụng.



Nguồn:
[1]  Hướng dẫn cài đặt QuickDo
[2] Không thấy user trong Raw File System

Thứ Tư, 23 tháng 5, 2012

[Tool] Khắc phục lỗi mở file 2010 trong word 2007,2003 dính chữ

Cách khắc phụ:
Cách 1: Đối với máy tạo document.
Tắt chức năng "check spelling as you type" hoặc lưu file dưới dạng *.doc (2003) hoặc file *.pdf.

Cách 2: Download và cài đặt FileFormatConverters của Microsoft để sửa lỗi.

Nguồn tham khảo:
[1]  vn-zoom
[2] giaphapexcel

Thứ Sáu, 11 tháng 5, 2012

Bật tắt chế độ tự động xoay của Iphone 3GS.

1. Download và cài đặt SBSettings từ Cydia
2. Download load plugin Rotation Inhibitor cho SBSettings từ Cydia.
3. Vuốt góc trên Iphone từ trái sang phải hoặc phải sang trái để bật SBSettings.
Nguồn:
[1] Hai cách để bật/tắt chế độ xoay của Iphone
[2] Hướng dẫn cài đặt Rotation Inhibitor

[Tool] Tăng dung lượng dropbox lên 16G

  1. Update: Chỉ cần cài máy ảo một lần duy nhất(<5phút) và sau đó chỉ cần thay đổi MAC của máy (-<1phút) mà ko cần dùng SMAC 2.7 )=> 5x1 + 1x31 = 36phút = 16GB dropbox! ^^
    Có nhiều cách để tăng thêm dung lượng miễn phí của Dropbox như đồng bộ ảnh từ thẻ nhớ ( được thêm 3GB), đồng ý đăng nhập tài khoản khác như fb ... và mời người khác tham gia Dropbox (được tối đa 16GB).
    Đã có nhiều bài viết hướng dẫn để lấy thêm dung lượng miễn phí của Dropbox và mình cũng tìm hiểu và tham khảo trên nét về những bài viết đó! trong đó có cách cài máy ảo để mời người khác sử dụng và nhận thêm dung lượng!(vì mỗi máy tính chỉ dùng được cho một tài khoản).
    Ban đầu mình cũng dùng máy ảo và làm theo hướng dẫn nhưng mỗi lần cài một máy ảo chỉ mời được có một người và nếu cài winxp bình thường cũng mất khá nhiều thời gian( tầm 45p) nên mình tìm cách nào đó để cài nhanh hơn! và sau đây mình sẽ hướng dẫn các bạn làm theo cách này! và nếu đã quen thì đảm bảo trong vòng dưới 5phút(Nếu máy bạn mạnh thì có thể nhanh hơn nữa) bạn có thể lấy thêm được 500MB của dropbox và tối đa 16GB/1tk. ;) (Nếu bài viết của mình có nội dung trùng với bài của bạn nào thì xin thông cảm nhé! vì mình cũng chỉ muốn chia sẻ cho mọi người thôi!)
    Cách của mình vẫn là tạo máy ảo để mời người khác tham gia dropbox nhưng mình thấy cách này là hiệu quả nhất!( Mình làm thành công 100%)^^ Tài khoản chính của mình giờ đã lên 21,5GB rùi! ^^

    Đầu tiên bạn cần down các công cụ cần dùng dưới đây:
    + Công cụ tạo máy ảo Vitualbox:link mediafire hoặc bạn có thể vào trang của vitualbox để down
    + Bản MicroXP 0.82.iso: link mediafire hoặc dropbox ( đây là bản rút gọn nên khi cài kho cần điền gì, chỉ cần chọn ổ cài là oK, quá trình cài sẽ mất dưới 5p)
    + Phần mềm dropbox dạng iso : link mediafire hoặc dropbox (file iso để ko phải down lại trên máy ảo nữa) ^^
    Các bước tiến hành: Nếu bạn đã biết bước nào thì có thể bỏ qua bươc đó.
    Bươc 1:
    Đăng nhập vào tài khoản dropbox của mình để lấy link mời người khác
    -> tự lấy một mail bất kỳ ( càng độc càng tốt để cho đỡ trùng) để đăng ký dropbox
    Bước 2:
    tạo máy ảo, cài dropbox và dùng tài khoản đã đăng ký để đăng nhập => sẽ lấy được 500MB lần 1. (chú ý: sau khi đăng nhập thành công thì tắt máy ảo ngay ko nhấn "Next" nữa)
    Bước 3:
    Đổi MAC của máy ảo:vào setting network của máy ảo refesh cái MAC là xong-> khởi động máy ^> đăng nhập ->^^ ăn 500MB của nó trong vòng chưa tới 1 phút ^^ (Thanks bác haduytintyt235) và cứ thế lặp lại! ^^

    Các bác đã có kinh nghiệm về máy móc thì chắc ko cần đọc tiếp còn các bạn nào mới thì nếu có hứng thú với Dropbox thì làm theo các bước ở dưới nhé! Goodlucky!

    Hướng dẫn cụ thể: Mình hướng dẫn cho các bạn mới nên có thể hơi dài nhưng viết ra thì thế thôi còn làm thì nhanh lắm! ^^

    Bước 1: Lấy một mail bất kỳ để đăng ký dropbox từ link tài khoản chính dropbox của mình
    ( bước này có thể làm trong thời gian cài máy ảo để tiết kiệm thời gian!)^^
    1) Đăng nhập vào dropbox bằng trình duyệt web: kích vào "Get free space" để đến phần mời mọc! ;D

    22.jpg
    24.jpg
    Copy link và thoát Sign Out khoải toài khoản chính!
    Mở link vừa copy bằng một tab khác!
    25.jpg
    -Phần họ và tên bạn điền bất kỳ!
    -riêng phần mail thì bạn nên chọn mail nào càng độc càng tốt( vd: đuôi nước ngoài) vì dropbox không xác thực mail ! ^^
    - phần mật khẩu thì bạn nên đặt chung cùng một mật khẩu cho tất cả các mail để sau này đăng nhập cho tiện! vd: 111111
    -điền xong bạn đánh dấu " i gree to..."
    -=> click " Create account" sẽ có một màn hình mới hiện ra! 25.jpg
    Khi màn hình bên trên hiện ra để down phần mềm dropbox về máy tính thì bạn chọn " Cancel" để đóng lại và quay lại để đăng ký tài khoản khác!
    Bạn nên đăng ký luôn mấy cái liền để cho tiện sau đó bạn vào phần " Get free space" để kiểm tra mail nào đã đăng ký rồi! ^^ 25.jpg
    Những mail đang "waitting for install" thì lát nữa mình sẽ dùng để đăng ký trên máy ảo!
    XONG Bươc 1!;)

    Bước 2: Cài và đăng nhập trên máy ảo!
    dùng file Vitualbox.exe down ở trên về máy tính rồi cài đặt và khởi động:
    1) tạo máy tính ảo mới:

    1.jpg

    Chọn "New" -> Next -> Next
    3.jpg

    - Đặt tên cho máy ảo: bạn nên đặt thêm số ở sau để tạo nhiều máy cho đỡ bị nhầm.
    -> Next
    4.jpg

    Chọn dung lượng ram cho máy ảo nếu máy bạn mạnh thì cho nhiều thì máy sẽ cài nhanh hơn! kho thì để mặc định cũng OK -> Next -> Next ->Next -> Next
    8.jpg

    Chọn dung lượng cho ổ đĩa ảo: Mặc định là 10Gb nhưng bạn cần hơn 1GB là OK rùi( để fomat cho nhanh) ^^ -> Next -> finish!

    Attached Files:

    • 23.jpg
      23.jpg
      File size:
      64.2 KB
      Xem:
      39
    Last edited by nguyendinhtu1984, 30/4/12
    trandungpc87, leduong2011, mdh_11082 người khác thích nội dung này.

    Haloshop
  2. nguyendinhtu1984 Thành viên

    Cài máy ảo tiếp..^^

    sau khi bạn chọn finish thì bạn sẽ thấy "Mayao1" được tạo

    11.jpg bạn nháy chuột phải và chọn " Start"
    vì lần chạy đầu tiên nên bạn sẽ phải thiết lập ban đầu
    12.jpg

    Chọn Next
    13.jpg

    Chọn đường dẫn đến file "MicroXP" và " dropbox" đã down ở trên
    14.jpg

    Chọn " Add" để thêm file "MicroXP" và " dropbox" đã down ở trên vào
    15.jpg

    chọn từng file rồi chọn OPen
    16.jpg

    Sau khi đã add xong bạn chọn file MicroXP để cài win -> " Select"

    17.jpg

    Chọn Next ( chú ý lần sau bạn không cần Add lại nữa mà chỉ cần trọn ở trong List thôi)

    18.jpg

    -> chọn Finish -> Máy ảo sẽ bắt đầu khởi động để cài win giống như một máy tính thật
    CHÚ Ý: Để chuyển đổi quyền điều khiển giữa máy thật và máy ảo thì bạn nhần phí " Ctrl" ở bên phải bàn phím rồi di chuyển chuột ra để đổi quyền điều khiển!^^
    ( Nếu bạn nào biết cài win rùi thì chắc là ok rùi)

    19.jpg
    Bắt đầu quá trình cài win: Vì đây là bản win rút gọn nên bạn chỉ cần chọn xong ổ để cài win là sau đó máy sẽ tự động cài cho đến khi cài xong! ^^ ( mất tầm 5p tùy thuộc vào cấu hình máy của bạn) ^^

    20.jpg

    bạn chọn ổ rùi nhấn Enter
    Last edited by nguyendinhtu1984, 29/4/12
    trandungpc87doantung2491 thích nội dung này.
  3. nguyendinhtu1984 Thành viên

    Next..
    21.jpg

    Chọn cái trên cùng rùi nhấn Enter: từ đây thì bạn không cần phải động đến nữa, máy sẽ tự động cài cho đến khi kết thúc!
    26.jpg

    Sau khoảng gần 5p winxp sẽ được cài xong và đây là giao diện!
    (Để đăng ký nhập tài khoản Drobox yêu cầu máy bạn phải kết nối net!)

    2) Cài đặt dropbox trên máy ảo!
    Bình thường bạn có thể dùng trình duyệt web trên máy ảo để down về nhưng nếu mà tốc độ net mà chậm thì ko biết bao giờ mới xong được một cái nhỉ! ^^ Vì vậy bạn hay dùng file Dropbox.iso đã down ở trên!

    27.jpg


    trên cửa sổ của máy ảo bạn chọn lại ổ ảo là " Dropbox 1.2.52.iso" sau đó vào My computer bạn sẽ thấy file cài dropbox trong ổ CD 27.jpg

    Bạn click vào file cài đặt để cài đặt dropbox như bình thường cho đến khi hiện cửa sổ đăng nhập

    27.jpg

    Bạn chọn là đã có tài khoản và nhấn Next

    28.jpg

    Dùng email và pass đã đang ký ở Bước 1 để đăng nhập!
    ( Chú ý vì mỗi lần cài bạn chỉ đăng nhập được 1 mail để nhận dung lượng vì vậy bạn đừng đăng nhập những email đã đăng nhập rùi ko lại mất một lần cài! kiểm tra tình trạng email ở bước 1)
    -> Next: Nếu bạn đăng nhập đúng thì cửa sổ bên dưới sẽ hiện ra.

    29.jpg

    Khi cửa sổ bên trên hiện lên có nghĩa là bạn đã đăng nhập thành công và tài khoản chính của bạn đã được cộng thêm 500MB rùi!( Bạn thử kiểm tra xem OK chưa)^^ Và đây là thành quả!^^
    29.jpg

    và bây giờ máy ảo này đã hoàn thành nhiệm vụ!
    30.jpg

    bạn tắt bỏ máy ảo để đổi MAC máy! ;)


    Bước 3: Đổ MAC cho máy ảo và đăng nhập bằng tài khoản tiếp theo! (thanks bác haduytintyt235)
    [IMG]


    Khởi động máy ảo và lấy thêm 500MB nữa thôi rồi lại tắt máy và đổi MAC !^^
    Các bước cứ lặp lại cho đến lúc lấy hết 16GB thì thôi! :))
    thế là đã hoàn thành!

    Hướng dẫn thì dài dòng thế này thôi nhưng khi đã biết rùi thì rất nhanh và cũng không khó đâu!

    Giờ thì bạn có thể tự tăng dung lượng tài khoản dropbox của mình rùi mà không cần phải đợi người khác đăng ký cho mình nữa!

    Chúc bạn làm thành công và giầu dung lượng nhé! ^^

    Nguồn: tinhte.comhttp://www.tinhte.vn/threads/1229572/

Thứ Hai, 30 tháng 4, 2012

[LyX] LyX for common conferences

Latex Usage Notes

Tips, References, etc. for Latex, Lyx, Miktex, Bibtex, etc.

References

Jabref/Bibtex Notes

Latex Only Notes

  • To use Harvard-style of author-year, use the following in the preamble, then use \citep in the text, and don ’t forget to compile three times:
\usepackage{babel}
\usepackage{natbib}

Convert from/to Latex

Making Scientific Posters

Latex Usage Notes

\documentclass[twocolumn]{article}
...
\begin{document}
... % \author, etc
\twocolumn[
  \begin{@twocolumnfalse}
    \maketitle
    \begin{abstract}
      ...
    \end{abstract}
  \end{@twocolumnfalse}
  ]
For lyx, just used:
\twocolumn[
  \begin{@twocolumnfalse}
  ... non-ERT ...
  \vspace{10 mm}
  \end{@twocolumnfalse}
]
  • Make a title:
\newcommand{\makeTitleQuote}[1]%
        {\hspace*{-\marginparsep minus \marginparwidth}%
         \begin{minipage}[t]{\textwidth}% \textwidth+\marginparwidth+\marginparsep
                {\large \bfseries #1}\\[-0.15\baselineskip]%
                 \rule{\columnwidth}{1pt}%
         \end{minipage}}
  • To add a running header:
\usepackage{fancyheadings}
\pagestyle{fancy}

%Width of line below running headers (0pt means no line)
%\setlength{\headrulewidth}{1pt}
%\renewcommand{\headrulewidth}{1pt}

\def\schoolName{School Name} % CHANGE: School Name
\lhead{Ricky J. Sethi}
%\chead{Ricky J. Sethi}
\rhead{Research Statement 2010}
%\rfoot{Cover Letter for \schoolName}

Lyx Usage Notes

  • Simple guide to all aspects of Lyx: http://www.stat.rice.edu/~helpdesk/howto/lyxguide.html
  • Used the amsalpha style in BibTex Bibliography dialog box
  • Can add multiple modules like theorem (which contains theorems, definitions, etc.) by selecting Document → Modules
  • If you get errors of Undefined Control Sequence for the EqRef macros, just go to Document → Settings → Latex Preamble and then add \usepackage{amsmath}
  • If you have trouble with references to algorithms, add \newcommand{\theHalgorithm}{\arabic{algorithm}} to the preamble, as per http://www.mail-archive.com/lyx-users@lists.lyx.org/msg10118.html
  • If you have trouble with table numbering where it skips a number, it ’s likely due to a long table and you need to add the following to the preamble:
      \let\myEnd\endlongtable
      \renewcommand\endlongtable{\myEnd\addtocounter{table}{-1}}
      
    as per http://texnik.dante.de/cgi-bin/mainFAQ.cgi?file=table/longtable#caption
  • If you have trouble with converting a .tex file to a .lyx file, try this from a cmd prompt:
      "c:\Program Files\LyX16\bin\tex2lyx.exe" -f infile.tex [outfile.lyx]
      
    This should show the errors (usually, it ’s just an unknown Document class so you need to add it to Miktex and create a layout for it first; if it gives an error on class not loaded/unable to load class, make sure the Input commands are all valid; e.g., ensure algorithm.inc is installed previously if you Input algorithm.inc).
  • Algorithm Package for Lyx: Used in Book Chapter on Gait: Get the algorithm package for Lyx from: http://bgu.chez-alice.fr/
    1. Copy algorithm.inc and article-algo.layout to C:\Program Files\LyX16\Resources\layouts
    2. Put the algolyx.sty in Latex by putting it in a new folder called algolyx in C:\Program Files\MiKTeX 2.7\tex\latex
    3. Next run MikTex ’s Settings and then Refresh FNDB
      1. Might also have to run Update Formats
    4. Then run Tools → Reconfigure in Lyx
    5. Finally, add the following to each .layout you ’re using like C:\Program Files\LyX16\Resources\layouts\IEEEtran.layout
          # Input lyx algorithm definitions
          Input algorithm.inc
          

UCR Thesis Templates in Lyx

Got the template from Kara; also available online at: http://www.math.ucr.edu/~jason/latextemplate/
  • Copy the following files to C:\Program Files\MiKTeX\tex\latex\ucr
    • sw20uctd.sty, thmsupp.tex, ucr.cls, uct10.clo, uct11.clo, uct12.clo
  • Next run MikTex ’s Settings and then Refresh FNDB
  • Create the following layout file, ucr.layout, in C:\Program Files\LyX16\Resources\layouts:
      #% Do not delete the line below; configure depends on this
      # \DeclareLaTeXClass[ucr]{article (ucr)}
      # Input general definitions
      Input stdclass.inc
       
      # Input lyx algorithm definitions (only if you've installed the algorithm package for Lyx from: http://bgu.chez-alice.fr/)
      Input algorithm.inc
      
  • Finally, run Tools → Reconfigure in Lyx
  • Next, Import the file uctest.tex into Lyx
    • Remove the Title and Author and, instead, add all the lines from \title to \maketitle into an ERT (a Tex Code box) since the \maketitle command Lyx inserts right after Title or Author causes a premature compilation error where it says \maketitle was not def ’ed; solution was as per here
    • Also, had to add \setlength\headsep{-0.5in} to the Latex Preamble in order to ensure the top margin isn ’t too large, as per: http://www.math.ucr.edu/~jason/latextemplate/
    • Also, had to change textheight to \textheight = 8.50in in the Latex Preamble from 8.25in
    • Had to comment out \newtheorem{algorithm}[theorem]{Algorithm} in the Latex Preamble, as well, in order to avoid errors when I include algorithms in the paper (since I add the algorithm style msyelf)
    • Finally, Kara wanted me to change to a darker font so I added \usepackage{palatino} to the Latex Preamble, as per http://www.image.ufl.edu/help/latex/fonts.shtml

Using Scientific Journal/Conference Templates in Lyx

  • BMVC: Adding/Using BMVC ’s .cls and .sty files:
    1. Put (as detailed below) bmvc2k.cls, bmvc2k_natbib.sty, and bmvc2k.bst in a new folder called bmvc2k in C:\Program Files\MiKTeX 2.7\tex\latex
    2. Create and add the bmvc2k layout in C:\Program Files\LyX16\Resources\layouts\bmvc2k.layout
        #% Do not delete the line below; configure depends on this
        # \DeclareLaTeXClass[bmvc2k]{article (bmvc2k)}
        # Input general definitions
        Input stdclass.inc
        
        # Input lyx algorithm definitions
        Input algorithm.inc
        
    3. Then run MikTex ’s Settings (and then Refresh FNDB) and then Tools → Reconfigure in Lyx
    4. Also, had to add subfigure.sty package from the ftp://ftp.fu-berlin.de/ repository since the original repository was giving an remote package repository is corrupted error
    5. Finally, had to comment out this line in bmvc2k.cls: \usepackage[sort,numbers]{bmvc2k_natbib} And, instead, used Document → Bibliography → Natbib (Numerical) in order to avoid the following error: Argument of \NAT@xcom has an extra }. which turns out to be a natbib error of some sort that Lyx creates (the original .tex works just fine)
      • Still used bmvc2k.bst as the style for the bibliography in Lyx
  • ACM Multimedia (ACMM): Adding/Using ACMM ’s .cls file:
    1. Put (as detailed below) sig-alternate.cls in a new folder called sig-alternate in C:\Program Files\MiKTeX 2.7\tex\latex
      • For the review version, I removed the \@copyrightspace from \maketitle in sig-alternate.cls to save space on the copyright block
      • If you want to cut the space between the title and text, change -12.75pc to -10.75pc in \advance\dimen0 by -12.75pc\relax % Increased space for title box – KBT
      • Can also change how low text extends by changing \textheight 666pt % 9 1/4 column height to \textheight 706pt % 9 1/4 column height
        • For CI Fellows, ended up making \advance\topmargin by -65pt % Leave 37pt above text for headers instead of \advance\topmargin by -37pt % Leave 37pt above text for headers and \textheight 733pt % 9 1/4 column height
    2. Create and add the sig-alternate layout in C:\Program Files\LyX16\Resources\layouts\sig-alternate.layout
        #% Do not delete the line below; configure depends on this
        # \DeclareLaTeXClass[sig-alternate]{article (sig-alternate)}
        # Input general definitions
        Input stdclass.inc
        
        # Input lyx algorithm definitions
        Input algorithm.inc
        
    3. Then run MikTex ’s Settings (and then Refresh FNDB) and then Tools → Reconfigure in Lyx
    4. ACM also requires the bib entries in the .tex file; here ’s a guide on how to do it in Lyx: http://wiki.lyx.org/Examples/AcmSigplan
      • Basically, export to .tex, then run latex name.tex, then bibtex name and then copy and paste contents of the .bbl into name.tex
    5. ACM also requires the bib entries in the .tex file; here ’s an automated script to do it: http://www.lyx.org/trac/ticket/4624
  • ACM CSCW: Adding/Using SIG CHI ’s .cls file:
    1. Put (as detailed below) chi2009.cls in a new folder called chi2009 in C:\Program Files\MiKTeX 2.7\tex\latex
    2. Create and add the chi2009 layout in C:\Program Files\LyX16\Resources\layouts\chi2009.layout
        #% Do not delete the line below; configure depends on this
        # \DeclareLaTeXClass[chi2009]{article (chi2009)}
        # Input general definitions
        Input stdclass.inc
        
        # Input lyx algorithm definitions
        Input algorithm.inc
        
    3. Then run MikTex ’s Settings (and then Refresh FNDB) and then Tools → Reconfigure in Lyx
    4. Ran into a problem with the bibliography definitions in the chi2009.cls file
      • As per here, when the references are just question marks, the problem is either the format setup in the .cls file or weird characters in the .bib file: http://www.latex-community.org/forum/viewtopic.php?f=4&t=3359
      • Replaced the bibliography sections in the chi2009.cls file (from
        %%% Actually, 'abbrev' works just fine as the default - Gerry
        to
        \gdef\balancecolumns
        )
        • Just went with bibliography Citation style Default (numerical) and first chose plain as style and then switched to abbrv as style
      • Replaced with the part it says (but had to remove the \newcommand\section part as it conflicted):
                  \setlength \labelsep {.5em}
                  \newcommand\newblock{\hskip
                       .11em\@plus.33em\@minus.07em} \let\@openbib@code\@empty
                  \newcommand\refname{References}
                  \newcommand\section{\@startsection
                        {section}{1}{\z@}%
                        {-3.5ex \@plus -1ex \@minus -.2ex}%
                        {2.3ex \@plus.2ex}%
                        {\normalfont\Large\bfseries}}
                  \newenvironment{thebibliography}[1]
                  {\section*{\refname}%
                    \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
                    \list{\@biblabel{\@arabic\c@enumiv}}%
                    {\settowidth\labelwidth{\@biblabel{#1}}%
                      \leftmargin\labelwidth \advance\leftmargin\labelsep \@openbib@code
                      \usecounter{enumiv}%
                      \let\p@enumiv\@empty \renewcommand\theenumiv{\@arabic\c@enumiv}}%
                    \sloppy \clubpenalty4000 \@clubpenalty \clubpenalty
                    \widowpenalty4000%
                    \sfcode`\.\@m} {\def\@noitemerr {\@latex@warning{Empty
                      `thebibliography' environment}}%
                      \endlist}
              
  • Springer/IJCV (ACCV also uses LNCS/llncs): For their Lecture Note Style ONLY, don ’t need this and can use the built-in LyX-provided documentclass article (Springer LNCS); otherwise, download from here
    • Copy the svglov3.clo and svjour3.cls files provided by Springer to C:\Program Files\MiKTeX\tex\latex\sv-journ3
    • Next run MikTex ’s Settings and then Refresh FNDB
    • Create the following layout file svjour3.layout in C:\Program Files\LyX16\Resources\layouts:
          #% Do not delete the line below; configure depends on this
          # \DeclareLaTeXClass[svjour3]{article (svjour3)}
          # Input general definitions
          Input stdclass.inc
          
    • Then, add the following to svjour3.layout:
          # Input lyx algorithm definitions
          Input algorithm.inc
          
    • Finally, run Tools → Reconfigure in Lyx
  • IEEE/tPAMI Journal: Follow directions in General Directions to Add Classes below
    • Did not need to do above for IEEEtran.cls as that was already in Lyx. All I had to do was load the shell ( bare_jrnl.tex) and then go to Document → Settings → Document Class and then add peerreview to Custom
  • NIPS Conference: Follow directions in General Directions to Add Styles below
    • Did this for NIPS conference: had to add a .sty for NIPS (it builds upon the article class).
    • Add everything before \begin{document} in the original .tex file to the Latex Preamble
      • Optionally, add \usepackage{nips07submit_e} to the Latex Preamble, too
    • In Lyx ’s Document → Settings → Document Class, make sure you use Article (algo) and not article as the base class as the former includes the Input algorithm.inc directive
  • CVPR: Adding/Using CVPR ’s .sty files and template:
    1. Put (as detailed below) cvpr.sty, cvpr_eso.sty, and eso-pic.sty in a new folder called cvpr in C:\Program Files\MiKTeX 2.7\tex\latex
    2. Next run MikTex ’s Settings and then Refresh FNDB
    3. Now you are able to include your package in the usual way: \usepackage{cvpr}, where you don ’t include the .sty in the file name in the \usepackage statement
      • For Lyx, when you import the egpaper_for_review.tex template, it adds the \usepackage{cvpr} and other lines into the Document → Settings → Latex Preamble
  • ECCV: Adding/Using ECCV ’s .cls and .sty files:
    1. Put (as detailed below) llncs.cls, lineno.sty, and splncs.bst in a new folder called llncs in C:\Program Files\MiKTeX 2.7\tex\latex
    2. Create and add the llncs layout in C:\Program Files\LyX16\Resources\layouts\llncs.layout
        #% Do not delete the line below; configure depends on this
        # \DeclareLaTeXClass[llncs]{article (llncs)}
        # Input general definitions
        Input stdclass.inc
        
        # Input lyx algorithm definitions
        Input algorithm.inc
        
    3. Then run MikTex ’s Settings (and then Refresh FNDB) and then Tools → Reconfigure in Lyx
    4. Add the following to the document ’s Preamble: Document → Settings → Latex Preamble
        \usepackage{lineno}\@ifundefined{definecolor}
        {\usepackage{color}}{}
        
      This will likely be added automatically when you import eccv2010submission.tex
    5. Finally, put everything between \begin{document} and \begin{abstract} into ERT at the top of the document and edit as needed.
      • Also, add \usepackage{times} in the Preamble to use the “Times, Helvetica, Courier ” defaults, if necessary
  • Cambridge University Press: Used in Book Chapter on Gait:
    • Create and add the cupbook layout in C:\Program Files\LyX16\Resources\layouts\cupbook.layout
      • Added in algorithm.inc, too (as long as it ’s already installed)
          #% Do not delete the line below; configure depends on this
          # \DeclareLaTeXClass[cupbook]{article (cupbook)}
          # Input general definitions
          Input stdclass.inc
          
          # Input lyx algorithm definitions
          Input algorithm.inc
          
    • Add cupbook‘s .cls and .sty files to Miktex ’s directory: C:\Program Files\MiKTeX 2.5\tex\latex\cupbook
    • Then run MikTex ’s Settings (and then Refresh FNDB) and then Tools → Reconfigure in Lyx
      • Specifically, add the .sty file to C:\Program Files\MiKTeX 2.5\tex\latex

General Directions to Add Classes

Reference: http://wastedmonkeys.com/2007/09/27/adding-a-new-class-in-lyx-windows
  1. Copy the xxx.cls file in ~\miktex###\tex\latex\ (where ### is the version (may or may not exist))
  2. Make a layout file matching the class file ( xxx.layout) like this (you may add extra settings), replacing xxx by your class name in the layout file:
      #% Do not delete the line below; configure depends on this
      # \DeclareLaTeXClass[xxx]{article (xxx)}
      # Input general definitions
      Input stdclass.inc
      
  3. Copy this file to the \Lyx###\Resources\layouts\
  4. Go to Start > Run ; type in cmd and press enter ; on the command prompt type texhash
  5. In LyX, do: Tools > Reconfigure ; Restart Lyx

General Directions to Add Styles

  1. Add the .sty to MikTex
    • Create a file for the information you ’d like to include in multiple files and name it something with a .sty extension, such as mylay.sty or mycommands.sty.
    • Put in the .sty file all the commands you ’d like to use in multiple source files and save the file.
    • You have two options for where to save the file to be able to include it in LaTeX source files:
      1. (Recommended) Install the .sty file with MiKTeX as follows:
        • Navigate to the folder where LaTeX packages get installed. If you accepted the default location when you installed MiKTeX, this folder is probably C:\Program Files\MiKTeX 2.5\tex\latex
        • Create a new folder inside this folder and call it whatever you want.
        • Save your .sty file into this folder.
        • Open the MiKTeX Settings (old: Options) program. (You can do this by clicking Start → All Programs → MiKTeX → MiKTeX Settings)
        • Click Refresh FNDB on the window that opens. Now you should be able to use any information in that .sty file in any LaTeX source file.
      2. Simply put your .sty file in the same folder as your source files. Unfortunately, this means if you have LaTeX source files in other folders, you ’ll have to carry copies of your .sty files to those folders, too. The real problem with this approach comes when you want to change one of these files, you have to change all those copies.
    • Now you are able to include your package in the usual way: \usepackage{your file name}, where you don ’t include the .sty in the file name in the \usepackage statement.
    • You can now call any command you have created in your .sty file.
  2. Add the .sty to Lyx
    • Go to: C:\Program Files\LyX16\Resources\layouts
    • For the sake of example well assume that the style file is called myclass.sty and it is meant to be used with report.cls which is a standard class.
      cp report.layout myclass.layout
    • Then edit myclass.layout and change the line: \DeclareLaTeXClass{report} to read \DeclareLaTeXClass[report, myclass.sty]{report (myclass)}
    • Then add the following near the top of the file:
          Preamble
             \usepackage{myclass}
          EndPreamble
          
    • Finally, Run Tools → Reconfigure in Lyx
  3. Edit the Document ’s Preamble

Chủ Nhật, 29 tháng 4, 2012

[LyX] Add new class into LyX

1. Create folder bmvc2k at C:\Program Files\MiKTeX 2.9\tex\latex
2. Copy bmvc2k.cls file into the new folder
3. Create file bmvc2k.layout with the content
#% Do not delete the line below; configure depends on this
# \DeclareLaTeXClass[xxx]{article (xxx)}
# Input general definitions
Input stdclass.inc
 
Replace xxx with the class name (here is bmvc2k)
4. Copy the bmvc2k.layout to the folder C:\Program Files\LyX 1.6.9\Resources\layouts
5. In command prompt (type cmd in start menu), type texhash. 
6. In LyX, Tools->Reconfigure, and then restart LyX
7. Open new document and set the new class: DOcument > Settings and select bmvc. If cannot see it, using Local Layout to pen the bmvc2k.layout file in LyX 1.6.9\Resources\layouts

References 
[1] Add new class for Linux
[2] Add new class for Windows Vista/Windows 7 
[3] For windows 

-------------------------------------------------------
Content from [3] is stored here for reservation
 

Adding custom class files (.cls) to Lyx in Windows Vista / Windows 7 environment

by  • February 22, 2010 • lyx, TeX, windows • 9 Comments

When writing for publication, you may be offered a .cls file from the journal in question in which to format a TeX document to their specification. Whilst this works great in TeX, usually by copying the class.cls file in your working directory where all your .tex files reside and adding \documentclass{class} in the preamble (before \begin{document}), using these custom classes isn’t so straightforward in Lyx, so I’ll describe the steps required. I’m using the eethesis.cls class file as an example, which you can obtain from http://www.latex-site.info/. This class file aids in the presentation of a thesis or progress report which meets the requirements of formatting at the University Of Birmingham, UK.
There are a couple of posts I ran across which deal with this specific issue, here and here. None were specific to Windows Vista/Windows 7, so I’ll deal with that here. This assumes version 2.8 of Miktex and version 1.6 of Lyx. If you are using an earlier or later versions, replace with the correct version numbers where I’ve used them.
  1. Get a copy of the class file, and copy it into a folder with the same name into C:\Users\your_user_name\AppData\Roaming\MiKTeX\2.8\tex\latex. So, for eethesis.cls, you should have a folder called eethesis within C:\Users\your_user_name\AppData\Roaming\MiKTeX\2.8\tex\latex. This is Windows Vista / Windows 7 specific, you will soon see why…
  2. Create a new file and paste the following into it:
    #% Do not delete the line below; configure depends on this
    # \DeclareLaTeXClass[xxx]{article (xxx)}
    # Input general definitions
    Input stdclass.inc
    replacing xxx with the class name (without the .cls extension). In my case, xxx is eethesis, and the code above becomes:
    #% Do not delete the line below; configure depends on this
    # \DeclareLaTeXClass[eethesis]{article (eethesis)}
    # Input general definitions
    Input stdclass.inc
    Thanks goes out to http://wastedmonkeys.com/2007/09/27/adding-a-new-class-in-lyx-windows for this.
  3. Save this file to C:\Program Files\LyX16\Resources\layouts, naming it eethesis.layout.
  4. In a command prompt (type cmd in start menu), type texhash. What you will now see it doing is iterating through several folders for new classes, one of which (C:\Users\your_user_name\AppData\Roaming\MiKTeX\2.8\) is where we copied the eethesis.cls class file into.
  5. Within Lyx, hit Tools > Reconfigure, then restart Lyx.
  6. Open a document and click Document > Settings. Click on ‘Document Class’, expand the drop down menu and you should see ‘article (xxx)’ is visible, and usable, (like below) within the drop down menu.
lyx-document-classes

Thứ Tư, 25 tháng 4, 2012

Cách tiêu diệt và phòng chống Conficker

Conficker là một loại sâu máy tính mới xuất hiện từ đầu năm nay nhưng đã nhanh chóng lây nhiễm trên phạm vi rộng khiến không ít người dùng “điêu đứng”. Dưới đây xin giới thiệu đến độc giả biện pháp phát hiện, ngăn chặn và tiêu diệt con sâu máy tính nguy hiểm này.

Conficker là gì?

Thực chất con sâu máy tính nguy hiểm này xuất hiện từ khoảng cuối năm ngoái ngay sau khi Microsoft công bố bản sửa lỗi cùng thông tin một lỗi bảo mật cực kỳ nguy hiểm có mặt trong hầu hết mọi phiên bản Windows. Conficker chính là loại mã độc lợi dụng lỗi bảo mật này để phát tán và lây nhiễm lên PC của người dùng.

Bản thân Microsoft cũng khi phát hành bản cập nhật khẩn cấp khắc phục lỗi trên đây cũng đã cảnh báo về những loại mã độc tấn công lỗi Windows như Conficker đồng thời khuyến cáo người dùng nên nhanh chóng tải về và cài đặt bản sửa lỗi.

Song có vẻ như số lượng người dùng để ý đến lời cảnh báo của Microsoft không được nhiều cho lắm. Bằng chứng rõ ràng chứng minh cho điều này chính là sự bùng phát mạnh mẽ của Conficker trong những tháng đầu năm nay.

Sâu Conficker được biết đến bằng những cái tên cụ thể như sau Worm:Win32/Conficker.A – theo cách đặt tên của Microsoft, Crypt.AVL của AVG, Mal/Conficker-A (Sophos), Trojan.Win32.Pakes.lxf (F-Secure), Trojan.Win32.Pakes.lxf (Kaspersky), W32.Downadup (Symantec), Worm:Win32/Conficker.B (Microsoft) và WORM_DOWNAD.A của Trend Micro.

Phương thức lây nhiễm chủ yếu của con sâu máy tính này là thông qua thẻ nhớ USB hoặc một PC bị lây nhiễm trong mạng sẽ tự động lây nhiễm sang các PC khác ngang hàng. Conficker có thể đột nhập được vào PC do (1) người dùng đã tải về những phần mềm từ những website không an toàn trên mạng Internet, (2) người dùng có sử dụng các ứng dụng chia sẻ tệp tin ngang hàng và (3) người dùng đã truy cập vào một website dùng để phát tán sâu Conficker.

Mục đích cuối cùng của con sâu Conficker là giúp tin tặc đứng đằng sau nó nắm được quyền điều khiển PC của người dùng. Bọn chúng có thể từ xa ra lệnh cho PC của người dùng phát tán thư rác, tấn công website, ăn cắp dữ liệu hoặc dùng lừa đảo trực tuyến …

Conficker có thể lây nhiễm lên mọi phiên bản Windows Windows 2000, Windows 95, Windows 98, Windows Me, Windows NT, Windows Server 2003, Windows Vista, và Windows XP nếu như người dùng chưa cài đặt bản sửa lỗi của Microsoft.

Dấu hiệu nhận biết bị nhiễm Conficker

Có rất nhiều dấu hiệu nhận biết PC bị lây nhiễm sâu Conficker. Dưới đây là một số dấu hiệu điển hình minh chức PC bị nhiễm không chỉ sâu Conficker mà cũng như các dạng mã độc khác đang thịnh hành trên Internet.

Thứ nhất, người dùng sẽ thấy PC bung ra rất nhiều quảng cáo dạng pop-up khác nhau. Thứ hai là trình duyệt web xuất hiện rất nhiều thứ lạ mà người dùng chưa từng thấy cũng như chưa từng tải về cài đặt trước đây.

Thứ ba là một số thiết lập trên hệ thống bị thay đổi mà người dùng không hề hay biết. Ví dụ trang chủ (homepage) của trình duyệt bị thay đổi sang trang khác và không thể đổi lại như cũ được nữa. Thứ tư là PC tự dưng chạy chậm hơn bình thường rất nhiều.

Thứ đến Conficker ngăn cản không cho người dùng truy cập đến một số thư mục nhất định cũng như không cho phép truy cập đến các website của các hãng bảo mật như www.symantec.com, www.mcafee.com... Trên hệ thống tự dưng xuất hiện một số tác vụ được lập lịch chạy thường xuyên (schedule task).

Cách diệt Conficker

Một khi PC đã lây nhiễm sâu Conficker thì có thể nói các phần mềm diệt virus gần như bị vô hiệu hóa hoàn toàn không thể tiêu diệt được nó. Chính vì thế mà các hãng bảo mật đã phát triển những công cụ diệt virus độc lập dành riêng cho từng loại mã độc riêng biệt. Để tiêu diệt dưới đây xin giới thiệu đến độc giả công cụ diệt Conficker của hãng bảo mật Symantec – một trong những công cụ đơn giản và dễ sử dụng nhất.

Bước 1: Người dùng hãy tải về công cụ này tại đây. Nhắp chuột phải và chọn “Save Link As” với trình duyệt Firefox và “Save Target As” đối với Internet Explorer. Người dùng nên lưu tệp tin này ở vị trí dễ tìm thấy như màn hình Desktop chẳng hạn.

Bước 2: Đóng mọi chương trình đang chạy, ngắt hoàn toàn kết nối Internet và vô hiệu hóa tính năng System Restore của hệ thống.

Bước 3: Chạy chương trình vừa tải ở trên.

Bước 4: Sau khi chương trình chạy xong khởi động lại PC. Người dùng nên chạy lại chương trình một lần nữa để bảo đảm hệ thống sạch.

Bước 5: Tải về và cài đặt bản cập nhật bảo mật MS08-067 của Microsoft tại đây. Đơn giản nhất là dùng tính năng Automatic Updates của Windows để cập nhật.

Tự bảo vệ

Nếu như may mắn chưa bị lây nhiễm sâu Conficker thì người dùng cũng nên triển khai các biện pháp để bảo vệ mình trước không chỉ sâu Conficker mà cả các loại mã độc khác.

Đối với sâu Conficker thì người dùng nên nhanh chóng tải về và cài đặt bản cập nhật MS08-067 sớm chừng nào hay chừng đó. Tốt nhất người dùng nên bật tính năng tự động cập nhật Automatic Updates để cho Windows tự động tải về và cài đặt mọi bản cập nhật cần thiết.

Bên cạnh đó người dùng cũng nên sử dụng các chương trình chống virus danh tiếng như Kaspersky, Symantec Norton … để bảo vệ hệ thống. Vô hiệu hóa hoàn toàn tính năng AutoRun của Windows bằng theo bài hướng dẫn video này.

Ngoài ra người dùng cũng nên áp dụng các biện pháp sử dụng Internet an toàn như không nên mở các tệp tin đính kèm từ các email không rõ nguồn gốc, nên tập thói quen quét các ổ đĩa USB khi kết nối vào hệ thống, nên sử dụng mật khẩu bảo vệ Windows…
Theo VnMediaNguồn