News for hackers. Stuff that matters.

Luyt

Re:Python 3.12.0 is to remove long-deprecated items on Wednesday November 23, 2022 @03:35AM (#33716598)
I use that one too. An alternative might be https://aiosmtpd.readthedocs.io/en/latest/cli.html
Re:Git's list of banned C functions on Thursday March 04, 2021 @04:38PM (#26348760)
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.

https://www.offensive-security.com/kali-linux-arm-images/

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.
Re:Negotiations Failed: How Oracle Killed Java EE on Saturday May 04, 2019 @10:06AM (#19826526)
Have you tried Cython already? That's almost Python and much faster.
Re:Microsoft Is Said to Have Agreed to Acquire GitHub on Tuesday June 05, 2018 @04:07AM (#17235781)
Remember QBASIC.EXE, too?
Re:The Insect Portraits of Levon Biss on Sunday July 24, 2016 @08:36AM (#12153149)
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.
Re:Shuffleboard at McMurdo on Wednesday May 18, 2016 @04:02AM (#11720433)
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?
Re:Media Websites Battle Faltering Ad Revenue and Traffic on Tuesday April 19, 2016 @08:03AM (#11526342)
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.
Re:NASA Is Trying to Grow Potatoes on Mars on Thursday April 14, 2016 @09:21AM (#11496403)
The rays are ionizing and will smash apart the DNA molecules in living cells.
Re:NASA Is Trying to Grow Potatoes on Mars on Thursday April 14, 2016 @09:20AM (#11496394)
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.
Re:Watercolors that were warnings on Tuesday March 08, 2016 @08:35AM (#11245077)
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.
Re:“Just Landed” Is Shutting Down on Sunday March 06, 2016 @06:23AM (#11233341)
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."

Re:The State of Meteor Part 1: What Went Wrong on Wednesday January 20, 2016 @01:34PM (#10940256)
I see jQuery mainly as a library to eliminate browser differences.
Re:The Rails Doctrine on Tuesday January 19, 2016 @02:24PM (#10933210)
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."

Re:The Rails Doctrine on Tuesday January 19, 2016 @02:10PM (#10933085)
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].

[0] http://guides.rubyonrails.org/getting_started.html

Older »