Skip to content

Instantly share code, notes, and snippets.

public boolean isWidgetReferenced(int widgetId) {
try
{
String[] widget_tables = {"WIDGET_REGION", "WIDGET_OFFERING", "WIDGET_ORDERS",
"WIDGET_NEW", "WIDGET_HISTORY", "WIDGET_STATS_RECORDED",
"WIDGET_VIEWED", "WIDGET_SETS", "WIDGET_INSTALLED",
"WIDGET_PENDING", "WIDGET_JOURNAL" };
'hax Practice.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_32\mscorlib\2.0.0.0__b77a5c561934e089\mscorlib.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'hax Practice.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\Microsoft.VisualStudio.HostingProcess.Utilities\10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.HostingProcess.Utilities.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'hax Practice.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'hax Practice.vshost.exe' (Managed (v2.0.50727)): Loaded 'C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll', Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is
nastrg> irb
irb(main):001:0> $:
=> ["/opt/local/lib/ruby/site_ruby/1.9.1", "/opt/local/lib/ruby/site_ruby/1.9.1/powerpc-linux-spe", "/opt/local/lib/ruby/site_ruby", "/opt/lib/ruby/vendor_ruby/1.9.1", "/opt/lib/ruby/vendor_ruby/1.9.1/powerpc-linux-spe", "/opt/lib/ruby/vendor_ruby", "/opt/lib/ruby/1.9.1", "/opt/lib/ruby/1.9.1/powerpc-linux-spe", "."]
irb(main):002:0> exit
nastrg> find | grep zlib
./volume1/@optware/share/ri/1.9.1/system/Zlib/zlib_version-c.yaml
./volume1/@optware/lib/ruby/1.9.1/powerpc-linux-spe/zlib.so
./opt/share/ri/1.9.1/system/Zlib/zlib_version-c.yaml
./opt/lib/ruby/1.9.1/powerpc-linux-spe/zlib.so
nastrg> gem install rake
Successfully installed rake-0.8.7
1 gem installed
Installing ri documentation for rake-0.8.7...
Updating class cache with 1382 classes...
Installing RDoc documentation for rake-0.8.7...
nastrg> gem install rails
Successfully installed activesupport-3.0.0
Successfully installed builder-2.1.2
Successfully installed i18n-0.4.1
compiling zlib
make[1]: Entering directory `/root/ruby-1.9.2-p0/ext/zlib'
o ../../.ext/powerpc-linux/zlib.so zlib.o -L. -L../.. -L. -lz -lpthread -lrt -ldl -lcrypt -lm -lc
make[1]: o: Command not found
make[1]: [../../.ext/powerpc-linux/zlib.so] Error 127 (ignored)
make[1]: Leaving directory `/root/ruby-1.9.2-p0/ext/zlib'
making ruby
make[1]: Entering directory `/root/ruby-1.9.2-p0'
make[1]: `ruby' is up to date.
make[1]: Leaving directory `/root/ruby-1.9.2-p0'
nastrg> ipkg list_installed
autoconf - 2.67-1 - Creating scripts to configure source code packages using templates
automake - 1.10-2 - Creates GNU standards-compliant Makefiles from template files
bash - 3.2.49-1 - A bourne style shell
binutils - 2.17-2 - The GNU assembler and linker and related tools
bison - 2.4.1-1 - a general-purpose parser generator that converts an annotated context-free grammar into an LALR(1) or GLR parser for that gramm
bzip2 - 1.0.6-1 - Very high-quality data compression program
diffutils - 3.0-1 - contains gnu diff, cmp, sdiff and diff3 to display differences between and among text files
expat - 2.0.1-1 - XML Parser library
gawk - 3.1.8-1 - Gnu AWK interpreter
9base - 4+20090827-1 - 9base is a port of a few original Plan 9 userland tools to Unix.
abook - 0.5.6-2 - Abook is a text-based addressbook program designed to use with mutt mail client.
ack - 1.90-1 - grep-like text finder
adduser - 1.10.3-1 - a multi-call binary for login and user account administration
adns - 1.4-2 - Asynchronous resolver library and DNS resolver utilities.
aget - 0.4.1-1 - Aget is a multithreaded HTTP download accelerator.
aiccu - 20070115-2 - Automatic IPv6 Connectivity Client Utility.
alac-decoder - 0.1.0-2 - A decoder for the apple lossless file format
alsa-lib - 1.0.23-1 - ALSA sound library
alsa-oss - 1.0.17-1 - ALSA sound OSS emulation library
nastrg> rvm ruby-1.8.7-p302
/usr/local/rvm/scripts/rvm: line 7: /dev/fd/62: No such file or directory
nastrg>
nastrg> vim /usr/local/rvm/scripts/rvm
nastrg> grep -q '^rvm ()' < <( declare -f ) # Is RVM is a shell function?
-bash: /dev/fd/62: No such file or directory
nastrg> ruby -rzlib test.rb
/usr/local/lib/ruby/1.8/powerpc-linux/zlib.so: libz.so.1: cannot open shared obj
ect file: No such file or directory - /usr/local/lib/ruby/1.8/powerpc-linux/zlib
.so (LoadError)
nastrg>
nastrg> ./ldd /usr/local/lib/ruby/1.8/powerpc-linux/zlib.so
libz.so.1 => not found
librt.so.1 => /lib/librt.so.1 (0x6ffa2000)
libdl.so.2 => /lib/libdl.so.2 (0x6ff7f000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x6ff33000)
libm.so.6 => /lib/libm.so.6 (0x6fe90000)
libc.so.6 => /lib/libc.so.6 (0x6fd32000)
libpthread.so.0 => /lib/libpthread.so.0 (0x6fcc1000)
/lib/ld-linux.so.2 (0x20741000)
nastrg>