https://hackmd.io/@synchrotech-inc/SJXbVFysr
2022年12月15日 星期四
2022年7月3日 星期日
using spyder python terminal on windows command line
https://stackoverflow.com/questions/42602024/windows-shortcut-to-run-python-script-in-anaconda-command-prompt
nce the quotes were inserted correctly this worked perfectly for me. I had been looking all over for a good solution to this problem. I have Anaconda3 installed. Thanks to Eryk Sun et al.
My batch file as follows: -
echo off
cls
"%windir%\System32\cmd.exe" /k ""C:\ProgramData\Anaconda3\Scripts\activate.bat" "C:\ProgramData\Anaconda3" && python.exe "C:\Desktop\eam\1\1-v2.py""
2022年6月11日 星期六
route add
https://blog.xuite.net/mypace/wretch/145109060
電腦] Windows Route Table 兩張網卡的設定
要增加預設值網路閘道位址為 192.168.1.1 的預設值路由,輸入:
route add 0.0.0.0 mask 0.0.0.0 192.168.1.1
2.設定大愛網段走大愛網卡
route ADD 192.168.161.0 MASK 255.255.255.0 192.168.161.1
3.啟動大愛網卡時候會造成兩個0.0.0.0閘道
route change 0.0.0.0 mask 0.0.0.0 192.168.1.1
關於第三點可參考 http://sunrise-msn.spaces.live.com/Blog/cns!487A9984929026B7!202.entry
----------
C:\> route print
Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 10.101.8.254 10.101.8.64 20 0.0.0.0 0.0.0.0 192.168.101.254 192.168.101.1 20 Default Gateway: 10.101.8.254 ===========================================================================
C:>route change 0.0.0.0 mask 0.0.0.0 192.168.101.254
C:>route print
Active Routes: Network Destination Netmask Gateway Interface Metric 0.0.0.0 0.0.0.0 192.168.101.254 192.168.101.1 1 Default Gateway: 192.168.101.254 ===========================================================================
2022年3月11日 星期五
Adding download actions , export auto open excel (firefox)
Adding download actions
Starting in Firefox version 98, when you download a file that can be opened with an installed application, you can right-click the downloaded item in the Downloads panel and select Always Open Similar Files from the context menu.
Selecting Always Open Similar Files will add a new download action entry for that type of file to the General panel Applications section of Firefox settings. You can later change the download action (see above) to a different action, such as "Always ask" or "Save File", if you wish.
2021年11月25日 星期四
overlay one pdf or ps file on top of another
https://stackoverflow.com/questions/501723/overlay-one-pdf-or-ps-file-on-top-of-another
You can do this with pdf files using the command line tool pdftk using the stamp or background option.
e.g.
$ pdftk file1.pdf background file2.pdf output combinedfile.pdf
This will only work with a one-page background file. If you have multiple pages, you can use the multibackground command instead.
Display gridlines in a Microsoft Word document
https://www.techrepublic.com/blog/microsoft-office/display-gridlines-in-a-microsoft-word-document/
Method #3: Printing Gridlines for Text and Image Alignment
Step #1: Open the Word document containing an image
Open the Word document, and navigate to the page with the image.

Step #2: Turn Gridlines on
Click on View tab on the top menu bar and click on Gridlines to turn it on. A grid should now cover the page.

PCMCIA ATA Flash PC Card imaging using OmniDrive 留言
The best source of information for utilizing the OmniDrive and the PC Card Manager software it comes with is the documentation that the device comes with — starting with the comprehensive help system contained in PC Card Manager’
"Help"menu.A copy of this document is available online.
I. Checking the OmniDrive
A quick way to determine if the OmniDrive, its drivers, and PC Card Manager are working is to
Menu: "Tools -> Analyze Card"Here, we used a 64MB ATA Flash PC Card, so the values populating the fields in the “ATA Card” section will likely look different than those you are deploying. What’s important is that the fields are filled in with values. If there are issues, see the begining of this document for instructions on checking the OmniControl utility to ensure that all the drivers and software packages are installed correctly.
II. Creating an image of a card
To create a byte-for-byte image (binary image) of the ATA Flash PC Card:
Menu: "Actions -> Copy -> Card to File(s)""New"in the"Copy Jobs"section"Source; File"click the ellipse"…"character"Save As"dialog perform the following:"Save in:"pop-up"File name:"field"Files of type"pop-up to"BIN files""Save""Source"the following attributes will be preset:"Copy"in the bottom of the"Copy: Card to File(s)"dialog. A progress indicator will appear."Copy Jobs; Address"III. Writing images to cards
The process for writing images to cards is very similar to the process above.
To write a byte-for-byte copy of a binary image to the ATA Flash PC Card:
Menu: "Actions -> Copy -> File(s) to Card""New"in the"Copy Jobs"sectionUnder
"Source; File"click the ellipse"…"characterChange
"Files of type"to"BIN files"and locate the file created in step II.5 above.Click
"Open". Like step II.6 above, there is no need to change the default values. Here, the attributes will be under"Target".They should read the same as discussed above:"Options"select"Write with verify"and click"Copy". A progress dialog appears."Source file"under"Copy Jobs". You may now eject the current PC Card and insert a new card."Copy"for all subsequent cards, and"Cancel"when you are done.Compares
A compare function, much like
cmpin Unix, is available to check cards to binary images. The process described in the document OmniDrive: Comparing .bin files to Linear Flash images would be the same for ATA Flash as it is for Linear Flash.