I use that one too. An alternative might be https://aiosmtpd.readthedocs.io/en/latest/cli.html
HN user
Luyt
Software developer, Netherlands. motoom@xs4all.nl Python, C++, C, and others.
It would be great if the BANNED() macro could suggest the correct function to use.
I wish I never threw out my amber Hercules monitor...
Tuples are immutable, but that doesn't mean they can't contain references to mutable objects.
When you want to use a tuple as a key in a dictionary, Python checks if all members of the tuple are immutable. If one or more of them aren't, you'll get an 'unhashable type' error.
A while ago, I was also sceptical about the walrus operator, although I use assignments in expressions all the time in C++. But when I was perusing a library written Python the other day, I found five spots in which the walrus operator would make sense - eliminating one line of source code without readability suffering from it.
When you write in a language which uses curly braces for statement grouping, do you indent your code? ...? I thought so.
Of course you can. The first element of that tuple is a list, which is mutable, and can be sorted in-place.
There is a 64-bit Kali Linux image for the Raspberry Pi.
Normal-sized HDMI connectors would be great, too.
Those small SMD resistors come on a reel, and they're typically much cheaper than 2 cent: more like 0.1 cent. Still, that's $1000 for one million units.
Have you tried Cython already? That's almost Python and much faster.
Remember QBASIC.EXE, too?
He makes 30 microscopic pictures of a beetle, pastes them together, prints it on huge panels (for a museum exhibition). But you can also view them on the website, including at high zoom levels.
Chemtrails, really? I read this: "After sailing for three weeks with no signs of human activity, no power lines, no chemtrails, no evidence that we exist on the planet at all except for a mournful wooden cabin at Cape Adare, it’s jarring to see this open-air museum of prefabricated regret."
I'm sure the author means contrails ?
https://skeptoid.com/episodes/4027 "Chemtrails, real or not?"
Especially when wrapped with Borland's VCL (in contrast to MFC).
You got downvoted for your sarcasm, but you have a point. Some people think that Ruby classes are instantiated using the create method.
Yeah... Qt and Rails are in the list too. And is Symfony a language, too?
Forbes.com detects your adblocker and will deny you access to their content. Except if you instruct your browser to use a UserAgent string like GoogleBot does: then suddenly, you are can read the articles.
The rays are ionizing and will smash apart the DNA molecules in living cells.
Indeed. They mention the composition of the atmosphere, but the low pressure is conveniently forgotten about. The Mars atmosphere is like a vacuum: 0.00628 atm. Earth atmosphere normal pressure is 1 atm. Essentially, being on the surface of Mars is being in space. And what about the radiation? Mars has no magnetic field like Earth has. So the Solar Wind has free play on the surface.
What happens when the connection between the server and a client is broken? Will Feathers automatically (and invisibly) restore it?
Despite reading that webpage I still have difficulty understanding what the actual product of zeek.ai is. Has it something to do with converting Twitter followers to customers?
A Windows 10 license is about $50. What is the other $50?
It must have taken a fortune and many hours of searching to collect all those items which (almost) look exactly like the originals from 1973.
I like the subdued colors in Towne's paintings. It reminds me of how I play videogames: with the saturation of the screen turned down to 50%, to make the colors less vibrant.
The reason: "The first thing that makes running Just Landed difficult in the long-term is a serious lack of innovation in the flight data industry. An app like Just Landed relies on access to high quality flight data to function correctly. However, since the airline industry is extremely fragmented, and uses antiquated IT systems and many incompatible data formats, it is not practical for a small independent developer like us to negotiate data-sharing contracts with each individual airline, and then unscramble their jumbled data feeds into a usable format at a reasonable cost."
and a secondary one: the app ecosystem isn't worth it anymore:
"With well over 2 million apps by now (officially 1.5M as of July 2015), the iTunes App Store is an incredibly crowded place where it’s almost impossible to get noticed. Despite the persistent myth of the app developer millionaire, it’s extremely hard to make a profit — let alone a living — as an iOS app developer. The Google Play Store is a similar story, except with the added bonus of rampant piracy and a zillion devices to support. There really isn’t gold in them hills, at least not anymore, and independent app development will soon be in sharp decline, if it isn’t already.
Essentially, there’s a massive oversupply of apps, and the app markets are now saturated and suffering from neglect and short-term thinking by the companies who operate them. As competition has intensified, developers have resorted to giving their apps away, often at the urging of the app stores themselves. Consequently, the willingness of users to pay for apps, even unique apps like Just Landed, has declined sharply, while expectations of what an app should deliver have never been higher. Developers have been forced to get absurdly creative with their business models and marketing strategies just to make any income at all, rather than making the best product for their users. Just Landed, being a paid app with high running costs, has been on the wrong side of these trends, and what worked in 2012 no longer works in 2016."
I see jQuery mainly as a library to eliminate browser differences.
The interview is from July 2009. I think Rails already had its ORM then. DHH says:
"The model part in an MVC application is where all the business logic is kept. Those are all the classes like ‘Post’ and ‘Category’ and ‘Author’ and all those things –say if you're making a weblog– you'd keep all that stuff in the Model. And you'd have all the logic about whether the author is allowed to make a post and how the relationship between posts and comments work together. Those are all sitting in the model, so that's all the business logic, very often backed by a database in some sense, not always, but most of the time. And that's where in Rails we're using something called ‘ActiveRecord’. Which is this way of mapping database tables to objects, and then decorating those objects with logic."
I got my first error right after `rails new myapp` and `rails server`. After some Googling I found out that apparently I had to install Node.js also, but the error message wasn't very clear. This was the official 'getting started' rails tutorial on the rubyonrails.org site [0].
I transcribed an interview with DHH [0] in which he also explains his motivations for choosing Ruby (instead of PHP or Java, for example), and where he explains some design principles for Rails.
[0] http://www.transcribed-interview.com/dhh-rails-david-heineme...
"One example I always pull out is “what you gonna call the primary key in your tables?” When I was working with PHP and Java, every single shop, almost every single application, would have its own naming scheme. Some would say they have the ‘Products’ table and then they'd have ‘productid’, others would have ‘product_id’, some people would have ‘prod_id’ or ‘p_id’ or ‘P_id’, and every time somebody made a new design decision it meant configuration. You now have to tell your models, your objects, how they're going to talk to this database table. Because it needs to know what the hell you called the freaking primary key column, and it just doesn't matter! Who cares what the primary key column is called? It just doesn't matter. It's going to have zero impact on the usefulness of your application."
and
"‘Dont repeat yourself’ is all about not having the same intentions spread out in multiple places. Don't have one configuration. If you're calling something, let's again take the example of the primary key. If you're calling that for ‘id’ you shouldn't have to configure that in three different places that all have to work together and all have to be changed together. You should just pick one authoritative place to have that information stored. And then you can make changes from there. It also goes with the the whole Ruby idiom: we don't want those Java boilerplate ten line things: that's repeating yourself. If you have the same idiom, if you have the same intentions, that should really be exceedingly a short expression. And that goes up throughout the entire framework. Just keep one place to change those things, and keep the idioms very short."