Shared posts

19 Apr 04:09

Eliminate the middle man

This is a post that was drafted months ago but never published.   Seems appropriate now more than ever so we’re going to release it into the world.

Something about this post title makes me think of some discount warehouse liquidator.  “We’ve eliminated the middle man and passed on the savings to you!”  But the truth is, that there are times when a middle man is nothing but destructive to a relationship and everybody gains by their removal.

Facebook is the ultimate middle man.

  • They tax the creators to reach their followers.  Boost!
  • They only show content that leads to stronger performance with their advertisers.

Instagram is the same now.  I know we all wish it wasn’t, but it is.

There are really only two parties that matter.  The writer and the reader.  A middle man always has dubious plans because they provide limited value.  Particularly on the open web.

RSS had this right years ago.  I realize, technically speaking, RSS platforms like ours are in the middle.  The difference is that we’re replaceable.  It’s not a private network and people come to us from other platforms all the time and vice versa.  It’s healthy.

So why did we all leave to the private network and entrust the middle man?  It’s because services like Facebook always start out as free and easy.  They are just here to help connect you to your friends.  For free.  No ads even… isn’t this great?

19 Apr 04:06

Important Flatland Research

by jwz
I have long had a hard time picturing what day, night and the shape of the terminator would look like on Buckminster Fuller's Dymaxion Map. Well yesterday I wrote some code and now I know! It sort-of feels like two weird spirals turning in opposite directions. Video here.

Skip ahead about half way to see it with satellite imagery instead of flat coloring. That version is a little dark, so you'll want to full-screen it.

Anyway, Planet Flatland has a very strange sun, is what I'm saying.

This update will be in the next release of XScreenSaver but I figured I'd post the video now anyway, because it's neat.

Oh yeah, also,

"We must do away with the absolutely specious notion that everybody has to earn a living. It is a fact today that one in ten thousand of us can make a technological breakthrough capable of supporting all the rest. The youth of today are absolutely right in recognizing this nonsense of earning a living. We keep inventing jobs because of this false idea that everybody has to be employed at some kind of drudgery because, according to Malthusian-Darwinian theory, he must justify his right to exist. So we have inspectors of inspectors and people making instruments for inspectors to inspect inspectors. The true business of people should be to go back to school and think about whatever it was they were thinking about before somebody came along and told them they had to earn a living." -- R. Buckminster Fuller, 1970

Previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously.

19 Apr 04:04

Homeland Security accidentally releases records on remote mind control

by jwz
When you send thousands of FOIA requests, you are bound to get some very weird responses from time to time.

What you are looking at here is "psycho-electronic" weapons that purportedly use electromagnetism to do a wide variety of horrible things to people, such as reading or writing your mind, causing intense pain, "rigor mortis," or most heinous of all, itching. [...]

Just check the detail on these slides too. The black helicopter shooting off its psychotronic weapons, mapping your brain, broadcasting your thoughts back to some fusion center. I wish their example of "ELF Brain stimulation" was a little clearer though.

The image includes such great subheadings as:


Previously, previously, previously, previously, previously, previously, previously, previously, previously, previously, previously.

18 Apr 02:55

shower like a pro

by kris

a list of problem areas will be sent to your co-workers and family to keep you accountable

14 Apr 18:26


by jwz

this seems very familiar, and also very awesome.

14 Apr 18:20

XScreenSaver 5.39

by jwz

jwz still legit software 2018

XScreenSaver 5.39 is out now, including iOS and Android.

Four new hacks this time! Three by me.

For RazzleDazzle, I spent a lot of time looking at historical dazzle paint-jobs to try and get a sense of whether there was some basic algorithm under the technique, and came to the conclusion of, "no". Most of it seems to be, "you know it when you see it", but I didn't discern any simple universal rules about the underlying mesh. But, taking a grid and doing a random-walk on each node in it, with some constraints that they try to avoid passing each other, seemed to get the basic sense of it. Even though the pattern is fundamentally rectangular, after a few iterations a lot of sharp triangles show up anyway.

The infinite scroll effect is achieved by running the grid on a torus that is twice the size of the screen, so by the time you see that piece a second time, those points have moved. For the ship stencils, I just traced some old photos by hand.

Fun fact about Peepers: eyeballs are a really funny shape! The iris is kind of a smooshed torus, and is concave-ish compared to the sphere, while the lens is highly convex. But, from many angles the iris actually looks convex because of the diffraction of the lens. So it's hard to get this right in OpenGL, which doesn't do ray tracing. I think a little transparency kind-of got the job done, though. Inspired by PaintYourDragon's Adafruit Snake Eyes Raspberry Pi Bonnet, obviously. And as seen in Cyclopian glory in DNA Pizza.

On X11, try it as "peepers -mode xeyes -count 2" or "-mode beholder"

Crumbler is ok, but I had hoped for more complex shapes. Possibly those would emerge at higher resolutions and number of subdivisions, but the convex hull library that I grabbed is not ideal; it does a O(n^2) malloc at startup, and is kind of slow on top of that. Oh well. If you know of a small, fast quickhull in C, lemme know. I didn't feel like writing my own.

I'm told that the maze thing will be nostalgic for certain people who led childhoods of tragic deprivation, desktop-wise. My thoughts and prayers are with you.


Things work a lot better on Mac Retina displays (since I have one now). Turns out a lot of the older screen savers made crazy assumptions like "a single pixel is a thing that you can actually see".

Loading images from RSS feeds works more better, and Android is able to load images from your photo roll.

And on X11, fonts will hopefully look OK on your shitty-assed Linux distro that doesn't ship exotic, avant garde fonts like Helvetica by default, which is apparently a lot of them. Basically as soon as it fails to load a font, it goes scorched-earth and tries like a thousand different things until something works. Fuck it.

Also, internally I converted all of the image assets from XPM to PNG, because what year is it? This means several things have better color and better alpha, but mostly it's just less weird and bloated. But it probably makes some things display incorrectly on 8-bit pseudocolor displays, about which I have decided to just not care.

Previously, previously, previously, previously, previously.

12 Apr 02:30

necessary-disorder tutorials

by slaporte
12 Apr 02:14

Mark Zuckerberg: Facebook is responsible for the content on its platform

by slaporte

man what are all those lawyers by his side good for if they don't talk to the ops people actually running the zuckbot. this was the one thing they didn't want to happen.

09 Apr 04:26

Am I Asking Too Much

by Dorothy


07 Apr 02:01

Why Mark Zuckerberg’s 14-Year Apology Tour Hasn’t Fixed Facebook

by Zeynep Tufekci
The Facebook CEO's constant apologies aren't a promise to do better. They're a symptom of a profound crisis of accountability.
07 Apr 01:38

Alaska Air offering a new San Jose >> New York flight

by Joshua Santos

come stay at my house and catch the morning flight, doesn't get better than this

In an effort to keep Southwest at bay, Alaska Airlines is continuing to add new flights at San Jose international. The latest is a new nonstop from SJC to JFK that starts on July 6th.

JetBlue already has a redeye to JFK and Delta will start a new redeye on June 8th. Both Alaka and United have flights to Newark International as well.

One major convenience the new Alaska flight offers is that it's not a red eye. The flight leaves at 7:05am from SJC and arrives at JFK's Terminal 7 at 3:43pm. The return flight leaves JFK at 4:45pm and arrives back home at SJC at 8:23pm. The route will be served by an Airbus A320 (twin-jet, single-aisle).

San Jose went from having one direct flights to New York to five nonstops within a few years. It feels like there is still a lot more to come.

Source: SVBJ

07 Apr 01:37

VTA moving forward with single-bore subway for BART

by Joshua Santos

they're doin it, 1st time in the USA babey

There has been a heated debate on whether to use a twin bore or single bore subway for BART's extension from Berryessa to Downtown San Jose. Proponents of the single bore argued that it would greatly minimize disruption to Downtown businesses as it would avoid gutting all of Santa Clara Street. It would also cut the construction timeline by as much as a year. On the other hand, this type of subway has never been built in the United States and would not be consistent with the rest of the BART system. In the end, VTA staff has officially recommended single bore.

The $4.7 billion tunnel will have a diameter of 47 feet, enough to accommodate two lines stacked on top of one another (see image below). This also means that all of the stations will be on one side of the street.

Two other important related decisions were also made. There a couple options for the Downtown Station: City Hall and on Market and 1st Street. By choosing single bore, VTA was able to select the more central Market/1st Street location without having to shut down the Light Rail line during construction. The second decision was the alignment of the Diridon station. With single bore the station can be built right under Santa Clara Street with easier access to SAP, all without having to close the street down during construction.

Source: SVBJ

01 Apr 07:51

“Google’s use of the Java API packages was not fair,” appeals court rules

by Cyrus Farivar


Enlarge / Signage stands at the Oracle Corp. headquarters campus in Redwood City, California, on March 14, 2016. (credit: Michael Short/Bloomberg via Getty Images)

The case of Oracle v. Google is Silicon Valley’s lawsuit that will seemingly never die.

On Tuesday, the US Court of Appeals for the Federal Circuit ruled in favor of Oracle, finding that Google may owe billions in damages. Nearly 7.5 years after the original lawsuit was filed, the case will now be sent back down to federal court in San Francisco to figure out how much Google should pay.

"Google’s use of the Java API packages was not fair," the court ruled Tuesday.

Read 7 remaining paragraphs | Comments

01 Apr 06:44

Former Offspring drummer saves life of juror at his own trial

by (johng)
As reported by Law 360, Dr. James Lilja earned some brownie points with the jury recently. Lilja was the drummer for The Offspring from '84-'87 and is now a San Jose obstetrician-gynecologist. Earlier this week was the first day of trial for a Medical Malpractice case brought against Lilja. During the trial, a juror went into cardiac arrest. Lilja jumped into action and saved the juror's life by performing CPR and then applying an external defibrillator. The judge then declared a mistrial, ruling that the action would influence the jury's opinion of Lilja. “No good deed goes unpunished,” Lilja told Law360. A new trial starts April 2.
31 Mar 05:29

Community owned communications is spreading

by Sam Smith
institute for Local Self Reliance
  • 55 municipal networks serving 108 communities with a publicly owned FTTH citywide network.
  • 76 communities with a publicly owned cable network reaching most or all of the community.
  • 197 communities with some publicly owned fiber service available to parts of the community (often a business district).
  • More than 120 communities with publicly owned dark fiber available
  • More than 130 communities in 27 states with a publicly owned network offering at least 1 gigabit services.
  • 258 communities served by rural electric cooperatives. 10 communities served by one broadband cooperative. (Communities served by telephone cooperatives will soon be on the map as well).
30 Mar 05:40

Meanwhile. . .

by Sam Smith
Poll finds 62% percent of Americans think the US is headed in the wrong direction.

For the most recent twelve month period  IRS referred only 1,824 taxpayers for criminal prosecution, compared with the same twelve month period four years ago when it had referred more than twice that number (3,896).   Indeed, IRS referrals have not been this low since  tracking began in FY 1986.

The total bonus pool for 176,900 Wall Street employees was 2.5 times the combined annual earnings of all 884,000 U.S. full-time minimum wage workers.

A new Brennan Center for Justice report projects the predicted Democratic takeover of the House of Representatives is nearly out of reach, blaming Republican gerrymandering. “Even a strong blue wave would crash against a wall of gerrymandered maps," the report says.

A staggering 94 percent of all state convictions now come from plea deals. Frightened by the alternative, the question is rarely about guilt or innocence, but about whether or not someone will be in prison for their entire adult life or just a sliver of it. People are basically scared into these pleas.
30 Mar 05:36

About 42% have less than $10k saved at retirement

by Sam Smith
CNBC-  About 42 percent of Americans have less than $10,000 saved for when they retire, according to a study by GoBankingRates. The No. 1 reason most people cited for not stashing more away was because they didn't earn enough to save, followed by the fact that they were already struggling to pay bills.

30 Mar 05:35

Word: The value of child play

by Sam Smith

i played so hard

Suzanne Brunelle Vera, Bad Ass Teachers Assn -  To quote one of the biggest advocates of play, Mr. Rogers, “Play is often talked about as if it were a relief from serious learning.  But for children, play is serious learning.  Play is really the work of childhood”.  According to the Robert Wood Johnson Foundation research done in 2010, “Principals overwhelmingly believe recess has a positive impact not only on the development of students’ social skills, but also on achievement and learning in the classroom.”

According to the U.S. Play Coalition in an article titled “A Research Based Case for Recess”, students require breaks to promote mental alertness.  Brain research on attention suggests that 1) The brain cannot maintain attention for long periods of time and requires contrast to regain focus, 2) for information to be processed, down time is needed to recycle chemicals crucial for long-term memory formation and 3) attention is cyclical, involving 90-110 minute rhythmical patterns throughout the day.  In research with fourth graders, children were less fidgety and more on-task when they had recess.  Also, children with hyperactivity were among those who benefited the most.  These results are consistent with the findings of a meta-analysis of nearly 200 studies on the effect of exercise on cognitive functioning that suggest physical activity supports learning.

30 Mar 04:57

Retro arcade and upscale bar on tap for Downtown this summer

by Joshua Santos
"miniBoss" is the most anticipated new Downtown bar in years. The owners of Original Gravity (San Jose's first bar exclusively dedicated to craft beer) and Paper Plane (one of San Jose's first craft cocktail bars) are now opening a third venue at the corner of Santa Clara Street and 2nd Street. This is a very high-profile and easily accessible space that was last occupied by Toons years ago.

Clocking in at 5,528 SQFT, miniBoss will host dozens of old-school arcades and pinball machines. Given its pedigree, craft beers and cocktails are guaranteed. The venue will also have a full kitchen which will likely serve up surprisingly good pub fare if Paper Plane and Original Gravity are any indication. It will provide a unique entertainment option that simply does not exist in Silicon Valley right now and be yet another "cool" thing to do in San Jose.

Downtown San Jose is finally getting the traction and attention it deserves and miniBoss will undoubtedly be an anchor tenant for the growing numbers that live, work, and play Downtown. I'm greatly looking forward to its grand opening this summer.

Source: The MercSVBJ

30 Mar 03:51

Scientists think they found a new human organ—a fluid-filled “shock absorber”

by Beth Mole

Enlarge / Huh, never seen that before. (credit: Getty | AFP)

Newly identified networks of interconnected, fluid-filled chambers that line tissues throughout the human body may qualify as a completely new organ, researchers report in a study published Tuesday in Scientific Reports.

Researchers found the web-like tissue on the underside of skin, around the digestive tract, bladder, lungs, arteries, and within muscles. They speculate that the tissues—dubbed the “interstitium”—may act as “shock absorbers,” allowing our organs to swell and compress as we go about our business of breathing, eating, and living in general. The fluid it contains may also play heretofore unappreciated roles in basic biology and disease. For instance, the liquid could act as a conduit for cellular signals or harmful molecules, play a role in the development of edema (excessive fluid retention in tissues), and even help cancer cells spread.

The finding may “necessitate reconsideration of many of the normal functional activities of different organs and of disordered fluid dynamics in the setting of disease,” the authors conclude. And preliminary data “raises the possibility that direct sampling of the interstitial fluid could be a diagnostic tool,” they add.

Read 7 remaining paragraphs | Comments

29 Mar 05:50



lol i dunno why it took me so long to see what this was.


29 Mar 05:39

Finally, ICE finds someone they won't deport.

by jwz
He confessed to being a concentration-camp guard and was stripped of his citizenship. But the U.S. government still won't kick him out of the country.

During the first three months of ICE's 2018 fiscal year, the agency deported 56,710 people, 46 percent of whom had not been convicted of a crime. This year, ICE expects to deport 209,000 people. It is highly unlikely that Palij will be among them -- even though Palij is a war criminal, the last Nazi war criminal living in the United States.

Palij served as a guard during World War II at the Trawniki forced labor camp, which also trained those participating in "Operation Reinhard," a plan to exterminate every Jew in German-occupied Poland. He entered the country in 1949 without divulging his past and was later awarded citizenship, of which he was stripped by a federal judge in 2004 and ordered deported. [...]

"[Germany has] done a pretty good job the last few years in pursuing individuals for Nazi atrocities who were found in Germany," said Drimmer. "What they have not done a good job of is taking guys like Jakiw Palij, who were found outside of Germany, but are every bit as culpable, if not more culpable, than the individuals found inside Germany's borders." [...]

According to ICE statistics, 8,275 people with deportation orders remained in the U.S. between 2012 and 2015 because no other country would take them; the agency says it "does not have the authority to force removals upon a sovereign nation". An ICE spokesperson said nine countries are currently classified as "uncooperative": Burma; Eritrea; Cambodia; Hong Kong; China; Laos; Cuba; Iran; and Vietnam. Germany, Ukraine, and Poland are not on the list.

ICE declined to comment and said to speak to the State Department, which also declined to comment.

Previously, previously, previously, previously, previously, previously, previously.

26 Mar 01:53

How The Pirate Bay Helped Spotify Become a Success

by Ernesto

When Spotify launched its first beta in the fall of 2008, many people were blown away by its ease of use.

With the option to stream millions of tracks supported by an occasional ad, or free of ads for a small subscription fee, Spotify offered something that was more convenient than piracy.

In the years that followed, Spotify rolled out its music service in more than 60 countries, amassing over 160 million users. While the service is often billed as a piracy killer, ironically, it also owes its success to piracy.

As a teenager, Spotify founder and CEO Daniel Ek was fascinated by Napster, which triggered a piracy revolution in the late nineties. Napster made all the music in the world accessible in a few clicks, something Spotify also set out to do a few years later, legally.

“I want to replicate my first experience with piracy,” Ek told Businessweek years ago. “What eventually killed it was that it didn’t work for the people participating with the content. The challenge here is about solving both of those things.”

While the technical capabilities were certainly there, the main stumbling block was getting the required licenses. The music industry hadn’t had a lot of good experiences with the Internet a decade ago so there was plenty of hesitation.

The same was true of Sweden, where The Pirate Bay had just gained a lot of traction. There was a pro-sharing culture being cultivated by Piratbyrån, Swedish for the Piracy Bureau, which was the driving force behind the torrent site in the early days.

After the first Pirate Bay raid in 2006, thousands of people gathered in the streets of Stockholm to declare their support for the site and their right to share.

Pro-piracy protest in Stockholm (Jon Åslund, CC BY 2.5)

Interestingly, however, this pro-piracy climate turned out to be in Spotify’s favor. In a detailed feature in the Swedish newspaper Breakit Per Sundin, CEO of Sony BMG at the time, suggests that The Pirate Bay helped Spotify.

“If Pirate Bay had not existed or made such a mess in the market, I don’t think Spotify would have seen the light of the day. You wouldn’t get the licenses you wanted,” Sundin said.

With music industry revenues dropping, record labels had to fire hundreds of people. They were becoming desperate and were looking for change, something Spotify was promising.

At the time, the idea of having millions of songs readily and legally available was totally new. Many immediately saw it as an “alternative to music piracy” and even Pirate Bay founder Peter Sunde was impressed.

“It was great. It was always what was missing in the pirate services, that intuitive interface,” Sunde told Breakit.

Sunde also believed that The Pirate Bay and all the buzz around piracy in Sweden was a great boon to Spotify. But while the latter turned into a billion-dollar business that’s about to go public, Sunde and the other TPB founders still owe the labels millions in damages.

“Without file-sharing, The Pirate Bay and the political work done by Piratbyrån, it was not possible to get the licensing agreements Spotify received,” Sunde said. “Sometimes I think I should have received 10, 20 or 30 percent of Spotify, as a thank you for the help.”

In addition to creating the right climate for the major record labels to get on board, The Pirate Bay also appears to have been of more practical assistance.

When Spotify first launched several people noticed that some tracks still had tags from pirate groups such as FairLight in the title. Those are not the files you expect the labels to offer, but files that were on The Pirate Bay.

Also, Spotify mysteriously offered music from a band that decided to share their music on The Pirate Bay, instead of the usual outlets. There’s only one place that could have originated from.

The Pirate Bay.

Source: TF, for the latest info on copyright, file-sharing, torrent sites and more. We also have VPN reviews, discounts, offers and coupons.

24 Mar 04:13

Campus Rape | Soft Focus with Jena Friedman | Adult Swim

by Adult Swim


More special episodes:
Soft Focus with Jena Friedman is a live action comedic special that explores hard issues with a light touch.


About Adult Swim:
Adult Swim is your late-night home for animation and live-action comedy. Enjoy some of your favorite shows, including Robot Chicken, Venture Bros., Tim and Eric, Aqua Teen, Childrens Hospital, Delocated, Metalocalypse, Squidbillies, and more. Watch some playlists. Fast forward, rewind, pause. It's all here. And remember to visit for all your full episode needs. We know you wouldn't forget, but it never hurts to make sure.

Connect with Adult Swim Online:
Visit Adult Swim WEBSITE:
Like Adult Swim on FACEBOOK:
Follow Adult Swim on TWITTER:
Watch Full Episodes:

Campus Rape | Soft Focus with Jena Friedman | Adult Swim
24 Mar 04:05

Cannibal Cop | Soft Focus with Jena Friedman | Adult Swim

by Adult Swim


More special episodes:
Soft Focus with Jena Friedman is a live action comedic special that explores hard issues with a light touch.


About Adult Swim:
Adult Swim is your late-night home for animation and live-action comedy. Enjoy some of your favorite shows, including Robot Chicken, Venture Bros., Tim and Eric, Aqua Teen, Childrens Hospital, Delocated, Metalocalypse, Squidbillies, and more. Watch some playlists. Fast forward, rewind, pause. It's all here. And remember to visit for all your full episode needs. We know you wouldn't forget, but it never hurts to make sure.

Connect with Adult Swim Online:
Visit Adult Swim WEBSITE:
Like Adult Swim on FACEBOOK:
Follow Adult Swim on TWITTER:
Watch Full Episodes:

Cannibal Cop | Soft Focus with Jena Friedman | Adult Swim
24 Mar 02:34

What happens when you tack $80 in cash on corkboards

by Rusty Blazenhoff

Zarinah Agnew lives at the Red Victorian, a modern-day commune in San Francisco's Haight neighborhood. Six months ago, as an experiment, she and her roommates thumbtacked $80 in cash on three different corkboards (at the Red Vic and another local intentional community called The Embassy). They then attached small pink signs that read, “Take what you need, leave what you don’t!”

They called each of their experimental corkboards, the "Great Wall of Money."

Here's what happened next, according to Agnew:

We left them up in our houses and watched. It was kind of amazing.

I watched them stay pristine for a few days, and slowly gain extra funds. Once they had been touched, the notes started to move and disappear. The $1s went first, but again once a $20 had gone, the others followed suit. But they oscillated back and forth in a healthy manner.

Then one night the board was cleared, presumably by a single person. It was full at 3am and gone by 6am that morning. I was sort of delighted by this as it demonstrated to me that the board wasn’t remaining replenished through politeness. People were using it as it was intended. And lo, after a week, the empty board, started to collect notes once more...

Before long the Red Vic Great Wall of Money collected bart tickets, maps, notes, and all sorts of things. Eventually, the community moved it out onto the street where it collected even more goods and services — half smoked blunts and items of clothing were pinned to the board.

Read the entire story here: Experiments into other ways: The great wall of money

photo via Zarinah Agnew, used with permission

Thanks, SFSlim!

23 Mar 05:25

Swenson reveals spectacular proposal for the Guadalupe River Area

by Joshua Santos

doesn't even have protected bike lanes. also i can tell ya from experience, these "vision" images ain't cheap!

Swenson Builders just blew my mind with their proposal to turn the Downtown stretch of the Guadalupe River into a 6.81 million SQFT mixed-use development. Apparently, Swensen has been contemplating this for decades.

The 30-acre project would incorporate and expand existing parks on both sides of the Guadalupe River and even create a second river (!)... more on that in just a moment. Perhaps take a quick break to scroll down and look at the photos and then head back up here.

The square footage breakdown would be 3.8 million SQFT for office space, 2 million SQFT of residential space (~2,400 units), 420,000 SQFT of retail in a 5-story terraced shopping center, and 590,000 SQFT of hotel space (~1,100 rooms). Bridges would zig-zag over the river(s) to easily get from one side to the other. If there was ever a proposal to rival the San Jose Google HQ, this would be it.

One of the most interesting aspects of the proposal is to create a man-made river parallel to the original Guadalupe River. The purpose of this would be to allow for recreational water activities in Downtown San Jose such as kayaking, surfing, and stand-up boarding. Above the river would also be zip-lines, allowing for a fun adventure combining both a natural and urban backdrop.

Right now this is more vision than a formal proposal, but can you imagine is this is what the Downtown Guadalupe River area looked like 20 years from now? This would be a tremendous amenity and entertainment draw while highlighting one of Downtown's best kept secrets--the river.

Source: SVBJ (Subscription Required)

23 Mar 05:20

East Wind Snack Shop

by Dorothy

East Wind Snack Shop

23 Mar 04:08

The Zen of Empty Lists

by Mahmoud Hashemi

coworker mentioned this was top of /r/python atm

"There should be one-- and preferably only one --obvious way to do it". One of the many philosophies that has earned Python its acclaim.

But while the Zen of Python limits on the number of obvious ways, the Zen of Python says nothing about the boundless freedom of unobvious ways.

Let's empty a list named bucket.

The most obvious way is to simply not. 99 times out of 100, you want to assign a new empty list rather than mutating the old.
bucket = []
But let's say you really wanted to empty it, well the clearest way is clear:
But even the docs say this is equivalent to:
del bucket[:]
I guess that's crossing the obvious line. Of course, it may be more obvious than Norvig's "dumbell" operator:
Actually the slice assignment can take any iterable, so our list can lift plates of many shapes:
If you don't want your list getting ripped and/or cut, maybe keep it warm with Norvig's ski hat:
bucket *=0
The ski hat is of particular interest because it's using a very obvious list feature, much more commonly used than list.clear(). Nobody would bat an eye at:
bucket = [0, 1, 2, 3] * 2
# bucket = [0, 1, 2, 3, 0, 1, 2, 3]
If you multiply any list by 0, you make a new list of length 0. Bizarrely, this is actually true of any multiplier less than 0, too.
bucket *= -3
# bucket = []
Safe to say we are deep in the territory of the unobvious. Is there a syntax we might meditate on to take us further?
20 Mar 17:06

Apple's Worldwide Developers Conference is returning to Downtown San Jose

by Joshua Santos

maaaaan wish this'd stay up north, all these people milling about in the new airbnbs around my house...

WWDC 2018 will take place in San Jose for the second year in the row. This is Apple's largest event and it will take over the McEnery Convention Center as well as various other parts of Downtown from June 4-8.

The conference starts with a keynote that goes over the latest software releases for MacOS and iOS devices. Often times, major new hardware is announced as well. Last year the Apple Homepod as well as new iPads and an iMac Pro were all revealed.

The 2017 event appeared to be a huge success. Thousands of attendees roamed Downtown and multiple parallel events related to the Apple community also took place in the area. Feedback from attendees on location was very positive. The true test of success was that Apple chose to run the event in San Jose again this year instead of returning the conference to Moscone in San Francisco. Hopefully the 2018 event will be even better than last year's conference.

If you are a developer and are interested in attending, all you need to do is sign up for a lottery by March 22nd for a chance to spend $1,599 on a conference pass.

Source: SVBJ