niels / CodeSoftware / #apple,#developer

New team doesn’t show up in Apple Developer

So you invited someone to be a developer on your team, they accepted the invitation, they can use AppStore Connect, but not Apple Developer. What gives? Organization You must be an organization for your team members to get access to Apple Developer. If you are an individual developer, your team members get access to AppStore […]

Read more..

niels / Code / #laravel,#nova,#php

Managing languages with Laravel Nova

The real title of this post should be Managing many languages with Laravel Nova. You’ll find out why, very soon. Using Spatie’s Laravel Translatable and Nova Translatable packages managing multiple languages with Laravel Nova is easy. Follow their instructions and it probably takes you less than 20 minutes to make your model translatable. I will […]

Read more..

niels / Code / #php

PHP TCP server

The first thing developed for Mailjoe was its TCP server. There are many examples out there, but we didn’t find any that was multi-protocol, non-blocking and multi-process. The snippets below are fairly small and self explanatory. Please keep in mind that all of this code worked fine during the Mailjoe beta, but is by no […]

Read more..

niels / Code / #php

Syncing Fanfou with Twitter

@kofai asked me to share my Fanfou to Twitter sync script. It’s not art, but it works, so here goes: <?php define(STATUS_PATH, ‘/home/www/twitbridg/status/’); include_once(‘password.php’); $since_id = file_get_contents(STATUS_PATH.$twitter_username.’.last’) OR $since_id = ‘1’; // The twitter API address $url = ‘https://twitter.com/statuses/user_timeline/’.$twitter_username.’.xml?since_id=’.$since_id; $curl_handle = curl_init(); curl_setopt($curl_handle, CURLOPT_URL, "$url"); curl_setopt($curl_handle, CURLOPT_CONNECTTIMEOUT, 2); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl_handle, CURLOPT_GET, 1); $buffer […]

Read more..

niels / Code / #php

Geo DNS

There are many databases and pieces of code out there that allow you to detect which country (or even city) a visitor to your website is from. Most of this code is intended to allow you to adjust the content of your website. Very useful. Really! There are instances however where adjusting content is not […]

Read more..