Most Recent Bookmarks

🔗 List Comprehension

-

List comprehensions were added with Python 2.0. Essentially, it is Python's way of implementing a well-known notation for sets as used by mathematicians. In mathematics the square numbers of the natural numbers are, for example, created by { x2 | x ∈ ℕ } or the set of complex integers { (x,y) | x ∈ ℤ ∧ y ∈ ℤ }.

List comprehension is an elegant way to define and create lists in Python. These lists have often the qualities of sets, but are not necessarily sets.

List comprehension is a complete substitute for the lambda function as well as the functions map(), filter() and reduce(). For most people the syntax of list comprehension is easier to be grasped.

See also: [[Lambda, filter, reduce and map]]

🔗 Lambda, filter, reduce and map

-

The lambda operator or lambda function is a way to create small anonymous functions, i.e. functions without a name. These functions are throw-away functions, i.e. they are just needed where they have been created. Lambda functions are mainly used in combination with the functions filter(), map() and reduce(). The lambda feature was added to Python due to the demand from Lisp programmers.

The general syntax of a lambda function is quite simple:

lambda argument_list: expression

See also: [[List Comprehension]]

🔗 Connected Papers

-

Connected papers is a unique, visual tool to help researchers and applied scientists find and explore papers relevant to their field of work. In the graph, papers are arranged according to their similarity. That means that even papers that do not directly cite each other can be strongly connected and very closely positioned. Connected Papers is not a citation tree.

🔗 Going back into anki after a two months break

-

From Equivalent_Ad_8413:

Step one: turn off adding new cards to your schedule.

Step two: decide how many cards you at in a single day. Depending on your schedule, you may have a different number on weekends than weekdays.

Step three: each day, do the number of cards you've decided on in step two

Step four: once you have less than step two number of cards, turn adding new cards to your schedule back on.

You should notice that the backlog of cards will reduce over time. But don't reset your decks. All those cards that you'd be looking at with a month or longer delay will suddenly be showing up every day again.

Or this: https://www.reddit.com/r/medicalschoolanki/comments/amj7iw/an_efficient_method_for_catching_up_on_anki/

🔗 Frantz Fanon and the crisis of mental health in the Arab world

-

What explains the resilience of institutionalisation in the Arab world? The World Health Organization (WHO) often highlights the absence of mental health on the list of national priorities in the region, shortages in psychiatric personnel, limited funds, lack of resources, as well as lack of comprehensive mental health strategies. But political myopia, amateurish governance with short-term political agendas, and instability are in reality what makes alternative psychiatric futures impossible to conceive, let alone implement. What is more striking is the lack of a critical debate about the uncontested power of medical doctors and psychiatrists, and sometimes even their complicity with authoritarian regimes. This situation contrasts with many other countries that saw the emergence (particularly in the 1960s and ’70s) of vocal critiques of psychiatric practices, including the use …

🔗 Pyxel - a retro game engine for Python.

-

[img[https://raw.githubusercontent.com/kitao/pyxel/master/pyxel/editor/screenshots/image_tilemap_editor.gif]]

Similar to [[PICO-8]] but in python.

Thanks to its simple specifications inspired by retro gaming consoles, such as only 16 colors can be displayed and only 4 sounds can be played back at the same time, you can feel free to enjoy making pixel art style games.

🔗 How Amazon Sidewalk Steals Your Bandwidth

-

Amazon Sidewalk is a new feature that enables Amazon devices like Rings and Echos to perform a similar function, but instead with neighboring wifi networks. Sidewalk empowers these devices to connect to other Sidewalk-enabled hardware at long ranges using nearby wifi and bluetooth signals. Just as the hot tub works further away from your neighbor’s home by plugging into yours, the point of Sidewalk is to extend the distance at which the devices work by plugging into nearby wifi networks away from the ‘home’ network.

🔗 «النواب» يوافق مبدئيًا على الفصل الفوري للموظفين المتعاطين للمخدرات.. ومهلة 6 أشهر قبل التطبيق

-

وافق مجلس النواب من حيث المبدأ، اليوم، على مشروع قانون مقدم من الحكومة لإلزام جهات العمل الحكومية والخاصة بإجراء تحليل الكشف عن تعاطي المخدرات لجميع العاملين بها، بشكل مفاجئ، ودوري عند التعيين والترقية، وتوقيع عقوبة الفصل الفوري على كل موظف أو عامل يثبت تعاطيه المخدرات، بدلًا من إحالته للنيابة الإدارية التي توقع عقوبات تبدأ من الخصم من الراتب وتنتهي بالفصل.

ورغم أن مشروع القانون يبدو كرد فعل من الحكومة والبرلمان على حوادث القطارات الأخيرة، بعد ثبوت تعاطي عدد من السائقين والموظفين للمخدرات، إلا أن تقرير لجنة القوى العاملة بالبرلمان أوضح أن الحكومة أرسلت المشروع للمجلس قبل عامين، في آخر مايو 2019، وأن مجلس النواب بتشكيله السابق نظره قبل انتهاء مدته، وبعدها أعادت الحكومة، في يناير الماضي، مطالبة المجلس بتشكيله الحالي بإقرار المشروع، وهو ما قامت على إثره …

🔗 [Guide] How to remove DRM

-

<>DeDRM tools for ebooks

This is a repository that tracks all the scripts and other tools for removing DRM from ebooks that I could find, committed in date order as best as I could manage. (Except for the Requiem tools for Apple's iBooks, and Convert LIT for Microsoft's .lit ebooks.) This includes the tools from a time before Apprentice Alf had a blog, and continues through to when Apprentice Harper (with help) took over maintenance of the tools. <<<<

🔗 The Soviet “Doctors' Plot”—50 years on

In early 1953 Stalin planned to stage a show trial of several doctors, most of whom were Jewish and who were falsely accused of acting against the state—a trial that underlined Stalin's anti-Semitism

Despite the state's exoneration of the doctors immediately after Stalin's death, persistent anti-Semitism in the Soviet Union contributed to the emigration of hundreds of thousands of Jews, including many doctors, in subsequent decades