shell中关于IFS和for的奇怪现象

代码如下:

#!/bin/sh

VAL="/aaa/bbb/ccc/ddd//@PLATFORM/eee/fff"

IFS="@PLATFORM"

for var in $VAL
do
echo "$var"
done

结果如下:
~$ sh -x ./test.sh

  • VAL=/aaa/bbb/ccc/ddd/@PLATFORM/eee/fff
  • IFS=@PLATFORM
  • for var in '$VAL'
  • echo /aaa/bbb/ccc/ddd// /aaa/bbb/ccc/ddd/
  • for var in '$VAL'
  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo ''

  • for var in '$VAL'

  • echo /eee/fff
    /eee/fff

理论上不应该是只输出/aaa/bbb/ccc/ddd/和/eee/fff两行吗

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
linux:bash shell脚本中 scp命令传输文件。目标文件名称为 "?"

``` dispatch_so(){ MAPPING_FILE=$1 SRC_HOME=$2 for fn in ${folder_list[*]} do echo "=====" while IFS='=' read -r SRC TARGET USERS PASWD TARGETDIR do if [ "$SRC" = "$fn" ];then echo "scp ${SRC_HOME}/${SRC} ${USERS}@${TARGET}:${TARGETDIR}" scp ${SRC_HOME}/${SRC} ${USERS}@${TARGET}:${TARGETDIR} if [ $? = 0 ];then RES="success";else RES="failed";fi fi #echo "$MAPPING_FILE" done < ${MAPPING_FILE} if [ "$RES" = "success" ] then echo "succ===$fn" # echo "rm -rf ${PACK_HOME}/$fn" # rm -rf ${PACK_HOME}/$fn; fi done } ``` 将上述代码echo出的语句直接执行。可以成功将文件传输过去,且不会出现文件名为?的情况。 echo出来的命令为:scp /home/contin/packs/test.so cina@10.20.27.100:/home/cina/ssr/ 传输结果为:-rw-r--r-- 1 cina testd 240770 4月 11 15:37 ?

标记ifs的问题

<div class="post-text" itemprop="text"> <p>Hello stackoverflow people, i need some information about what im doing. Is it possible to make 2 ifs in one tag? for example <code>if(a &gt; b) then a=a; else if (c&gt;d) then a=c; else a=d;</code> I'm trying to do something like this. Here it is the code:</p> <pre><code>echo '&lt;select class="text" name="task_type"&gt;'; foreach ($task_types as $key =&gt; $value) { echo '&lt;option value="'.$key.'"'.($key == $obj-&gt;task_type ? 'selected="selected"' : $key == '-1' ? 'selected="selected"' : '').'&gt;'.$value.'&lt;/option&gt;'; } echo '&lt;/select&gt;'; </code></pre> <p>In the option tag you can see these ifs. But problem is that, when it eching. It selects -1 key, and the $obj-&gt;task_type key. But it should only pick this $obj-&gt;task_type. </p> </div>

PHP嵌套ifs和许多条件不起作用

<div class="post-text" itemprop="text"> <p>I have many nested ifs and conditions in my code but it is not giving the desired output. What is the best way to write the following code : </p> <pre><code>$driver_code = $this-&gt;input-&gt;post('filter_driver_code'); $unit_code = $this-&gt;input-&gt;post('filter_unit_code'); $fuel_type = $this-&gt;input-&gt;post('filter_fuel'); $date_to = $this-&gt;input-&gt;post('date_to'); $date_from = $this-&gt;input-&gt;post('date_from'); if (isset($date_from) and isset($date_to) and empty($unit_code) and empty($driver_code) and empty($fuel_type)) { $sql = "SELECT * FROM fuel_usage where (date between '$date_from' and '$date_to') "; $result = $this-&gt;db-&gt;query($sql); } elseif (isset($driver_code) and isset($unit_code) and isset($fuel_type) and isset($date_from) and isset($date_to)) { $sql = "SELECT * FROM fuel_usage where driver_code='$driver_code' AND unit_code='$unit_code' AND fuel_type='$fuel_type' and (date between '$date_from' and '$date_to')"; $result = $this-&gt;db-&gt;query($sql); } elseif (empty ($date_from) and empty ($date_to) and isset ($unit_code) and isset ($driver_code) and isset ($fuel_type)) { $sql = "SELECT * FROM fuel_usage where driver_code='$driver_code' AND unit_code='$unit_code' AND fuel_type='$fuel_type'"; $result = $this-&gt;db-&gt;query($sql); } else { $sql="SELECT * FROM FUEL_USAGE"; $result = $this-&gt;db-&gt;query($sql); } </code></pre> <p>It does not give the right output. </p> </div>

循环使用ifs和whiles卡住加载(PHP)

<div class="post-text" itemprop="text"> <p>I have the following code, which looks perfectly fine logically, but refuses to do anything, and just gets stuck loading until it times out. </p> <p>Code: </p> <pre><code>&lt;?php $name = "billy bobby sharkingflardo herdaderpingtonning"; while (strlen($name) &gt; 17) { $nameEx = explode(' ', $name); if (strlen($nameEx[0] &gt; 1)) { $nameEx[0] = substr($nameEx[0], 0, -(strlen($nameEx[0]) - 1)); } while (count($nameEx) &gt; 2) { unset($nameEx[1]); } if (strlen($nameEx[1] &gt; 15)) { substr($nameEx[1], 0, -1); } $name = implode(' ', $nameEx); } echo $name; ?&gt; </code></pre> <p>I don't have much else to say, the code is needed to shorten names which are too long, it does this by reducing the first name to 1 character and removing any middle names, and if the last name alone is too long with remove a character until it is the right length.</p> <p>Thanks for any help -Tom </p> </div>

模板ifs使用正则表达式

<div class="post-text" itemprop="text"> <p>Hey everyone, I'm working on a PHP application that needs to parse a .tpl file with HTML in it and I'm making it so that the HTML can have variables and basic if statements in it. An if statement look something like this: `</p> <pre><code>&lt;!--if({VERSION} == 2)--&gt; Hello World &lt;!--endif --&gt; </code></pre> <p>To parse that, I've tried using <code>preg_replace</code> with no luck. The pattern that I tried was</p> <p><code> /&lt;!--if\(([^\]*)\)--&gt;([^&lt;]*)&lt;!--endif--&gt;/e </code></p> <p>which gets replaced with </p> <p><code> if($1) { echo "$2"; } </code></p> <p>Any ideas as to why this won't work and what I can do to get it up and running?</p> </div>

C语言数据结构中,二叉树的clear和destroy有什么区别?

C语言数据结构中,二叉树的clear(清空)和destroy有什么区别? 1. destroy是将所有结点都free掉,并且让指向树根的指针=NULL。 2. 那么clear(清空)又是什么呢?和destroy的区别是什么呢?

关于linux中vim插件的问题.

本人使用了bronson/vim-trailing-whitespace和nicoraffo/conque两个插件. 一个是标记无效空格,一个是在vim中调出终端. 于是就出现调出终端后会在终端分屏中红色高亮无效空格. 请问如何不在终端中标记无效空格.并且标记无效空格的插件我还非常想用. 在whitespace中有g:extra_whitespace_ignored_filetypes选项. 此选项可以对相应的文件类型忽略.但是我不知道conque调出的终端分屏属于什么文件类型.求解答.谢谢

从Golang执行Bash脚本

<div class="post-text" itemprop="text"> <p>I am trying to figure out a way to execute a script (.sh) file from Golang. I have found a couple of easy ways to execute commands (e.g. os/exec), but what I am looking to do is to execute an entire sh file (the file sets variables etc.).</p> <p>Using the standard os/exec method for this does not seem to be straightforward: both trying to input "./script.sh" and loading the content of the script into a string do not work as arguments for the exec function. </p> <p>for example, this is an sh file that I want to execute from Go:</p> <pre><code>OIFS=$IFS; IFS=","; # fill in your details here dbname=testDB host=localhost:27017 collection=testCollection exportTo=../csv/ # get comma separated list of keys. do this by peeking into the first document in the collection and get his set of keys keys=`mongo "$host/$dbname" --eval "rs.slaveOk();var keys = []; for(var key in db.$collection.find().sort({_id: -1}).limit(1)[0]) { keys.push(key); }; keys;" --quiet`; # now use mongoexport with the set of keys to export the collection to csv mongoexport --host $host -d $dbname -c $collection --fields "$keys" --csv --out $exportTo$dbname.$collection.csv; IFS=$OIFS; </code></pre> <p>from the Go program:</p> <pre><code>out, err := exec.Command(mongoToCsvSH).Output() if err != nil { log.Fatal(err) } fmt.Printf("output is %s ", out) </code></pre> <p>where mongoToCsvSH can be either the path to the sh or the actual content - both do not work.</p> <p>Any ideas how to achieve this? </p> </div>

在MySQL中安装sqljieba插件的时候报错

在mysql中安装sqljieba插件的时候报错 sudo cp libsqljieba.so /usr/lib/mysql/plugin sudo cp -r ./dict /usr/share # 安装错误 install plugin sqljieba soname 'libsqljieba.so'; ERROR 2013 (HY000): Lost connection to MySQL server during query 查看插件路径下是有的 +------------------------+ | @@plugin_dir | +------------------------+ | /usr/lib/mysql/plugin/ | +------------------------+ c@PC:/usr/lib/mysql/plugin$ ll 总用量 792 drwxr-xr-x 2 root root 4096 6月 14 13:40 ./ drwxr-xr-x 3 root root 4096 6月 14 13:40 ../ -rw-r--r-- 1 root root 21224 4月 20 19:52 adt_null.so -rw-r--r-- 1 root root 6288 4月 20 19:52 auth_socket.so -rw-r--r-- 1 root root 44144 4月 20 19:52 connection_control.so -rw-r--r-- 1 root root 108696 4月 20 19:52 innodb_engine.so -rw-r--r-- 1 root root 88608 4月 20 19:52 keyring_file.so -rw-r--r-- 1 root root 154592 4月 20 19:52 libmemcached.so -rwxr-xr-x 1 root root 141592 6月 14 02:20 libsqljieba.so 后来查看日志 发现在执行指令的时候程序抛出异常了 在读取 /usr/share/dict/jieba.dict.utf8报错了 # 查看错误日志文件 vim /var/log/mysql/error.log 2018-06-14 14:37:01 ./deps/cppjieba/DictTrie.hpp:153 FATAL exp: [ifs.is_open()] false. open /usr/share/dict/jieba.dict.utf8 failed. 06:37:01 UTC - mysqld got signal 6 ; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. Attempting to collect some information that could help diagnose the problem. As this is a crash and something is definitely wrong, the information collection process might fail. key_buffer_size=16777216 read_buffer_size=131072 max_used_connections=1 max_threads=151 thread_count=1 connection_count=1 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 76387 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Thread pointer: 0x7f8b0c000ae0 Attempting backtrace. You can use the following information to find out where mysqld died. If you see no messages after this, something went terribly wrong... stack_bottom = 7f8b2c125e70 thread_stack 0x30000 /usr/sbin/mysqld(my_print_stacktrace+0x3b)[0xe907ab] /usr/sbin/mysqld(handle_fatal_signal+0x489)[0x789b49] /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390)[0x7f8b45a80390] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0x38)[0x7f8b44e39428] /lib/x86_64-linux-gnu/libc.so.6(abort+0x16a)[0x7f8b44e3b02a] /usr/lib/mysql/plugin/libsqljieba.so(_ZN6limonp6LoggerD1Ev+0xf5)[0x7f8b245e6495] /usr/lib/mysql/plugin/libsqljieba.so(_ZN8cppjieba8DictTrie8LoadDictERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x716)[0x7f8b245eecb6] /usr/lib/mysql/plugin/libsqljieba.so(+0x7ce5)[0x7f8b245e4ce5] /usr/sbin/mysqld[0xc707f4] /usr/sbin/mysqld[0xc76b0a] /usr/sbin/mysqld(_ZN22Sql_cmd_install_plugin7executeEP3THD+0x1a)[0xc76d9a] /usr/sbin/mysqld(_Z21mysql_execute_commandP3THDb+0x24de)[0xc4e29e] /usr/sbin/mysqld(_Z11mysql_parseP3THDP12Parser_state+0x3ad)[0xc52b3d] /usr/sbin/mysqld(_Z16dispatch_commandP3THDPK8COM_DATA19enum_server_command+0x102a)[0xc53c7a] /usr/sbin/mysqld(_Z10do_commandP3THD+0x1c7)[0xc55137] /usr/sbin/mysqld(handle_connection+0x288)[0xd16788] /usr/sbin/mysqld(pfs_spawn_thread+0x1b4)[0xec9294] /lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f8b45a766ba] /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f8b44f0b41d] 最后确认一下 /usr/share/dict/jieba.dict.utf8文件时存在的 并且权限也是OK的 pc@PC:/usr/share/dict$ ll 总用量 11356 drwxr-xr-x 3 mysql mysql 4096 6月 14 02:20 ./ drwxr-xr-x 111 root root 4096 6月 14 13:40 ../ -rw-r--r-- 1 mysql mysql 519739 6月 14 13:43 hmm_model.utf8 -rw-r--r-- 1 mysql mysql 5998717 6月 14 13:43 idf.utf8 -rw-r--r-- 1 mysql mysql 5071204 6月 14 13:43 jieba.dict.utf8 drwxr-xr-x 2 mysql mysql 4096 6月 14 02:20 pos_dict/ -rw-r--r-- 1 mysql mysql 683 6月 14 13:43 README.md -rw-r--r-- 1 mysql mysql 8974 6月 14 13:43 stop_words.utf8 -rw-r--r-- 1 mysql mysql 49 6月 14 13:43 user.dict.utf8

关于 mysql的 enum的问题

举个例子,比如当初建了这个表 update TABLE tb_1234( `kind` enum('1','2','3') NOT NULL. 后来觉得kind选项不够多,想多加一个'4',用什么语句能执行呢?

std::ifstream 在析构函数中抛出异常

```c++ void load(const std::string &path, std::string &buffer, uint32 open_mode /*= std::fstream::in*/) { std::ifstream ifs; ifs.open(path.c_str(), open_mode); if (!ifs.is_open()) { return; } buffer.append(std::istreambuf_iterator<char>(ifs), std::istreambuf_iterator<char>()); ifs.close(); } int main(int argc, char *argv[]) { std::string buffer; load("F:\\zt\\build\\x64\\Debug\\config.xml", buffer); std::cout << buffer << std::endl; return 0; } ``` config.xml 文件定义如下 ```xml <?xml version="1.0"?> <CommonRedis> <ServerList> <Character Host="127.0.0.1" Port="6379" Password="123456" /> </ServerList> </CommonRedis> <CommonMySQL> <ServerList> <Character Host="127.0.0.1" Port="6379" UserName="root" Password="123456" Database="game" /> </ServerList> </CommonMySQL> <CommonSocket> <SocketBuffer ReceiveBuffSize="60000" SendBuffSize="6000" /> </CommonSocket> ``` 以上代码在离开 main 函数作用域时抛出异常

C++课程设计其中一项是把数据输入到文件中,现在想要把文件数据读取存入到数组里并且搜索查询输出部分数据

文件内容如下: ![图片说明](https://img-ask.csdn.net/upload/201906/17/1560773142_104438.png) 比如说我想查询编号为1001的商品并且输出它,这样要怎么编写?实在不会了,求各位大佬指点!!!!下面是搜索这个功能的代码,后面不会写了 ``` void Goods::search() { int i = 0; char buf[500]; ifstream ifs("G:\\abc\\商品销售管理.txt"); while (!ifs.eof()) { ifs.getline(buf, 500, '\n'); cout << buf << endl; //cout << "请输入您要查询商品编号:"; //cin >> n; } } ```

iOS 获取连接的wifi的ssid的方法是不是不能用了?

现在获取连接wifi的ssid的方法是不是不能用了? + (NSString *)getCurrentWifiSSID { NSString *ssid = nil; NSArray *ifs = (__bridge_transfer id)CNCopySupportedInterfaces(); for (NSString *ifnam in ifs) { NSDictionary *info = (__bridge_transfer id)CNCopyCurrentNetworkInfo((__bridge CFStringRef)ifnam); NSLog(@"%@", info); if (info[@"SSID"]) { ssid = info[@"SSID"]; } } return ssid; }

vector<class user> vec中的数据如何写入文件中并读取出来。

#include<iostream> #include<fstream> #include<vector> #include<string> #include<iterator> using namespace std; using std::ostream_iterator; using std::istream_iterator; class user{ public: user(){}; ~user(){}; string name; string id; string sex; }; istream & operator >>(istream & in, const user & x) { in.read((char *)(user *)&x, sizeof(user)); return in; } ostream & operator<<(ostream & out, const user & x) { out.write((char *)(user *)&x, sizeof(user)); return out; } int main() { vector<user> u; user u1; ofstream ofs; ofs.open("JAR.txt",ios_base::binary); for(int i=0;i<3;i++) { cin>>u1.name>>u1.id>>u1.sex; u.push_back(u1); } copy(u.begin(),u.end(),ostream_iterator<user>(ofs)); ifstream ifs("JAR.txt", ios_base::binary); istream_iterator<user> iecg(ifs),iend; vector <user> v(iecg,iend); vector <user> x; copy(v.begin(),v.end(),x.begin()); cout<<u.size()<<v.size()<<x.size()<<endl; for(int i=0;i<x.size();i++) { cout<<x.at(i).name<<x.at(i).id<<x.at(i).sex<<endl;; } } 类似这样。

文件中的getline方法报错

![图片说明](https://img-ask.csdn.net/upload/201910/13/1570936795_847223.png) getline这里报了没有与参数列表匹配的重载函数,新手看不出哪里有问题。

刚开始学Linux 看不懂一个程序 求解答

#!/bin/bash set -x e_badargs=65 e_nofile=66 if [ $# -ne 2 ] then echo "`basename $0`search_string file_name" exit $e_badargs fi if [ !-f"$2" ] then echo "file\"$2\"does not exit" exit $e_nofile fi IFS="\n" for number in $(strings "$2"|grep "$1") do echo $number #sleep1 done # exit 0 基本语法我都知道了 麻烦说一下 IFS="\n" 这个语句是什么意思、、、 这个程序运行结果是什么?

关于一段文本的读入,这一段代码是如何实现读入一个文件的,老师上课演示的,并不是很明白

bool CRSImage::ReadMetaData(const char* lpstrMetaFilePath) { ifstream ifs; //input file stream string strLine; string strSubTxt; stringstream ss; //string stream char sBuff[260]; ifs.open(lpstrMetaFilePath, ios_base::in); if (!ifs.is_open()) return false; while (!ifs.eof()) //end of file { ifs.getline(sBuff, 260); strLine = sBuff; ss.clear(); ss.str(strLine); //"samples = 640" ss >> strSubTxt; if (strSubTxt == "samples") { ss >> strSubTxt >> m_nSamples; } else if (strSubTxt == "lines") { ss >> strSubTxt >> m_nLines; } else if (strSubTxt == "bands") { ss >> strSubTxt >> m_nBands; } else if (strSubTxt == "interleave") { ss >> strSubTxt >> strSubTxt; if (strSubTxt == "bsq") { m_eInterleave = BSQ; } else if (strSubTxt == "bip") { m_eInterleave = BIP; } else if (strSubTxt == "bil") { m_eInterleave = BIL; } else { // blank } } else if (strSubTxt == "data") { ss >> strSubTxt; if (strSubTxt == "type") { ss >> strSubTxt >> m_nDataType; } } else { } } return true; }

在php中比较字符串与字符串的“枚举”

<div class="post-text" itemprop="text"> <p>I wanna compare string with "enumeration", can I do it simplier than in my solution bellow? First I know the enum type is not implemented in php. <br> Basically the problem question is: Is string s equal to one of the strings? Since php don't have enum, the values of enum could be probably in some array or something like that. </p> <pre><code> //$min_s is string value of some minute value for example "15". if((strcmp($min_s, "00")== 0 || str_cmp($min_s,"15") == 0 || strcmp($min_s, "30")== 0 || strcmp($min_s, "45") == 0) { // ok}</code></pre> <p><strong>Goal:</strong> <br> Make my ifs more readable for this specific example and others in future when I wanna compare string to "enum".</p> </div>

如何部署travis自动构建,我的失败了,我不知道如何解决

<div class="post-text" itemprop="text"> <p>I'm getting a trouble while build my travis file. pop an error <code>package errorX: unrecognized import path "errorX" (import path does not begin with hostname)</code>, and I can't tell which part causes it.</p> <pre class="lang-golang prettyprint-override"><code>language: go go: - 1.9.x - 1.10.x - 1.11.x env: - GOARCH=amd64 - GOARCH=386 sudo: true go_import_path: github.com/fwhezfwhez/errorx before_install: - go get github.com/fwhezfwhez/errorx - go get github.com/fwhezfwhez/go-queue script: - go build example/main.go notifications: email: false </code></pre> <p>result</p> <pre><code>Worker information hostname: a4c1b320-2318-4217-a009-555a967eb050@1.production-2-worker-org-gce-94gz version: v6.2.0 https://github.com/travis-ci/worker/tree/5e5476e01646095f48eec13196fdb3faf8f5cbf7 instance: travis-job-638b4bba-9fef-43d4-b294-ee56fd7486bf travis-ci-garnet-trusty-1512502259-986baf0 (via amqp) startup: 9.418692015s system_info Build system information Build language: go Build group: stable Build dist: trusty Build id: 485760232 Job id: 485760235 Runtime kernel version: 4.4.0-101-generic travis-build version: f05bd1fd8 Build image provisioning date and time Tue Dec 5 19:58:13 UTC 2017 Operating System Details Distributor ID: Ubuntu Description: Ubuntu 14.04.5 LTS Release: 14.04 Codename: trusty Cookbooks Version 7c2c6a6 https://github.com/travis-ci/travis-cookbooks/tree/7c2c6a6 git version git version 2.15.1 bash version GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu) gcc version gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. docker version Client: Version: 17.09.0-ce API version: 1.32 Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:42:38 2017 OS/Arch: linux/amd64 Server: Version: 17.09.0-ce API version: 1.32 (minimum version 1.12) Go version: go1.8.3 Git commit: afdb6d4 Built: Tue Sep 26 22:41:20 2017 OS/Arch: linux/amd64 Experimental: false clang version clang version 5.0.0 (tags/RELEASE_500/final) Target: x86_64-unknown-linux-gnu Thread model: posix InstalledDir: /usr/local/clang-5.0.0/bin jq version jq-1.5 bats version Bats 0.4.0 shellcheck version 0.4.6 shfmt version v2.0.0 ccache version ccache version 3.1.9 Copyright (C) 2002-2007 Andrew Tridgell Copyright (C) 2009-2011 Joel Rosdahl This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. cmake version cmake version 3.9.2 CMake suite maintained and supported by Kitware (kitware.com/cmake). heroku version heroku-cli/6.14.39-addc925 (linux-x64) node-v9.2.0 imagemagick version Version: ImageMagick 6.7.7-10 2017-07-31 Q16 http://www.imagemagick.org md5deep version 4.2 mercurial version Mercurial Distributed SCM (version 4.2.2) (see https://mercurial-scm.org for more information) Copyright (C) 2005-2017 Matt Mackall and others This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. mysql version mysql Ver 14.14 Distrib 5.6.33, for debian-linux-gnu (x86_64) using EditLine wrapper openssl version OpenSSL 1.0.1f 6 Jan 2014 packer version Packer v1.0.2 Your version of Packer is out of date! The latest version is 1.1.2. You can update by downloading from www.packer.io postgresql client version psql (PostgreSQL) 9.6.6 ragel version Ragel State Machine Compiler version 6.8 Feb 2013 Copyright (c) 2001-2009 by Adrian Thurston subversion version svn, version 1.8.8 (r1568071) compiled Aug 10 2017, 17:20:39 on x86_64-pc-linux-gnu Copyright (C) 2013 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.3 - handles 'http' scheme - handles 'https' scheme sudo version Sudo version 1.8.9p5 Configure options: --prefix=/usr -v --with-all-insults --with-pam --with-fqdn --with-logging=syslog --with-logfac=authpriv --with-env-editor --with-editor=/usr/bin/editor --with-timeout=15 --with-password-timeout=0 --with-passprompt=[sudo] password for %p: --without-lecture --with-tty-tickets --disable-root-mailer --enable-admin-flag --with-sendmail=/usr/sbin/sendmail --with-timedir=/var/lib/sudo --mandir=/usr/share/man --libexecdir=/usr/lib/sudo --with-sssd --with-sssd-lib=/usr/lib/x86_64-linux-gnu --with-selinux Sudoers policy plugin version 1.8.9p5 Sudoers file grammar version 43 Sudoers path: /etc/sudoers Authentication methods: 'pam' Syslog facility if syslog is being used for logging: authpriv Syslog priority to use when user authenticates successfully: notice Syslog priority to use when user authenticates unsuccessfully: alert Send mail if the user is not in sudoers Use a separate timestamp for each user/tty combo Lecture user the first time they run sudo Root may run sudo Allow some information gathering to give useful error messages Require fully-qualified hostnames in the sudoers file Visudo will honor the EDITOR environment variable Set the LOGNAME and USER environment variables Length at which to wrap log file lines (0 for no wrap): 80 Authentication timestamp timeout: 15.0 minutes Password prompt timeout: 0.0 minutes Number of tries to enter a password: 3 Umask to use or 0777 to use user's: 022 Path to mail program: /usr/sbin/sendmail Flags for mail program: -t Address to send mail to: root Subject line for mail messages: *** SECURITY information for %h *** Incorrect password message: Sorry, try again. Path to authentication timestamp dir: /var/lib/sudo Default password prompt: [sudo] password for %p: Default user to run commands as: root Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin Path to the editor for use by visudo: /usr/bin/editor When to require a password for 'list' pseudocommand: any When to require a password for 'verify' pseudocommand: all File descriptors &gt;= 3 will be closed before executing a command Environment variables to check for sanity: TZ TERM LINGUAS LC_* LANGUAGE LANG COLORTERM Environment variables to remove: RUBYOPT RUBYLIB PYTHONUSERBASE PYTHONINSPECT PYTHONPATH PYTHONHOME TMPPREFIX ZDOTDIR READNULLCMD NULLCMD FPATH PERL5DB PERL5OPT PERL5LIB PERLLIB PERLIO_DEBUG JAVA_TOOL_OPTIONS SHELLOPTS GLOBIGNORE PS4 BASH_ENV ENV TERMCAP TERMPATH TERMINFO_DIRS TERMINFO _RLD* LD_* PATH_LOCALE NLSPATH HOSTALIASES RES_OPTIONS LOCALDOMAIN CDPATH IFS Environment variables to preserve: JAVA_HOME TRAVIS CI DEBIAN_FRONTEND XAUTHORIZATION XAUTHORITY PS2 PS1 PATH LS_COLORS KRB5CCNAME HOSTNAME HOME DISPLAY COLORS Locale to use while parsing sudoers: C Directory in which to store input/output logs: /var/log/sudo-io File in which to store the input/output log: %{seq} Add an entry to the utmp/utmpx file when allocating a pty PAM service name to use PAM service name to use for login shells Create a new PAM session for the command to run in Maximum I/O log sequence number: 0 Local IP address and netmask pairs: 10.240.0.28/255.255.255.255 172.17.0.1/255.255.0.0 Sudoers I/O plugin version 1.8.9p5 gzip version gzip 1.6 Copyright (C) 2007, 2010, 2011 Free Software Foundation, Inc. Copyright (C) 1993 Jean-loup Gailly. This is free software. You may redistribute copies of it under the terms of the GNU General Public License &lt;http://www.gnu.org/licenses/gpl.html&gt;. There is NO WARRANTY, to the extent permitted by law. Written by Jean-loup Gailly. zip version Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license. This is Zip 3.0 (July 5th 2008), by Info-ZIP. Currently maintained by E. Gordon. Please send bug reports to the authors using the web page at www.info-zip.org; see README for details. Latest sources and executables are at ftp://ftp.info-zip.org/pub/infozip, as of above date; see http://www.info-zip.org/ for other sites. Compiled with gcc 4.8.2 for Unix (Linux ELF) on Oct 21 2013. Zip special compilation options: USE_EF_UT_TIME (store Universal Time) BZIP2_SUPPORT (bzip2 library version 1.0.6, 6-Sept-2010) bzip2 code and library copyright (c) Julian R Seward (See the bzip2 license for terms of use) SYMLINK_SUPPORT (symbolic links supported) LARGE_FILE_SUPPORT (can read and write large files on file system) ZIP64_SUPPORT (use Zip64 to store large files in archives) UNICODE_SUPPORT (store and read UTF-8 Unicode paths) STORE_UNIX_UIDs_GIDs (store UID/GID sizes/values using new extra field) UIDGID_NOT_16BIT (old Unix 16-bit UID/GID extra field not used) [encryption, version 2.91 of 05 Jan 2007] (modified for Zip 3) Encryption notice: The encryption code of this program is not copyrighted and is put in the public domain. It was originally written in Europe and, to the best of our knowledge, can be freely distributed in both source and object forms from any country, including the USA under License Exception TSU of the U.S. Export Administration Regulations (section 740.13(e)) of 6 June 2002. Zip environment options: ZIP: [none] ZIPOPT: [none] vim version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:43:18) Included patches: 1-52 Extra patches: 8.0.0056 Modified by pkg-vim-maintainers@lists.alioth.debian.org Compiled by buildd@ Huge version without GUI. Features included (+) or not (-): +acl +farsi +mouse_netterm +syntax +arabic +file_in_path +mouse_sgr +tag_binary +autocmd +find_in_path -mouse_sysmouse +tag_old_static -balloon_eval +float +mouse_urxvt -tag_any_white -browse +folding +mouse_xterm -tcl ++builtin_terms -footer +multi_byte +terminfo +byte_offset +fork() +multi_lang +termresponse +cindent +gettext -mzscheme +textobjects -clientserver -hangul_input +netbeans_intg +title -clipboard +iconv +path_extra -toolbar +cmdline_compl +insert_expand -perl +user_commands +cmdline_hist +jumplist +persistent_undo +vertsplit +cmdline_info +keymap +postscript +virtualedit +comments +langmap +printer +visual +conceal +libcall +profile +visualextra +cryptv +linebreak +python +viminfo +cscope +lispindent -python3 +vreplace +cursorbind +listcmds +quickfix +wildignore +cursorshape +localmap +reltime +wildmenu +dialog_con -lua +rightleft +windows +diff +menu -ruby +writebackup +digraphs +mksession +scrollbind -X11 -dnd +modify_fname +signs -xfontset -ebcdic +mouse +smartindent -xim +emacs_tags -mouseshape -sniff -xsmp +eval +mouse_dec +startuptime -xterm_clipboard +ex_extra +mouse_gpm +statusline -xterm_save +extra_search -mouse_jsbterm -sun_workshop -xpm system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" 2nd user vimrc file: "~/.vim/vimrc" user exrc file: "$HOME/.exrc" fall-back for $VIM: "/usr/share/vim" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 Linking: gcc -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,--as-needed -o vim -lm -ltinfo -lnsl -lselinux -lacl -lattr -lgpm -ldl -L/usr/lib/python2.7/config-x86_64-linux-gnu -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions iptables version iptables v1.4.21 curl version curl 7.35.0 (x86_64-pc-linux-gnu) libcurl/7.35.0 OpenSSL/1.0.1f zlib/1.2.8 libidn/1.28 librtmp/2.3 wget version GNU Wget 1.15 built on linux-gnu. rsync version rsync version 3.1.0 protocol version 31 gimme version v1.2.0 nvm version 0.33.6 perlbrew version /home/travis/perl5/perlbrew/bin/perlbrew - App::perlbrew/0.80 phpenv version rbenv 1.1.1-25-g6aa70b6 rvm version rvm 1.29.3 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] default ruby version ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-linux] CouchDB version couchdb 1.6.1 ElasticSearch version 5.5.0 Installed Firefox version firefox 56.0.2 MongoDB version MongoDB 3.4.10 [1mPhantomJS version 2.1.1 Pre-installed PostgreSQL versions 9.2.24 9.3.20 9.4.15 9.5.10 9.6.6 RabbitMQ Version 3.6.14 Redis version redis-server 4.0.6 riak version 2.2.3 Pre-installed Go versions 1.7.4 ant version Apache Ant(TM) version 1.9.3 compiled on April 8 2014 mvn version Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T07:58:13Z) Maven home: /usr/local/maven-3.5.2 Java version: 1.8.0_151, vendor: Oracle Corporation Java home: /usr/lib/jvm/java-8-oracle/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux", version: "4.4.0-98-generic", arch: "amd64", family: "unix" gradle version ------------------------------------------------------------ Gradle 4.0.1 ------------------------------------------------------------ Build time: 2017-07-07 14:02:41 UTC Revision: 38e5dc0f772daecca1d2681885d3d85414eb6826 Groovy: 2.4.11 Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015 JVM: 1.8.0_151 (Oracle Corporation 25.151-b12) OS: Linux 4.4.0-98-generic amd64 lein version Leiningen 2.8.1 on Java 1.8.0_151 Java HotSpot(TM) 64-Bit Server VM Pre-installed Node.js versions v4.8.6 v6.12.0 v6.12.1 v8.9 v8.9.1 phpenv versions system 5.6 * 5.6.32 (set by /home/travis/.phpenv/version) 7.0 7.0.25 7.1 7.1.11 hhvm hhvm-stable composer --version Composer version 1.5.2 2017-09-11 16:59:25 Pre-installed Ruby versions ruby-2.2.7 ruby-2.3.4 ruby-2.4.1 Updating gimme git.checkout 0.69s$ git clone --depth=50 --branch=master https://github.com/fwhezfwhez/errorx.git fwhezfwhez/errorx Cloning into 'fwhezfwhez/errorx'... remote: Enumerating objects: 74, done. remote: Counting objects: 100% (74/74), done. remote: Compressing objects: 100% (50/50), done. Receiving objects: 100% (172/172), 47.28 KiB | 2.06 MiB/s, done. remote: Total 172 (delta 41), reused 53 (delta 22), pack-reused 98 Resolving deltas: 100% (90/90), done. $ cd fwhezfwhez/errorx $ git checkout -qf ec0ba15dd5fef2db0c8b9989002a18d768e025de Setting environment variables from .travis.yml $ export GOARCH=amd64 0.04s$ GIMME_OUTPUT="$(gimme 1.10.x | tee -a ${TRAVIS_HOME}/.bashrc)" &amp;&amp; eval "$GIMME_OUTPUT" go version go1.10.8 linux/amd64 $ export GOPATH=${TRAVIS_HOME}/gopath $ export PATH=${TRAVIS_HOME}/gopath/bin:$PATH $ mkdir -p ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ tar -Pczf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_BUILD_DIR} . &amp;&amp; tar -Pxzf ${TRAVIS_TMPDIR}/src_archive.tar.gz -C ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ export TRAVIS_BUILD_DIR=${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ cd ${TRAVIS_HOME}/gopath/src/github.com/fwhezfwhez/errorx $ gimme version v1.5.3 $ go version go version go1.10.8 linux/amd64 go.env $ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/travis/.cache/go-build" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/travis/gopath" GORACE="" GOROOT="/home/travis/.gimme/versions/go1.10.8.linux.amd64" GOTMPDIR="" GOTOOLDIR="/home/travis/.gimme/versions/go1.10.8.linux.amd64/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build294018080=/tmp/go-build -gno-record-gcc-switches" before_install.1 0.14s$ go get github.com/fwhezfwhez/errorx before_install.2 0.68s$ go get github.com/fwhezfwhez/go-queue Using Go 1.5 Vendoring, not checking for Godeps 3.13s$ go get -t -v ./... package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed. Retrying, 2 of 3. package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed. Retrying, 3 of 3. package errorX: unrecognized import path "errorX" (import path does not begin with hostname) The command "eval go get -t -v ./... " failed 3 times. The command "go get -t -v ./..." failed and exited with 1 during . Your build has been stopped. </code></pre> </div>

大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了

大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...

在中国程序员是青春饭吗?

今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。 目录: 你以为的人生 一次又一次的伤害 猎头界的真相 如何应对互联网行业的「中年危机」 一、你以为的人生 刚入行时,拿着傲人的工资,想着好好干,以为我们的人生是这样的: 等真到了那一天,你会发现,你的人生很可能是这样的: ...

springboot+jwt实现token登陆权限认证

一 前言 此篇文章的内容也是学习不久,终于到周末有时间码一篇文章分享知识追寻者的粉丝们,学完本篇文章,读者将对token类的登陆认证流程有个全面的了解,可以动态搭建自己的登陆认证过程;对小项目而已是个轻量级的认证机制,符合开发需求;更多精彩原创内容关注公主号知识追寻者,读者的肯定,就是对作者的创作的最大支持; 二 jwt实现登陆认证流程 用户使用账号和面发出post请求 服务器接受到请求后使用私...

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

女程序员,为什么比男程序员少???

昨天看到一档综艺节目,讨论了两个话题:(1)中国学生的数学成绩,平均下来看,会比国外好?为什么?(2)男生的数学成绩,平均下来看,会比女生好?为什么?同时,我又联想到了一个技术圈经常讨...

总结了 150 余个神奇网站,你不来瞅瞅吗?

原博客再更新,可能就没了,之后将持续更新本篇博客。

副业收入是我做程序媛的3倍,工作外的B面人生是怎样的?

提到“程序员”,多数人脑海里首先想到的大约是:为人木讷、薪水超高、工作枯燥…… 然而,当离开工作岗位,撕去层层标签,脱下“程序员”这身外套,有的人生动又有趣,马上展现出了完全不同的A/B面人生! 不论是简单的爱好,还是正经的副业,他们都干得同样出色。偶尔,还能和程序员的特质结合,产生奇妙的“化学反应”。 @Charlotte:平日素颜示人,周末美妆博主 大家都以为程序媛也个个不修边幅,但我们也许...

MySQL数据库面试题(2020最新版)

文章目录数据库基础知识为什么要使用数据库什么是SQL?什么是MySQL?数据库三大范式是什么mysql有关权限的表都有哪几个MySQL的binlog有有几种录入格式?分别有什么区别?数据类型mysql有哪些数据类型引擎MySQL存储引擎MyISAM与InnoDB区别MyISAM索引与InnoDB索引的区别?InnoDB引擎的4大特性存储引擎选择索引什么是索引?索引有哪些优缺点?索引使用场景(重点)...

如果你是老板,你会不会踢了这样的员工?

有个好朋友ZS,是技术总监,昨天问我:“有一个老下属,跟了我很多年,做事勤勤恳恳,主动性也很好。但随着公司的发展,他的进步速度,跟不上团队的步伐了,有点...

我入职阿里后,才知道原来简历这么写

私下里,有不少读者问我:“二哥,如何才能写出一份专业的技术简历呢?我总感觉自己写的简历太烂了,所以投了无数份,都石沉大海了。”说实话,我自己好多年没有写过简历了,但我认识的一个同行,他在阿里,给我说了一些他当年写简历的方法论,我感觉太牛逼了,实在是忍不住,就分享了出来,希望能够帮助到你。 01、简历的本质 作为简历的撰写者,你必须要搞清楚一点,简历的本质是什么,它就是为了来销售你的价值主张的。往深...

程序员写出这样的代码,能不挨骂吗?

当你换槽填坑时,面对一个新的环境。能够快速熟练,上手实现业务需求是关键。但是,哪些因素会影响你快速上手呢?是原有代码写的不够好?还是注释写的不够好?昨夜...

外包程序员的幸福生活

今天给你们讲述一个外包程序员的幸福生活。男主是Z哥,不是在外包公司上班的那种,是一名自由职业者,接外包项目自己干。接下来讲的都是真人真事。 先给大家介绍一下男主,Z哥,老程序员,是我十多年前的老同事,技术大牛,当过CTO,也创过业。因为我俩都爱好喝酒、踢球,再加上住的距离不算远,所以一直也断断续续的联系着,我对Z哥的状况也有大概了解。 Z哥几年前创业失败,后来他开始干起了外包,利用自己的技术能...

优雅的替换if-else语句

场景 日常开发,if-else语句写的不少吧??当逻辑分支非常多的时候,if-else套了一层又一层,虽然业务功能倒是实现了,但是看起来是真的很不优雅,尤其是对于我这种有强迫症的程序"猿",看到这么多if-else,脑袋瓜子就嗡嗡的,总想着解锁新姿势:干掉过多的if-else!!!本文将介绍三板斧手段: 优先判断条件,条件不满足的,逻辑及时中断返回; 采用策略模式+工厂模式; 结合注解,锦...

离职半年了,老东家又发 offer,回不回?

有小伙伴问松哥这个问题,他在上海某公司,在离职了几个月后,前公司的领导联系到他,希望他能够返聘回去,他很纠结要不要回去? 俗话说好马不吃回头草,但是这个小伙伴既然感到纠结了,我觉得至少说明了两个问题:1.曾经的公司还不错;2.现在的日子也不是很如意。否则应该就不会纠结了。 老实说,松哥之前也有过类似的经历,今天就来和小伙伴们聊聊回头草到底吃不吃。 首先一个基本观点,就是离职了也没必要和老东家弄的苦...

2020阿里全球数学大赛:3万名高手、4道题、2天2夜未交卷

阿里巴巴全球数学竞赛( Alibaba Global Mathematics Competition)由马云发起,由中国科学技术协会、阿里巴巴基金会、阿里巴巴达摩院共同举办。大赛不设报名门槛,全世界爱好数学的人都可参与,不论是否出身数学专业、是否投身数学研究。 2020年阿里巴巴达摩院邀请北京大学、剑桥大学、浙江大学等高校的顶尖数学教师组建了出题组。中科院院士、美国艺术与科学院院士、北京国际数学...

为什么你不想学习?只想玩?人是如何一步一步废掉的

不知道是不是只有我这样子,还是你们也有过类似的经历。 上学的时候总有很多光辉历史,学年名列前茅,或者单科目大佬,但是虽然慢慢地长大了,你开始懈怠了,开始废掉了。。。 什么?你说不知道具体的情况是怎么样的? 我来告诉你: 你常常潜意识里或者心理觉得,自己真正的生活或者奋斗还没有开始。总是幻想着自己还拥有大把时间,还有无限的可能,自己还能逆风翻盘,只不是自己还没开始罢了,自己以后肯定会变得特别厉害...

男生更看重女生的身材脸蛋,还是思想?

往往,我们看不进去大段大段的逻辑。深刻的哲理,往往短而精悍,一阵见血。问:产品经理挺漂亮的,有点心动,但不知道合不合得来。男生更看重女生的身材脸蛋,还是...

为什么程序员做外包会被瞧不起?

二哥,有个事想询问下您的意见,您觉得应届生值得去外包吗?公司虽然挺大的,中xx,但待遇感觉挺低,马上要报到,挺纠结的。

当HR压你价,说你只值7K,你该怎么回答?

当HR压你价,说你只值7K时,你可以流畅地回答,记住,是流畅,不能犹豫。 礼貌地说:“7K是吗?了解了。嗯~其实我对贵司的面试官印象很好。只不过,现在我的手头上已经有一份11K的offer。来面试,主要也是自己对贵司挺有兴趣的,所以过来看看……”(未完) 这段话主要是陪HR互诈的同时,从公司兴趣,公司职员印象上,都给予对方正面的肯定,既能提升HR的好感度,又能让谈判气氛融洽,为后面的发挥留足空间。...

面试:第十六章:Java中级开发

HashMap底层实现原理,红黑树,B+树,B树的结构原理 Spring的AOP和IOC是什么?它们常见的使用场景有哪些?Spring事务,事务的属性,传播行为,数据库隔离级别 Spring和SpringMVC,MyBatis以及SpringBoot的注解分别有哪些?SpringMVC的工作原理,SpringBoot框架的优点,MyBatis框架的优点 SpringCould组件有哪些,他们...

早上躺尸,晚上干活:硅谷科技公司这么流行迟到?

硅谷科技公司上班时间OPEN早已不是什么新鲜事,早九晚五是常态,但有很多企业由于不打卡,员工们10点、11点才“姗姗来迟”的情况也屡见不鲜。 这种灵活的考勤制度为人羡慕,甚至近年来,国内某些互联网企业也纷纷效仿。不过,硅谷普遍弹性的上班制度是怎么由来的呢?这种“流行性迟到”真的有那么轻松、悠哉吗? 《动态规划专题班》 课程试听内容: 动态规划的解题要领 动态规划三大类 求最值/计数/可行性 常...

面试阿里p7,被按在地上摩擦,鬼知道我经历了什么?

面试阿里p7被问到的问题(当时我只知道第一个):@Conditional是做什么的?@Conditional多个条件是什么逻辑关系?条件判断在什么时候执...

终于懂了TCP和UDP协议区别

终于懂了TCP和UDP协议区别

Python爬虫,高清美图我全都要(彼岸桌面壁纸)

爬取彼岸桌面网站较为简单,用到了requests、lxml、Beautiful Soup4

无代码时代来临,程序员如何保住饭碗?

编程语言层出不穷,从最初的机器语言到如今2500种以上的高级语言,程序员们大呼“学到头秃”。程序员一边面临编程语言不断推陈出新,一边面临由于许多代码已存在,程序员编写新应用程序时存在重复“搬砖”的现象。 无代码/低代码编程应运而生。无代码/低代码是一种创建应用的方法,它可以让开发者使用最少的编码知识来快速开发应用程序。开发者通过图形界面中,可视化建模来组装和配置应用程序。这样一来,开发者直...

面试了一个 31 岁程序员,让我有所触动,30岁以上的程序员该何去何从?

最近面试了一个31岁8年经验的程序猿,让我有点感慨,大龄程序猿该何去何从。

大三实习生,字节跳动面经分享,已拿Offer

说实话,自己的算法,我一个不会,太难了吧

程序员垃圾简历长什么样?

已经连续五年参加大厂校招、社招的技术面试工作,简历看的不下于万份 这篇文章会用实例告诉你,什么是差的程序员简历! 疫情快要结束了,各个公司也都开始春招了,作为即将红遍大江南北的新晋UP主,那当然要为小伙伴们做点事(手动狗头)。 就在公众号里公开征简历,义务帮大家看,并一一点评。《启舰:春招在即,义务帮大家看看简历吧》 一石激起千层浪,三天收到两百多封简历。 花光了两个星期的所有空闲时...

Java岗开发3年,公司临时抽查算法,离职后这几题我记一辈子

前几天我们公司做了一件蠢事,非常非常愚蠢的事情。我原以为从学校出来之后,除了找工作有测试外,不会有任何与考试有关的事儿。 但是,天有不测风云,公司技术总监、人事总监两位大佬突然降临到我们事业线,叫上我老大,给我们组织了一场别开生面的“考试”。 那是一个风和日丽的下午,我翘着二郎腿,左手端着一杯卡布奇诺,右手抓着我的罗技鼠标,滚动着轮轴,穿梭在头条热点之间。 “淡黄的长裙~蓬松的头发...

大胆预测下未来5年的Web开发

在2019年的ReactiveConf 上,《Elm in Action》的作者Richard Feldman对未来5年Web开发的发展做了预测,很有意思,分享给大家。如果你有机会从头...

立即提问
相关内容推荐