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]
```
#array — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #array, aggregated by home.social.
-
-
A unified world model in human posterior parietal cortex https://www.biorxiv.org/content/10.64898/2026.10.30.762936v2 by @NancyKanwisher et al.; likely also involved in (learning) "blind" reaching and grasping with The vOICe vision BCI? #Utah #array #BCI #neuroscience
-
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
``` -
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 -
https://www.laviezine.com/1635045/mike-mcdaniel-embracing-life-as-chargers-screen-averse-sneakerhead/ Mike McDaniel embracing life as Chargers’ screen-averse sneakerhead #array #AthleticShoe #chargers #EliteQuarterback #foot #future #JimHarbaugh #JustinHerbert #life #LosAngeles #ManhattanBeachHome #MikeMcdaniel #phone #room #ScreenAverseSneakerhead #Time
-
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
https://www.rawchili.com/nfl/994213/ -
Mike McDaniel embracing life as Chargers’ screen-averse sneakerhead https://www.rawchili.com/nfl/994213/ #array #AthleticShoe #Chargers #EliteQuarterback #foot #Football #future #JimHarbaugh #JustinHerbert #life #LosAngeles #LosAngelesChargers #LosAngeles #LosAngelesChargers #ManhattanBeachHome #MikeMcDaniel #NFL #phone #room #ScreenAverseSneakerhead #time
-
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
https://www.youtube.com/watch?v=NhjR6H258zs
#programming #arcade #capcom #kill #switch #encryption #gate #array #infosec #CR2032
-
#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 @ https://wordofthehour.org/r/form
-
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.txtaaa bbb ccc x.txt
ddd "" "" y.txtWe 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.
-
The Square Kilometre Array Will Revolutionize the Hunt for Alien Life
https://atlas.whatip.xyz/post.php?slug=the-square-kilometre-array-will-revolutionize-the-hunt-for-alien-life
Breaking: <p>With new technologies come new opportunities
#revolutionize #kilometre #square #array -
-
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...
https://magicmarcy.de/java-arrays-mit-mehreren-dimensionen-verstehen-ohne-kopfschmerzen
#Array #Java #Arrays #Dimensionen #Block #Schleifen #Matrix #Raster #Schichten #Syntax #Multidimensional #Coding #Programming
-
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 -
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
-
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 -
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 -
Redis 8.8: New array data structure, rate limiter, performance improvements
https://redis.io/blog/announcing-redis-8-8/
#HackerNews #Redis8.8 #array #data #structure #rate #limiter #performance #improvements
-
New desalination tech might bring needed fresh water to California
An elephant standing full weight on a smartphone. That’s the pressure 1,400 feet underwater that a startup hopes…
#NewsBeep #News #US #USA #UnitedStates #UnitedStatesOfAmerica #Environment #Agency #array #California #companyoceanwell #Cost #davidpedersen #desalinationplant #Drought #GeneralManager #lasvirgenesreservoir #oceanwell #pressure #robertbergstrom #Science #Technology #water
https://www.newsbeep.com/us/680174/ -
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...
https://magicmarcy.de/java-arrays-mit-mehreren-dimensionen-verstehen-ohne-kopfschmerzen
#Array #Java #Arrays #Dimensionen #Block #Schleifen #Matrix #Raster #Schichten #Syntax #Multidimensional #Coding #Programming
-
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 -
The United States Magnetotelluric Array And The National Impedance Map
--
https://doi.org/10.1029/2024RG000850 <-- shared paper
--
https://eos.org/features/magnetic-storms-induction-hazards <-- shared ‘overview’ EOS 2014 technical article
--
https://doi.org/10.3389/fspas.2025.1742847 <-- shared technical editorial
--
#GIS #spatial #mapping #spaceweather #US #magnetotelluric #stations #monitoring #network #array #USMTArray #opendata #instrumentation #qualitycontrol #dataprocessing #archiving #electricalconductivity #3D #model #modeling #geology #geomagnetism #crust #mantle #CONUS #visualisation #geomagnetic #infrastructure #electricity #electricalgrid #utilities #publicgood #fedscience #fedservice #risk #hazard #mitigation #impacts #geothermal #mineralresources #exploration #magneticstorm #geoelectrichazard #earthscience #NationalImpedanceMap #conductivity #research -
🚀 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. ⏳😴
https://antirez.com/news/164 #Development #Adventure #Battle #Tech #HackerNews #ngated -
Redis array: short story of a long development process
#HackerNews #Redis #Array #Development #Story #Long #Process #Tech #News
-
[Beginner] How do I save previous input in variables/arrays?
-
[Help with C] Is it possible to let the user define the scope of an array and the values of its elements?
-
[C programming] Why and how is the allocated bytes affecting these unexpected behaviors?
-
[C] What is the relationship between string length, allocated memory size and overflow?
-
#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 @ https://wordofthehour.org/r/form
-
MEMS Array Chip Can Project Video the Size of a Grain of Sand
https://spectrum.ieee.org/mems-photonics
#HackerNews #MEMS #Array #Chip #video #technology #innovation #microelectronics #photonics #grain #of #sand
-
Поиск в коллекциях или когда O(N) быстрее O(1)
На собеседованиях мы слышим или говорим сами, что поиск в массиве медленнее, чем в хеш-таблице. Кто-то даже вспоминает, что поиск в массиве имеет линейную сложность или O(n), а в хеш-таблице — константную O(1). Но работает ли это на практике? Что, если есть ситуации, когда поиск в массиве оказывается быстрее? Давайте не будем торопиться с выводами.
-
Долгожданный оператор _Countof
Одно из недооценённых событий уходящего года деревянной змеи - в проекте стандарта языка С появился оператор числа элементов. Как заметил один мудрый товарищ, Алексей Годин, даже полвека ещё не прошло, а наконец, дождались.
-
Coretta Scott King’s Search Into Truth Of MLK Death In The Works From Byron Allen & Ava DuVernay
#News #Politics #AllenMediaGroupMotionPictures #ARRAY #AvaDuVernay #ByronAllen #CAA #DavidOyelowo #MartinLutherKingJr #Origin #Selmahttps://deadline.com/2026/01/martin-luther-king-death-movie-ava-duvernay-1236704391/
-
https://www.europesays.com/pt/233338/ Tem parede para esta Smart TV? É que são 65 polegadas em 4K por menos de 360€ – Tecnologia #Allm #Array #BomPreço #Ciência #CiênciaETecnologia #CiênciaEtecnologia #Hisense #Portugal #Preços #PT #Science #ScienceAndTechnology #ScienceAndTechnology #SmartTV #Technology #Tecnologia #televisão
-
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
-
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.
https://www.schmidtsciences.org/focus-area-astrophysics/ -
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 -
-
Array.from() With Sparse Arrays?!
Array.from() has hidden behavior with sparse arrays! Creating arrays this way creates something unexpected. Watch this!
#javascript #javascripttricks #codingtips #programmingtutorial #array.from #javascriptquiz #codingchallenge #javascriptshorts #javascriptbugs #sparsearrays #javascriptwtf #arrayconversion