Understanding The New AMD Ryzen Naming Scheme

It looks like AMD is back, but this time, for real. The new line of Ryzen processors is receiving very good reviews online. Personally, I am keeping a close eye on these CPUs, and my next workstation build is very likely going to be Ryzen-based (a Ryzen 5 1600, probably, but I am still open to suggestions on this).

Now, AMD suffers from the same problem that Intel has, albeit a bit less pronounced: their naming scheme is atrocious. Unless you follow hardware updates closely, you will find it very difficult to differentiate between models just by looking at the model name. Understanding what your best choice is by looking at the product name alone is close to impossible (Intel 6900K vs 7700K anyone?).

The goal of this article is to make sense of AMD Ryzen’s naming scheme which, so far, makes way more sense than Intel’s in my opinion, but it still needs some clarification, especially since the technology is brand new.

Continue reading

How To Use Xcode’s Auto Layout To Center Elements In An iOS App

Centering elements in Interface Builder is very simple, because Xcode will snap items to the vertical or horizontal center of the canvas, the same way that other Apple apps help you center items in a document (Pages and Keynote are the first examples that came to my mind).

However, when it comes to iOS apps, just because an element looks centered in the canvas, doesn’t mean that it will be centered all the time on every device: if you switch to a device with a different screen size (even in the simulator), the elements won’t be centered anymore.

This is because, in Interface Builder, you place elements with fixed positioning by default. If you want your app to look the same on every screen size, you will have to use a technique called Auto Layout.

Continue reading

How To Add A Launch Screen To An iOS App

I have recently started to play around with Swift programming as I always wanted to code something for iOS, but always ended up either lacking the time to do it, or developing for Android, a platform with which I am more experienced since my university days.

One of the most confusing things for me, coming from Android development and its interfaces in plain XML, was getting used to Interface Builder in Xcode, finding the elements I need, ultimately, getting the storyboard files to do what I want them to do. Also, navigating the Xcode project settings is no easy task for a beginner, so I am still finding roadblocks every time I try to do the most simple tasks.

Continue reading

A Few Performance Tests Using Powerline Adapters

Powerline adapters are a pretty cool way to keep your network wired without having to run cables through the walls, particularly handy if you are renting your place (but even if you own the house and you don’t feel like doing this type of work).

Obviously, wiring the house would be the best choice, but when this is not possible, powerline adapters are a very good alternative, and probably still better than just connecting every device via Wi-Fi.

However, the performance of these adapters vary based on a lot of factors, from the distance between the adapters, the quality of your electrical system and, perhaps most importantly, where you decide to plug your adapters into.

Every powerline manufacturer recommends to plug them directly into a wall socket for maximum performance. You should avoid plugging them in anywhere else, including power strips or UPSs. If you do, they will likely still work, but you won’t get the maximum throughput supported.

I used to have a long ethernet cable running from my core switch in the office to the router in the other room, but since getting a dog who apparently loves to eat copper, I had to find an alternative. I removed the chewed ethernet cable and added two powerline adapters into my network, so it was a great opportunity to run some basic performance tests to see how positioning the adapters will affect the network speed. Here are the results.

Continue reading

VirtualBox VBoxManage convertdd VS convertfromraw

If you need to convert a computer image (for example, taken with dd) to a VirtualBox VM, you might have seen a few tutorials online that show you how to convert the disk image to the VirtualBox own VDI format. Some of this guides mention either the convertdd or the convertfromraw command to achieve this, but are there any differences between the two?

Continue reading

How To Permanently Add An SSH Key To The Keychain In macOS Sierra

On versions of macOS before Sierra, all you had to do to add an SSH key to the Keychain was to run this command:

ssh-add -K keyname

macOS Sierra implements OpenSSH version 7.3p1, which makes this command behave differently. Using ssh-add -K results in the key being added only temporarily: after a reboot, you need to run the command again.

Continue reading

Day One Moves To Subscription With Their New Premium Option

I am a huge fan of Day One, the Mac and iOS journaling app. I like it so much that I started working on a Web app for it myself some time ago, back when the folks over at Day One had not released a beta Web app yet. I think it’s a brilliant app, with a great design, a lot of updates and which proved to be very useful to me in all the months I have used it. The benefits of journaling are now well known, but this is not a psychology blog so I won’t go into any details about this.

The latest news from Day One is that the app will transition to a subscription-based model, as per the latest post on Medium by the company.

Continue reading

How To Fix FusionInvoice Errors When Displaying a PDF

I am a big fan of the FusionInvoice project. I have been using InvoicePlane for a while but moved to FusionInvoice mainly for the multi-currency support and for the continued updates. Support is also extremely reactive and helpful, which for me is super important. The expenses feature is also proving to be very useful, so I am overall very satisfied with it.

Installation is really smooth and the documentation is on point, with the exception of a little hiccup right after you go through it. After installing FusionInvoice and creating an invoice, clicking on the PDF button to export the invoice as PDF would result in the web server throwing an error.

Continue reading

Run Your Ghost Blog On A DigitalOcean Droplet Using A Custom Domain Name

Longest blog post title ever. Anyway, this is a summary of how to get started with a Ghost blog running on a DigitalOcean droplet if you want the blog to be accessible using your own domain name. I decided to write this article because, while the procedure is far from complicated, it requires several steps (you have to work with your Ghost blog configuration files, with your DigitalOcean account and with your domain name registrar) so it’s easy to get confused and miss something.

Continue reading

Don’t Fall For Search Engine Registration Scams

After registering my most recent domain, I have received way more spam&scam emails than usual. This time I received a couple of emails that made me giggle harder than the other ones, so I decided to share some of the fun with you. Hopefully it will also help some users out there who might not be too technically-savvy to avoid falling for these pathetic scams.

Continue reading

© 2017 Daniel's TechBlog

Theme by Anders NorénUp ↑

%d bloggers like this: