mechazoidal + stackoverflow   130

Is it possible to mix TypeScript & ClojureScript - Stack Overflow
"The output of ClojureScript is JavaScript which can define React components and arbitrary code. For example if you use Reagent 0.6.0, the output of create-class can be used directly as a component.

But! Mixed mode project build configuration is challenging. One approach is to make the ClojureScript page a library that is required by your host project, in which case you can build and test your ClojureScript component independently, then package up the output file as a dependency for your main project. This has the advantage of being able to quickly iterate on developing the component (using figwheel/devcards)."
clojurescript  javascript  webdev  stackoverflow 
18 days ago by mechazoidal
Does it make sense to keep different SSIDs for 2.4GHz and 5GHz wireless networks? - Super User
"If you have high quality Wi-Fi client devices, it's best to use the same SSID for both bands so your clients will automatically roam to the band that suits their needs best. If you have low-quality Wi-Fi client devices, you might need to second-guess their band-choice decisions, so you might want to have separate SSIDs."

"Most wireless stacks do not consider these networks to be different to each other, so 2.4GHz has the same weighting as 5GHz. If this isn't important to you, then keeping the SSIDs the same will mean it will pick whichever it sees first."
wifi  stackoverflow  answer  networking 
5 weeks ago by mechazoidal
When should I use git pull --rebase? - Stack Overflow
"when your changes do not deserve a separate branch" (ie, you commit on top of the remote branch)
"Whether it's dangerous or not is the question of whether you are treating local and remote branch as one inseparable thing. Sometimes it's reasonable (when your changes are small, or if you're at the beginning of a robust development, when important changes are brought in by small commits). Sometimes it's not (when you'd normally create another branch, but you were too lazy to do that). But that's a different question."

(But of course note garybernhardt's opinions on 'pull)
git  stackoverflow  tips 
8 weeks ago by mechazoidal
Why do game developers prefer Windows? - Software Engineering Stack Exchange
This answer is more of a OpenGL vs. Direct3D history: covers MiniGL, how horrible D3D 3.0 was, the clusterf- when shaders came and the ARB gave it up to extensions, Longs Peak, etc.

"A tale of missed opportunities, gross stupidity, willful blindness, and simple foolishness."
opengl  directx  windows  stackoverflow  history 
may 2019 by mechazoidal
a flexible data structure for geometries - Game Development Stack Exchange
"geometric representation are usually chosen based on two basic factors": topological and algorithmic
piperesearch  datastructures  stackoverflow  algorithms 
may 2019 by mechazoidal
OpenGL 3.+ glsl compatibility mess? - Stack Overflow
3.1 is modern.
Any hardware that supports OpenGL 3.1 is capable of supporting OpenGL 3.3.
Also note checking GLSL version, and how he modifies the official opengl shader-based tutorials to match
opengl  stackoverflow  programming  reference 
march 2019 by mechazoidal
what does "malloc_trim(0)" really mean? - Stack Overflow
"In classic glibc form, malloc_trim has been freeing OS pages in the middle of the heap since 2007, but this is documented nowhere. Even the function comment in the source code itself is inaccurate."
c  programming  gnu  memory  stackoverflow 
march 2019 by mechazoidal
society - What would be the difference in the reaction between trained and untrained people during an emergency situation? | WorldBuilder Stack Exchange
Note the responses: everything from "6mo conscription/basic training probably won't help", "individual reactions will vary greatly"(with references to Ft Hood shooting and Florida school shooting), to Gary Klein's research
reference  stackoverflow  psychology  emergency 
february 2019 by mechazoidal
What is the difference between the vim snippets plugins? | StackOverflow
Author of mu-template, one of the oldest vim snippets plugins. Note that it is one of the few that allows templates to include other templates, along with allowing the use of "StakeHolders" plugin to enable "tied placeholders"(modifying one named placeholder modifies other placeholders with the same name)

facme: is there any sort of CLI-based snippet generator? like if you called it from acme or a ":!" command: the goal is not to tie it to the editor. OTOH, if you want to visually step through each snippet item(like neosnippet/deoplete), how could you do that with a unix command?
(of course, consider that sam might be able to do something like this with its command-language and structural regular expressions)
vim  facme  stackoverflow 
january 2019 by mechazoidal
Why do C to Z80 compilers produce poor code? - Retrocomputing Stack Exchange
A nice example to use when someone says "but the C model is how computers work deep-down, isn't it?"

"Array indexing is inefficient since there's no reasonable base + offset addressing mode that can use a variable offset, which means the compiler needs to generate code to do the address calculation.

Similarly, it's awkward to save and restore function arguments on the stack because there's no stackpointer + offset addressing mode. The same goes for the local variables of non-leaf functions.

Paucity of truly general purpose registers. Most registers have specific uses which complicates register allocation.

The ISA makes it difficult to mix 8-bit and 16-bit operations."
c  programming  retrocomputing  assembly  hardware  stackoverflow 
november 2018 by mechazoidal
Best way to power a microcontroller, SMPS vs Linear Regulator - Electrical Engineering Stack Exchange
"[buck converter for 12V adapter feeding MCU] is indeed much more power efficient, especially if there is a big difference in the input voltage vs output voltage, which is your case here. The buck will output almost the same power than it takes at the input (efficiencies are typically ~80-90%), whereas the linear regulator will take as much current as input as it needs to supply (which means that efficiency is Vout/Vin, something like ~27-44% in your case, which is very bad). Yes, this is actually the only reason why linear regulator can be a bad choice: the efficency (and your computation of dissipated heat is fine)."
stackoverflow  electronics  power 
june 2018 by mechazoidal
c++ - Do cereal and Boost Serialization use zero-copy? - Stack Overflow
"That said, don't assume zero-copy will always be faster. memcpy() can be pretty fast, and the rest of your program may dwarf the cost. Meanwhile, zero-copy systems tend to have inconvenient APIs, particularly because of the restrictions on memory allocation. It may be overall a better use of your time to use a traditional serialization system.

The place where zero-copy is most obviously advantageous is when manipulating files, since as I mentioned you can easily mmap() a huge file and only read part of it. Non-zero-copy formats simply can't do that. When it comes to networking, though, the advantages are less clear, since the network communication itself is necessarily O(n)."
(From capnproto author)
serialization  programming  piperesearch  stackoverflow 
february 2018 by mechazoidal
I can't figure out how to animate my loaded model with Assimp - Game Development Stack Exchange
Description of how to load in skeletal animation via assimp: it's trickier than you think, mostly due to differing formats!
stackoverflow  piperesearch  assimp  reference 
february 2018 by mechazoidal
CMake: Of what use is find_package() if you need to specify CMAKE_MODULE_PATH anyway? - Stack Overflow
On the difference between Module and Config mode:
Module is for deps INSIDE your project.
Config is for deps OUTSIDE.
cmake  stackoverflow 
february 2018 by mechazoidal
Is Fused Location Provider good choice? | Stack Overflow
oh look, another way Google would really really like to know where you are:
"stated very clearly that, the Google Play services location APIs are preferred over the Android framework location APIs (android.location) as a way of adding location awareness to your app. If you are currently using the Android framework location APIs, you are strongly encouraged to switch to the Google Play services location APIs as soon as possible. "
privacy  android  stackoverflow 
september 2017 by mechazoidal
Why does smartphone GPS find its position much faster than a GPS module? - Electrical Engineering Stack Exchange
mostly on time-to-first-fix, and various tips/tricks smartphones use to keep it. Among other things, definitions:
- Downloading almanac+ephemreris from network: "MSB Assisted GPS"
- "capture fragments of signal and pass them over the internet to a server with a very good software correlator, and complete almanac/ephemeris to examine." : MSA Assisted GPS.
gps  radio  stackoverflow  cellphone  reference 
august 2017 by mechazoidal
Using Dictionary.app’s thesaurus function programmatically on OSX (preferably via Ruby) | StackOverflow
Unfortunately there's no built-in way to do it(only via Dictionary Services in AppleScript). This answer includes sample source code for a CLI program for 10.7+
osx  tools  writing  stackoverflow  thesaurus 
june 2017 by mechazoidal
How to input video (frames) into a GLSL shader | StackOverflow
basically, you'll replace the texture every frame with the new video frame, and display it on a quad
video_editor  stackoverflow  glsl  piperesearch  shaders  opengl 
june 2017 by mechazoidal
Is there any way to view the currently mapped keys in Vim? | Stack Overflow
":nmap for normal mode mappings
:vmap for visual mode mappings
:imap for insert mode mappings"
(see :help map)
"do not miss it's verbose form (:verbose map) which shows where the mapping(s) was defined (see :help map-verbose)."
vim  tips  stackoverflow 
may 2017 by mechazoidal
science based - Mineral that explodes when cooling down - Worldbuilding Stack Exchange
More intriguing ideas:
- Iron's allotropic form
- Prince Rupert's Drops
- methylcellulose
- steel balls used in grinding mill / SAG mill
reference  worldbuilding  stackoverflow  physics 
may 2017 by mechazoidal
physics - Is it possible to simulate Brownian motion in Blender? - Blender Stack Exchange
note the trick of using particles to influence motion of an object's vertices, but also note the python code required(as in, gaaah)!
piperesearch  3d  animation  tips  stackoverflow  blender 
may 2017 by mechazoidal
Vim: Delete buffer without losing the split window
several options: bufkill.vim, defining a new 'Bd', etc.
vim  tips  stackoverflow 
april 2017 by mechazoidal
What is the frame of reference for orbital speed? - Space Exploration Stack Exchange
"TL;DR: Whatever you want. Conceptually, all frames of reference are equally valid. However, some frames are computationally better than others, depending on context. [...] What is this thing that you call an "inertial frame of reference"? As a supervisor said to me almost 40 years ago, _name one_. [...] There are two challenges with regard to defining a Newtonian frame of reference, the placement of the origin and the placement of the axes. It's important to keep in mind that all frames of reference are equally valid. Using a quasi-inertial solar system barycenter frame to describe the motion of a satellite in low Earth orbit doesn't make any sense. An Earth-centered inertial perspective is a much more sensible perspective."
physics  space  stackoverflow  reference  gamedev 
april 2017 by mechazoidal
Differences between git submodule and subtree | Stack Overflow
"submodule is a better fit for component-based development, where your main project depends on a fixed version of another component (repo)." [a _link_]
"subtree is more like a system-based development, where your all repo contains everything at once, and you can modify any part." [a _copy_]
git  tips  stackoverflow 
april 2017 by mechazoidal
stealth - If all fighter jets become stealthy, how will they fight each other in the future? In dogfights? - Aviation Stack Exchange
Exhaustive answer: mostly "stealth isn't a killer app", "missiles are very very good now", and "stealth vs. sensors is a tradeoff constantly being made"
aviation  aerospace  military  stackoverflow  comment  reference 
april 2017 by mechazoidal
How do I get rid of horizontal split in dwm | StackOverflow
it turns out the concept is a little more involved than you'd think
stackoverflow  dwm  x11 
march 2017 by mechazoidal
Near-Duplicate Image Detection
"What's a fast way to sort a given set of images by their similarity to each other."
programming  stackoverflow  computer_vision  images 
december 2016 by mechazoidal
Readiness vs. Completion Async IO Memory usage? | Stack Overflow
@steveklabnik: "The Windows [IO] model is named IOCP, and the C in there is not for “completion”, but it’s how I remember which is which, personally."
windows  iocp  io  programming  stackoverflow 
september 2016 by mechazoidal
git replacing LF with CRLF | Stack Overflow
it's 2016 and git still has hang-ups with non-unix platforms
answer  git  stackoverflow 
august 2016 by mechazoidal
Why do Vim experts prefer buffers over tabs? | StackOverflow
"when they need to work for a while on a separate part of the project without messing with their current view, "Vim experts" load a brand new tab page."
vim  tips  stackoverflow 
july 2016 by mechazoidal
Git serve: I would like it that simple | Stack Overflow
"cd project; git daemon --reuseaddr --base-path=. --export-all --verbose"
(use "git clone git://<hostname>/ <project>" when remote cloning)
git  tips  stackoverflow 
july 2016 by mechazoidal
How does the SpaceX Falcon 9 first-stage straighten for landing? | Stack Overflow
probably one of the more comprehensive science answers on the site, especially when showing other evidence for inverted-pendulum solutions
reference  stackoverflow  rocket  science  aerospace  physics 
june 2016 by mechazoidal
united states - Are U.S companies legally obligated to maximize profits for shareholders? - Skeptics Stack Exchange
"No. Because the idea itself is too poorly defined and naive interpretations are often bad for shareholders in practice"
stackoverflow  business  legal  answer 
may 2016 by mechazoidal
shell - Useless use of cat? - Stack Overflow
not only points out that "<" can be used at the head of a pipeline, it also goes over some classic Unix design
stackoverflow  unix  tips  programming  shell 
may 2016 by mechazoidal
Mesh data structure used in popular 3D software - Stack Overflow
"One of the reasons the basic indexed mesh structure is so popular over more fancy variants like the half-edge or winged-edge rep is because the indexed mesh maps very directly to the GPU. These packages are often focused on visualizing changes in realtime, such as character deformations on a frame-by-frame basis or sometimes even topology changes. Having a data structure that maps more directly to GPU often means less time spent synchronizing your application-specific data structures with what's on the GPU, so it tends to be the most efficient if your focus is on realtime GPU visualization/interaction in a viewport.
[...]
Another reason is because these packages handle such a wide range of mesh cases, including some challenging data like 6-manifold edges, a single polygon with multiple holes, etc. An indexed mesh supports all of these cases.
[...] Sometimes a certain feature like a modeling tool that does a hefty amount of processing (ex: a decimator) might temporarily convert the indexed mesh to a different data structure like a half-edged rep for the sake of that one algorithm, converting back to the indexed mesh when it is done."
piperesearch  datastructures  stackoverflow 
april 2016 by mechazoidal
How do short URLs services work? - Stack Overflow
"You'll mistakenly hear that they create a hash of the URL in order to generate that unique code for the shortened URL. This is incorrect in most cases, they aren't using a hashing algorithm (where you could potentially have collisions). Most of the popular URL shortening services simply take the ID in the database of the URL and then convert it to either Base 36 [a-z0-9] (case insensitive) or Base 62 (case sensitive)."
stackoverflow  webdev  web  url  programming 
march 2016 by mechazoidal
Programming Scheme(Racket) with VIM - How to get started
wlangstroth/vim-racket for racket specifics
slj/tslime
guns/vim-sexp
tpope/vim-sexp-for-normal-people
stackoverflow  scheme  vim  racket  tips  lisp 
december 2015 by mechazoidal
« earlier      
per page:    204080120160

related tags

3d  advice  aerospace  algorithms  android  animation  answer  apl  app  archiving  assembly  assimp  atom  audio  aviation  awk  backup  bash  beer  billing  biometrics  blender  business  c  c++  caldav  cellphone  certificate  chrome  clojure  clojurescript  cmake  collaboration  comment  comparison  computerscience  computer_vision  config  cooking  creditcard  cryptography  cscope  database  datastructures  debugging  design  devicetree  directx  discussion  diy  dlna  dsec  dtp  dwm  ebooks  education  electronics  emacs  embedded  emergency  epub  examples  facme  flash  food  forum  freertos  gamedev  git  github  glsl  gnu  google  gps  graphics  groupware  gsm  hardware  haxe  history  hosting  howto  html  http  humor  ical  images  io  iocp  ios  javascript  j_language  language  latex  learning  legal  libraries  linux  lisp  list  macports  manufacturing  martial_arts  math  memory  military  minikanren  music  networking  nginx  nuttx  occam  openfl  opengl  optimization  osx  parser  physics  piperesearch  pmz  pointers  power  privacy  programming  prolog  pseudocode  psychology  pubsub  racket  radio  random  raspberry_pi  rebol  reference  rendering  repo:github  resource  retrocomputing  rocket  rss  RTOS  scenegraph  scheme  science  scripts  security  serialization  sexp  shaders  shell  smalltalk  space  spki  squeak  stackoverflow  standards  sysadmin  technique  tex  texture  textures  theory  thesaurus  threejs  time  time_machine  tip  tips  tools  twitter  typography  unite  unix  url  versioning  video_editor  vim  vm  vulkan  web  webdev  websub  wifi  windows  worldbuilding  writing  x11  x86  xcape  xkb 

Copy this bookmark:



description:


tags: