desktop

ubuntu18.04创建快捷方式

我怕爱的太早我们不能终老 提交于 2020-01-19 19:52:20
以eclipse为例,创建一个快捷方式 1:ubuntu所有的快捷方式都是在applications文件夹下面,先切入 cd /**加粗样式**usr/share/applications 2:然后创建一个桌面执行文件,后缀为desktop, ubuntu没有新增文件的鼠标操作方式,直接vim + 文件名.文件格式,然后一保存就创建成功了 sudo vim eclipse.desktop 3:把这段粘进去 [Desktop Entry] Encoding=UTF-8 Name=Eclipse Platfrom Comment=Eclipse IDE Exec=/home/jiayi/eclipse/jee-2019-122/eclipse/eclipse Icon=/home/jiayi/eclipse/jee-2019-122/eclipse/icon.xpm Terminal=false StartupNotify=true Type=Application Categories=Application;Development; Exec 后面跟的是eclipse执行文件的全路径 icon 是eclipse的图标全路径,都在一个文件夹下面, 4:把刚刚创建的文件授权变为可执行文件 sudo chmod u+x eclipse.desktop 5:查看创建的方式, 执行 sudo

20 Java学习之Path & Files & Paths (1.7开始)-----java nio内容

倾然丶 夕夏残阳落幕 提交于 2020-01-18 13:59:44
Java7中的文件IO发生了很大的变化,引入了很多新的类,可以去看java.nio.file包。比如:1.7之前主要是通过File创建一个文件,然后将File作为输入参数,获取输入流等操作。而1.7开始,就采用了Path接口代替File类,且Files作为操作了,里面定义了很多非常有用的API。并且Paths主要是用来获取Path类。 之所以新增这些接口或者类,是因为java.io.File类有很多缺陷,它即使操作失败也不会抛出异常。Path更加高效。 一. Paths (工具类) Paths类主要是用来生成Path对象的。 1. 类定义 public final class Paths 说明:这个类不可以被继承 2. 构造函数 private Paths() { },私有构造函数,不允许外界创建它的对象。 3.方法介绍 只有两个静态方法,一个是通过String类型的pathname来get到Path对象,另外一个是根据URI来get到Path对象。 (1)根据string类型的pathname 1 public static Path get(String first, String... more) { 2 return FileSystems.getDefault().getPath(first, more); 3 } View Code 说明:第二个参数是个变参。举例 1

CentOS7系统中安装Eclipse

心已入冬 提交于 2020-01-17 07:38:50
一、下载Eclipse软件 https://www.eclipse.org/downloads/packages/release/Luna/SR2 二、安装Eclipse软件 移动安装包到/opt目录中,切换到/opt目录下:cd /opt 解压缩包:tar -zxvf eclipse-jee-luna-SR2-linux-gtk-x86_64.tar.gz 在桌面创建eclipse的快捷方式: 方法一: 在/usr/bin目录为该Eclipse创建软链接:ln -s /opt/eclipse/eclipse /usr/bin/eclipse 将该软链接(相当于Windows中的快捷方式)复制到桌面,即可从桌面启动Eclipse 方法二: vim /usr/share/applications/eclipse.desktop 添加如下内容: [ Desktop Entry ] Type = Application Name = eclipse Exec = /opt/eclipse/eclipse GenericName = eclipse Comment = Java development tools Icon = /opt/eclipse/icon.xpm Categories = Application ; Development ; Terminal = false

RegisterPointerInputTarget not consuming all input

本秂侑毒 提交于 2020-01-16 18:45:26
问题 I'm working in Windows 10 and I am trying to write a C++ program that intercepts all touch screen input, however some input is still getting through. My code calls RegisterPointerInputTarget with PT_TOUCH to intercept touch input. This mostly seems to work, however the results are inconsistent. As a test I have added code that uses SendInput to move the mouse slowly to the right whenever touch input is detected. With my program running I can, for example, open up MS Paint and touch the screen

python 文件操作复习一

那年仲夏 提交于 2020-01-16 18:24:25
复习文件操作 print "当前路径:" print os.getcwd() print "判断是否是一个文件:" print os.path.isfile(os.getcwd()) print "是否是一个目录:" print os.path.isdir(os.getcwd()) print os.system("ls") print "判断是否是绝对路径:" print os.path.isabs("excp01.py") print "检验给出的路径是否真地存:" print os.path.exists("/Users/zhouhaijun") print "返回一个路径的目录名和文件名" print os.path.split("/Users/zhouhaijun") print "分离文件名与扩展名" print os.path.splitext("tmp1.dat") print "找出某个目录下所有的文件,并在每个文件中写入“osTest”" for root,dis,files in os.walk("/Users/zhouhaijun/Desktop/hhhhh/osTest"): for name in files: print name,root,os.path.join(root,name) with open(os.path.join(root,name

学习总结---列表和字符串的比较

自作多情 提交于 2020-01-16 17:35:41
前言 该文章描述了列表以及字符串的比较以及理解对象的方法 2020-01-16 天象独行   在对列表和字符串的比较之前,我们先尝试初步理解一下“对象”这个概念,我们都知道“万物皆对象”。那么我们可以认为列表以及字符串都是对象。对象是有三个特性,即身份,类型,值。“身份”我们可以认为是物理地址,“类型”以字符串为例是str类型,列表为例list类型。“值”以字符串来说就是本身,列表来说就是其中的元素。那么,对于对象来说它含有一些对应的方法。一般我们采用dir()函数来查看对象的方法,help()函数来查看该方法如何使用。下面举例:   查看字符串的方法: a = 'qwerftgyhjuki' print(dir(a)) C:\Users\aaron\Desktop\Pytoon-cade\venv\Scripts\python.exe C:/Users/aaron/Desktop/Pytoon-cade/urllib-Study.py ['__add__', '__class__', '__contains__', '__delattr__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getnewargs__', '__gt__',

pandas生意参谋数据处理

霸气de小男生 提交于 2020-01-16 04:47:39
import os import pandas as pd hhye = os . listdir ( r 'C:\Users\18352\Desktop\Python\read_Excel\01-天猫行业数据分析' ) for k in range ( len ( hhye ) ) : wwdu = os . listdir ( r 'C:\Users\18352\Desktop\Python\read_Excel\01-天猫行业数据分析\{}' . format ( hhye [ k ] ) ) for j in range ( len ( wwdu ) ) : path = r 'C:\Users\18352\Desktop\Python\read_Excel\01-天猫行业数据分析\{}\{}' . format ( hhye [ k ] , wwdu [ j ] ) dfs = [ ] shop = os . listdir ( r 'C:\Users\18352\Desktop\Python\read_Excel\01-天猫行业数据分析\{}\{}' . format ( hhye [ k ] , wwdu [ j ] ) ) for i in range ( len ( shop ) ) : df0 = pd . read_csv ( r 'C:\Users

C# 创建桌面快捷方式

本秂侑毒 提交于 2020-01-15 11:38:04
/// <summary> /// 创建桌面快捷方式 /// </summary> /// <param name="deskTop">桌面的路径</param> /// <param name="FileName">文件的名称</param> /// <param name="exePath">EXE的路径</param> /// <returns>成功或失败</returns> public bool CreateDesktopShortcut(string deskTop, string FileName, string exePath) { try { string deskTop = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\"; if (System.IO.File.Exists(deskTop + FileName + ".lnk")) // { System.IO.File.Delete(deskTop + FileName + ".lnk");//删除原来的桌面快捷键方式 } WshShell shell = new WshShell(); //快捷键方式创建的位置、名称 IWshShortcut shortcut = (IWshShortcut)shell

Creating process to run IE on new Windows desktop

ⅰ亾dé卋堺 提交于 2020-01-15 10:59:09
问题 I'm trying to set up an IE kiosk which runs IE on a separate desktop. While I'm testing I'm just starting IE normally (not in kiosk mode), but although IE starts up on the new desktop it doesn't load the initial page specified in the command string, it just sits there with the hourglass flickering on and off really quickly (even when I move the mouse elsewhere on the desktop, outside the IE window). There is no URL displayed in the navigation box. I can access the menus and so on inside IE,

How to get users desktop path in python independent of language install (linux)

倾然丶 夕夏残阳落幕 提交于 2020-01-15 04:01:46
问题 I've found several questions and answers to "How do I find the path to the users desktop", but in my mind they are all defunct (those I found at least). The reason is that if the user has a installation of Linux that is not English, he or she may well have the desktop somewhere other than in ~/Desktop . E.g. for Swedish, I believe it is in ~/Skrivbord . And who knows where the user decided to place his or her desktop? For that reason the following won't do (or any variant of it): os.sep.join(