Saturday, November 12, 2022

जम्मू-कश्मीर के अनंतनाग में प्रवासियों पर हमला:UP के दो मजदूरों पर आतंकियों ने गोलियां चलाईं, हालत गंभीर


via देश | दैनिक भास्कर https://ift.tt/uNpFR9C

Show HN: A GitHub business card generator https://ift.tt/GDSmKRO

Show HN: A GitHub business card generator I built this small app for fun, to play with image generation thanks to Vercel’s new library [1]. You enter your GitHub username (or anyone’s), and it generates an image with a few info about your account. [1] https://ift.tt/0Y5IgWX... https://ift.tt/xNhCAVH November 12, 2022 at 11:47PM

Friday, November 11, 2022

Show HN: We made metadata-secure video conferencing that's easy to use https://ift.tt/qZDnsTA

Show HN: We made metadata-secure video conferencing that's easy to use https://booth.video November 12, 2022 at 04:33AM

भास्कर अपडेट्स:महाराष्ट्र में स्कूल बस खाई में गिरी, 7 लोग घायल, 32 लोग थे सवार


via देश | दैनिक भास्कर https://ift.tt/blutsQX

1 गांव से उठीं 3 बच्चों की अर्थियां:बाराबंकी में 25 लोगों सहित नाव डूबी, गांव वाले बोले- पुल बन गया होता तो नहीं मरते


via देश | दैनिक भास्कर https://ift.tt/dJY41CQ

Show HN: ShowMeYourHotKeys – A macOS app to show applications menu shortcuts https://ift.tt/jY1I0er

Show HN: ShowMeYourHotKeys – A macOS app to show applications menu shortcuts Hi everyone, ShowMeYourHotKeys is a macOS application I worked for the last months. This app shows the frontmost app's menu items shortcuts (it also have some other features) There is a beta version available on the website. Accessibility permission is necessary to obtain menu items informations and Full disk Access is necessary to create custom shortcuts. I would love to hear all the feedbacks and suggestions. Thank you for your attention. https://ift.tt/kOZRj7F November 11, 2022 at 09:45PM

Show HN: A silly JavaScript-free web browser in the browser https://ift.tt/ADe6T8p

Show HN: A silly JavaScript-free web browser in the browser This is a browser front-end (ultra simple) for Chrome, built using puppeteer. I like it because it provides a usable single browser tab (that conveniently crashes on certificate errors (thanks to puppeteers default flags which I haven't altered here)), without using any JS scripting on the client side. There's some clever hacks to get that to work, including stylesheet media queries (to zero in on the correct viewport dimensions), and MJPEG, a crazy HTTP keep-alive way to stream JPEG frames of a video, favored by old-style CCTV/security/web cameras allegedly. I noticed it went from 18 to 19 stars yesterday so I decided to fire it up again to see what all the fuss was about, and do the minimum to fix the tiniest number of bugs to improve the install process for folks wanting to check it out (removing the default sudo install scripts in the npm postinstall was a good idea, heh). I plan to set up a silly demo of this sometime, so all can join in the fun on a server. It's just really ridiculous to see a modern web site "render" with a ridiculous UI controlled by: URL bar, Down button (scroll down), Up button (scroll up), "Enter text" field (that only pops up when a text control is focused ~~ wow, if I say so myself ;p ;) xx ;P ) I almost forgot the URL: https://ift.tt/MWAEVTF November 11, 2022 at 11:52PM

Thursday, November 10, 2022

Show HN: Onefetch – Command-line Git Information tool https://ift.tt/4ApY3nh

Show HN: Onefetch – Command-line Git Information tool Onefetch is a command-line Git information tool written in Rust that displays project information and code statistics for a local Git repository directly to your terminal. The tool is completely offline - no network access is required. https://onefetch.dev/ November 11, 2022 at 05:00AM

अच्छी बरसात से धरती लबालब:भूजल के लिए अब ज्यादा गहरा नहीं खोदना पड़ेगा, मध्य प्रदेश में 10 मीटर पर मिलने लगा पानी


via देश | दैनिक भास्कर https://ift.tt/tqzKnl5

Show HN: Twitter Like News App https://ift.tt/MgXfLId

Show HN: Twitter Like News App Hi everyone, My name is Stuart and I've been solo developing a news app (and now newsletter) for the past half a year or so. tl;dr (current status): an app with a Twitter like feed of news events. The posts are 1-2 sentences, only actual events (no opinion, analysis, roundup, evergreen, etc), categorized into feeds, and tagged (lets you dig wikis or find events for a given entity). There is also a newsletter I just launched that is a bit cleaner in terms of UI, but with less features. longer: My goal is to make it easier to stay informed and access information (not such a hot take that news and media suffers from a UX issue). What that will look like in the long term, I can't possibly know. Although I have many theories, all I can do is iterate and keep an open mind. My first attempt at cracking this is to shorten the unit of information from an article to an event, thus saving the reader valuable time and mental energy. If you want to read more about how I do this check out https://ift.tt/gmFkNlG I'd love to hear your feedback on the idea and/or app (forgive the janky UI). Thanks, Stuart p.s. if this sounds like something you'd like to work on, don't hesitate to reach out. I have an engineering background but would love someone else to hack with newsletter link if interested: https://ift.tt/EWnSKjZ https://ift.tt/RaEmu2I November 11, 2022 at 02:34AM

Show HN: Elonman (Animated Webcomic) https://ift.tt/BNdvfO3

Show HN: Elonman (Animated Webcomic) https://elonman.com/ November 11, 2022 at 02:00AM

PM मोदी आज कर्नाटक दौरे पर:बेंगलुरु में केम्पेगौड़ा इंटरनेशनल एयरपोर्ट के टर्मिनल-2 का उद्घाटन करेंगे; 12 नवंबर को आंध्र और तेलंगाना जाएंगे


via देश | दैनिक भास्कर https://ift.tt/JUsdg4P

Show HN: An API for CO₂ Removal https://ift.tt/9rXlBHj

Show HN: An API for CO₂ Removal Hi all, We're Fabienne and Ewan of Climacrux. Today we're proud to launch our latest project to try and make carbon dioxide removal as accessible as possible: CDR Platform [1]. In short: it’s an API to connect to a portfolio of carbon removers. You can purchase from as low as a single gram and select from both natural and technological removal methods. Longer: A couple of years ago we launched an alternative to carbon credits, Carbon Removed[2], designed for individuals to buy and subscribe to CDR. But we always had the nagging thought that there was more that could be done. CDR Platform is our foundation for that - a simple API to get prices and purchase (at the moment). Our plan is to become the Stripe of the carbon removal ecosystem, seamlessly connecting the supply to the demand. We’d love to hear your feedback. Do you see a use case for this and would you use it? What features have we missed? Do you understand what we’re doing and if not, what’s unclear? We’d love to hear from you.[3] Many thanks and happy hacking, Climacrux. P.s. If you are a carbon remover, send us your prices, life cycle analysis and some more information about your removal timeline. Our aim is to bring your services to a wider audience so you can focus on reducing our CO₂ levels. Thanks for your work! [1] https://ift.tt/RnJaw09 [2] https://ift.tt/G92lUfI [3] ewan@climacrux.com https://ift.tt/RnJaw09 November 11, 2022 at 12:07AM

Wednesday, November 9, 2022

बघेल बोले- BJP वोट खरीदने पर उतरी:कांग्रेस का दावा- हेलिकॉप्टर में पैसा और एंबुलेंस में ढोई जा रही शराब, मगर हिमाचली वोटर नहीं बिकेगा


via देश | दैनिक भास्कर https://ift.tt/6JFzpVb

​​​कनाडा में पंजाब से आने वाले बुजुर्ग परेशान:ब्रिटिश कोलंबिया सरकार की परिवारों से अपील, कहा- बुजुर्गों को इंग्लिश सिखाएं, ताकि जल्द मदद भेजी जा सके


via देश | दैनिक भास्कर https://ift.tt/f0KYuGA

Show HN: Noticing and preventing network requests should be easy https://ift.tt/E5Qdyje

Show HN: Noticing and preventing network requests should be easy https://ift.tt/LUG0mRg November 10, 2022 at 05:45AM

Show HN: Generic dual-paradigm hooking mechanism https://ift.tt/ER8p0wT

Show HN: Generic dual-paradigm hooking mechanism Hi HN ! I am Alex, a tech enthusiast, I'm excited to show you a major iteration of my library for performing hooking in Python. I redesigned the whole project because it didn't not cover all my needs. I'm happy with the current iteration that I've written tests for and look forward to spending weeks and months using it in my projects. Python has a concept called Decorator [1] which is a function that takes another function and extends the behavior. In the following script, the timeit decorator is used to measure the execution time of the heavy_computation function: import time from functools import wraps def timeit(text): def deco(target): @wraps(target) def wrapper(*args, **kwargs): # execute and measure the target run time start_time = time.perf_counter() result = target(*args, **kwargs) total_time = time.perf_counter() - start_time # print elapsed time print(text.format(total=total_time)) return result return wrapper return deco @timeit(text="Done in {total:.3f} seconds !") def heavy_computation(a, b): time.sleep(2) # doing some heavy computation ! return a*b if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test Done in 2.001 seconds ! Result: 54 Besides benchmarking, there are many other cool things that can be done with the Python decorator. For example, the Flask [2] and Bottle [3] web frameworks implement routing with decorators. While decorators are cool, it's worth mentioning that using a decorator is much more intuitive than writing its code. The code is entirely different depending on whether the decorator takes arguments or not. The following code performs the same task as the previous one, except it is more clear and intuitive: import time from hooking import on_enter def timeit(context, *args, **kwargs): # execute and measure the target run time start_time = time.perf_counter() context.result = context.target(*args, **kwargs) total_time = time.perf_counter() - start_time # print elapsed time text = context.config.get("text") # get 'text' from config data print(text.format(total=total_time)) context.target = None @on_enter(timeit, text="Done in {total:.3f} seconds !") def heavy_computation(a, b): time.sleep(2) # doing some heavy computation ! return a*b if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test Done in 2.001 seconds ! Result: 54 The Hooking library used in the code above uses Python decorators to wrap, augment, and override functions and methods. It is a generic hooking [4] mechanism which is perfect for creating a plug-in mechanism for a project, performing benchmarking and debugging, implementing routing in a web framework, et cetera. Also, it is a dual paradigm hooking mechanism since it supports tight and loose coupling [5]. The previous code uses the tight coupling paradigm, that's why the timeit hook is directly tied to the target function. In loose coupling paradigm, targets functions and methods are tagged using a decorator, and hooks are bound to these tags. So when a target is called, the bound hooks are executed upstream or downstream. This paradigm is served by a class designed for pragmatic access via class methods [6]. This class can be easily subclassed to group tags by theme for example. Here is an example of the loose coupling paradigm: import time from hooking import H @H.tag def heavy_computation(a, b): print("heavy computation...") time.sleep(2) # doing some heavy computation ! return a*b def upstream_hook(context, *args, **kwargs): print("upstream hook...") def downstream_hook(context, *args, **kwargs): print("downstream hook...") # bind upstream_hook and downstream_hook to the "heavy_computation" tag H.wrap("heavy_computation", upstream_hook, downstream_hook) if __name__ == "__main__": result = heavy_computation(6, 9) print("Result:", result) Output: $ python -m test upstream hook... heavy computation... downstream hook... Result: 54 This library is available on PyPI and you can play with the examples [7] which are on the project's README. I would like to know what you think [8] of this project. Your questions, suggestions and criticisms are welcome ! [1] https://ift.tt/pAH3xzD [2] https://ift.tt/TpVkMb2 [3] https://ift.tt/ST6sPoY [4] https://ift.tt/fOoPCaD [5] https://ift.tt/OUdpxLY... [6] https://ift.tt/TMsqaAE [7] https://ift.tt/8syOiWn [8] https://ift.tt/gRYKOc5 https://ift.tt/3L5Se1c November 9, 2022 at 06:40PM

भास्कर अपडेट्स:गुजरात में विधानसभा चुनाव से पहले कांग्रेस को झटका, विधायक भावेश कटारा ने इस्तीफा दे दिया


via देश | दैनिक भास्कर https://ift.tt/Mamklrs

Show HN: Unblob – accurate, fast, and easy-to-use extraction suite https://ift.tt/cSAsLVn

Show HN: Unblob – accurate, fast, and easy-to-use extraction suite https://unblob.org/ November 10, 2022 at 12:16AM

Tuesday, November 8, 2022

Show HN: Bilig – a headless spreadsheet engine for Node services and agents https://ift.tt/qb3OXxh

Show HN: Bilig – a headless spreadsheet engine for Node services and agents https://ift.tt/pKHIE3k May 7, 2026 at 11:46PM