Search This Blog

Saturday, December 19, 2015

installation of linux goes smoothly on hp pavilion but boot manager won't start?

A funny little thing happened 
on my HP Pavilion TS 14 Notebook ...

I have windows 10 installed
(as an upgrade for the windows 8.1 the laptop came with)
and i am slowly, but steadily learning to really dislike windows 10.

It reached enough height today that i decided to install a dual-boot linux mint... for sanity's sake...

It has been a relatively long while since i installed dual-boot machines on a regular basis. 
the last time was when i installed ubuntu, as dual-boot to the windows 10 release candidate (when i realized the rtc was really far from being ready for work... )

Linux mint's installation worked as smoothly as one can ask for
but afterwards, the dual boot did not work .

It was maddenning because everything seemed to be ok, and yet, for some reason, all i could see was windows boot-manager, or the laptop's uefi os-selector. 

I took quite some time (and some rather unnecessary apt-get of the grub-efi-amd64  package and playing around with the efi boot manager) before i took a long hard look at the bios setup, and discovered/recalled that in the past, to install ubuntu as an alternative to the windows 8.1, I enabled the legacy support. 

So, a new lesson: if legacy support is on, both windows 10 and mint 17 will tell you everything is ok, but when time comes for boot time, your grub won't work. 

After - 

  1. disabling the legacy support on the efi-bios, 
  2. booting into linux mint and executing grub-install 
Everything was ok.

Now the computer starts-up into the grub boot menu, 
and all options from that menu - linux and windows,
work as they should. 

Further reading 
a good guide for efi/uefi which inspired me to take another look at that bios/efi configuration 



Thursday, December 17, 2015

Microsoft mstsc (remote desktop connection) on windows 10 won't connect to a remote virtualbox machine

An old power supplier, maybe the most common end-of-the-line malfunction for personal computers, has brought the need for strategic planning of the house grid of computers... as one could expect, that type of supplier is hard to get nowadays (it was a 7 year old PC), and certain planned changes and related exertions meant that it would not be the wisest thing to buy a replacement at the moment. 

This was the prologue that made my computer become my wife's, and at the same time remain the house's main server, running all sorts of virtual machines. I was forced to move to my laptop, and was surprised to discover that the remote desktop connection of windows 10 just would not connect to any of my virtualbox machines.... 

It tooks some digging before I got to this virtualbox tickect about this issue, and learned that Microsoft made a certain change in the client, and the virtualbox VRDP server was too strict in his checks. 

Upgrading virtualbox and virtual box extensions pack from 4.3.26 to 4.3.34 did the trick.

Which is good, one would say, unless one was getting tired of windows 10 and a great excuse to dump it was just eradicated by this solution... 

[update, 9/5/2016: I had some other problems with .34, and found myself downgrading my virtualbox back to .26 a few months ago. As this happened together with my spontaneous move to mint as my primary workstation, I did not discover until today that mstsc on windows 10 is now capable of connecting to a remote virtualbox machine. Considering circumstances, the only logical conclusion is that Microsoft corrected its end - but I'm only guessing. What I am not guessing is that all of a sudden I can work on Windows 10 and connect to remote virtualbox machines ! ]

Wednesday, December 2, 2015

The tidbits corner: how to create a round image using only MSword and MSpaint

It is a silly little thing, but sometimes those little possibilities make you smile, don't they?

When designing a web page, or some other interface, it is frequently desired to add images, and lets face it - rectangular images are not the most convenient form. 

It is quite simple to create a non-rectangular round image even without a sophisticated graphics tool 
(either commercial or free). If you use windows and office, you already have all that you need - MSword and MSpaint. 

1. open ms word
2. create a new word file 
3. insert a shape 
   (i prefer the rectangular with round corners, but any shape will work) 
4. draw the shape to the needed size 
5. while the shape is selected, choose from the drawing tools menu, the format section, 
    and there, choose the shape fill tool.
6. choose picture and load the one that you need.
7. right click on the shape and choose format autoshape.
8. from the colors and lines tab, choose lines "color" and select "No color". 
9. copy the image to the clipboard. 
10. open paint. 
11. mark on the select tool, "transparent selection" 
12. paste 
13. adjust the size of the image to the pasted image.
14. save. 

for a more elaborate explanation, including images, see:guidingtech's guide

ותקציר שימושי בעברית - איך ליצור תמונה עגולה רק באמצעות וורד וצייר: 
1. פתח וורד
2. צור קובץ חדש 
3. הוספה/צורות - הוסף את הצורה הרצויה 
4. צייר את הצורה לגודל המתאים 
5. בחר את הצורה ובתפריט "כלי ציור" בחר עיצוב אובייקט ושם בחר "מילוי צורה" 
6. בחרה תמונה והוסף את התמונה הרצויה 
7. קליק ימני על הצורה ובחר "עיצבו צורה אוטומטית" 
8. ב"בצעים וקווים" בחר תחת "קו" את "צבע" ושם בחר "ללא צבע" 
9. העתק את הצורה אל לוח-העריכה (זה השם העברי ל-clipboard)
10. פתח את צייר 
11. בתוך תוכנת צייר, לחץ על "בחר" וסמן את "בחירה שקופה" 
12. הדבק 
13. התאם את גודל התמונה לגודל של מה שהדבקת
14. שמור 
(וכרגיל, כשמדברים בעברית, עם הקוראות הסליחה על לשון הזכר בהדרכה). 


Monday, November 30, 2015

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

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

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

Monday, October 19, 2015

Lacking up disk space? check for old versions of Google Chrome Installer

I was surprised to discover that my system drive reached the 10% free space mark this morning. 
Even though it is a routine weekly check, in modern systems this moment is still a surprise, 
considering the sizes of hard disk spaces. 

I was even more surprised when I discovered that the two main culprits were:
1) the windows temp folder (my responsibility; because of the large sysrem disk space, I limited
    myself to monitoring and not active deleting, wishing to see how much of temp is 
    accumulating and how much is alternating. do over 9GB of temp since the new system disk started    running justify a weekly deletion script? I wonder. we are talking about a 2+ years of non-
   deletion... I'll think it over)

2) Google Chrome's update folder. (now, this really surprised me. I was sure chrome has some form of self regulation, but C:\Users\my-username\AppData\Local\Google\Update\Install had over 7GBs
    of installation files ! )


In general, it seems that my relaxed, old fashioned system administration style around the house
will be coming to an end these days. another change in life shall leave me a lot less time to monitor
the real and virtual computers I handle, and this means that soon enough, I'll start looking into
automation software. 

In the mean time, if you discover that your windows system disk is clogged, in addition to 
checking the usual suspects (such as C:\TEMP), why don't you go over to 
C:\Users\your-username\AppData\Local\Google\Update\Install 
and see how they are hanging... 

Further reading 

Thursday, October 15, 2015

A new certification for an old qualification:

I've been contemplating
in recent months
about future directions...

One thing lead to another
and all of a sudden
I find myself
getting a new certification
for an old qualification:

Monday, September 28, 2015

lampp mysql won't start ?

Well, my lampp stated at startup that another mysql was running, and it persisted saying that even though I made sure that no other mysql is up ? 

After running around in circles for a while I finally got to read some startup scripts, and afterwards looked under the var/mysql/ folder (that 'var' is a sub-folder located inside the LAMPP_HOME folder, not the system's /var folder which is located directly under the / of the filesystem). 

There I searched for a filename 'your-hostname.pid' (that is xxxx.pid, yes?) 
and having found it - I deleted it. 

And then everything was back to normal... 

I'm documenting this because ofr some reason or another, I couldn't find this documented elsewhere. Either it is a strange lampp bug, and I'm to blame for using a relatively old version (mainly for an old internal software), or it is something that expert mysql dbas have another solution for. Go figure. But this worked for me.... 


Sunday, September 13, 2015

Happy Programmer's Day !

Today, new year's evening in Jewish Tradition, also happens to be Programmer's day!

What is Programmer's day ? It is a public holiday in Russia and an international professional day, supposedly raising the awareness of people all over the globe, to the unique and valuable contribution of programmers everywhere to humanity's progress.

The day is celebrated on the 256th (hexadecimal 100th, or the 28th) day of each year (September 13 during common years and on September 12 in leap years). Wikipedia tells that the number 256 was chosen "because it is the number of distinct values that can be represented with an eight-bit byte, a value well-known to programmers. 256 is also the highest power of two that is less than 365, the number of days in a common year."

Do not confuse this day with the System Administrator Appreciation Day or with the World Information Society Day. You might choose to use this day to ponder a little why many programmers prefer to work at night. Or you may choose to think about the kinship between programmers of the present and those of the past. Or you might just dedicate a moment of your time to think what real programmers actually use....

Comics about programmers attitudes towards what real programmers use
This work was licensed under a Creative Commons Attribution-NonCommercial 2.5 License on xkcd
But on a more serious note, this is a great opportunity to remind everyone who has never programmed, why should you experience programming....  In the words of the following short film, the programmers of tomorrow are the wizards of the future:


Happy Programmer's Day ! 

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



Thursday, April 2, 2015

a centos7 strange bug during boot after groupinstall

Ran into a funny bug today, after installing Centos7. 

The first post-install boot was smooth. After a certain yum groupinstall I rebooted again, and then I encountered a surprising prompt on the screen. A request to accept a license agreement . Without any license agreement displayed. 

I am quite sure that I signed the license agreement during the initial (GUI) installation. But I am not positive about it. Could it be that the prompt was displayed because I did not install GUI, and this is the way the license is requested in character mode ? But if so, why wasn't it displayed in the first boot? 
I assume that a more probable reason was the installation of further packages that required a signature, and since I booted into a non-GUI state, this was CentOS's way of asking for a renewed signature. 

I think we would all agree that requesting a license agreement signature without presenting the agreement is problematic. 

You might think at first that the machine hanged during boot. But if you try toying with the keyboard, you will see that you get responses... 

bugs.centos.org suggested a solution. If you run into a similar situation, don't worry: 
first type 1 
then  type 2  (meaning - select checkbox) 
then type c 
then type c again. 

And the machine will go on in the boot process. 

I miss CentOS 6... 

Sunday, March 22, 2015

ככה בונים תשתית לקראת בחירות?

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

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


הוא מבקש לוודא שהבעיה איננה ברשת התקשורת עצמה -
פלט של פקודת tracert המציג דילוגים ממחשב הקצה עמוק אל תוך רשת היעד, שם נקטע הקשר בגלל אי-תשובה של שרת הקצה

ומקבל תוצאה שמלמדת אותו כי כנראה שרת פלוני, עמוק בתוך רשת היעד, איננו מגיב...

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

פלט מאתר netcraft המלמד ששרת היעד הוא Microsoft-IIS 5


Microsoft IIS 5. לא נעים. ואולי בכל זאת החברים מnetcraft טועים? כבר היו דברים מעולם. הבטחתי לעצמי לחכות שבוע ולבדוק:


נראה קצת יותר טוב. 

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


Friday, March 6, 2015

Installing fedora 21 on a windows virtualbox host

step-by-step description of installing fedora 21 on virtualbox (windows host): 
  1. download and verify
    a) download 
    b) verify (pay attention that the verification on windows is done slightly differently
  2.  mount (I still use elaboratebytes' virtual clone drive)
  3.  create an empty virtual machine and start it, booting from the virtual drive 
  4.  Start Fedora ; choose install on hard drive ; 
    from here on the process is self-explanatory and very quick, quite similar to windows. 
    (if you've never installed Linux before, the two issues that might appear rough at the edges are:
    1) choosing disk layout: since this is a virtual machine, choose all space and don't meddle any further  (this statement depends on your level of daring. once you wish to become familiar there is lots and lots to play with)
    2) during installation fedora enables you to set password for root and create a user; do both; root is Linux's administrator; and it is considered horrible practice to try working thru it as a regular user (most modern linux GUIs do not let you logon as root for that reason, and if you insist on this problematic form of work, it needs to be changed in the GUI's setup).
  5. when the installation finishes, quit and reboot (anyone who experienced a windows ui will handle)
  6.  unmount the iso so that the machine will boot from the hard drive; choose the first option in the boot menu or wait; during first startup it won't cause any harm to do an alt+tab and watch the detailed boot. 
  7. The wizard that will accept you after you login (thru the user you've created) will offer further configuration (i haven't been around fedora20 and was surprised from the rather android' style of smartphone and tablet tight configuration. the possibilites existed before, and yet it was lovely to watch all things come together). 
  8. Now, we can Install Virtual Box Guest Additions.
    Before installing guest additions, make sure you perform the following:    
    1. make sure your virtualbox host software is up-to-date (There can be arguments against it, especially if you maintain several guests. Otherwise, it is a better practice).
    2. update your new installation by running yum update (always a good practice at the end of installation, but again - sometimes there are reasons against it).

    Now  run the virtual box guest additions setup : 
    cd /run/media/[username]/VBOXADDITIONS_[ver]
    ./VBoxLinuxAdditions.run 

    In theory, you should now have a fully functional guest, and you can start configuring it to your needs. 

    In practice, I had to struggle with my guest additions installations and found out the hard way about a problem with installing guest additions on Fedora 21 in Virtual Box 4.3.12. Sadly, I reached this conclusion only after meddling with the installation of further packages (which turned out to be unnecessary. An upgrade to VirtualBox  4.3.24 solved the problem, and then the installion of the guest additions on Fedora 21 worked smoothly, without bug notifications. But  I passed thru several trials and errors before I reached this beautiful sight: 
    Screen imageafter successfully installing virtual box guest additions

    One last remark: there may be other actions needed, if you choose a different Fedora 21 installation kit. In such situation you may have to install further packages, such as kernel-devel; kernel-headers; dkms; gcc and maybe others.  

Tuesday, March 3, 2015

כמה קושיות של חומרה לשעת ערב מאוחרת

מבוא
עודי עוסק בביקורת מחדש של רוטינות הגיבויים של הרשת הביתית (שכזכור משרתת גם את העבודה שלי, גם את העבודה של אשתי וגם את חיי המשפחה כבני-אדם בעידן הדיגיטלי של pervasive computing) ומצאתי עצמי עוסק בדילמה העתיקה שמטרידה system managers מאז בריאת העולם (או המחשב): האם לסמוך על שירותי גיבוי ענניים (cloud based) בעיניים כמעט עצומות, או שמא לשמור על ספקנות בריאה ולשלב גיבוי ביתי נוסף?

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

את שתי הבעיות האלה פתרתי לפני כמה שנים, כשהבנתי שגיבוי מלא באמצעות DVD-ים הפך להיות מטלה שהציבור אינו יכול לעמוד בה, ושהיחס בין היקף המידע המוגדר כראוי-לגיבוי לבין היקף המידע המגובה בגיבויים הקרים החלקיים הפך להיות גדול מדי, באמצעות גיבוי ענן. הפתרון שהלכתי עליו הוא Dropbox שנותן גם העתק בcloud של כל המידע וגם versioning (בהזדמנות אולי אתייחס לחיים עם Dropbox ככלל ובפרט לתפקוד שלו כתחליף לשרת-קבצים מרכזי שבמקום לשתף מסנכרן רשת ביתית קטנה ואמינה (עם העתקים שווים בכל הpeers). אז גם אשווה עם הנסיון שצברתי קודם לכן בעבודה עם ה-SyncToy של מיקרוסופט; זה עניין לפוסט אחר שאולי יגיע, אם וכאשר אכריע בצורה מעשית בהתלבטויות של הזמן האחרון בין Dropbox לשירותי cloud אחרים על רקע פערי-העלות; ואם כבר מדברים על זה - כבר קראתם את ההשוואה של PcAdvisor בין שירותי ענן לשנת 2015 ?).

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

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

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

מה זה כונן cloud ? 
זה כונן קשיח שמתחבר לרשת הביתית (ישירות). אפשר לגשת אליו מהאינטרנט כמו אל שירות ענן - מPC, סמארטפון או טאבלט (וכנראה כל 'חיה' חכמה אחרת שעוד תבוא). אפשר ליצור חשבונות משתמש כדי להפריד בין חברים, משפחה ועמיתים ולשתף/לאפשר גישה למידע מסויים בלבד. כמובן שהביצועים של הכונן יוגבלו לפי יכולות הרשת הביתית. אפשר לקרוא עליו עוד במאמר הזה בpcworld או אם מעדיפים עברית, אפשר, בתור התחלה, במאמר הזה בynet.

תזכיר לי מה ההבדל בין SSD לבין SSD/FLASH? 
בגדול התשובה קשורה להבדלים בין זכרון בלתי נדיףזכרון נדיף וזכרון הבזק (FLASH) ולדרך שבה יישמו SSD בעבר. אבל עד כמה שהצלחתי לראות אין כבר כמה שנים טובות הבדל בין Solid state drives כי כולם משתמשים בflash ונראה שבינתיים אין חדשות בהקשר הזה.

איזה כונן גיבוי חיצוני עדיף לקנות - SSD או רגיל ? 
התשובה כמובן תלויה בצרכים, אבל כונני SSD עדיין יקרים ומהבדיקות שאני ערכתי במחיר שבו אפשר לקנות כונן חיצוני רגיל בהיקף של 1TB (שזה 1000GB) רק נכנסים לקטגוריית הכוננים החיצוניים של SSD בהיקף של 128GB. נראה שאין ברירה אלא לעבור את ה-1,000 ש"ח כדי להגיע לכוננים של חצי טרה. בהתחשב בהיקפי העבודה המוגבלים שעושה כונן קשיח שמשמש רק לגיבויים, נראה שהחלטה על סמך יחס עלות-תועלת מובילה להכרעה רציונלית לטובת הטכנולוגיה הישנה.
אני מניח שיהיו חסידי SSD שיתקוממו על ההעדפה הזו, מתוך הטענה שSSD הוא לנצח בעוד שכונן רגיל מוגבל מטבע הMTBF שלו לעד 5 שנים (במקרה הטוב ביותר). לאלה אשיב שהMTBF של כונן שבקושי עובד הוא עניין שקשה מאוד להעריך, כי אנחנו לא בוחנים כאן את הwear and tear של החלקים הנעים אלא את השרידות של האלקטרוניקה הסובבת, ובהקשר הזה, כונני הSSD נמצאים באותה סירת-MTBF של  הטכנולוגיה הישנה, ולעניין הזה אזכיר את המחקר ההוא שהזכיר לכולנו שחשוב לקחת נתוני MTBF בספקנות (יעני with a grain of salt) מאחר ויש פער של עד 15 בין המדווח למצוי...
נקודה אחרונה: חשוב להזכיר שבסוגיות של חומרה, מה שנכון להיום, יכול להשתנות מאוד תוך כמה חודשים.


האם חומרה לUSB3 תואמת אחורה? 
התשובה, החד-משמעית, למשל מהערך של USB3 בויקיפדיה: כן.

"USB 3.0 and USB 2.0 (or earlier) Type A plugs and receptacles are designed to interoperate.
USB 3.0 Type B receptacles, such as those found on peripheral devices, are larger than in USB 2.0 (or earlier versions), and accept both the larger USB 3.0 Type B plug and the smaller USB 2.0 (or earlier) Type B plug. USB 3.0 Type B plugs are larger than USB 2.0 (or earlier) Type B plugs; therefore, USB 3.0 Type B plugs cannot be inserted into USB 2.0 (or earlier) Type B receptacles.
A receptacle for eSATAp, which is an eSATA/USB combo, is designed to accept USB Type A plugs from USB 2.0 (or earlier), so it also accepts USB 3.0 Type A plugs"

תזכיר לי, מה זה הקטע עם הצבעים בwestern digital? 
אה כן, שחור זה מקסימום ביצועים (הרבה חשמל, יחסית); ירוק הכי חסכוני (אבל גם הכי איטי); ככלל אצבע שחור יהיה שימושי כדיסק עיקרי של המחשב; ירוק יתאים מאוד לגיבויים; וראה הצבעים האחרים באתר של החברה, וגם
השוואה לגבי גיימינג בין ביצועי ה'צבעים' השונים והסכמה רחבה בפורומים אצל Tom's hardware כדי להחליט מה כדאי.



ותסלח לי , אבל אני כנראה קצת סנילי. תזכיר לי מה ההבדל בעצם בין 2.5 ל-3.5 ? 
לא נורא. קורה. זה הגיל. מדובר כמובן בגדלים של הצלחות של הדיסקים הקשיחים. 2.5 משמש בעיקר ללפטופים. 3.5 משמש בעיקר לדסקטופים. והגדלים האלה משליכים על הגודל הסופי של הכונן. לגבי שרתים בתעשיה זה נהיה קצת יותר מסובך, כי יש מארזים שאוהבים לשים בהם דיסקים של 2.5 כדי לחסוך חשמל ופליטת חום ולהכניס פנימה יותר דיסקים פר מארז. וכל זה כמובן קצת היסטוריה, כי ככל שהשנים עוברות רואים יותר racks של שרתים שעובדים מול מארזי SAN/NAS וכאלה או שירותי CLOUD ואז רואים פחות מהשרתים הישנים.
אפשר לראות תמונה נהדרת של דיסקים 2.5-3.5, בדיון הבא בtom's hardware

אז מה נגמר בסוף? 
הזמנתי -
כונן קשיח פנימי Western Digital 1000GB Black
כונן קשיח חיצוני Western Digital My Passport Ultra 1000GB
עכשיו מחכים.

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

Saturday, February 28, 2015

Trying to install virtual box guest additions on CentOS 7 and unable to find the sources of your current linux kernel ?

Unable to find the sources of your current linux kernel ? 

install the following packages: 
kernel-devel
kernel-headers
dkms 

(dkms for centos7 can be located in the epel repository) 


how to install repoforge
http://repoforge.org/
rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

screen capture image of issuing the rpm command



how to install epel 
(still easier) 
yum --enablerepo=extras install epel-release

Pay attention that at the time of this post: EPEL has a dkms version, whereas REPOFORGE (formerly rpmforge) still seems to be slightly in the woods. 

screen image of issuing the outcome of the yum command