Sup?

Die News der letzten 6 Jahre!

Duke3d!

https://js-dos.com/Duke%20Nukem%203d/

Swift 4 – Array Contains Value

Easiest way:

let’s say you have an array

let check = c.sections.contains { $0.idaudits_sections == needle }

// check returns true if a match is found. $0 is the iterator, through this abstract object it is possible to access the objects content

Swift 4 – Add Action Menu to TableviewController

override func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -> [UITableViewRowAction]?
    {
        let deleteAction = UITableViewRowAction(style: UITableViewRowActionStyle.default, title: "Löschen" , handler: { (action:UITableViewRowAction, indexPath: IndexPath) -> Void in
            let deleteMenu = UIAlertController(title: nil, message: "Wirklich Löschen?", preferredStyle: .actionSheet)
            let deleteAction = UIAlertAction(title: "Ja", style: UIAlertActionStyle.default) { _ in // crazy closure!
                self.audits.remove(at: indexPath.item)
                Storage.store(self.audits, to: .documents, as: "runningAudit.json") // store audit
                tableView.reloadData()
            }
            let cancelAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.cancel, handler: nil)
            deleteMenu.addAction(deleteAction)
            deleteMenu.addAction(cancelAction)
            self.present(deleteMenu, animated: true, completion: nil)
        })
        return [deleteAction]
    }

OpenBSD as Desktop (for fun) Part 1

http://www.bcsatellite.net/OpenBSD-Desktop-HOWTO/

This is a good place to keep an eye on. Just to not forget the important stuff like setting softdep or ulimits.

 

OpenBSD 6.2 Released!

Get shit done with openBSD! https://www.openbsd.org/

There is also new music: https://ftp.openbsd.org/pub/OpenBSD/songs/song61.mp3

Website Rebooted!

Alles weg, aber allen ein frohes neues!