desktop

特殊权限语法

旧街凉风 提交于 2019-12-20 00:02:33
基本权限UGO u 所属主 g 所属组 o 其他人 r (4)读 read w(2)写 write x(1)执行 execute 针对文件: ​ r 读 是否允许可以查看文件的内容 ​ w 写 能够修改或删除文件的内容 ​ x 执行 是否可以执行该文件 一个用户是否能够删除一个文件,判断依据是该用户对该文件所在的目录是否有写的权限 针对目录: ​ r 读 是否允许可以查看目录里的列表 ​ w 写 是否能够删除,重命名目录下的文件和修改目录下文件的属性等 ​ x执行 是否可以进入到该目录 正常操作一个目录,至少应该保证r-x ​ 修改权限 chmod ,修改文件的权限 -R (递归修改)把目录以及目录里的所有子对象都更改 语法: 单独修改一个位置的权限 chmod u-x filename ----将用户的访问或执行权限减去 chmod [u|g|o|a]+-=rwx filename [root@anuo ~]# chmod g=rwx /shared/sysadmin [root@anuo ~]# chmod o=--- /share/sysadmin 修改文件权限语法 chmod [-R] <a|u|g|o> +-= rwx- /<path>/filename chmod [-R] 755 /<path>/filename [root@anuo ~]# chmod 750

Apache之虚拟web主机的构建

穿精又带淫゛_ 提交于 2019-12-19 22:40:31
[TOC] 文章目录 一、虚拟主机概述 二、实验准备 三、基于域名---构建虚拟主机 3.1、DNS解析 3.2、为虚拟主机准备网页文档 3.3、虚拟主机配置 3.4、httpd服务 3.5、结果验证 四、基于端口—构建虚拟主机 4.1、实验环境 4.2、实验过程 五、基于IP—构建虚拟主机 5.1、应用示例 5.2、实验操作 一、虚拟主机概述 虚拟Web主机 在同一台服务器中运行多个Web站点,其中每一一个站点并不独立占用一台真正的计算机 httpd支持的虚拟主机类型 基于域名的虚拟主机 基于IP地址的虚拟主机 基于端口的虚拟主机 二、实验准备 构建2个虚拟Web站点: 网站:www.test.com、www.demo.com 确认安装httpd、bind 软件 关闭防火墙 ![1576742150233](C:\Users\wang\Desktop\新建文件夹 (2)\1576742150233.png) 三、基于域名—构建虚拟主机 网站:www.accp.com , IP: 192.168.111.132 网站:www.kgc.com , IP: 192.168.111.132 3.1、DNS解析 1、DNS的主配置文件 ![1576742382621](C:\Users\wang\Desktop\新建文件夹 (2)\1576742382621.png) 2

I found some code that shows/hides desktop icons, but it moves the icons in the process. How can I edit the code to not move the icons?

ⅰ亾dé卋堺 提交于 2019-12-19 11:45:10
问题 I'm using two batch files for Rainmeter, one to hide all icons and then launch Rainmeter, and another to show all icons and quit Rainmeter to make my desktop look normal again. My end goal is to make these two batch files into buttons on my task bar that I can click to toggle the look of my desktop. What I have so far is just the two batch files but all they do is show and hide desktop icons. (I found the code online because I couldn't write it myself) show.bat REG ADD "HKCU\Software

Adding item to the Desktop context menu in Windows

眉间皱痕 提交于 2019-12-19 04:21:19
问题 I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop). Something like Catalyst Control Center in this screenshot: I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry. So, how can I add a new item into the Desktop menu and how can I associate some code with it? I think the solution is language

Adding item to the Desktop context menu in Windows

故事扮演 提交于 2019-12-19 04:21:11
问题 I want to add an item into the Desktop context menu (the menu you see when you right-click on an empty space on the Windows Desktop). Something like Catalyst Control Center in this screenshot: I know how to add items to files' and folders' context menus through registry, but the Desktop seems to work differently: I didn't even find the text in the registry. So, how can I add a new item into the Desktop menu and how can I associate some code with it? I think the solution is language

How can I change the Dock preferences programmatically?

旧巷老猫 提交于 2019-12-19 04:14:10
问题 I'm new to Cocoa/macOS programming. I just found out that NSUserDefaults can be used to change application/system settings, like the way the defaults command does. But I don't know how to cause these settings to update. e.g., I use NSUserDefaults to set the dock size to 32, and synchronize the setting. But the dock retains the old setting. Even when I use defaults write com.apple.dock tilesize 32 to change its size, it won't be updated until I logout and login. Is there any other technology

Desktop graphics - or “skinned” windows

℡╲_俬逩灬. 提交于 2019-12-19 04:09:53
问题 I'm looking for a way to draw animations right on the desktop. No window frames and with transparent background. I'm using Python in windows XP for it, but it doesn't have to be cross platform, although it'd be a nice bonus. Does anyone know about a python library that can do this? 回答1: If you want a frameless window, there are several options. For example, pygame can be initialized with the following flag: pygame.init() screen = pygame.display.set_mode(size=(640,480), pygame.NOFRAME) Your

When should I use a platform like OSGI and when it must be avoided?

不羁岁月 提交于 2019-12-18 18:55:32
问题 My question is pretty straightforward: What are the features of an application that force the developer to exploit OSGI-like system? What are the cases, when such a utility is unneeded? 回答1: I just posted the following link to another question (What does OSGi solve), but I think here it is an even better fit. Hal Hildebrand wrote a blog about why and when he thinks OSGi is helping your development/product. The core essence of the (pretty long) post is that it helps especially when dealing

Change the wallpaper on all desktops in OS X 10.7 Lion?

限于喜欢 提交于 2019-12-18 12:57:05
问题 I would like to change the wallpaper of all desktops (formerly "spaces") on a screen. As of OS X 10.6 there is a category to NSWorkspace which allows the setting of the wallpaper, however, when I use this function only the wallpaper of the current desktop gets changed and all the other desktops remain unchanged. I then looked at the desktop preferences plist and wrote a class that modifies it to reflect the changes I want (basically set a new image file path). After the new file was saved I

How to get the icon for a file extension or filetype without creating a temp file?

眉间皱痕 提交于 2019-12-18 10:37:13
问题 I list some filenames with their icons (like the ones in the Windows Explorer) in a JTable . I know the two ways to get the icon if I have a File object from the local file system: javax.swing.filechooser.FileSystemView.getFileSystemView().getSystemIcon( file ) for a 16x16 icon or for a bigger one: sun.awt.shell.ShellFolder.getShellFolder( file ).getIcon( true ) ) Since my files are stored in a database, I don't have the File object. My workaround is to create a temp file with the specific