depicus

changing the digital world one bit at a time...

Blants (noun) the rants of a blogger

  1. UDP Socket Listener requires Admin Privileges below Port 1024 on OS X

    December 5, 2011 by The Man

    Well I filed a bug report Bug ID# 9064149 with Apple many months ago and just got this reply.

    “We are closing this bug since our engineers are aware of the issue and will continue to track it.”

    Ok not exactly what I wanted but at least they are now aware of the issue. Note that IOS does not require admin privileges to open ports below 1024 for UDP Packets.

    Why do I want this change in OS X. Well this is a historic security measure when people used to stick to this lower range for their applications. In todays modern age this serves no purpose as I can just open and listen on a port above 1024 anyway. The restriction was relaxed in IOS so my Wake On Lan monitor can monitor any port, and judging by the downloads either a lot of people want this functionality or they are extremely disappointed when they realise this is a monitoring app and does not wake their machine up.


  2. Adding a website in OSX for debugging or testing

    December 4, 2011 by The Man

    1. First edit your host file so you have a quick URL to use in your browser

    sudo nano /private/etc/hosts

    2. Edit the Apache config file to add a virtual server

    sudo nano /etc/apache2/httpd.conf

    or if we are on 10.9+ then allow by uncommenting

    Include /private/etc/apache2/extra/httpd-vhosts.conf

    And on 10.10 Yosemite uncomment

    LoadModule vhost_alias_module libexec/apache2/mod_vhost_alias.so

    save then open

    sudo nano /etc/apache2/extra/httpd-vhosts.conf

    and add

    # Depicus Web Site
    
    ServerAdmin anybody@example.com
    DocumentRoot "/Library/WebServer/Depicus/"
    DirectoryIndex index.php
    
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    
    ServerName Depicus
    ErrorLog "/private/var/log/apache2/Depicus-error_log"
    CustomLog "/private/var/log/apache2/Depicus-access_log" common

    3. Restart Apache and you are good to go.

    sudo apachectl -k restart
    

  3. My new love – a Macbook Air 11″ i7 with 256GB of SSD

    November 28, 2011 by The Man

    Wowza this machine is amazing, just ran Aperture and imported 10Gb of MRAW files from a Canon 7D and it ran like a dream, fast – yes the processor all 4 of them maxed out but I was screen recording as well. More to follow when I have given it a thorough going over.


  4. When logs should not go into the log directory

    August 21, 2011 by The Man

    Well it seems that applications that go in to the app store for OS X cannot write log files to the log files directory. Appeal lost 🙁

    Crazy…..


  5. Wake on Lan for OS X rejected…

    August 11, 2011 by The Man

    Well it seems that Wake on Lan for OS X 1.6 won’t be out for a few more days after being rejected for “2.30 Apps that do not comply with the Mac OS X File System documentation will be rejected”

    Seems like writing to ‘~/Library/Logs/Depicus’ is not allowed. Crazy because that is where log files are written for applications. Well appeal is in so lets see what happens.


  6. iOS 5 Notification Screen is cool

    July 26, 2011 by The Man

    Just noticed that the iOS5 notification screen shows what tunes you are listening to on the lock screen. Cool.