ignore

Turnoff mysql unsafe statement warning

↘锁芯ラ 提交于 2019-12-05 04:33:36
I am using log-error to write warning/errors into a file. When I perform INSERT IGNORE..SELECT statement, it just keep write this warning messages. 120905 3:01:23 [Warning] Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. INSERT IGNORE... SELECT is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are ignored. This order cannot be predicted and may differ on master and the slave. I want to stop mysql logwriter keep writing the error above over and over. (I can't see other log because they fillout

Ignore a path entry with bash tab-completion

心不动则不痛 提交于 2019-12-05 03:51:05
I have two commands, foo and foo-bar , where foo is a symlink to foo-bar . I want to be able to type f +TAB (pretend these are the only two commands on the path that begin with f ) and have one of them be completed (meaning the full name and the space after). What ends up happening though is that it completes to just foo (no space) because of foo-bar . It's obviously not much work to then just hit the space bar, but this interrupts my flow. Some additional details: foo and foo-bar are in the same directory. Deleting/moving foo isn't an option (I've hidden some details). Is there a way to

Git Ignore的两种方式

邮差的信 提交于 2019-12-05 00:48:36
PS:后来发现重启电脑后还是会追踪变化。需要进一步调研 在使用Git时,会有一部分文件,我们不想在提交时的可选文件中出现,有两种情况: 0我们自己添加的依赖,只有在自己开发中使用,不想进行版本控制,那么我们采用.gitignore文件来进行设置,如MAVEN项目中的编译目录target,只需要在.ignore中添加/target/即可。 1.已经在版本库中了,如数据库的配置文件,我们都需要根据自己的实际情况进行更改,如果有人不小心提交,会给partner带来麻烦,这时候需要采用Git提供的一个命令,不进行指定文件的状态检测,即一直是同步状态。 git update-index --assume-unchanged <file-path> // 如果是目录的话 git ls-files | tr '\n' ' ' | xargs git update-index --assume-unchanged // 如果需要恢复追踪 git update-index --no-assume-unchanged <file-path> 来源: oschina 链接: https://my.oschina.net/u/1474632/blog/550340

Promise: Ignore Catch and Return to Chain

岁酱吖の 提交于 2019-12-05 00:40:00
Is it possible to ignore a catch and return back to the chain? promiseA() // <-- fails with 'missing' reason .then(promiseB) // <-- these are not going to run .then(promiseC) .catch(function(error, ignore){ if(error.type == 'missing'){ ignore() // <-- ignore the catch and run promiseB and promiseC } }) Is something like this possible? Here's the synchronous analogy: try { action1(); // throws action2(); // skipped action3(); // skipped } catch (e) { // can't resume } vs try { action1(); // throws } catch (e) { handleError(e); } action2(); // executes normally action3(); Here's the promise

jQuery hover div underneath another layer

非 Y 不嫁゛ 提交于 2019-12-04 23:56:45
Is it possible to ignore all divs that are "above" the element that has hover binded to them with jQuery? For example, I have an element A that has a hover event binded to it, but there also other elements B, C, D that are "absolute positioned" above element A. So when the user's mouse moves over to element B, C, D, the hover event is no longer fired even if B, C, and D are directly above the element. Is it possible to ignore elements B C and D? UPDATE: I'm actually trying to create a map (element A) with elements B, C, D as area labels. So for example, for a map of New York state, you will

Using automapper to apply a filter to a collection

徘徊边缘 提交于 2019-12-04 22:43:38
I have a domain model that contains a collection and I want to use AutoMapper to map the parent and children to the view model but I don't want children that have been "soft" deleted to be taken across. For instance: public class Customer { public EntitySet<Order> {get;set;} } public class Order { public DateTime? DeletedDate {get;set;} } my AutoMapper definition would be Mapper.CreateMap<Customer, CustomerViewModel>(); Mapper.CreateMap<Order, OrderViewModel>(); and I don't want Orders to be in the view model that have a value for DeletedDate. Is that possible in AutoMapper? Many thanks in

Which files to ignore using to commit to SVN in Android Studio

守給你的承諾、 提交于 2019-12-04 19:39:00
Which files do i have to put on ignore in SVN when im using Android Studio? Currently i have ignored this files: *.idea gradle *.iml build local.properties .DS_Store When you create an Android Studio project, .gitignore files will be also generated. Based on that, in the parent folder we exclude: -.gradle -/local.properties -/.idea/workspace.xml -.DS_Store And in the modules directory: -/build Personally when I'm working on Android project I ignore the folder bin , project.property, classpath, settins/org.eclipse.jdt.core.pref , proguard-project.txt , local.properties . I don't use Ant or

Tortoise - is it possible to ignore new folder before committing it?

帅比萌擦擦* 提交于 2019-12-04 15:34:01
问题 I just added a class library project to my .NET solution. When I built it, it created the bin and obj folders, which I want to exclude from version control. However, Tortoise won't let me ignore the folders before the first commit. It gives the following message. Cannot add bin to the ignore list! I have to check the whole lot in, and then choose Delete and add to ignore list for the two folders. How do I prevent them being checked in at all, and ensure Tortoise knows to ignore them? 回答1: It

git diff to ignore patterns in files

我们两清 提交于 2019-12-04 08:59:45
I have a problem with git diff. Let me first fill you in on the history. I have just been given a rather unpopular project from a customer. The problem is that they have 2 branches in their scm. These two branches have not been merged for ages, nut now they have to merge them. Most of the changes are trivial, so merging via git only takes about 30 minutes. How ever, my customer do not trust that a merge process can be automated. Therefore they want to review the merge, by having a diff list with differences between all 4 version of the code in play (base and version a, base and version b, a

perl if line matches regex, ignore line and move onto next line in file

徘徊边缘 提交于 2019-12-04 08:20:51
How would you do the following in perl: for $line (@lines) { if ($line =~ m/ImportantLineNotToBeChanged/){ #break out of the for loop, move onto the next line of the file being processed #start the loop again } if ($line =~ s/SUMMER/WINTER/g){ print "."; } } Updated to show more code, this is what I'm trying to do: sub ChangeSeason(){ if (-f and /.log?/) { $file = $_; open FILE, $file; @lines = <FILE>; close FILE; for $line (@lines) { if ($line =~ m/'?Don't touch this line'?/) { last; } if ($line =~ m/'?Or this line'?/){ last; } if ($line =~ m/'?Or this line too'?/){ last; } if ($line +~ m/'