Friday, December 20, 2013

Dependency Walker 2.2

Dependency Walker is a free utility that scans any 32-bit or 64-bit Windows module (exe, dll, ocx, sys, etc.) and builds a hierarchical tree diagram of all dependent modules.

http://www.dependencywalker.com/

Wednesday, June 26, 2013

Flash Troubleshooting

http://kb.mozillazine.org/Flash#Troubleshooting

C:\Windows\System32\Macromed\Flash
mms.cfg
ProtectedMode=0

about:config
dom.ipc.plugins.timeoutSecs -> -1
dom.ipc.plugins.enabled.* -> false

Turn off hardware acceleration:
http://kb.mozillazine.org/Flash#Performance_or_display_issues_with_certain_Flash_videos

Thursday, June 20, 2013

a mcparallel/mccollect example

An example of mcparallel/mccollect to perform parallel tasks by creating external tasks.

library(parallel)

loop_function <- function (name, duration) {
start_time <- date()
i <- 0
while (i < duration) {
i <- i + 1
}
return (paste("Done: Job: ", name, "from", start_time, " to ", date()))
}
jobs_parallel <- lapply(1:9, function(x) mcparallel(loop_function(x, 3000000), name = x))
mccollect(jobs_parallel)
jobs_serial <- lapply(1:9, function(x) loop_function(x, 3000000))
jobs_serial

credits:

http://www.slideshare.net/bytemining/taking-r-to-the-limit-high-performance-computing-in-r-part-1-parallelization-la-r-users-group-727


http://stat.ethz.ch/R-manual/R-devel/library/parallel/doc/parallel.pdf

Thursday, June 13, 2013

Building R packages in Windows

http://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html

After installing Rtools and fixing the PATH, you can use RStudio to build the packages. The built packages can be used in R too:

install.packages("path/to/the/package", type="source")

Thursday, April 25, 2013

Friday, April 19, 2013

How to go back to use Adobe Acrobat Reader as the PDF previewer in Firefox browser:

How to go back to use Adobe Acrobat Reader as the PDF previewer in Firefox browser:

1. open a new tab
2. about:config
3. Search for pdfjs.disabled, and then change its value true
4. Search for plugin.disable_full_page_plugin_for_types, and then delete application/pdf from its string value.
5. Done!
6 (optional) You can also fix other extensions by deleting their associate strings from the plugin.disable_full_page_plugin_for_types string value. For example: application/vnd.fdf, application/vnd.adobe.xdp+xml, application/vnd.adobe.xfdf

You may need also to Enable the Acrobat Reader plugin via add-ons of your Firefox browser.





Credits:
https://support.mozilla.org/en-US/questions/950939

See also:
http://helpx.adobe.com/acrobat/using/display-pdf-browser-acrobat-xi.html#Mozilla_Firefox

Tuesday, March 12, 2013

R script: Warning: Font family not found in Windows font database

R script: Warning: Font family not found in Windows font database:

https://stat.ethz.ch/pipermail/r-help/2010-December/261857.html






Backup:

windowsFonts(Arial=windowsFont("TT Arial"))
barchart(1, scales=list(x=list(fontfamily="Arial")))