history

git log 用法大全

十年热恋 提交于 2019-12-21 01:37:16
git log [<options>] [<since>..<until>] [[--] <path>...] 因为这个命令用的很多。找了点资料,放到这了。 Description Shows the commit logs. The command takes options applicable to the git rev-list command to control what is shown and how, and options applicable to the git diff-* commands to control how the changes each commit introduces are shown. Options -p, -u Generate patch (see section on generating patches). -U<n>, --unified=<n> Generate diffs with <n> lines of context instead of the usual three. Implies -p. --raw Generate the raw format. --patch-with-raw Synonym for -p --raw. --patience Generate a diff using the

RDD监控

谁都会走 提交于 2019-12-21 00:06:32
目录 1、Spark UI 2、Spark History UI 3、REST API 工作中需要监控Spark作业的运行情况,发现问题,来进行调优。 Monitoring and Instrumentation 监控指标: 1)Launtime 启动时间 2)Duration 持续时间 3)GC Time 垃圾收集时间 4)Shuffle Read Size/Record等 监控Spark 应用程序的有三种方式: 1)Spark UI 2)Spark History UI 3)REST API 1、Spark UI 地址 : http://hadoop001:4040 Spark UI界面标签: 1)Jobs:提交的job、stage信息、DAG图等。 2)Stages:stage信息、task信息。 3)Storage:数据存储进内存的信息。 4)Environment:环境、配置、jar等信息。 5)Executors:executors 、driver相关信息。 问题: 1)如果在同一个机器上运行了多个sc,Spark UI端口是依次递增的:4040、4041、4042.... 2)确定:Spark程序运行结束之后就不能再看这个UI了,因为生命周期结束了,所以应该 启动Spark History 服务。 2、Spark History UI 需要将Spark的操作记录下来

Disable history in Linux [closed]

空扰寡人 提交于 2019-12-20 10:35:10
问题 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 6 years ago . To disable a history in Linux environment I've executed the following commands: export HISTFILESIZE=0 export HISTSIZE=0 unset HISTFILE Is such command combination enough or I have to also execute history -c or something else? Will this keep history disabled even when I reboot a server or such commands need to be

git: Merge Branches but Keep Commit History

淺唱寂寞╮ 提交于 2019-12-20 09:56:27
问题 In my git workflow we have one main repository and one branch, master. Everyone pulls from remote master and everyone pushes to remote master. I want to work in my own branch while I prepare a feature. So far my history is something like this: git pull --rebase git checkout -b new_feature <make some commits> git checkout master git pull --rebase Now I want to merge the branch and here's what I need: No merge commits in my local master branch. All commits made into my new_feature branch merged

What's the file/group/record/unit separator control characters and its usage?

蓝咒 提交于 2019-12-20 09:11:18
问题 Unicode defines several control characters from ASCII. http://www.unicode.org/charts/PDF/U0000.pdf I see many control characters are widely used but I really don't see where "information separators" are used. (U+001C~U+001F) What are them? What's the history of them? Where did they used for? 回答1: Lammert Bies explains both their usage and the history behind. 28 – FS – File separator The file separator FS is an interesting control code, as it gives us insight in the way that computer

ejabberd 16.06 + mysql 5.5.50, message history is not saved

喜你入骨 提交于 2019-12-20 07:28:44
问题 I use ejabberd 16.06 + mysql 5.5.50, message history is not saved. My ejabberd.yml: ## MySQL server: odbc_type: mysql odbc_server: "freldo" odbc_port: 3306 odbc_database: "ejabberd" odbc_username: "ejabberd" odbc_password: "ejabberd" modules: ... mod_mam: db_type: odbc default: always for the formation of the database structure, I used: mysql.sql I get an error: @ejabberd_sql:check_error:1039 SQL query 'SELECT timestamp, xml, peer, kind, nick FROM (SELECT timestamp, xml, peer, kind, nick FROM

How can I store history of ManyToManyField using django-simple-history.

自古美人都是妖i 提交于 2019-12-20 04:48:40
问题 How can I store history of ManyToManyField using django-simple-history. I used HistoricalRecords with attribute m2m_filds but it is throwing error: unexpected keyword argument 'm2m_fields' 回答1: I'm macro1 on GitHub, and I guess de facto maintainer of django-simple-history. From your question it seems that you're just asking about general ManyToManyField support compared with other fields. The short answer is that we do not currently support it. ManyToManyFields actually create an in-between

Do the x86 segment registers have special meaning/usage on modern CPUs and OSes?

我的未来我决定 提交于 2019-12-20 02:14:12
问题 x86 CPUs have had all kinds of tricky modes and memory segmentation over the generations from 16-bit to 32-bit to 64-bit. These days with modern OSes using modern CPUs in modern operating modes you don't have to worry about memory segments, but you can still run legacy apps on legacy OSes on the modern CPUs, in which case I presume the CPUs run in a special legacy mode (protected mode, real mode, etc). So obviously the segment registers exist for reasons of backward compatibility, but is that

eclipselink batch write is disabled when use history policy or DescriptorEventAdapter

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-20 01:36:20
问题 I try to use eclipselink history policy to record the change history of one table/entity. I also use DescriptorEventAdapter/aboutToInsert,aboutToUpdate,aboutToDelete hooks to insert audit record. All things works well except that I found the batch-writing option did not work after I apply the features above. <property name="eclipselink.jdbc.batch-writing" value="JDBC" /> The code is like: for (int i = 0; i <= 3; i++) { MyEntity e= new MyEntity (); e.setName("insert-" + i); entityManager.save

Why can the circumflex sign be used for control chars in Delphi and is it a good idea?

半腔热情 提交于 2019-12-19 19:48:48
问题 I just came across an answer on SO with a curious syntax: How do I include a newline character in a string in Delphi? MyString := 'Hello,' + ^M + ^J + 'world!'; I've been using Delphi for several years now, but I didn't know you could use the circumflex sign for control characters. Is this just a left over from the early Delphi or Turbo Pascal days? Should it be used nowadays? PS: I'm not asking about advice on the line break characters, there is sLineBreak and other methods as discussed in