home.social

#array — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #array, aggregated by home.social.

fetched live
  1. One of the coolest and most thoughtfully implemented features in Ruby is data packing and unpacking. I haven't encountered such a simple API for working with binary data even in compiled languages like Go, Rust, or C++.
    For example, if you need to turn two bytes into a 16-bit integer, it looks like this:
    ```
    [32, 255].pack('C*').unpack('S>')
    => [8447]
    ```

    #Ruby #Pack #Unpack #Data #Binary #Array #String #ASCII

  2. A unified world model in human posterior parietal cortex biorxiv.org/content/10.64898/2 by @NancyKanwisher et al.; likely also involved in (learning) "blind" reaching and grasping with The vOICe vision BCI? #Utah #array #BCI #neuroscience

  3. One of the coolest things in Ruby is the splat operator (*). In short, it lets you destructure arrays into variables, for example:
    ```
    a, * = *[123]
    puts a.inspect # 123
    ```

    You can simplify this code even further by just dropping the asterisks:
    ```
    a, = [123]
    puts a.inspect # 123
    ```

    If you only need the tail of an array, the leading asterisk is mandatory:
    ```
    *, b = [123, 321]
    puts b.inspect # 321
    ```

    #Ruby #Asterisk #Splat #Array #Destruct #Concat

  4. Una colaboración internacional inaugura en La Palma cuatro telescopios que estudiarán el universo más energético

    Una colaboración internacional inaugura en La Palma cuatro... #tardigram #telescopio #palma #cherenkov #telescope #array #observatory #ctao #rayos #gamma #astronomia

    tardigram.com/m/astronomia/t/8

  5. Mike McDaniel embracing life as Chargers’ screen-averse sneakerhead

    Ask Mike McDaniel where his head is, and you’ll get a philosophical answer. Ask him where his feet…
    #NFL #LosAngelesChargers #LosAngeles #Chargers #array #athleticshoe #elitequarterback #foot #Football #future #JimHarbaugh #JustinHerbert #life #manhattanbeachhome #MikeMcDaniel #phone #room #screen-aversesneakerhead #time
    rawchili.com/nfl/994213/

  6. Capcom put a killswitch in their arcade game decades ago. They had the first obsolence hardware installed in arcade

    Year 1998. Genious? Yes, fucked up? Absolutely

    Watch and learn

    youtube.com/watch?v=NhjR6H258zs

    #programming #arcade #capcom #kill #switch #encryption #gate #array #infosec #CR2032

  7. #array : an impressive display

    - French: variété

    - German: die Anordnung, der Bereich

    - Italian: varietà

    - Portuguese: arranjo

    - Spanish: variedad

    ------------

    Word of The Hour's Annual Survey @ wordofthehour.org/r/form

  8. Can we turn a file tree structure into a matrix? Everything in a computer can be represented by an #array or a #matrix or a #tensor.

    aaa.bbb.ccc.x.txt
    ddd.y.txt -> ddd.""."".y.txt

    aaa bbb ccc x.txt
    ddd "" "" y.txt

    We are no longer shackled by the naive von Neumann machine that has only 1 or a few cores or threads. We can layer down millions of data points and apply one instruction on them all at once. There is no more pointer tree chasing. The #C #pointer logic virus subsides.

  9. Sobald du in Java nicht mehr nur eine einfache Liste von Werten brauchst, landest du schnell bei Arrays mit mehreren Dimensionen. Genau an der Stelle wird es für viele unübersichtlich. Ein normales Array ist noch leicht zu greifen: mehrere Werte hintereinander in einer Reihe. Ei...

    magicmarcy.de/java-arrays-mit-

    #Array #Java #Arrays #Dimensionen #Block #Schleifen #Matrix #Raster #Schichten #Syntax #Multidimensional #Coding #Programming

  10. Caltech’s Massive Radio Array in Nevada Desert Poised to Map a Billion New Cosmic Sources Caltech prepares to build the DSA with 1,650 dishes across a Nevada valley, promising 100x faster surveys...

    #SpaceRevolution #Caltech #radio #telescope #Deep #Synoptic #Array #DSA-2000 #fast #radio #bursts

    Origin | Interest | Match
  11. Trump exaggerated when he said the Biden and Obama administrations spent hundreds of millions on the Lincoln Memorial Reflecting Pool. The actual costs were far less. Not everything Trump says about spending adds up. #TrumpIsDumb #FactCheck #Ar…

    Source: FactCheck.org

    #TrumpIsDumb #FactCheck #Array

  12. Astronomers Scan Interstellar Object 3I/ATLAS for Alien Radio Signals Using the SETI Institute’s Allen Telescope Array, a 42-element radio interferometer at Hat Creek Radio Observatory in Hat Cre...

    #Astronomy #3I/ATLAS #Allen #Telescope #Array #Comet #Extraterrestrial #civilization #Extraterrestrial #intelligence #Extraterrestrial

    Origin | Interest | Match
  13. The SETI Institute Searched For Signs of Technology From 3I/ATLAS—a New Paper Reveals What They Found The SETI Institute says it found no evidence of technosignatures during a comprehensive exami...

    #Astronomy #Breaking #News #SETI #3I/ATLAS #Allen #Telescope #Array #astronomy #Avi #Loeb

    Origin | Interest | Match
  14. Sobald du in Java nicht mehr nur eine einfache Liste von Werten brauchst, landest du schnell bei Arrays mit mehreren Dimensionen. Genau an der Stelle wird es für viele unübersichtlich. Ein normales Array ist noch leicht zu greifen: mehrere Werte hintereinander in einer Reihe. Ei...

    magicmarcy.de/java-arrays-mit-

    #Array #Java #Arrays #Dimensionen #Block #Schleifen #Matrix #Raster #Schichten #Syntax #Multidimensional #Coding #Programming

  15. Convert NumPy Array to Tuple in Python – 5 Methods with Examples If you’ve ever tried to pass a NumPy array into a function that only accepts a tuple, you already know the frustration. The fix ...

    #Python #Programming #Tutorials #Python #Tutorials #Convert #NumPy #Array #to #Tuple #in

    Origin | Interest | Match
  16. 🚀 Behold the epic #saga of the #Redis #Array development: a four-month odyssey where our hero, armed with nothing but a keyboard and a penchant for "part-time" work, bravely battles the tyranny of specifications. How will he fare against the evil forces of #productivity and the lure of modern tech? 🤔 Stay tuned for the thrilling conclusion... if it ever arrives. ⏳😴
    antirez.com/news/164 #Development #Adventure #Battle #Tech #HackerNews #ngated

  17. #array : the whole body of persons thus placed in order

    - French: variété

    - German: die Anordnung, der Bereich

    - Italian: varietà

    - Portuguese: arranjo

    - Spanish: variedad

    ------------

    Word of The Hour's Annual Survey @ wordofthehour.org/r/form

  18. Поиск в коллекциях или когда O(N) быстрее O(1)

    На собеседованиях мы слышим или говорим сами, что поиск в массиве медленнее, чем в хеш-таблице. Кто-то даже вспоминает, что поиск в массиве имеет линейную сложность или O(n), а в хеш-таблице — константную O(1). Но работает ли это на практике? Что, если есть ситуации, когда поиск в массиве оказывается быстрее? Давайте не будем торопиться с выводами.

    habr.com/ru/companies/skbkontu

    #net #c# #hashset #array #performance #benchmark

  19. How to Stop Array includes From Failing on NaN

    indexOf misses NaN but includes finds it.

    #javascript #nan #array #bug #howto #search

    youtube.com/watch?v=4T83RCDQs0o

  20. Долгожданный оператор _Countof

    Одно из недооценённых событий уходящего года деревянной змеи - в проекте стандарта языка С появился оператор числа элементов. Как заметил один мудрый товарищ, Алексей Годин, даже полвека ещё не прошло, а наконец, дождались.

    habr.com/ru/articles/1000228/

    #C2Y #C23 #массив #array #c++26

  21. Array.fill() Shares Same Reference?!

    This is a TRAP! Array.fill() with an object puts the SAME object in every slot. Change one, change ALL! Every element points to the same memory location. This silent mutation will destroy your data!

    #javascript #javascripttricks #array.fill #objectreference #mutationbugs #javascriptweird #javascriptquiz #codingchallenge #javascriptshorts #javascriptwtf #referencetypes #advancedjavascript

    youtube.com/watch?v=MaOk-qGi9xw

  22. The #Lazuli #Space #Observatory is a project of #Schmidt #Sciences,
    a philanthropic organization built by investor Wendy Schmidt and former Google CEO Eric Schmidt.

    “This is the first full-scale observatory that is privately funded in space,” says Stuart Feldman, an astronomer, computer scientist and president of Schmidt Sciences,
    who spoke to Scientific American before the announcement.

    “For 20 years, Eric and I have pursued philanthropy to seek new frontiers,”
    Wendy Schmidt said in a statement.

    “With the #Schmidt #Observatory #System
    [which includes Lazuli],
    we’re enabling multiple approaches to understanding the vast universe
    where we find ourselves stewards of a living planet.”

    As envisioned, the telescope will boast a three-meter mirror
    —larger than that of NASA’s iconic Hubble Space Telescope.

    Its three instruments
    —a planet-finding coronagraph,
    a high-resolution wide-field camera
    and a light-splitting spectrograph
    —will study the atmospheres of distant worlds, dissect the light from exploding stars and tackle mysteries such as the nature of dark energy, the enigmatic force that drives the universe’s accelerating expansion.

    Lazuli will be agile as well;
    it will be able to rapidly swivel to stare at things that go bump in the cosmic night.

    With a price tag rumored to be in the hundreds of millions of dollars, the telescope could launch before the decade is out.

    And if it is successful, the feat could signal a new way to achieve big things in the space sciences.

    “There’s a lot of good potential here,
    and it’s encouraging to see these new pathways opening for doing astrophysics,”
    says astronomer Heidi Hammel,
    vice president for science at the Association of Universities for Research in Astronomy.

    Lazuli is just one of several large projects comprising the Schmidt Observatory System

    —initiatives that Feldman characterizes as
    “risky but exciting.”

    The others are all ground-based and share a common design element in that they’re modular,
    using hundreds of small and relatively low-cost components to create much larger and more capable arrays.

    One, the
    #Deep #Synoptic #Array, will study the sky at radio wavelengths,
    while its counterpart,
    the #Argus #Array, will observe in visible light.

    A third smaller-but-scalable
    #Large #Fiber #Array #Spectroscopic #Telescope
    will gather spectra of cosmic targets such as exoplanets and supernovae.

    The goal, Feldman says, is for each of these projects to be doing science by 2029.
    schmidtsciences.org/focus-area

  23. Signatures of Confined and Eruptive Solar Flares in Microwave Spectra by E. W. Cliver et al. Solar flares are generally divided into two classes: eruptive flares (with associated coronal mass eject...

    #Uncategorized #Coronal #Mass #Ejection #(CME) #microwave #emission #Very #Large #Array #(VLA)

    Origin | Interest | Match
  24. Both pools are degraded now, great...

    Alpha is resilvering, so all good

    Beta's clicking drive finally gave enough checksum errors to be considered degraded, and a replacement has been ordered, it's a patience game

    #homelab #server #nas #omv #zfs #harddrive #raid #array

Share on Mastodon

Enter the server where you have an account.