Showing posts with label apple. Show all posts
Showing posts with label apple. Show all posts

Wednesday, June 25, 2008

Osx/Mac : Hostname change

To set hostname for a machine on OSx use :

sudo scutil --set HostName servername.example.com

then reboot the machine


© yankandpaste®

Thursday, May 15, 2008

Disabling port protection for ports below 1024

Try running a program which binds to ports less than 1024 as non root user. The possible thing you are going to say back is you need to be root to do so.

Its just a belief.

Issue the below command depending on your operating system and try again ( issue as root )

freebsd :


sysctl net.inet.ip.portrange.reservedhigh=0


Solaris:


/usr/sbin/usermod -K defaultpriv=basic,net_privaddr


now execute the program which binds to ports below 1024, run as normal user - and check :-). The above command take off the reservations on the ports below 1024.


© yankandpaste®

Saturday, April 12, 2008

Movie Rental Service API

Was searching for a Movie rental site SDK. May be like Itunes SDK or a Netflix SDX or a amazon unbox SDK or a Blockbuster SDK.

Why we need it ? Its better to have because i was thinking of buying a PS3. I am not interested in gaming - then for what ? i thought i will load Linux and then use it as a PVR using mythtv or so. But movies ? how its going to work ?

Option 1) These people giving client for yellow dog linux or ubuntu or give source to compile
Option 2) Service SDK so that people can build there own clients and use the services. Can opt the apple model of application development like get certified clients.

Lets wait and see, I am sure less people going to walk to a rental store and rent a movie.



© yankandpaste®

Saturday, March 29, 2008

TCL PCAP (tcap ) lib makefile for mac

$ cat Makefile
all: tcap.so

tcap.so: tcap.c pcaputil.c
gcc -O2 -Wall -pedantic -g -c -I/usr/local/include/tcl8.3/
tcap.c
gcc -O2 -Wall -g -c pcaputil.c
gcc -dynamiclib -g tcap.o pcaputil.o -lpcap -ltcl -o tcap.so

install: tcap.so
mkdir -p /System/Library/Tcl/tcap
cp pkgIndex.tcl /System/Library/Tcl/tcap/pkgIndex.tcl
cp tcap.so /System/Library/Tcl/tcap/tcap.so

clean:
rm -f *.core *.o *.so
$


© yankandpaste®

Sunday, March 9, 2008

Iphone SDK

writing 2 days late. March 6 the Apple announce the Iphone/Ipod Touch SDK. This is a great move when we look on the direction of the Mobile industry.

Every body trying to do the "Non Core stuff is Open".

Now we have 3+ SDKs for Mobile apart from the J2ME

You can find more details at http://developer.apple.com/iphone/.

The best part is money associated with it. There is an iFund associated with the applications. Apply with business plans and get 100M as fund.






© yankandpaste®

Thursday, February 28, 2008

Apple Mac - a love starts

Last weeks, i got chance to work with Apple Mac computers, started with Min mac, then a G5 PPC to iMac PPC and now on a iMac Intel core dual.

Initial days i was not happy ( even my for locking the screen was not there, but after discovering the hot corner - yep its really impressive now for me - No crash, No slow down nothing, the system works great. Now i really started thinking of buying one.

very good quality :-), Finally i came to know that Apple OS is open source :
From a free Book :

The Mac OS X architecture comprises nine components :

Darwin— The open source core operating system. Darwin includes a full BSD implementation (more on that later in the chapter).

QuickTime— Apple's award-winning multimedia technologies are built in to the graphics foundation of Mac OS X.

OpenGL— OpenGL is the SGI-created industry standard for 3D graphics. Although OpenGL is heavily challenged by Direct3D on the Microsoft platform, even Microsoft grudgingly supports the standard.

Quartz— Apple's new 2D imaging framework and window server based on the PDF format. Quartz breaks new ground in handling the onscreen interface.

Classic— The Classic environment (originally called Blue Box in the Rhapsody implementation) enables existing Mac OS applications to run under Mac OS X.

Carbon— An API (application programming interface) to ease the transition to Mac OS X for traditional Mac programmers. This is based on the original Mac OS API, and can be used to create programs that run on Mac OS 8/9 as well as Mac OS X.

Cocoa— Cocoa (originally called Yellow Box in Rhapsody) is the robust modern API that enables applications to be built from scratch in a fraction of the time it would take traditionally.

Java— For the first time ever, the Mac OS is a player in the Java development and deployment arena. Java 2SE v1.3 is a first-class citizen and distributed with each copy of Mac OS X.

Aqua— Aqua uses the Quartz imaging engine to create the most astounding user interface available on any platform. Applications written in Cocoa, Carbon, or Java can access the capabilities of the Aqua GUI.

Kool stuff to go.

Some body was whispering an IPhone SDK is set to go next week or so.

© yankandpaste®

Thursday, January 17, 2008

Time to buy a Apple tv ?

Was wondering, Is it time to buy Apple TV ?

$2.99 for old movies and $3.99 for new movies.

k let me calculate :

Cost of Apple Tv : $299
Cost of internet : $50 / month
Cost of movie : $15 /month

How much I pay with netflix and i am sure they have good movie collection.

K fine, I understood its high tech, so comes with a cost ( mostly hidden) once i combine more services the cost will be less ). Do i have any other use with Apple Tv ? as a gaming console or so ?

noo, So i cant use.

May be i expect Sony, Microsoft or Nintendo to do movie online business or netflix to start online movie business with one of these people so that i can use my gaming box for movie also, I love to buy one on those than Apple tv or Apple should come up with a gaming console.

© yankandpaste®