Better HN
topnewbestaskshowjobs
Log inSign up

benzofuran

389 karma · joined Mar 7, 2012 (14y ago) · 107 submissions

Metallurgical Engineer
Submissions

comment 4mo ago · link · parent

I'm stuck enough in the gecosystem that the storage is of small worry there but good point. It's a cute idea for the main topic - I saw some pictures I'd forgotten about for 20 years so that was fun.

comment 4mo ago · link · parent

Here's a gmail extractor google apps script that does the same thing, but for not $30!

function autoExtractGmailMedia() { const START_TIME = Date.now(); const TIME_LIMIT = 1000 * 60 * 5; // 5 minutes (leaves a 1-minute safety buffer) const BATCH_SIZE = 50; const FOLDER_NAME = "Gmail_Media_Export";

  // 1. Retrieve our current position from the script's property store
  const scriptProperties = PropertiesService.getScriptProperties();
  let startIndex = parseInt(scriptProperties.getProperty('START_INDEX')) || 0;

  // Locate or create the destination folder
  let folder;
  const folders = DriveApp.getFoldersByName(FOLDER_NAME);
  if (folders.hasNext()) {
    folder = folders.next();
  } else {
    folder = DriveApp.createFolder(FOLDER_NAME);
  }

  // 2. Process batches in a loop
  // Updated search query to ignore USPS and non-primary tabs
  const searchQuery = 'has:attachment -from:usps.gov -category:promotions -category:updates -category:social (filename:jpg OR filename:jpeg OR filename:png OR filename:zip)';
  
  while (true) {
    const threads = GmailApp.search(searchQuery, startIndex, BATCH_SIZE);
    
    // If the search returns empty, we've hit the end of the inbox
    if (threads.length === 0) {
      console.log("Extraction completely finished.");
      scriptProperties.deleteProperty('START_INDEX');
      deleteTriggers(); // Clean up so it doesn't keep running
      return;
    }

    for (let i = 0; i < threads.length; i++) {
      const messages = threads[i].getMessages();
      for (let j = 0; j < messages.length; j++) {
        const attachments = messages[j].getAttachments();
        for (let k = 0; k < attachments.length; k++) {
          const attachment = attachments[k];
          const name = attachment.getName().toLowerCase();
          const type = attachment.getContentType();
          const size = attachment.getSize();
          
          // Apply size threshold (102,400 bytes = 100KB) and file type filter
          if (size > 102400) {
            if (type.includes('image/') || name.endsWith('.zip')) {
              folder.createFile(attachment);
            }
          }
        }
      }
    }

    // Increment our starting index for the next batch
    startIndex += BATCH_SIZE;

    // 3. The Stopwatch Check
    if (Date.now() - START_TIME > TIME_LIMIT) {
      console.log(`Approaching timeout at index ${startIndex}. Saving state and passing the baton...`);
      scriptProperties.setProperty('START_INDEX', startIndex.toString());
      scheduleNextRun();
      return; // Exit to avoid the hard timeout exception
    }
  }
}

function scheduleNextRun() { deleteTriggers(); // Prevent duplicate overlapping triggers ScriptApp.newTrigger("autoExtractGmailMedia") .timeBased() .after(60 * 1000) // Fire a new execution 1 minute from now .create(); }

function deleteTriggers() { const triggers = ScriptApp.getProjectTriggers(); for (let i = 0; i < triggers.length; i++) { if (triggers[i].getHandlerFunction() === "autoExtractGmailMedia") { ScriptApp.deleteTrigger(triggers[i]); } } }

comment 1y ago · link · parent

Sounds like plotjuggler (https://github.com/facontidavide/PlotJuggler) could be worth checking into as well for you.

comment 1y ago · link · parent

Bricscad (www.bricsys.com) is a professional (paid) cad package that has most of what you're looking for. They're old-school perpetual license folks and they have a fully featured demo so you can try out the various scripting/programmatic options for a bit. No relation except as a user, but if you're willing to pay it's probably your easiest path forward.

comment 2y ago · link · parent

If you're ever in Edinburgh, this is an excellent place to visit and spend an afternoon. One of the funniest parts was upon walking in the door, the gentleman who greeted me asked "What kind of engineer are you?" Very worthwhile.

comment 3y ago · link · parent

Awesome - getting KMZs of 4x4 routes is way harder than it should be. All the Colorado data is there but extracting it is challenging.

comment 3y ago · link · parent

Cool site! Any chance of a adding a simple KMZ export for offline use for a given area of interest?

comment 3y ago · link · parent

It's getting much tougher to pull this off - I recently had an offer for a cherry government job but it was in southern California. The salary, while competitive for most locations, would've required me to be independently wealthy to live within an hour of the office in order to buy even a modest home.

comment 3y ago · link · parent

Is this for software engineers or actual engineers? You may want to specify.

comment 3y ago · link · parent

Book list: https://www.goodreads.com/list/show/177152.Dan_Carlin_s_Hard...

For some reason it didn't get appended to the podcast descriptions

comment 3y ago · link · parent

Dan Carlin's Hardcore History (episode 1: https://www.dancarlin.com/product/hardcore-history-62-supern...) recently did a great series "Supernova in the East" on the modernization of Japan and the internal politics. If you've got some time (drive or such), it's well worth the listen and there's a great diversity of sources.

comment 3y ago · link · parent

They certainly haven't made this mistake in any late-model F-x50 Super Duties. The amount that has to be unplugged and shuffled to do even minor work is amazing, not to mention the entire front end has to be disassembled to replace the headlight bulbs.

Hopefully this will usher in some 'common sense' engineering at Ford and other manufacturers and get them back to sane and serviceable designs.

comment 3y ago · link · parent

Anybody seen similar hardware out of aluminum or coated steel or stainless that's also readily USA-available? Machining these could be done on a small lathe and single-sided CNC...

comment 4y ago · link · parent

seems to mostly just barf up partial wikipedia articles - big whoop

comment 4y ago · link · parent

Talk to Bill Stone about that - he's been one of the preeminent cave explorers and they've been working towards exactly that: https://stoneaerospace.com/ - look at Prometheus and Archimedes in particular.

comment 5y ago · link · parent

I actually just drove by that last week - there's a fun plaque out front but as of today it's very junky up there (seems adjacent property owner is allowing their yard to become junkyardish).

It was a cool little slice of history to see!

comment 5y ago · link · parent

Depends where -just found a paper showing 54% of school children tested by sample (not seeking medical attention) in at least one area of Lagos. Probably lower in adults but it's not a sub-1% number or even close to it. So were the results due to the anti-parasitic action or something else?

comment 5y ago · link · parent

Trial group of 62 patients and no parasite screening in those patients - yawn. But could be interesting grounds for a more significant and controlled study with patients with comorbidities.

comment 5y ago · link · parent

The class action lawsuits out of this are going to be amazing to watch. Once the announcement was made, how many sales were done in response, which has now blown everything even further into unknown territory?

comment 6y ago · link · parent

Neutron radiation leads to embrittlement in many materials, so the long term effects will have to be considered in addition to short term corrosion rate improvements.

comment 6y ago · link · parent

Keep in mind the IMPACT report is the cost, not the amount spent on fixes. It's still pretty significant though. There's some internal discussion on updating the report but the arguments over spend vs cost are raging.

comment 7y ago · link · parent

Many times software engineers fall under the 'industrial exemption' for most states' professional practices acts. That's how many folks without a PE are able to be engineers - as long as they're not selling engineering services to the general public, but only to their employer.

Things get trickier with software as well - with many engineering disciplines, the public can be placed in harm's way by the malpractice of engineering - that's why many civil firms require PE's. In other areas, it's less desirable - for defense contractors, many purposely avoid PE's due to our ethical obligations around harming the public.

Surrounding software, I think a major part of it is just that the laws haven't caught up with the times. NCEES now has a Software PE available but no clue about the contents of the exam. It seems like a tricky one to test for.

comment 7y ago · link · parent

This actually ends up increasing your likelihood of failure, as smaller parallel lines mean higher operational costs for smart pigs and other integrity assessment tools making internal issues harder to detect before failure, and increased risk for external failure due to cathodic protection system failures due to interference and shielding.

comment 7y ago · link · parent

With proper monitoring and a well maintained internal corrosion control and external threat control systems you can stretch out the timeline for non "acts of god" (ie natural disasters, terrorist attacks, etc) to greater than the life of the structure. The methods for internal and external control are well understood and practiced to varying degrees of effectiveness.

Elimination of the hazards is impractical, so minimization of risk exposure and frequency is the best that can practically be done.

All the hubbub about stopping new pipeline construction means that more incident prone methods are used - be it trucking, rail transportation, or use of 50+ year old pipelines. The new lines are better engineered, understood, and have more stringent operational controls in place. I've worked on pipelines from the 1940's that are still safely operated, and lines from the 2010's that have already self excavated. These things can be controlled with the right engineering, organizational, and governmental oversight.

comment 7y ago · link · parent

On the contrary, you can eliminate pipe leaks easily - just many areas have fairly lax integrity management requirements for operators, and those that don't only apply to new lines - very rarely does legislation cover preexisting pipelines.

New pipelines (especially ones considered DOT regulated in the US, overseen by PHMSA) typically are installed with automatic block valves and flow level leak detection systems. Those combined with a sensible internal and external corrosion control program can push the life of a pipeline without incident out past the useful life of the pipeline. But retrofitting these is expensive and most pipeline operators won't do it without regulatory or other political pressure.

comment 7y ago · link · parent

Thus reprocessing - if Hanford's government contractors could get over the hump and get the vitrification plant online, it'd be a lot easier to clean up the waste that's interred in the solid dump and tank farms. And if we didn't have state governors screaming about "No atoms and radiation in my state!" and not allowing passage of waste through their state in properly designed containment and transfer casks, we'd be able to get that waste to a facility where it can be made safer.

The radiation plume under Hanford is not as terrible as certain sources make it to be, the same with the contamination of the river. The area around the reservation itself has led to a recovered and strong population of many endangered indigenous animals in the area as well.

Regarding Rocky Flats, again, not as terrible as many make it out to be. Once you factor in living at high elevation there's not a huge increase in overall exposure.

An important consideration that comes into this is that most of these were weapons production facilities (dealing with purifying and handling some of the nastiest material around).

The waste from properly designed and operated power reactors is a much cleaner and much easier to contain process. Condemning an entire avenue of clean energy (most of the fuel needs for a century+ which have already been extracted and refined) because the work done on the technology in the 40's-60's (when we were still figuring out how awful some of the waste is), is not conducive to progress.

Source: Field engineering on projects at Hanford, Rocky Flats, and Yucca Mountain

comment 7y ago · link · parent

It's like the US doesn't already have a number of remote areas like Hanford, Oak Ridge, Idaho Falls, the Savannah River Site, Rocky Flats, etc. that are already set up (and somewhat contaminated already) for handling this sort of material and process. In reality it's a political nightmare, not a pollution one.

comment 7y ago · link · parent

I'd almost argue that we need to find a new word for it but at this point there's not much to it. I've had the discussion a few times about how Big Bang Theory is basically a minstrel show about smart people instead of your choice of minority group and while some folks get the comparison, most just glaze over.

comment 7y ago · link · parent

They are young adult fiction, which is like saying that cars weren't built for driving. I'm not sure what you intend they were written as then, as they surely aren't literature.

comment 7y ago · link · parent

It's a shame - in 2008/9/10 it was really something to see, but as a few other commenters have said, it's (and a lot of the maker movement for that matter) have declined a bit.

I personally think this is due to the infantilization in part of a lot of media outlets, where the emphasis has been placed on getting the ideas into the most hands possible instead of folks who'd actually benefit. Focusing the faires around 3D printing geegaws and cosplay items is fine if you want to make numbers, but you get consumers and the followons, and not creators from that.

You can think of it in the same vein as Marvel movies or Harry Potter books - low content, low thinking media that raises insane amounts of money based on appealing to the mass market and the wannabe 'geek' crowd that doesn't tend to do much innovating except in consumption methods.

1234