654 karma · joined May 31, 2012 (14y ago) · 232 submissions
comment 6y ago · link · parent
Here's the doc for a deprecated `launch` method of `Process`: https://developer.apple.com/documentation/foundation/process....
It's deprecated, and there's no note on what the replacement should be. Xcode, however, has a hint to use the `run` method. This isn't documented anywhere. If I don't use Xcode, I wouldn't know about this replacement.
And here's the replacement document for `run`: https://developer.apple.com/documentation/foundation/process....
"No overview available".
This is beyond embarrassing.
comment 6y ago · link · parent
Suppose you want feeds from website A, but don't want certain stories tagged with "mice", or titles containing "epistemology", and you only want to see articles published by an author named "Joyce Smith", you can do that.
It's pretty great. Reading RSS feeds has become so much more pleasurable. The articles that do make it past the training filters are almost always what I do like to read.
[1]: https://newsblur.com
comment 6y ago · link · parent
At least with Apple Music, I could turn the features off. With News+, I can't.
I replaced it with Reuters and a RSS reader for other news websites. I get way more relevant 'breaking news' notifications from Reuters now than I did with News, so it's been a win on that front.
comment 7y ago · link · parent
Seems very hard to trigger inadvertently, so it makes sense to me that they use an algorithm that factors in the heart rate and the fall trajectory and velocity.
comment 7y ago · link · parent
Discover for savings for that 2% interest.
I’ve tried other online only banks, ally for instance. But discover is the only one I’ve found with no fees to order more checks, no fees for maintenance in general, and a pretty great customer support to boot. My only complaint is the slow transaction log. For instance when I pay my credit card, it takes almodt 3 days to show up.
It’s why I moved my checkings to Schwab instead. Almost the same benefits with no fees, no hassle.
comment 7y ago · link · parent
PragmataPro does come without ligatures though, and that's what I've been using as my main font for over a year now.
comment 8y ago · link · parent
The SSD makes a huge difference in response time. It’s the only reason I’m still using my 5 year old MacBook Pro which has a PCIe SSD and I have no plans to upgrade other than to maybe get TB3 support.
I actually do real development on it, running multiple applications, running Xcode builds, the lot. It does everything I throw at it like a champ.
I’m not sure where you’re getting the 2-3 but that’s definitely not what you should be getting from a modern PC/Mac, especially if they have an SSD.
comment 8y ago · link · parent
I occasionally used it to carry with me at work, when I got it new last year, to try and make it my "laptop" replacement. I used everything, SSH to log into my Mac back home, I was on irc, browsing the web, writing emails on it, even used Pixelmator and iMovie to edit images and movies for real work things, which my colleagues were impressed by.
It was difficult, however, and I felt like I was constantly fighting with the iPad.
For example, Spotlight just isn't as fast on the iPad like it is on the mac. Try it out. Type command + Space, then type "me" and hit Enter. If you thought you'd get Messages, you will only be right half the time. Enough to make it frustrating. On the Mac, I can fluidly bring up Spotlight, hit a few characters and launch that app. On the iPad, sometimes, it'll miss typing the first character as spotlight animates, and even if it caught the first typed character, it takes painfully long to update results. So by the time you type "me" and hit return, the results haven't updated to show Messages.app yet, and Messages won't be launched.
There's no Xcode on it yet, so I can't code on it properly. There's no terminal, Files.app feels like a poor man's Finder, there's no indication of focus and when you have two apps side by side, there's no way (that I know of) to switch between them using the keyboard. So you have to tap.
So I gave up. I'm sure my experience, needs and workflows are different and maybe the iPad-as-a-laptop is not for me, but I am a bit skeptical now whenever someone tells me they use their iPad as their only computer. At least, not this version. iOS on the iPad at its current form just isn't convenient to use as the only computer.
comment 8y ago · link · parent
> The problem is that pbpaste and pbcopy do not work under tmux
They do in recent macOS/tmux versions. You don't need reattach-to-user-namespace anymore.These are my keybindings for copy/paste to clipboard:
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy
bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel pbcopy
bind-key -T copy-mode-vi MouseDragEnd3Pane send -X copy-pipe-and-cancel pbcopy
`prefix + ]` then pastes using the clipboard contentscomment 8y ago · link · parent
[1]: https://www.namecheap.com/domains/registration/results.aspx?...
comment 8y ago · link · parent
That said, I tried it out and here's my feedback for HNbuddy:
- This looks really nice, and loads comments super fast for me!
- An iPad version of HNBuddy would be nice. I'd be willing to pay for that, maybe as an IAP?
- Support for commenting, new posts, currently it's more of a "reader", which may be the intention, not sure.
- No ability to downvote? I can downvote in MiniHack and the regular website but not in HNBuddy
- A lighter Darker theme
comment 9y ago · link · parent
I applaud their privacy stance, but paying ranson money to hackers is a deal-breaker for me.
comment 9y ago · link · parent
For the first versions of Swift, they actually had two versions. For functions (i.e not functions inside classes), you didn't have to have named arguments for the first parameter, but you did for methods (functions inside classes).
They explicitly added it for Swift 3 to make it more consistent with method.
I think I like the consistency more, but I do agree "_" is ugly. I don't have an idea of what else they could do though. I don't want Swift to make the parameter names optional, since no one would use it (like in Python, I rarely see named arguments being used)
comment 9y ago · link · parent
For example, you can have a function like so:
func greet(with greeting: String, to personName: String) {
print("\(greeting), \(personName)!")
}
In the above code, "with" and "to" are external names, and are only available when calling the function but are not available inside the function itself. So you would call this function like so: greet(with: "Hello", to: "Bob")
Now if you want to exclude the external name to call the functions, you use the "_" syntax. So you're right that it denotes an unused parameter. In this case, it's an unused external parameter name.comment 9y ago · link · parent
I don't use fugitive now but I do make full use of tig. In my .vimrc I have:
nnoremap <leader>gb :echo system("git rev-parse --abbrev-ref @ <bar> tr -d '\n'")<CR>
nnoremap <leader>go :silent !tig<CR>:silent redraw!<CR>
nnoremap <leader>gB :silent !tig blame % +<C-r>=expand(line('.'))<CR><CR>:silent redraw!<CR>
The above solution leaves vim purely for editing, and tig for doing the actual git presentation.Asciinema demo of tig blame: https://asciinema.org/a/4as7ujt8cpnpyx0doyrervatl
Just like fugitive, I can travel back and forth through history. And if I hit q, I'm back in vim.
comment 9y ago · link · parent
People are used to apt. Switching to Fedora means learning an entire set of commands. While dnf's feature set is better in a lot of ways, that's just too much to ask when apt is there and it works for the majority of users, newcomers to Linux or otherwise.
comment 9y ago · link · parent
They're still "rarely used", but td so convenient to have access to them always. I could get Dropbox but then I'm paying for data space monthly.
comment 9y ago · link · parent
Got it to upgrade from a 2008 15" Macbook Pro in 2013, and it's still running like a champ. I only really upgrade my laptops every five years and it looks like it will easily beat that. I even have it encrypted with FileVault and there's absolutely no slowness with development.
I even use it to use Remote Play for my PS4, really nice way to game when I'm not at my house.
The only real issue is that I wish I would have splurged on the SSD. For me, 512GB doesn't cut it with the amount of projects and repositories I have on my built in SSD, and this includes my extensive prog rock music collection.
It's not lightweight though, ~5 lbs in your backpack does add strain to your shoulders if you walk around with it. The battery is sufficient for me at around 4 hours of use with medium to full brightness, enough, at least, so I don't /need/ to take my charger in to work.
comment 9y ago · link · parent
The great thing is that I was able to do this in less than 100 lines of code, and I love using it myself every day at work. Just goes to show that Vim has a pretty good completion system already and you don't need to use some bloated plugin system like YouCompleteMe or Neocomplete.
26.
Proof of concept Terminal for iOS(github.com ↗)
2 points · by Watabou · 9y ago · discuss
comment 9y ago · link · parent
The Gitlab UI is /fine/, but the speed is what gets me. On github, even if I have thousands of commits, the UI is instantaneous. If I click on something, the load time is less than a second for me. So I switched to Github and paid for the private repositories. I absolutely didn't mind paying for this since Github is so fast for me and seems to be adding pretty cool new features (code review enhancements on PR, for example).
I still have one of my repositories on GitLab and it's still slow when I do things like browse commits, view source files, etc.
It's not just Gitlab though. Bitbucket is pretty slow for me as well, though not as slow as Gitlab. I would guess that Github's caching algorithms are much better than either of those two to really make pages seem snappy.