V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  phx13ye  ›  全部回复第 17 页 / 共 26 页
回复总数  506
1 ... 9  10  11  12  13  14  15  16  17  18 ... 26  
有一道题叫做 Nth Highest Salary ,解法是
SELECT DISTINCT Salary FROM Employee Emp1 WHERE (N-1 ) = (SELECT COUNT (DISTINCT (Salary ))
你可以看一下,
具体思路是,对于这条第二小的记录,肯定有一条记录比他还小
2015-08-30 16:45:15 +08:00
回复了 phx13ye 创建的主题 Linux 有很懂 X 的么? 显示器热插拔有问题
@miniwoodman
在 tty 还不能调 xrandr
设置了
DISPLAY 和 XAUTHORITY 后可以执行
和我正常在桌面显示一致
Screen 0: minimum 320 x 200, current 2560 x 1080, maximum 16384 x 16384
DVI-0 disconnected (normal left inverted right x axis y axis )
HDMI-0 connected 2560x1080+0+0 (normal left inverted right x axis y axis ) 677mm x 290mm
2560x1080 60.00*+
1920x1080 60.00 50.00 59.94 30.00 29.97
1920x1080i 60.00 50.00 59.94
1680x1050 59.88
1600x900 59.98
1280x1024 75.02 60.02
1152x864 75.00
1280x720 60.00 50.00 59.94
1024x768 75.08 60.00
800x600 75.00 60.32
720x576 50.00
720x480 60.00 59.94
640x480 75.00 60.00 59.94
720x400 70.08
VGA-0 disconnected (normal left inverted right x axis y axis )
2015-08-30 01:53:30 +08:00
回复了 phx13ye 创建的主题 Linux 有很懂 X 的么? 显示器热插拔有问题
@miniwoodman 我的 apu ,用的开源驱动,为何我觉得是 X 的问题,因为那些 tty 我能进去
2015-08-29 01:41:17 +08:00
回复了 ultraqs 创建的主题 Linux Linux 中的环境变量$ PATH 是在什么时候设置的?
INVOCATION
A login shell is one whose first character of argument zero is a -, or one started with the --login option.

An interactive shell is one started without non-option arguments and without the -c option whose standard input and error are both connected
to terminals (as determined by isatty (3 )), or one started with the -i option. PS1 is set and $- includes i if bash is interactive, allowing a
shell script or a startup file to test this state.

The following paragraphs describe how bash executes its startup files. If any of the files exist but cannot be read, bash reports an error.
Tildes are expanded in filenames as described below under Tilde Expansion in the EXPANSION section.

When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes com ‐
mands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
in that order, and reads and executes commands from the first one that exists and is readable. The --noprofile option may be used when the
shell is started to inhibit this behavior.

When a login shell exits, bash reads and executes commands from the file ~/.bash_logout, if it exists.

When an interactive shell that is not a login shell is started, bash reads and executes commands from ~/.bashrc, if that file exists. This
may be inhibited by using the --norc option. The --rcfile file option will force bash to read and execute commands from file instead of
~/.bashrc.

When bash is started non-interactively, to run a shell script, for example, it looks for the variable BASH_ENV in the environment, expands its
value if it appears there, and uses the expanded value as the name of a file to read and execute. Bash behaves as if the following command
were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
but the value of the PATH variable is not used to search for the filename.

If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of sh as closely as possible, while con ‐
forming to the POSIX standard as well. When invoked as an interactive login shell, or a non-interactive shell with the --login option, it
first attempts to read and execute commands from /etc/profile and ~/.profile, in that order. The --noprofile option may be used to inhibit
this behavior. When invoked as an interactive shell with the name sh, bash looks for the variable ENV, expands its value if it is defined,
and uses the expanded value as the name of a file to read and execute. Since a shell invoked as sh does not attempt to read and execute com ‐
mands from any other startup files, the --rcfile option has no effect. A non-interactive shell invoked with the name sh does not attempt to
read any other startup files. When invoked as sh, bash enters posix mode after the startup files are read.
2015-08-27 00:58:22 +08:00
回复了 7sDream 创建的主题 Django 来来来,大家一起来翻译 Django 文档咋样?
赞, django 的文档最好了
2015-08-24 20:46:49 +08:00
回复了 Remark 创建的主题 酷工作 [深圳] 招募卡丁车车手
2015-08-24 20:30:56 +08:00
回复了 tiange 创建的主题 Java 这里有用 Spring Boot 的 Java 程序员吗?
spring 官网的 guide , 几乎都用了, 作为一个 spring 脑残粉, 个人也是相当喜欢
必然是所谓的 SSH 咯, 不过懂个 Spring 就行
还以为是 py 项目,
熟悉的味道, spring 玩的挺 6 啊, 看你没有用 hibernate 啊,为什么要依赖它呢
2015-08-22 16:57:33 +08:00
回复了 darnurash 创建的主题 Android Linux 版 Android Studio 能否覆盖升级?
arch 党都是从 archlinuxcn 镜像自动升级的
2015-08-20 22:41:44 +08:00
回复了 warlock 创建的主题 程序员 七夕,你们公司发福利了吗?
@asan2006 你的键盘是不是 hp 品牌机的, 和我在公司拿的好像啊,哈哈
2015-08-20 22:39:31 +08:00
回复了 wuruxu 创建的主题 Go 编程语言 为什么 Go 1.5 要用 Go 重新写 compiler ?
bootstrap
2015-08-19 23:14:24 +08:00
回复了 blackboom 创建的主题 Java JAVA 获取时间不正确
2015-08-19 22:30:28 +08:00
回复了 blackboom 创建的主题 Java JAVA 获取时间不正确
硬件时间同步成 UTC , 自己的环境时区随便怎么搞
2015-08-19 22:16:15 +08:00
回复了 aprikyblue 创建的主题 程序员 遇到朋友提交的这种代码该怎么办
这么多 ifelse
这不应该用字典,哈希,映射,对象吗?
装逼一点就应该上那啥设计模式了, state ?
不能吧 , spring 有编译错误都跑不起来,这个得你自己 hack 一下了
2015-08-18 23:29:20 +08:00
回复了 letitbesqzr 创建的主题 程序员 说说你们在项目中遇到过的最糟糕的代码
@hcymk2 又快又安全的是?
2015-08-18 15:15:01 +08:00
回复了 andyhenry 创建的主题 Linux 说说我心中的 linux(及苹果)
2015-08-18 00:04:18 +08:00
回复了 Mirana 创建的主题 Linux 在 Win8 上装 arch,从硬盘安装的方法是什么
tf 卡加读卡器都没吗, grub4dos 不知道 uefi 下行不行

建议还是 u 盘靠谱全新安装,
关 secure boot , uefi 启动 boot 进 iso ,然后按 beginner guide 来一边
1 ... 9  10  11  12  13  14  15  16  17  18 ... 26  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3329 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 41ms · UTC 00:07 · PVG 08:07 · LAX 17:07 · JFK 20:07
Developed with CodeLauncher
♥ Do have faith in what you're doing.