Search This Blog

Monday, September 7, 2015

ועוד וורקאראונד לשלט XBOX 360 ששב ומסרב להידלק

הוורקאראונד הקודם עליו כתבתי כאן החזיק מעמד את החופש הגדול, אבל בעקבותיו, אחה"צ בהיר אחד, הפסיק לעבוד. בהתחלה חשבתי שמדובר בעייפות חומר של הנייר, אבל לאחר שגם נייר מקופל חדש לא הועיל, וכל הבדיקות האחרות העידו על תקינות, לא היה מנוס מלהגיע למסקנה שאכן מארז הסוללות הגיע לסוף דרכו.

מה עושים ? מוצאים סרטון ביוטיווב שמלמדים איך להכין מארז סוללות חדש...


אפשר למצוא כמה וכמה וריאציות על הנושא הזה ביוטיוב. בחרתי דווקא את הסרטון הזה מאחר הוא נראה לי כפשוט ביותר וכזה שמניב את התוצאה היציבה ביותר לשימוש. סטיתי מההוראות רק בנקודה אחת: במקום מהדק נייר, השתמשתי בנייר אלומיניום, שנראה לי קל יותר להתמודדות בהתקנה, ויציב יותר בהמשך השימוש.

ואסיים בתקווה שלא אמצא עצמי נדרש לנושא הזה שוב בעוד חודשיים שלושה (למרות שברור שהפוסט הזה ישמש בעתיד, כשיגיע זמן החלפת הבטריות... זה חסרונם של מארזי-בטריות אד-הוק).

Wednesday, August 12, 2015

Apex 5 tutorial

A few years ago I had the pleasure of developing with Oracle Application Express, a lovely 4GL I learned to appreciate for its convenience and ease of use. A search on a different Oracle issue brought me to a lovely video series by Jennifer Kreie, teaching the fundamentals of APEX 5, which may be of benefit to anyone wishing to make the first steps with this useful tool. 



Useful links


Thursday, July 16, 2015

Getting "please contact us or change your country to complete your purchase" when trying to get amazon kindle content?

As i was trying to get myself a sample of something to read I found myself encountered with the following error message:

error message: "please contact us or change your country to complete your purchase"

I was quite baffled (having purchased a kindle book about two weeks ago, and downloaded two other samples without a hitch only the other day). Thinking about it, i reached the conclusion that it was an amazon bug. 

Realizing there was no other choice but to try and please the bug, I went to the device settings link, chose the "change country" setting and reset it. 
And voila! everything works... 

Wait, what happened here ? A customer trying to use a website got an error message blaming him of doing something that was not true. I was not in a different country than that listed on one's amazon account.

Why this did happen?
I don't really know. But I can hypothesize. 
I don't remember myself updating this specific setting in the past, so it might actually be something new. Or it might be something that was updated in the long past, when i purchased my first kindle.
I really don't know.

What is obvious is that someone made a blunder in amazon. Either a software change that was not properly  promulgated to users, or a data change that brought forth a situation in which a "country" field was not set as the software expected it to be. 

One way or the other, i can go and check my sample in peace...

And if you happen to wonder what is that sample, it is the most recent dexter book -


Friday, June 26, 2015

making pre-installation of Oracle12c on CentOS 6 easy

Easily installing Oracle12c on CentOS 6 

preliminary remarks: 
1) many of the preperation tasks require privileges which require root, sudo or the tailoring of the user's privileges. If you don't have root access, you'll need the help of your sys admin. I did not tailor made this guide, and instead worked from root when needed. life is easier when you have root access... 
2) I assume knowledge of getting the Oracle12c installation files. 

Pre-Installation made easy:
First of all, get from the Oracle Public Yum Server:
 http://public-yum.oracle.com/
the installation-simplification-package :

wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpg --quiet --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle

cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-ol6.repo

cat /etc/redhat-release # to see which oracle unbreakable linux <> red-hat <> parallel centos I'm using (my case: 6.6) 
vi public-yum-ol6.repo     # Open the yum configuration file in a text editor
#change the field enabled=0 to enabled=1 to reflect repositories that correspond to the machine's operating system 
#release. 
by default, the relevant repositorieswere enabled for me 
([ol6_latest]  ,  [ol6_UEK_latest] )

yum install oracle-rdbms-server-12cR1-preinstall
# check /var/log/oracle-rdbms-server-12cR1-preinstall
             # the sub-folder results contains the logs 
             # the sub-folder backup/[date-of-run] contains backup of changed files 

now change the password for the future owner of the db, the newly created user oracle.

as always, reboot before starting installation, to make sure all changes are in effect. 

and it is "./runInstaller " time ! 

(and don't forget the post installation steps that too many people neglect!) 

further reading / learning 

Thursday, June 25, 2015

וורקאראונד לשלט XBOX 360 שסירב להידלק

אחרי תקופה שבה הXBOX 360 של המשפחה עמד לו בפינה בודד ואומלל (יותר נכון, בתחתית שולחן הסלון) שב אליו העניין המשפחתי (בעיקר לרגל החופש הגדול ההולך וקרב לו). למרבה הצער, התברר ששכחנו להוציא את הסוללות מהשלט, ואחת מהן דלפה מעט.

לאור העובדה שמארז השלט עם הסוללות החדשות היה ללא מתח בנקודות המגע,לא היה מנוס מניקוי נמרץ.

למרבה הצער גם אחרי ניקוי/גירוד יסודי של המגעים מכל תוצרי הדליפה, למרות שה-FLUKE שלי הצהיר שהכל תקין ובין שתי נקודות המגע של המארז יש מתח מצטבר של שתי הסוללות, השלט עדיין לא נדלק.

חיפוש קצר באינטרנט  הביא אותי אל הסרטון הבא:



הסרטון מציג וורקאראונד מעניין שאכן פתר במקרה שלנו את הבעיה.

אם אני מבין נכון, המארז אמור להפעיל לחץ על מתגים קטנים שכנראה התרופפו עם הזמן, כנראה בלי קשר לסוללה הדולפת, ורק חיכו להזדמנות הראשונה בה יוחלפו הסוללות כדי לעשות צרות. חתיכת נייר קטנה שמוספת אל נקודה מסויימת במארז, כפי שמוסבר בסרט, פותרת את הבעיה ומאפשרת לשלט לעבוד ללא קושי. מה התפקיד של המתגים הקטנים ? שאלה טובה. אני משער שהם משחקים איזשהוא תפקיד באחד מהשניים - מאבקה של מיקרוסופט בחלפים לא-מקוריים או שמדובר בחלפים שתכליתם התיישנות מתוכננת.

כך או כך ולמרבה השמחה, השלט חזר לאיתנו, ואיפשר לילדי להתאגרף בשמחה עם יריב וירטואלי בקינקט ספורטס.

אני מקווה שהמידע הזה יוכל להועיל גם למשתמשים אחרים שמבקשים להמשיך ולהינות מהXBOX 360 המזדקן שלהם. ואאחל לכל מי שנעזר בפוסט הזה את ברכתו העתיקה של האדמירל נלסון, ברכה יפה לגיימרים בכל מקום ובכל עת: "אויב נלהב וים פתוח!"

[עדכון, 7/09/2015: הוורקארונד הזה החזיק קצת פחות משלושה חודשים. נמצא וורקאראונד אחד במקומו]

Sunday, May 31, 2015

האוקולוס ריפט ממש מעבר לפינה...

קראתי בגיק טיים שהאוקולוס ריפט ממש מעבר לפינה. אז הרבעון הראשון של 2016, זה לא ממש ממש מעבר לפינה; קצת מטריד שמוצר מהסוג שאמור להיות deal breaker לא מגיע בזמן של תקופת החגים לחנויות ובוודאי עוד סימן לכך שפייסבוק היא לא חברה שמנוהלת על ידי אנשי-מכירות אלא על ידי אנשים טכניים ובכל זאת, זה עשוי להיות סימן מאוד מעודד לגבי רמת האמינות הצפויה של המוצר !

מבט על קינקט ומיקרוסופט הולו-לנס, והשיח המתפתח על מציאות מדומה ומציאות רבודה, מרמז על כך שבעתיד הלא רחוק
נראה את העולם נקרע בין שתי גישות. זו שמתמקדת בלשים על עינינו עדשות מלאכותיות, דרכן ניגש אל המציאות הדיגיטלית,וזו שמתמקדת לשלב את העולם הדיגיטלי בתוך העולם שלנו.

לטווח הקצר, קל לדמיין את האוקולוס ריפט מנצח. לטווח הארוך זה כנראה יהיה הרבה יותר מורכב.
חיפוש ראשוני ביוטיוב לא הועיל הרבה. האומנם אי אפשר להתרשם באמצעות הטכנולוגיה הישנה, איך תראה החדשה...
גם מבט באתר עצמו  לא מאוד עוזר...

אז חוזרים ליוטיוב ומתעקשים, ומתחילים למצוא קצת תוצאות


בהחלט מקבלים תחושה שזו קפיצה קדימה. משהו שישרת היטב גם משחקים וגם תקשורת.
ובכל זאת - שני ספקות קופצים לתודעה בתגובה להערות מתלהבות.

  • הראשונה, פרטנית - כל טכנולוגיה תלויה ביישומים שלה. אני בספק שאכן נראה כבר ברבעון הראשון של 2016 מספיק יישומים שיאפשרו למשתמש שימוש נלהב ומרגש ללא הפסקה. אני מעריך שלפחות בשנה הראשונה נראה יותר דיווחים על תחושה-מתמדת שזה עדיין לא זה והתלהבות מכל עדכון. ואני מקווה מאוד מאוד להתבדות בהערכה הזו, ולגלות שכבר ברבעון הראשון מערכות תקשורת כמו סקייפ יזכו לתמיכה, בלי שתשתיות הרשת יהפכו את התמיכה הזו לבדיחה עצובה. מקווה, ומעריך שהbandwidth, למרות כל ההתפתחויות, ישמור את האוקולוס ככלי של 'העולם הראשון', המפותח, העשיר, לפחות לכמה שנים. מקווה, וחושש שכמו כלי-ממשק אחרים, זה לא עניין של שנה-שנתיים, אלא עניין של עשור-שניים. 
  • השניה, כוללנית - זה עדיין לא הדבר עצמו. חסרה תחושת-הגוף. בהקשר הזה כבר העיר חבר מהמתלהבים שהמרחק לsingularity  באמת מתחיל להתקצר, לא ? הרי תראה כמה מהחוויה האנושית מצליח להיות מתורגם לעולם דיגיטלי על ידי המערכת הזו... ולכך צריך להעיר שזו תגובה מבולבלת לטכנולוגיה שהיא כשלעצמה באמת מהממת. ולא צריך להתבלבל. אנחנו מדברים על פריצת דרך בייצוג המציאות הדיגיטלית עבור בני-האדם. לא מדובר כאן בפריצת דרך בייצוג בני-האדם עבור המציאות הדיגיטלית. ולכך עוד יידרש כנראה די הרבה זמן. אחרי הכל, יש singularity ויש singularity. מי מאיתנו רוצה להיות מהדור הראשון של אלה 'שהומרו' ושליד הדורות הבאים, בגלל מגבלות הרזולוציה של 'ההמרה' או מגבלות האחסון יהיה יישות מוגבלת וחסרה שכזו? דמיינו קיום מודע-לעצמו של הומו-האביליס, צד בצד עם ההומו-סאפיינס.... מה יהיה חלקן של אותן יישויות אומללות, נחותות באמת, שמורות לנצח בקיום דיגיטלי על גבי סיליקון? קשה להימנע מהמחשבה על חיי נצח של עבדות. וגרוע מזה, מרגע שיהיה לכל אחד מאיתנו עותק דיגיטלי, כפי ישיב כל סופר מדע בדיוני מתחיל, יוכלו להיות גם כמה העתקים. החלום הורוד על עותק אחד שמפרנס את כל האחרים יוכל אולי להתממש (כמה כבר יעלה שטח אחסון? שואל קול תמים ומתעקש להתעלם מהתשובה הקפיטליסטית המתבקשת) אבל גם החלום הלא-ורוד על העתקים משוכפלים המשרתים את היחידים וכמובן גם החזון של המטריקס מחייב אזכור, כעוד דוגמא למציאות לא נעימה שעשויה להפוך ברירת-מחדל, בעתיד הלא-רחוק מדי. 

ובכל זאת, כמי שתמיד מתלהב מההזדמנות לקבל את התשובה לשאלה הרוחנית המתבקשת (כשעותק אחד נופל ביער, מה מרגישים העותקים האחרים?) קשה שלא להתלהב מהתלהבותם של אחרים. גם אם העתיד הרחוק או המושלם לא כאן, הולך להיות מאוד מעניין פה בעתיד הלא מושלם, והלא רחוק, עבור כל מי שאוהב טכנולוגיה.  



Friday, May 29, 2015

howto install postgress on centos7 for work with "7 databases in 7 weeks"

I'm finally approaching the end of my writing project  (much later than originally anticipated, and now, as I'm finally through with writing and at the stage of advanced editing, with the end (hopefully a good one) seen in the horizon, I can finally start to focus on the matter for which we have gathered here. 

Curiosity brought me to start reading "7 databases in 7 weeks" and sadly, the book, as interesting as it appears in this early stage of reading, does not guide the reader in the process of installing the databases it teaches... 



and thus I found myself having to install PostgressDB, and this seemed like a great opportunity to fulfill another wish of mine - to install a product from the O/S repositories (instead of downloading the latest product from the maker's website and following the instructions with zeal). 

This is the summary 'howto' of my ordeal

install the server
yum install postgresql-server.x86_64
(it has several dependencies (which you can see later thru yum deplist; the two interesting ones to know are - the postgresql.x86_64, postgresql-libs.x86_64 packages) 

install the contributed packages
yum install posgresql-contrib
(to get the contributed packages, which are only a small part of the variety and they all shall arrive to 
/usr/share/pgsql/extension)

initialize the database 
postgresql-setup initdb 

set database to startup while machine boots up 
chkconfig postgresql on 

start the db
service postgresql start

(how to stop, or restart? 
service postgresql stop
service postgresql restart )

now lets add the extensions to the template db "template1" 
su - postgres 
psql 
create extension tablefunc;
create extension dict_xsyn; 
create extension fuzzystrmatch;
create extension pg_trgm; 
create extension cube; 
(if successful, each sentence shall be responded by 
"CREATE EXTENSION") 

exit psql, using "\q" (without the quotation marks..) 

now lets create a working user
su - postgres [which is the default superuser of postgresql]
createuser --interactive 
(easiest in my mind)
provide name of user ('role' in postgres lingo) 
y/n to shall new role be superuser (recommend against, even though this is a development environment)

y/n to shall new role be allowed to create new databases ? (recommend y. this is a development environment after all)

y/n shall new role be allowed to cereate new roles?
(can't make up my mind yet; don't know enough of postgres; oracle background says no; development says what the heck)

and last - lets create the working db, in this case, the 7 dbs in 7 weeks, "book" db...
run from the shell :
createdb book (you can drop it using dropdb name-db]

enter plsql:
psql book 

the end:
now you can run the book's samples and carry on with your postgress studies... 
(to be on the safe side, first run the book's initial sample to see the extensions are working)

further reading