# uninstall all previous trials of rvm (modify .bash_profile and remove)
rm -rf .rvm*
# latest stable in my time was 2.0.0-p247
curl -L https://get.rvm.io | bash -s stable --ruby
# obviously this install does not modify profile
source ~/.rvm/scripts/rvm
# just looking
rvm list known
ruby --version
# switch from apples version ruby 1.8.7 to "latest"
rvm use ruby-2.0.0-p247
#
rvm gemset create beef
rvm use ruby-2.0.0-p247@beef
# swich to cloned source
cd ~/beef/
# make ruby in this folder to be 2.0.0
echo 'rvm use ruby-2.0.0-p247@beef' > .rvmrc
# install
bundle install
# run
source ~/.rvm/scripts/rvm
rvmsudo ./beef
Sunday, November 17, 2013
rvm and ruby for some beEF on OSX
There are many articles, some of them did not work for me
and may not work for you… This is what I have made to succeed:
Monday, July 29, 2013
git whatever --recursive (submodules)
Git submodules are pain in the ...
some commands support --recursive
but not all.
In this case, this snipped can help:
git-recursive(){
git "$@"
git submodule foreach --recursive \
git "$@"
}
any improvements are welcomed ;-)
Thursday, July 18, 2013
DBA_TAB_COLS and friends
Table Scope Types Hidden_Cols_Filtered
----------------------------------------------------------------------
DBA_TAB_COLS in the database T,W,C No
DBA_TAB_COLUMNS in the database T,W,C Yes
ALL_TAB_COLS accessible to user T,W,C No
ALL_TAB_COLUMNS accessible to user T,W,C Yes
USER_TAB_COLS owned by user T,W,C No
USER_TAB_COLUMNS owned by user T,W,C Yes
all_table_cols mistype of ALL_TAB_COLS
user_table_cols mistype of USER_TAB_COLS
Wednesday, July 10, 2013
How much is Twitter Button (on OTN)
Just another funny fact:
for such a small button down on the page,
grey and almost invisible
you pay 27K on transfer ?
Sorry, just playing with Charles (before uninstalling this annoying freeware) from my Mac.
Oh, refer(r)er is http://www.oracle.com/technetwork/index.html
Oracle and JQuery
Just a funny payload from todays random sniffing:
/*!
######################################################
# JQUERY.JS
# OCOM GLOBAL ASSET RELEASE: v3.3.2
# BUILD DATE: TUE JUN 25 01:03:40 UTC 2013
# COPYRIGHT ORACLE CORP 2013 [UNLESS STATED OTHERWISE]
# ANY CHANGES MADE TO THIS FILE WILL BE OVERWRITTEN!
# DO NOT MODIFY THIS FILE ON STAGE OR PRODUCTION. ALL
# CHANGES OR ADDITIONS TO THIS FILE MUST BE SUBMITTED
# TO WEBSTANDARDS_WW -AT- ORACLE.COM
######################################################
*/
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),
......
Spring Config Files, Locations, Names and Structures
Quickly finding all spring config files
spring-configs(){
git grep --name-only "http://www.springframework.org/" -- '*.xml'
}
Now let's compare several "boilerplate, demo, sample projects" (just from what I have on my hd):
PetClinic: https://github.com/SpringSource/spring-petclinic/
src/main/resources/spring/business-config.xml
src/main/resources/spring/datasource-config.xml
src/main/resources/spring/mvc-core-config.xml
src/main/resources/spring/mvc-view-config.xml
src/main/resources/spring/tools-config.xml
src/test/java/org/springframework/samples/petclinic/web/VisitsViewTests-config.xml
STS Wizard generated project (Templated Project, MVC)
src/main/webapp/WEB-INF/spring/appServlet/servlet-context.xml
src/main/webapp/WEB-INF/spring/root-context.xml
STS Wizard generated project (Templated Project, Utility)
src/main/resources/META-INF/spring/app-context.xml
src/test/resources/x/y/z/ExampleConfigurationTests-context.xml
Spring Roo Project (STS Wizard)
src/main/resources/META-INF/spring/applicationContext.xml
DI Styles (SpringSourceDemonstration) https://github.com/cbeams/distyles.git
style-1-xml/src/main/com/bank/config/app-config.xml
style-2-namespace/src/main/com/bank/config/app-config.xml
style-3-autowired/src/main/com/bank/config/app-config.xml
style-5-hybrid/src/main/com/bank/config/app-config.xml
More Projects, Explanations and some Wrapup
comming soon.
Thursday, July 4, 2013
XmlHttpRequest (XHR) and HTTP Redirects (testcase)
This is results of XHR behaviour in IE and Chrome regarding redirects.
Enjoy.
Credits: dojo@gratex.com
Subscribe to:
Posts (Atom)


