Nugroho's blog.: os x
Showing posts with label os x. Show all posts
Showing posts with label os x. Show all posts

Thursday, November 12, 2015

Delphi on OS X

 Here's the WineSkin version.

 I found it's way smoother than WineBottler version, ...., but hard to figure how to use it

 To install Delphi in OS X using WineSkin, we have to download and install Wineskin, of course, :)

  • Open Wineskin Winery.app
  • Make sure you have a Wrapper version and an Engine
  • Select the Engine you want to use (I use WS9Wine1.7.52)
  • Press the Create Wrapper button
  • Enter in the name Delphi (or whatever you have in mind) for the wrapper and press OK
  • When its done being created, click the button to view it in Finder in the finished window
  • Close Wineskin Winery.app.
  • Right click Delphi.app in Finder and select “Show Package Contents”
  • Double click and run Wineskin.app.
  • Now click on the Install Software button
  • Select to choose a setup executable
  • Navigate to the Delphi setup exe file you downloaded in step one
  • Select the setup exe file and press the choose button
  • At this point Delphi setup should begin, go through the Delphi setup like a normal install
  • After the setup is done, back in Wineskin.app, it should pop up asking you to select the .exe file
  • Choose the delphi32.exe file in the drop down list and press the Select Button
  • Now press the Quit button to exit Wineskin.app
  • Back in Finder, double click Delphi.app and start coding

 It has the same problem with WineBottler,  the toolbar tab's seem order by itself alphabetically, so the default toolbar tab is not ' standard ' tab but 'additional' one

code
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
jalan:boolean=false;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
jalan := not jalan;
if jalan = true then button1.Caption:='Stop'
else button1.Caption:='Run';

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
button1.Caption:='Run';
end;

end.
.









Delphi on OS X

 I use WineBottler to install Delphi 7 on my El Capitan.

 It's installed, it can run.

 The one that tickle me is the toolbar list is scrambled, it's sorted alphabetically, so additional toolbar is in the first and act as default toolbar.












code

Friday, October 30, 2015

Read HFS+ from Linux

 The OS X filesystem, HFS+, by default is in read-only mode in my ubuntu.

 So I installed hfsprogs using
  
sudo apt-get install hfsprogs

 (you have to enable universe package-source)

 to mount the "Macintosh HD", use this

$cd 
$mkdir osx
$sudo mount -t hfsplus -o force,rw /dev/sda2 osx


 Nevertheless, it still mounted as read-only, and some folders refused to open at all.

 Here the trick. We have to have same uid as the os x.

 so, create new user

sudo useradd -d /home/newuser -m -s /bin/bash -G root newuser

sudo passwd newuser

sudo usermod --uid 501 newuser

sudo chown -R 501:newuser /home/newuser
.

 by default the first user on OSX has an uid 501.

 Now, as we have the same uid on linux and OS X. We could freely read the filesystem.

Friday, October 16, 2015

iWork Update on El Capitan

 My Pages, Number and Keynote received new feature.

 ...and hey, my view is increased twofold, :D

(And my Keynote on iPhone 4s is upgraded as well)







Saturday, October 3, 2015

HFS+ (Journaled) Flash Drive on Ubuntu

 I have no problem mount it on Centos, read and write mode.

 But, on Ubuntu, it needs some works.

 Install hfsprogs

 
sudo apt-get install hfsprogs


 umount the drive if it's already meunted


sudo umount /dev/sdb2


create folder to mount the drive


mkdir flash


mount again


sudo mount -t hfsplus -o force,rw /dev/sdb2 flash


It works for me, but it need sudo privilege to write to it. Maybe because it's journaled and ubuntu didn't support journaled HFS+ filesystem.

At least it works, :)

Friday, November 7, 2014

iOS and OS X's Note

Want to edit Pages document 'on the fly' but don't have a Pages on iPhone? It's OK.

Copy the content of your Page document by select all -> copy, then paste to Note app on OS X. Wait a moment, it will sync with the Note app on iPhone, complete with the formatting and the images, :)





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, :)



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

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, :)

Thursday, September 11, 2014

The Magic "Anagram" Move on Keynote

Installing Keynote 6.2.2.

It's fast.

Upgrade my old Keynote files, no problem, almost all animations and transitions is okay. Anagram, my favourite transition, works well on new Keynote.

Until I creates new presentation directly from it.

Well, duh, ... (description about getting used to new interface with tripped out here and there)

and what...? Where's my lovely anagram?



(feels depressed)

Fiddling some days

and hooray..., the anagram's there, it just didn't appear as single transition, it merged to magic move

the bonuses is, we still able to move other object, even resize it, just as old magic move do

Now, my favourite transition is Magic Move, :)

here the vid

 

Saturday, November 23, 2013

Lazarus on OS X 10.9

installing

fpc
fpc-src
lazarus

an all I got is this






it seems with Maverick, Apple introduced Xcode 5 and dropped GDB in favor of the LLDB debugger. Because Lazarus doesn't support LLDB (yet), Lazarus fails running compiled applications if the Debugger (Default: GNU debugger (gdb)) isn't disabled.

Thursday, October 24, 2013

My new OS X Maverick

Just install it on my mid 2009 Macbook Pro 13 inch and well..., nothing change at the first look. It just like the old Mountain Lion appearance.

Wait, oh yeah, there is iBooks in the Dock and wow..., iOS Maps is there as well.

More importantly, the Safari is quite stable now, at least I didn't use Chrome for 3 hours now, :). Of course it's good signal of Safari direction,  I used to use Chrome in Mountain Lion and now glad I can switch back.

Saturday, December 8, 2012

Mountain Lion's Spotlight didn't Spot Application

Maybe it's just me, after upgrading from leopard to snowleopard to lion and finally mountain lion (always upgrade, no fresh install), this big cat suddenly refuse to index my Application. Whenever I type application name in Spotlight, it just show document, picture but not Application. Typing "macvim" bring me to macvim installation folder, macvim on the web but not Macvim apps. Spotlight setting clearly didn't ban Application folder, so maybe this is another Mountain Lion problem

Still looking for solution...

Mountain Lion's Fullscreen Apps on Extended Display

It seems that weakness of this big cat isn't resolved yet. I used Pages in my Desktop while the big one browsing trough web using safari for refence. When I switch (automatically, bad behaviour I think) to fullscreen on Pages, suddenly the other display become blank (not actually blank, just linen-like wall, or maybe canvas).

Sunday, December 18, 2011

Displaying Calculation Output of Python Script to Web Page using Python-based Web Server

It'll be convenient if we could displaying output from our Python code to web page.

To convert calculation output of Python script to web page we need BaseHTTPServer, a Python-based web server. With it, we could write any python code and display it in no time. It has advantage in form of simplicity, we don't need php to convert our result or typing it to static html code, we just used python alone (it's possible to write html and php code on python though).
This code below will display python script calculating value of a function (sin(x)+x^2) to web page. As it behave as web server too, we don't need apache or other web server to broadcast it.

Here the code. It's written in Python 2.7 on Mac OS X Lion with numpy module and sys, parser and basehttpserver built in module.

from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer
import sys,parser
from math import *
import numpy as np

class Handler(BaseHTTPRequestHandler):
def do_GET(self):
n=10
x=7
y = 'sin(x)+x**2'
z = parser.expr(y).compile()

self.send_response(200)
self.send_header("Content-type", "text/html")
self.end_headers()

self.wfile.write("Hi Folks, Aravir here")
self.wfile.write("")
self.wfile.write("Hi Folks, Aravir here
")
self.wfile.write("
")
self.wfile.write("The value of ")
self.wfile.write(y )
self.wfile.write(" on x = " )
self.wfile.write(x)
self.wfile.write(" is " )
self.wfile.write(eval(z) )

self.wfile.write("")

if __name__=="__main__":
try:
server = HTTPServer(("", 8080), Handler)
server.serve_forever()
except KeyboardInterrupt:
server.socket.close()

Access it using web browser in localhost:8080 from your computer running code above, or :8080 and get this


From python
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)