directory

Custom folder icons with desktop.ini & instant refreshing

懵懂的女人 提交于 2020-01-06 04:01:26
问题 I am tasked with creating a book-keeping program that tracks some statistics of when files and folders are read. Similar to Google Drive and TortoiseSVN, the folder and file icons should reflect certain changes. For instance, a USB with files that haven't been viewed on a certain computer have an 'x', whereas viewed files get a 'o'. I can track file usage with this Windows API, and icons (as well as some other nice options) can be changed by the desktop.ini files [1,2,3,4]. While manually

Can I use Javascript to get a file directory list?

倾然丶 夕夏残阳落幕 提交于 2020-01-06 03:37:07
问题 I'm using client-side Javascript and want to get a list of all the files in a folder that I believe is hosted on the same server as my .html file. I'm very unfamiliar with the terminology so I apologize in advance if I'm inaccurate or just plain wrong. I currently use d3.text("js/data/nodes#.csv", "text/csv", someFunction) to load in a data file to work with. I figure that since all the filenames I want are templated the same way, I can hack a solution by looping through all possible numbers

How to create a menu or directory? [closed]

耗尽温柔 提交于 2020-01-06 02:22:46
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . How do I make a simple Menu/Directory using Python? I would like to have letters that the user would press to do tasks, and when they enter the letter after the prompt, the task is done... for example: A. Create Username B. Edit Username C. Exit Choice: And then all the user has to do is enter one of the letters

GCC 升级

故事扮演 提交于 2020-01-06 01:40:08
1、下载源码 wget ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.gz 2、下载依赖包 编译安装 GCC 需要依赖 mpc,mpfr,gmp包。好在 GCC 源码里自带脚本可以轻松下载依赖包。 tar zxf gcc-4.8.5.tar.gz cd gcc-4.8.5 ./contrib/download_prerequisites 在此脚本里可以看到依赖包的版本号依次是 mpc-0.8.1,mpfr-2.4.2,gmp-4.3.2。 3、编译安装 mkdir gcc-build-4.8.5 cd gcc-build-4.8.5 ../configure --prefix=/usr make && make install 为了避免安装后系统里出现多个版本的 GCC,这里直接将编译安装的目录指定为 /usr,如果不指定 –prefix,则会默认安装到 /usr/local 下。 GCC 4.8.5 光是源代码就有105MB,因此可以预见整个编译过程需要很长时间(差不多 2 个小时左右)。 4、查看版本号 gcc --version gcc (GCC) 4.8.5 g++ --version g++ (GCC) 4.8.5 which gcc /usr/bin/gcc which g++ /usr/bin/g++ 注:本次是在

Access to the path is denied when trying to delete a certain directory [duplicate]

妖精的绣舞 提交于 2020-01-06 01:30:28
问题 This question already has answers here : How do I delete a directory with read-only files in C#? (11 answers) Closed 2 years ago . The code Here's a grossly simplified pseudo-code version of some C# code that I'm debugging. // 1) Lots of files and directories are copied // 2) Some unnecessary files are deleted // 3) Try to delete an unnecessary directory string stubbornFolder = @"C:\...\Stubborn"; // This folder was created during step 1 above. Directory.Delete(stubbornFolder); The problem

LINUX学习 -- RPM格式软件包的安装

不羁岁月 提交于 2020-01-06 01:12:56
RPM是RedHat公司开发的软件包管理器,使用它可以很容易地对RPM形式的软件包进行安装、升级、卸载、验证、查询等操作,安装简单,而卸载时也可以将软件安装在多处目录中的文件删除干净,因此推荐初学者尽可能使用RPM形式的软件包。软件包往往有特定的命令规范,名字是由“文件名+版本号+.rpm”组成的字串,例如apache-3.1.12-i386.rpm和apache-devel-3.1.12-i386.rpm,它们的软件包名称分别是apache和apache-devel。各个支持RPM格式的Linux常见软件的RPM包可以在网站rpmfind.net中找到。    1.安装   命令格式:   rpm-i(or--install) options file1.rpm ... fileN.rpm   参数:   file1.rpm...fileN.rpm指将要安装的RPM包的文件名。   详细选项:   -h(or—hash)安装时输出hash记号;test只对安装进行测试,并不实际安装;--percent以百分比的形式输出安装的进度;--excludedocs不安装软件包中的文档;--includedocs安装文档;--replacepkgs强制重新安装已经安装的软件包;--replacefiles替换属于其他软件包的文件;--force忽略软件包及文档的冲突;-

Append index.html to root directory

╄→尐↘猪︶ㄣ 提交于 2020-01-05 15:00:33
问题 I have a problem with my new site. (www.example.com) Basically, when I look at my google analytics page, it considers mysite/index.html and mysite/ to be two different pages. This is problematic mainly for SEO reasons. Is there a way to append the two or make the root automatically redirect to mysite/index.html? I figured you probably can do this with either a 301 redirect or by modifying the .htaccess file. My host is iPage by the way. Thanks 回答1: You are able to accomplish this on an

Listing available files and directories in Matlab

主宰稳场 提交于 2020-01-05 13:00:08
问题 I would like to list available directories and text files in specific directories recursively in Matlab command window (and ultimately in an m-file). I know commands like ls are available, but I would like to know the text files available in a string or vector before I recursively read each text file in the following file system structure: master (contains A and B, all directories) A contains A1 and A2 (all directories) A1 contains A11, A12, A13, A14 (all directories) A11 contains 1.txt, 2

Listing available files and directories in Matlab

牧云@^-^@ 提交于 2020-01-05 12:59:32
问题 I would like to list available directories and text files in specific directories recursively in Matlab command window (and ultimately in an m-file). I know commands like ls are available, but I would like to know the text files available in a string or vector before I recursively read each text file in the following file system structure: master (contains A and B, all directories) A contains A1 and A2 (all directories) A1 contains A11, A12, A13, A14 (all directories) A11 contains 1.txt, 2

How do I make JFileChooser open in the current directory the user is in?

拜拜、爱过 提交于 2020-01-05 10:26:42
问题 I do not want to specify a directory. I just want it to automatically "know" and open in the directory the user is working in. How do I do this? 回答1: This examples defaults to the user.dir on first showing. It then retains the instance of the chooser to automatically track the last load or save location, as suggested by MadProgrammer. import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.EmptyBorder; import java.io.*; public class ChooserInCurrentDir { //