Nugroho's blog.: October 2014

Friday, October 31, 2014

My New Toys, :)

Action Script3

(just for self documentation)

Notice how it differs from ActionScript 2, onRelease, onEnterFrame stuff.

Anyway, I'll tinker with this for next couple days, because it could be published as androidApps.apk via Adobe Air, for iOS too.





var vx:Number = 17;
var vy:Number = 3;
var jalan:Boolean = false;
var batasDrag:Rectangle = new Rectangle(0,0,stage.stageWidth,stage.stageHeight);
addEventListener(Event.ENTER_FRAME, utama);
/* Touch and Drag Event*/
Multitouch.inputMode = MultitouchInputMode.TOUCH_POINT;
kotak.addEventListener(TouchEvent.TOUCH_BEGIN, tekanKotak);
kotak.addEventListener(TouchEvent.TOUCH_END, lepasKotak);
tbStart.addEventListener(TouchEvent.TOUCH_TAP, toggleStart);
function utama(evtObj :Event):void
{
info.text = 'hallo';
if (jalan)
{
//kotak.y = 156.9;
kotak.x +=  vx;
kotak.y +=  vy;
info.text = "vx = " + String(vx);
info.appendText("\nvy = " + String(vy));
if (((kotak.x+kotak.width) >= stage.stageWidth) ||(kotak.x<0))
{
vx *=  -1;
}
if (((kotak.y+kotak.height) >= stage.stageHeight) ||(kotak.y<0))
{
vy *=  -1;
}

}
}
function toggleStart(event:TouchEvent):void
{
jalan = ! jalan;
}
function tekanKotak(event:TouchEvent):void
{
event.target.startTouchDrag(event.touchPointID, false, batasDrag);
jalan = false;
//kecepatan.text = "0";
}
function lepasKotak(event:TouchEvent):void
{
event.target.stopTouchDrag(event.touchPointID);
jalan = true;
}

/*tbStart.addEventListener(MouseEvent.CLICK,tbStartRelease);
function tbStartRelease(event:MouseEvent):void
{
jalan = ! jalan;
}
*/



Tuesday, October 21, 2014

Enable SMS Forwarding between iOS 8.1 and Yosemite

No code's shown on Mac?

Me too. 

I have this solution after googling  DuckDuckGoing. 

here the excerpt 

I've found a solution on another forum and it worked for me:

Try this: Go to your iPhone Messages settings and turn off iMessages and turn it on again. Then go to the iMessages Settings on your Mac and do the same. After that it worked for me. Also make sure to activate your telephone number in the iMessages settings on your Mac.
and yeah, it works, :)











Keynote on Linux

No, there's no native iWork on my Debian Sid.

It has done via iCloud Drive and iCloud Keynote.

My keynote, wrote it using my old OS X Maverick (or maybe even when my MacBook is still using Lion or Snow Leopard, I forgot), can be accessed via Chrome browser.


Monday, October 20, 2014

Stuck on "Upgrading" iCloud Drive

Well, nothing we can do about it.

But, just remember that sometime the process time on apple based device (and others platform as well) didn't as reliable.

The "1 minute remaining" installation message that took 2 hours to finish.

The Mail app sending message that tell "34 minute remaining" but actually it's sent and we got bewildered when receiving reply of our message that "didn't" sent yet.  

So, be patient, :)

You could soft reset it, power-off and then turn it on again, or another reset, press home button and power button at same time until the device turned off and boot by itself.

Got some solution from discussions.apple.com, flip the airplane switch to on, it'll gave the error message, flip it to off again, and all is well, the iCloud drive status is on. Weird, not pretty solution, but worked, so no problem for me.

But that won't guarantee the problem is solved for everyone, :)

Some succeed by using it and some didn't.

The alternative is, again, be patient, :)


Trace Animation on Keynote

I used it on my OS X Yosemite, still prefer Anagram+Anvil/Appear combo though, :)



Crazy wifi.id Hotspot Corner Speed

Bagaimana kecepatan di wifi.id? Pake speedy instan? 

I’m using intel voucher and what the…  

The 10 Mbps speed is reached, 

wow. 

I upgraded my Garage Band, all iWorks suite (Page, Numbers, Keynote), iMovie, and others (that means download almost 5GB data), and it done under 15 minutes, heheh...

Pake Windows 8.1 di  virtual machine pun masih ok, download hampir 1 giga update-an pun gak sampe 15 menit.

Agak beda dengan Ubuntu Virtual Machine, saat download update hanya mencapai 3Mbps, but, have been deal with 512Kbps before, it's still crazy speed.

Here's some screenshot











Tuesday, October 14, 2014

Coherence on Ubuntu 14.04

When entering Coherence mode in my Ubuntu 14.04 virtual machines, using unity desktop, it asked to disable display visual effects in the virtual machine. 

After DuckDuckGo-ing, it happened that not just the visual effect that must be disabled, but entire unity desktop and have to add gnome-session flshback, :( 

Anyway, the coherence is not what I expect.

Top panel still there, bottom panel is still present

It is the same gnome with OS X background, so I back to Unity again, no coherence mode. It's okay. :)









The Safer Ubuntu

Usually, UNIX-like have weakness (at least that what I though) on password changing. Take the OS X, by default we don't have root password, but we could just $sudo su and then #passwd and tadaa..., we have super users password, we are super user.

but take a look at my ubuntu terminal

nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Bad: new and old password are too similar
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
passwd: Authentication token manipulation error
passwd: password unchanged
nugroho@ubuntu:~$
nugroho@ubuntu:~$ passwd
Changing password for nugroho.
(current) UNIX password:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
nugroho@ubuntu:~$
.

Monday, October 13, 2014

Finally, Ubuntu 4.10 on Parallels Desktop

Express installs make Parallels Tool installed by default.

It created some problem
Problem warning at first boot
No desktop at all, just plain background, no top bar nor side unity menu

It can be solved with this

enter commandline mode using fn-ctrl-option-f1
enter username and password
type commad below
$ cd /etc/X11
$ ls (there should be file named xorg.conf.XXXXXXXX )
$ sudo mv xorg.conf.XXXXXXXX /usr/share/X11/xorg.conf.d/xorg.conf
$ export DISPLAY=:0
$ gsettings reset org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins

now reboot using $ sudo init 6

yup, the top bar is there, also side Unity bar, but


the desktop is blank, if apps launched it’ll covered with that black veil, the apps is there but there is no way we can look or access it.

so
go to commandline mode again using ctrl-option-fn-f1
enter username and password
on menu, "choose reinstall parallel tools”
type this command
$ cd /media/nugroho/Parallels\ Tools/
$ sudo ./install
on choice whether we want to reinstall or remove, choose remove
after it done reboot using $ sudo init 6
after login, go back to commandline mode
$ cd /media/nugroho/Parallels\ Tools/
$ sudo ./install
this time choose install (it does autmatically anyway, :) )
after done choose reboot
done

The desktop is normal again, as normal a particular 14.10 as to be :)

The fact is, I write this post using firefox on Ubuntu 14.10, pasting it from note on my Macbook Air running OS X Mavericks.

The image too, using shared files between host and guess




 







Saturday, October 11, 2014

Chaotic OS WeekEnd


It happened because of parallel desktop,  

on my Macbook Air with OS XMavericks. 

We know, it have good relationship with Windows, so installing 7 or even 8.1 is breeze. 

But, how about linux? well, not so 


First I used the traditional established method, at least by Parallels. Ubuntu we go, download its compressed pre-cooked package about 1.6GB. 

It works, flawless, but it 13.04, an unsupported distro, no update, in fact the source list have to be modified to oldrelease to be able to got 'update'. 

And the user name is Parallels, :(

(no problem actually, just do this:

$sudo adduser aravir
$sudo usermod -aG sudo aravir
$sudo init 6
login with aravir
$sudo userdel parallels 

and all was well)

The problem arise after ‘update’ using oldrelease repo, suddenly the display went blank, oh my…

So, without think further, delete it. 

Download the 14.04, install it, hey, Parallels recognise it, help the process using express install.

And, after installation finished, restat to boot for first time, the display went blank. Or it doesn’t ‘went’ blank, but it’s blank from the start, who know.

Tired with ubuntu, Install Debian, because it’s way more stable than ubuntu (at least that’s what I thought about the distro) my main desktop on my room’s installed with it. Still have the iso, so go with it.

Install it with no problem. And the first boot is promising. But the Gnome won’t all out. It keep using fallback mode (even ) so I suspect there’s something wrong about it. 

Check the setting, tadaa…, that’s it, video memory only at 64, the official-from-parallels-ubuntu have 256. So I change the setting and restart it. No change. So, move this VM image to trash.

Curious, I didn’t configure my 14.04 video memory, maybe that’s culprit of my blank display.

Reinstall 14.04, this time I configured the hardware so it has 256 video memory. 
(…)
firstboot, and…
blank screen, duh…

OK, maybe it’s tinme to use new distro. So I downloaded the top rank distro according to distrowatch.com, linux mint, the cinnamon flavor.

install it,

no luck, jeez…

Hm, maybe I have to use the last package to be able to boot graphically. So i went to another route, net install. This time using Debian.

my average 512kbps connection help a lot, :)

after a hour instalation, it finally come to the first boot, and it’s gnome-fallback, ckckck…

another route, net install, but using ubuntu mini.iso.

a hour and half, and then the first boot serving me with the unity like desktop, horay…

but wait, when it go fullscreen, the VM still using its not-widesreen resolution, leaving two black stripe at both edge.

The solution for it’s easy, install parallels tools
$cd /media/{cdroom}
$sudo ./install

done

reboot

and problem solved, :) 










Equalizer for OS X (for all apps on Mac, not just for iTunes)

We’re all know that our beloved OS X come handy with iTunes, it has equalizer!!! (a bit hyperbolic here, :) ) 

But, how about watching HD video on Youtube? Yup, we don’t have EQ set for that, also for Quicktime, and practically anything, … 

Of course we could buy the EQ system for that, 

But, there’s a free workaround for that 

Here we go: 

Install AU Lab, previously is part of XCode, now can be downloaded at https://developer.apple.com/downloads/index.action#

Install SoundFlower from https://code.google.com/p/soundflower/ got 1.6.6b version, restart the mac

Alt-clickthe speaker symbol and choose soundflower as output device

start Sound Flower 

choose audio setup right clik soundflower and click “use this device assound output”

richt click Soundflower again, this time choose ‘configure speaker’

choose multichannel, choose stereo, click the round-rectangle area, done

Start AU Lab, all the way around till got this one

doubleclick the output1, make sure it use soundflower

then click ’show device preferences’, set to soundflower

done

now you can add effect like EQualizer, timeshift, echo, whatever and it’ll affect general sound of OS X








Friday, October 3, 2014

Dating the Air


I don't do any benchmark things, but, from what I feel, this 11" standart MacBook Air has a faster and smoother experience than my mid 2009 13" MacBook Pro full option (2.5 GHz, 4G RAM)

Safari is fast!! You know what I feel when write that, :). Yup, the usually sluggish Safari is run smoother on MBA.

Windows 8.1 run via Virtual Machine without additional fan noise, compared to its VirtualBox VM on my MBP it feels like bless from heaven. The native Mac apps could run side by side without lagging too, certainly it's very big plus. Now I can running Delphi and old Macromedia Flash and coding in silent, meditational state, noisless environment :)

I don't know how 1.4 GHz processor in MBA could outperform its 2.5GHz predecessor, but I dont mind, this 11 inch standart early 2014 MacBook Air is considered as major upgrade for me, :)

Thursday, October 2, 2014

Get iWork ‘09 to Work on New Macbook


I got MacBook Air with new iWork Suite as three standalone apps.  

Of course it’s always be three separate app, but I used to think that three as one package, :) 

It turned out that the new iWork Suite is fast, really fast, maybe because it use 64-bit architecture, or maybe I used the new MBA mid 2014. 

But  I missed the capability of my old iWork on MacBook Pro mid 09. It’s the ability to password-protect keynote-imported-pdf from copy content. 

My old MBP mid 09 has old and new iWork run side by side because I purchased the iWork DVD retail. And I don’t have idea where the hell that DVD now.

so I got silly (yet logical) idea, copy iWork folder from Application folder on MBP and paste it on MBA.

done

open Application-iWork ’09-Keynote -> error message. 

Apparently this method is not working. 

(delete that folder)

So I got another silly idea

Download trial version of iWork ’09 which is available everywhere online.

Install it.

done

open keynote, it need serial number, :( 

Another silly idea, download iWork ’09 update from support.apple.com, the iWork 9.3.

install the update, hopefully it delete the serial number question mechanism.

no, no luck, it still ask for serial number, :(

super silly idea (but original :) )

install the trial version, then copy iWork ’09 folder from my old MBP to replace iWork ’09 folder on MBA

didn’t work either. 

Googling, um no, DuckDuckGo-ing, :)

and found out that we could transfer our iWork to new mac, but we have copy not just iWork folder on Application directory.

The complete list of files that have to be transferred is:

/Users//Library/Application Support/iWork '09 
/Library/Application Support/iWork '09 
/Applications/iWork '09 
/Library/Preferences/com.apple.iWork09.Installer.plist 
/Library/Preferences/com.apple.iWork09.plist


do that, and tadaa… my old iWork is working, :)


and the worst of all, after I do all that and my Old iWork ’09 run with no problem, my iWork retail DVD is found, :)
323f (5) amp (1) android (12) apple (7) arduino (18) art (1) assembler (21) astina (4) ATTiny (23) blackberry (4) camera (3) canon (2) cerita (2) computer (106) crazyness (11) debian (1) delphi (39) diary (286) flash (8) fortran (6) freebsd (6) google apps script (8) guitar (2) HTML5 (10) IFTTT (7) Instagram (7) internet (12) iOS (5) iPad (6) iPhone (5) java (1) javascript (1) keynote (2) LaTeX (6) lazarus (1) linux (29) lion (15) mac (28) macbook air (8) macbook pro (3) macOS (1) Math (3) mathematica (1) maverick (6) mazda (4) microcontroler (35) mountain lion (2) music (37) netbook (1) nugnux (6) os x (36) php (1) Physicist (29) Picture (3) programming (189) Python (109) S2 (13) software (7) Soliloquy (125) Ubuntu (5) unix (4) Video (8) wayang (3) yosemite (3)