recencyeffect

u/recencyeffect


r/bulgaria•

Не успях да открия дали този въпрос е задаван преди - има ли лесен начин да се спрат всички нежелани позвънявания от сорта на "каним ви на представяне на нашите продукти, които не ви интересуват изобщо", и подобни. Мисля не са някакви константни телефони или компании.

E: благодаря за отговорите, досега никой не е споменал да може да стане нещо през оператора, така че предполагам няма такъв начин.

520

r/WebComponents•

Anyone else find it really unfortunate that slots cannot be used in attributes?

This really makes web components only half useful, imo.

Consider the following

<teacher id=":(">
    <a href="teacher-url">teacher-name</a>
    <img src="teacher-photo">
</teacher>

The attributes here are as much part of the structure as the sub elements.

I realize attribute syntax is a bit limiting here, and it is simpler for slot elements, which can have their own attributes, etc. Any potential syntax for "attribute slots" is bound to be ugly/incongruous with current. tbh the fact that the slotted element of an instance can be whatever, is equally disconcerting

12


r/Common_Lisp•

Hey, I am having an issue I cannot figure out with socket communication.

I have two servers talking to each other, one receives files from another place, sends a request to the second server, which then "pulls" the files in dedicated sockets by notifying the front server with the ports it opened. This happens in lparallel tasks.

The problem is that the file is received fine in the "front" server, but always truncated in the backend server, which means the transfer described, fails. It appears that probably only the last buffer does not get copied. So likely some condition is being triggered? errors are caught by an lparallel:task-handler-bind, but there are no errors.

Basically on bot

94

r/Common_Lisp•

Could you share any impressions with CL RPC libraries? So far frpc2 seems promising, though it has not been changed in 6 years.

My use case is a pretty simple data model (only a few fields), but also file attachments sent in the request.

1015


r/orgmode•

At work I use Windows. Today I had a bit of time and checked the existing ob-powershell by rkiggen. It was somewhat incomplete, but was not missing too much. There were also some changes to babel in the meantime, `org-babel-get-header` had been removed.

I guess to make this actually useful (e.g. make it available on melpa) it would need some packaging.

https://github.com/MoisMoshev/ob-powershell

Already submitted a pull request upstream, but the repo has not been touched in 5 years so...

115

r/Common_Lisp•

Planetarium is a simple Solar system model of the planets rotating around the Sun.

It uses SDL2 and OpenGL for graphics.

This was a fun project, which also really hooked me to Common Lisp (had used it in small capacities before) and CLOS.

I think it might contain useful examples for people learning CL, which took some digging and Stack Overflow.

github: https://github.com/monomon/planetarium

There are many things I would like to add eventually:

  • planets rotating around own axis
  • lighting
  • moons and rings, asteroid belts
  • better controls
254

r/Common_Lisp•

Hey, I'm working on a project that is going to need i2c, and was unable to find a library for it on the internets. I found spidev, which contains almost everything needed - a cffi implementation of ioctl, etc.

My question is, are you aware of an existing library for i2c? Otherwise I am going to write one - there is plenty of reference online, in spidev and in i2c libraries in other languages, so it should be very straighforward.

The other possibility is adding this to the spidev library, though that seems focused on spi… Perhaps u/Shinmera should answer this :)

Any thoughts?

42