News for hackers. Stuff that matters.

xcombelle

Re:Douglas Crockford Is Not Your Dad on Monday December 09, 2024 @03:31AM (#42364111)
Re:Turn your phone or tablet into a chess clock on Monday November 04, 2024 @12:51PM (#42044159)
The website has no clock. Both android and iphone lichess app has clock.
Re:Hmpl.js: Template language for fetching HTML from API on Tuesday July 23, 2024 @09:57AM (#41046090)
looks like a security nightmare.
Re:Piku – a micro-PaaS for any server on Sunday April 07, 2024 @11:13PM (#39965902)
as far as i understand, it is not based on a docker environment.
Re:DaScript: Fast and Versatile Scripting Language on Friday October 27, 2023 @12:21AM (#38034664)
Looks like the doc is written without braces. As such, I guess, that the canonical code is without braces
as far as I know in technical subjects google started to deliver farm content, a little bit after the happening of chatgpt.
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @02:15PM (#37226591)
It is very likely that your coworkers will be able to use your Python functions.
Re:Microsoft is bringing Python to Excel on Tuesday August 22, 2023 @01:49PM (#37226243)
python pandas has pivot tables https://pandas.pydata.org/docs/reference/api/pandas.pivot_ta...

I don't know if it fits your needs

Re:There are only 3 types of data structures on Monday August 14, 2023 @01:17AM (#37117697)
" I can't imagine anything else you can possibly store about relative elements besides index and order (and nothing). Graphs are their own other planet, and I don't think we can easily say much about them. So the 3 data structure types you can have are:

1. indexed data structures with an O(n) worst-case operation

2. order-less data structures with an O(1) worst-case operation

3. sorted data structures with an O(log n) worst-case operation

That's it. Let me know what you think"

I disagree.

sorting is a O(n*log(n)) worst-case operation for example.

Re:Python: Uncovering the Overlooked Core Functionalities on Wednesday July 26, 2023 @07:16AM (#36875792)
How I eventually resolve this kind of problems.

    minimum = +Inf
    for b in bar.naz():
        if not some_filter(b):
            continue
        b = some_op(b)
        minimum = min(minimum, b)
    foo(minimum)
Yes, plain old procedural python. data flow from top to bottom. it allows `print` debugging, very usefull to debug some_filter and some_op are broken.
Re:How the Tour de France became a $100M business on Saturday July 08, 2023 @02:29PM (#36647311)
tour de france organisation has a long tradition to do more than closing eyes and even encourage doping/cheating practice (for exemple making the race harder and harder) it is a fair part of how it became a $100M business. source: i’m french
Re: on Thursday June 22, 2023 @01:13AM (#36428222)
this article miss a whole part of the story. among other things, these person came back from a warzone. looks at https://fr.wikipedia.org/wiki/Affaire_du_8_décembre_2020
Re:Let’s Make a Deal–With Python on Friday June 02, 2023 @12:15PM (#36167062)
I would say that 20 trials with a friend is enough to show that changing strategy is superior.
Re:Go with PHP on Thursday May 11, 2023 @08:09AM (#35900993)
I just don't get why people in php use lazy comparison when you know that "0e4"=="0e5" in php.

and yes, Laravel use lazy comparison (hundreds of times). And yes at least three bugs where caused by this use.

see: https://github.com/laravel/ideas/issues/698 for why I'm a bit grumpy with php ecosystem

Re:The High Price of Abstraction in Python on Monday May 08, 2023 @04:06AM (#35859187)
1- try to run the last version of python, there is speed improvement in 3.10 and 3.11

     >>> import sys; sys.version
     '3.10.4 (main, Dec  2 2022, 17:52:13) [Clang 14.0.0 (clang-1400.0.29.202)]'

     51.94417405128479
     37.79175686836243
     100.8145821094513
2- global variable lookup is costly in python, putting the whole thing in a main() function halves the running time

     22.97948908805847
     22.47922682762146
     59.1025867462158
link to my code:

https://gist.github.com/xcombelle/8ac84ccb276f8996ed1a458ee2...

Is the graph/SQL thing used only to manage dependencies?
that a nice project, hope you will gather enough resources to make for other language if wikipedias.
they probably had a warning of mailchimp that putting someone on a mailing list without their consent is a forbidden use of mailchimp.

source: I worked with an organization which put a lot of people in their mailchimp mailing list

Re:Why Python keeps growing, explained on Friday March 03, 2023 @03:40PM (#35014715)
did you switch from nodejs?
Re:Rows 2.0: The easiest way to use data on a spreadsheet on Friday March 03, 2023 @06:33AM (#35008229)
if you need only an engine which does formula evaluation and update of dependency when a value changes, it doesn't look that hard to implement.
Re:DeepMind has open-sourced the heart of AlphaGo and AlphaZero on Wednesday February 15, 2023 @05:32AM (#34802079)
actually it is not the original code of alphazero , the original code was tensorflow/TPU https://en.wikipedia.org/wiki/AlphaGo_Zero#Training and this code is in JAX
Re:What the EFF Is Gemini? on Wednesday January 18, 2023 @11:21AM (#34428717)
one of the "feature" of ads is that they track you in a cross website way. and as no having cookies & co, gemini makes this job a lot harder for an advertiser.
>Also Safari has monopoly status for everyone using an iPhone. The people on iPhone simply can't pick another browser, because Apple won't let them.

i have an iphone with safari, firefox, firefox focus and chrome, ...

Re:Why is Lichess free? (2014) on Saturday December 24, 2022 @06:04AM (#34115800)
definitely out of date,

see https://lichess.org/about for up to date information

Re:Movie fans can sue over misleading trailer, says US judge on Saturday December 24, 2022 @05:39AM (#34115669)
the fact that screenwriter is framed as the filmmaker is definitely a mistake, it is not a convention of french culture. (I'm french). this article on the same subject https://www.rtbf.be/article/des-fans-d-ana-de-armas-reclamen... for example give credit to danny boyle as the filmaker
Re:Delimiter-first code on Friday December 09, 2022 @06:39AM (#33920221)

    sections: [
        "one"
        "two"
        "three"
    ]
and

    sections: [
        "one"
        ["two" "three"]
    ]
exists already and is named rebol (and their derivatives)
Re:Finding divisors of a number with Python (2019) on Thursday December 08, 2022 @03:23PM (#33912820)
if you know the number is a factorial for example

    9! = 9 × 8 × 7 × 6 × 5 × 4 × 3 × 2 × 1
you have are half way of having prime factorization, you can just to compute the prime factor from 1 to 9

and you get

   9! = 3^2 x 2^3 x 7 x 3 x 2 x 5 x 2^2 x 3 x 2 x1
Re:New Bitcoin DDoS Technique on Sunday November 27, 2022 @11:58AM (#33764383)
it is not json

  # Usual pipewire configuration variant
  wireplumber.components = [
    { name = libwireplumber-module-default-nodes , type = module },
    { name = policy-device-profile.lua, type = script/lua }
  ]

  # Actual JSON
  "wireplumber.components" : [
    { "name" : "libwireplumber-module-default-nodes" , "type" : "module" }
    { "name" : "policy-device-profile.lua", "type" : "script/lua" }
  ]

  # Even more loose syntax without separator characters
  wireplumber.components  [
    { name  libwireplumber-module-default-nodes   type  module }
    { name  policy-device-profile.lua   type  script/lua }
  ]

Older »