Hacker Newsnew | past | comments | ask | show | jobs | submit | PawelDecowski's commentslogin

If you view it in Finder in gallery mode, the picture in the the gallery says “Hello Apple”, while the preview in the sidebar says “Hello World”:

https://i.imgur.com/Ef1UpCv.png


Hello, fellow hackers! Author of LDAP DN here.

Recently, I was working on a legacy PHP project that synchronises LDAP teams and users. I found several bugs relating to poor DN “parsing” using regexes and string replacement.

There has to be a better way of doing it, I thought. Alas, there’s not much choice in the PHP ecosystem when it comes to parsing DNs. While there are a few libraries and even PHP’s own `ldap_explode_dn()`, I think they don’t have clean APIs.

So I wrote LDAP DN. It breaks down DNs into RDNs and attributes, supports escaping, allows basic manipulation and has 100% test coverage.

Let me know what you think!



I get:

    Error when getting location: 1 User denied geolocation prompt
even though I allowed location access.

Firefox 72.0.2 on macOS Mojave 10.14.6


On ubuntu 19.10 I get:

    Error when getting location: 2 Unknown error acquiring position


Same on Kubuntu 19.04.


Don’t blame yourself. Estimation is extremely hard.


A mix of both.

I charge regular clients (the ones that I do some work for every month) by the hour.

I use a spreadsheet to track my time.

Less regular clients, I estimate the project and bill them a fixed amount.

Shameless plug: For estimating projects I use a web app I built (https://estipad.com). It lets me break projects down into tasks and subtasks and estimate those instead of the whole project. It also generates a PDF that can go straight to the client.


I found spreadsheets broke down once I started working on multiple projects at different rates (sometimes with the same client). Freshbooks has been awesome for me, and saved a whole bunch of headaches around tracking time and invoices. Totally worth it.


Do you use a tool that supports this methodology or do you calculate it manually?


Hi guys. I’m the founder and sole developer of Estipad.

Estipad is a web app that lets you break down a project into small tasks for easier estimation. When you’ve finished, you can download a PDF estimate ready to send to a client.

Estipad started as a basic CodePen that I used to calculate project estimates for my freelancing clients. A few of my developer friends liked it, so I decided to build it into a web app.

I’d love to hear your feedback and will happily answer any questions you may have.

--

Pawel Decowski

Founder, Estipad

PS. I’ll be writing more about Estipad on the blog: https://medium.com/estipad


UTF-8, Unicode.


What if you are using another encoding that already works for you? Same as real life alphabets and such?


Convert it to UTF-8 or UTF-16 and call it a day.

Let the fractured world of code pages rest in peace. Unicode may not be perfect, but it sure beats the alternatives.


> or UTF-16

Please no. UTF-16 needs to die a painful death.


And how do you represent line breaks?


For most users, you press enter/return on your keyboard. A lot of text editors will detect line endings when opening a file and use that going forward.


CRLF unless your audience mostly use Mac or Linux.


It seems to me the only thing on Windows that cares about CRLF is Notepad.

Everything else works fine with just LF. A lot of new Windows software even seems to ship with LF format configuration files. Especially games, probably because it is so common to have a Windows game with Linux backend servers, so the developers are working with both.

So anyway, I'd go with just LF unless your software is Windows only.


1. Local

   a) Apple TimeCapsule

   b) NAS (2 x 3TB in RAID-1)
2. Off-site

   a) Amazon Glacier

   b) GitHub, DropBox


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: