Migration en urgence, failles en pagaille et retour de CSS-Tricks
Comments
Join the discussion →Comments
Join the discussion →Comments
Join the discussion →追放されたチート付与魔術師は気ままなセカンドライフを謳歌する。 ~俺は武器だけじゃなく、あらゆるものに『強化ポイント』を付与できるし、俺の意思でいつでも効果を解除できるけど、残った人たち大丈夫?~ 業務用餅/六志麻あさ/kisui 魔力を使い武器や防具を強化する強化魔術師レインは、ある日ギルド内の全て...
Join the discussion →I have data as such: Person Color 1 Color 2 Color 3 Bob Red Blue Jack Red Orange Amy Green Yellow Blue Is there a formula which can produce something like the following: Color Person 1 Person 2 Red Bob Jack Blue Bob Amy Green Amy Yellow Amy Orange Jack which has each unique colour in a single column, and all the names that are associated with them in additional columns?
Join the discussion →I have a setting which is essentially a high fantasy world with dwarves, elves, magic, etc. It also has technology, mid-20th century around WW2, although magical assistance has accelerated the development of some tech and slowed that of some other. Most of the nations shown deploy "war mages" in their armies, which are highly trained magic users who can serve as versatile medics, powerful combat casters, or deploy in groups to cast ritual spells with effects such as protecting an entire area from enemy fire. One nation, essentially a religious state on a holy crusade, uses paladins, which are
Join the discussion →In my world there are two groups that don't get along, but aren't actively hostile or in conflict with each other. For simplicity I'll call them Group A and Group B. There's someone in Group B, I'll call them Instigator, who would have the opportunity to greatly benefit if Group A and Group B were to be in active conflict with each other, but lacks the influence within Group B to actually start anything. When a member of Group A is detained/ captured by Group B, Instigator decides to fake evidence of the captured group A member being mistreated/ tortured and send it to Group A in the hope that
Join the discussion →Descripción del problema Estoy implementando una vista previa de cámara personalizada usando CameraX 1.3.0 integrada dentro de un AndroidView (PreviewView) en Jetpack Compose. Al alternar entre la cámara frontal y la trasera (CameraSelector.LENS_FACING_BACK a FRONT), llamar a cameraProvider.unbindAll() ocasionalmente lanza un error IllegalArgumentException: No supported surface combination is found o provoca un fallo en la vinculación del ciclo de vida. Código @Composable fun CameraPreview( lensFacing: Int, onImageCaptured: (Uri) -> Unit ) { val context = LocalContext.current val lifecycleOwne
Join the discussion →Tengo este ejemplo en PostgreSQL: CREATE TEMP TABLE ventas ( id INTEGER PRIMARY KEY ); CREATE TEMP TABLE detalles ( id INTEGER PRIMARY KEY, venta_id INTEGER REFERENCES ventas(id), cantidad INTEGER, activo BOOLEAN ); INSERT INTO ventas VALUES (1), (2), (3); INSERT INTO detalles VALUES (1, 1, 2, TRUE), (2, 1, 5, FALSE), (3, 2, 4, FALSE); Necesito obtener todas las ventas y sumar únicamente las cantidades de sus detalles activos. Si una venta no tiene detalles activos, el total debe ser cero. Probé: SELECT v.id, COALESCE(SUM(d.cantidad), 0) AS total FROM ventas AS v LEFT JOIN detalles AS d ON d.v
Join the discussion →I'm pulling records from an API into BigQuery using Python. The API only has limit and offset, so I'm just fetching 100 records, adding 100 to the offset and doing the same thing until there are no more records. This is the part I'm using: offset = 0 records = [] while True: r = requests.get(url, params={"limit": 100, "offset": offset}) data = r.json()["records"] if not data: break records.extend(data) offset += 100 I noticed some duplicate IDs in BigQuery and checked the responses. A few IDs were actually returned on different pages. The API sorts by newest first, and records get added all th
Join the discussion →Erreur 403 | #99 - PHP2Shell exploitées et les modèles IA backdoorés Failles PHP2Shell exploitées, LiteLLM de nouveau compromis, modèle Qwen tentant d’envoyer un fichier vers Pékin, faille Brotli, 11,7 millions de comptes Capcom exposés, etc. Comments
Join the discussion →I am a US citizen with a long-term residence permit in Czechia. I recently traveled to the US for a short-term stay, and am in the US now. When traveling, I forgot my residence permit, though brought my passport. The border agent at exit control let me through after I presented a photo of my permit and return flight, but almost did not, and said that it was very important I remember the permit next time. Will I have difficulty re-entering Czechia, and is there anything I can do beforehand to mitigate?
Join the discussion →I need a way to get the name of a struct instance using C++. Something along the line of: Below example use the value "foo". struct foo {}; std::string name = nameof(foo); name should equal "foo".
Join the discussion →I need a way to get the data type of a value using C++. Something along the line of: Below example use the value "foo". struct foo {}; std::string name = nameof(foo); name should equal "foo".
Join the discussion →Platform: iPad Requirement: project supporting two languages, I.e. a c++ function called from Python What I've tried so far: Web IDE that compiles C++, but I don't think it supports two languages. I would like it if I could use just one app to compile, but if not, please explain how I would go about combining the 2 languages. What tooling would fill my needs?
Join the discussion →I am trying to compute the diagonal of the Fisher information matrix. I found this code that appears to do just that, but there are some issues with the code. First consider the code in its original form: estimated_fisher = {} for n, p in model.named_parameters(): estimated_fisher[n] = torch.zeros_like(p) model.eval() for i, (input, target) in enumerate(dl, 0): model.zero_grad() output = model(input.to(device)) label = target.to(device) loss = F.nll_loss(F.log_softmax(output, dim=1), label) loss.backward() # populate grad data # accumulate all the gradients for n, p in model.named_parameters()
Join the discussion →Comments
Join the discussion →Comments
Join the discussion →Over the years I've been using mostly Apache, then I've moved to Nginx, but lately I dabble with Litespeed. I think Apache was left behind, I really can't see any/much reason to use it anymore. Nginx's main strength is that it's well known and pretty easy to work with. Litespeed is fast and lightweight. What do you choose - what server and why?
Join the discussion →Comments
Join the discussion →Comments
Join the discussion →J’ai fait récemment deux découvertes étonnantes sur le réseau social du groupe bancaire dans lequel je travaille. Il existe un groupe de veille sur l’open source et les alternatives aux Gafam ; Ce groupe a récemment mis en ligne une conférence de découverte des distributions alternatives pour ordiphone, des ordiphones « différents », et enfin d’une autre manière de se procurer un ordiphone (entre autres). Cette manière différente est de le louer à la SCIC Commown. J’avoue que me serais plus attendu à faire cette découverte sur Linuxfr qu’au boulot… Quelques détails complémentaires dans la dépê
Join the discussion →紹介 手を動かしながら実際の攻撃と防御を体験できる、Webアプリケーションセキュリティ学習書の決定版! Webアプリケーションセキュリティの定番書、8年ぶりの全面改訂。 脆弱性対策からセキュリティ要件の組み立て方まで、事業を守るための実践知を体系的に学べる。 本書は、2011年の初版以来、Webアプリケーションセ...
Join the discussion →Comments
Join the discussion →Comments
Join the discussion →Pyright warns me when the annotated return type of a function is narrower than the actual return type. However, it doesn't warn me when it's broader. Example: class User: def __init__(self, id: int) -> None: self.id = id users: list[User] = [] def get_user(id: int) -> User | None: # forgot to remove `| None` user = next((u for u in users if u.id == id), None) if user is None: raise ValueError(f"user {id} not found") return user I'd changed the body of get_user() to always return a User, but had forgotten to update the annotation. Pyright doesn't warn me that User | None could be narrowed to Us
Join the discussion →submitted by apftwb to books 25 points | 2 comments Monthly SciFi short story publication since 2006. Each month they release about 6-8 short stories (and a few non-fiction articles). The stories always feel fresh and varied from authors around the world. They don’t shy away from modern topics, but try not to play the same old dystopian tropes. It can be lighthearted or heavy you never know what you will get. Even if the rare story doesn’t hit, I never finished a story and felt like I regretted reading it. Its free on the website, but if you want the epub or a physical copy, it costs a few buc
Join the discussion →「また明日 夜食作りにくるから──」 人気ガールズバンド『クロチェッタ』のマネージャーの岩戸は忙しい日々を過ごしていた。 激務の果ての徹夜明け、机の上で少し寝てしまったとある夜。 気づくと目の前には手作りの夜食とバンドメンバーの凪の姿が…!? 疲れた日々のちょっとした“幸腹”ーー。 クールなバンドガールとの...
Join the discussion →Comments
Join the discussion →Comments
Join the discussion →I have this script in my personal stylus CSS yet it still doesn't work at least for the case with reddit upvote and comment, and search button * { border-radius: 0 !important; } .button { border-radius: 0 !important; } so I tried to make my border radius 0 for the blocky feeling but for some reason this one doesn't work. I thought it was the canvas problem like Instragram story circle around profile, but as I inspect this one is just css border radius in .button but my css should've override it!
Join the discussion →