git push origin :
Deleting your local branch is simple too.
git branch -d
You need to be on another branch. If you execute the command above on
error: Cannot delete the branch '
Software Engineer is(should be) a most efficient Problem Solver.
<servers> | |
<server> | |
<id>Releases</id> | |
<username>your-username</username> | |
<password>your-password</password> | |
</server> | |
<server> | |
<id>Snapshots</id> | |
<username>your-username</username> | |
<password>your-password</password> | |
</server> | |
</servers> |
<distributionManagement> | |
<repository> | |
<id>Releases</id> | |
<name>Release</name> | |
<url>http://localhost:8081/nexus/content/repositories/releases/</url> | |
</repository> | |
<snapshotRepository> | |
<id>Snapshots</id> | |
<name>Snapshot</name> | |
<url>http://localhost:8081/nexus/content/repositories/snapshots/</url> | |
</snapshotRepository> | |
</distributionManagement> |
In file included from Modules/_multiprocessing/multiprocessing.c:9: | |
Modules/_multiprocessing/multiprocessing.h:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.h:126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘SemLockType’ | |
Modules/_multiprocessing/multiprocessing.h:127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘ConnectionType’ | |
Modules/_multiprocessing/multiprocessing.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PipeConnectionType’ | |
Modules/_multiprocessing/multiprocessing.h:160: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ | |
Modules/_multiprocessing/multiprocessing.c:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:13: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:14: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:20: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:95: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:130: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token | |
Modules/_multiprocessing/multiprocessing.c:193: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘module_methods’ | |
Modules/_multiprocessing/multiprocessing.c:216: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_multiprocessing’ | |
error: Setup script exited with error: command 'gcc' failed with exit status 1 |
2012-10-12 15:57:23 +0900: failed to flush the buffer, retrying. error="no nodes are available" instance=23456250987700 | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/plugin/out_forward.rb:137:in `write_objects' | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/output.rb:439:in `write' | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/buffer.rb:279:in `write_chunk' | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/buffer.rb:263:in `pop' | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/output.rb:303:in `try_flush' | |
2012-10-12 15:57:23 +0900: /usr/lib64/fluent/ruby/lib/ruby/gems/1.9.1/gems/fluentd-0.10.25/lib/fluent/output.rb:120:in `run' |
[xxx]# sudo /usr/sbin/lsof -i:24224 | |
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME | |
ruby 22248 td-agent 14u IPv4 46635887 TCP *:24224 (LISTEN) | |
ruby 22248 td-agent 15u IPv4 46635888 UDP *:24224 |
cron "remove-log" do | |
minute "37" | |
hour "04" | |
command "sh /usr/local/app/removelog.sh" | |
end |
#!/bin/bash | |
LOG_DIR="/usr/local/app/*/logs" | |
#old log erase | |
find ${LOG_DIR} -type f -name "myAllipcation*" -mtime +31 | xargs rm -f | |
find ${LOG_DIR} -type f -name "gc.log*" -mtime +31 | xargs rm -f |
[root@baepiff app]# crontab -l | |
# Chef Name: as-stat-remove-log | |
37 04 * * * sh /usr/local/app/removelog.sh |
error: src refspec master does not match any.
error: failed to push some refs to 'git@github ... .git'
I googled and found this solution. It works for me.$ touch README
$ git add README
$ git add *
$ git commit -m 'my first commit'
$ git push origin master --force
java.util.MissingResourceException: Can't find bundle for base name voldemort
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
When I run my program on IntellJ IDEA, this error message shown up on console window. Do I miss something? Yes, I know. It's a kind of class path thing. Here are my solutions.
1. Move properties under sr/main/java/
2. Write attributes on your codes.
3. Just do the following.
Select root directory of your project.
Right Click.
Choose "Mark Directory at" to "Source Root".
Don't choose 1 or 2. Your reviewers would be happy to have a chance to give you a lot of feedback.
It's a secret that I selected 2 for a test. :)
Here is my code.
private StoreClientFactory storeClientFactory() {
Properties p = new Properties();
ResourceBundle rb = ResourceBundle.getBundle(VOLDEMORT_PROPERTY);
for(String key:rb.keySet()) {
p.setProperty(key, rb.getString(key));
}
return new SocketStoreClientFactory(new ClientConfig(p));
}
#!/bin/bash # # CopyLeft 2012 Joongjin, Bae # # CACTI_CLI_DIR=/var/www/cacti/cli cd $CACTI_CLI_DIR HOST_ID_LIST=`php -q add_tree.php --list-hosts | awk '/host pattern/ { print $1}'` TREE_ID=`php -q add_tree.php --list-trees | awk '/graph tree name/ { print $1}'` PARENT_ID_LIST=`php -q add_tree.php --list-nodes --tree-id=$TREE_ID | awk '/^Header/ {print $0}' | awk '/graph tree header node pattern/ {print $2}'` TARGET_GRAPH_ID_LIST=() for host_id in $HOST_ID_LIST do TARGET_GRAPH_ID_LIST=("${TARGET_GRAPH_ID_LIST[@]}" "`php -q add_tree.php --list-graphs --host-id=$host_id | awk '/add target graph pattern/ { print $1 "\n"}'`") done idx=0 for parent_id in $PARENT_ID_LIST do for graph_id in ${TARGET_GRAPH_ID_LIST[$idx]} do php -q add_tree.php --type=node --node-type=graph --tree-id=$TREE_ID --parent-node=$parent_id --graph-id=$graph_id done idx=$((idx+1)) done echo Mission Completed!