IT |
InfoQ |
Podcast: Techno-solutionism, Ethical Technologists and Practical Data Privacy |
https://www.infoq.com/podcasts/techno-solutionism-ethical-application/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global
|
Podcast Techno solutionism Ethical Technologists and Practical Data PrivacyIn this podcast Shane Hastie spoke to Katherine Jarmul of Thoughtworks about the dangers of techno solutionism challenges in ethical application of technology and her book Practical Data Privacy By Katherine Jarmul |
2023-07-07 12:32:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
複数の会議室や人の予定を並べて表示するJavaScriptライブラリーEvent Calendar |
https://qiita.com/takatama/items/1a5f595b502de8b1e32e
|
eventcalendar |
2023-07-07 21:59:43 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
debug.gemで2回目以降にブレイクポイントで処理が止まらない |
https://qiita.com/kyntk/items/681355c26a954a8b8be4
|
bindingb |
2023-07-07 21:27:38 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
【自分用備忘】Docker-composeにてDjango環境ミニマムに作成 |
https://qiita.com/ookamikujira/items/8f7b29abce5cbab7d46d
|
envpythonun |
2023-07-07 21:25:10 |
技術ブログ |
Developers.IO |
[アップデート] AWS SSMパラメーターストアの最大スループットが10000に引き上げられました |
https://dev.classmethod.jp/articles/update-aws-ssm-parameter-store-higher-throughput/
|
awsssm |
2023-07-07 12:45:38 |
技術ブログ |
Developers.IO |
ZITADELとReactでログイン機能付きデモアプリを作ってみる(ZITADEL編) |
https://dev.classmethod.jp/articles/zitadel-react-login-app/
|
react |
2023-07-07 12:31:26 |
技術ブログ |
Developers.IO |
fluent-plugin-datadogでサイト毎の転送パフォーマンスを測定してみた |
https://dev.classmethod.jp/articles/compare-dd-site-performance-with-fluent-plugin-datadog/
|
datadog |
2023-07-07 12:10:06 |
海外TECH |
MakeUseOf |
8 Reasons Why You Should Subscribe to Crunchyroll |
https://www.makeuseof.com/why-you-should-subscribe-to-crunchyroll/
|
crunchyroll |
2023-07-07 12:46:17 |
海外TECH |
MakeUseOf |
The Best 1080p Monitors for Work and Gaming |
https://www.makeuseof.com/best-1080p-monitors/
|
monitors |
2023-07-07 12:30:18 |
海外TECH |
MakeUseOf |
USB Tethering Not Working? 7 Ways to Fix It |
https://www.makeuseof.com/usb-tethering-not-working-ways-to-fix-it/
|
doesn |
2023-07-07 12:15:19 |
海外TECH |
DEV Community |
GraphQL - React X Zustand |
https://dev.to/shubhamtiwari909/graphql-react-x-zustand-3j48
|
GraphQL React X ZustandHello Everyone this is the th part of our GraphQL Series In this part we will discuss how we can consume API created with GraphQL in React JS using the Apollo Client package What is Zustand Zustand is just a small and efficient state management library just like redux but smaller in size than redux used to create a global state for our Apps What is Apollo Client With Apollo Client you can easily connect your React components to a GraphQL API fetch and manage data and keep your application s local state synchronized with the server It offers a declarative and intuitive way to manage your application s data and seamlessly integrate GraphQL into your React components How to setup Zustand and Apollo Client in React Go to the Main page of your React App and Paste this code use client import ApolloClient InMemoryCache ApolloProvider from apollo client import create from zustand type FormStore id number setId newId number gt void name string setName newName string gt void age number setAge newAge number gt void role string setRole newRole string gt void isEmployee boolean setIsEmployee newIsEmployee boolean gt void isUpdate boolean setIsUpdate newIsUpdate boolean gt void export const useCounterStore create lt FormStore gt set gt id setId newId number gt set id newId name User setName newName string gt set name newName age setAge newAge number gt set age newAge isEmployee false setIsEmployee newIsEmployee boolean gt set isEmployee newIsEmployee role Tester setRole newRole string gt set role newRole isUpdate false setIsUpdate newIsUpdate boolean gt set isUpdate newIsUpdate export default function UsersList const client new ApolloClient cache new InMemoryCache uri http localhost graphql return lt ApolloProvider client client gt lt main gt children lt main gt lt ApolloProvider gt First we have imported the required packagesThen we have defined the Type for our fields to use in our global store in Zustand Then we have to create the Zustand store and passed the initial values for states and setter functions for those states We also exported this store to use in other componentsThen we created a new instance of Apollo Client by passing params URL of our graphql api and cache to set the cache value for our data We then passed this client instance to the Apollo Provider client prop So we have setup our global state and Apollo Client to use in our React App In next part we will discuss how we can fetch data and display it in our React App THANK YOU FOR CHECKING THIS POSTYou can contact me on Instagram LinkedIn Email shubhmtiwri gmail com You can help me with some donation at the link below Thank you gt lt Also check these posts as well |
2023-07-07 12:44:11 |
海外TECH |
DEV Community |
How Python uses Garbage Collection for Efficient Memory Management |
https://dev.to/karishmashukla/how-python-uses-garbage-collection-for-efficient-memory-management-270h
|
How Python uses Garbage Collection for Efficient Memory Management What are variables in Python A variable in Python is usually assumed to be a label of a value Instead a variable references an object that holds a value In Python variables are references How are objects stored in Python An object can be defined as a block of memory with a specific value supporting specific type of operations In Python everything is an object A Python object is stored in memory with names not variables and referencesName Just a label for an object An object can have multiple names References A name referring an object Every object consists of reference count type value How variables are stored in memory Image by author References IntroductionThe following example assigns a number with value to num variablenum Under the hood Python creates a new integer object of type int in the memory The variable num references to that memory addressTo find the memory address of an object referenced by a variable we can use the built in id function The id function returns memory address as a base number We will convert it into hexadecimal using in built hex function print hex id num gt xffdbdHex representation of a reference s memory address Image by author Passing arguments in Python functionsIn Python unlike other languages there is no such thing as pass by value or pass by reference Instead Python has the concept of pass by assignment or pass by object reference When a function is called with an argument a new reference to the object is created and assigned to the parameter variable in the function The parameter variable becomes a new reference to the same object in memory not a copy of the object itself Any modifications made to the object within the function will affect the original object outside the function The value of the reference the memory address is passed to the function not the value of the object itself Example The parameter is immutableImmutable objects include built in data types like int float complex bool strings bytes and tuples def f name name John new name Mary f new name print new name Output MaryIn the above example both name and new name point to Mary at the same time But when name John a new object is recreated with the value of John and name continues pointing to it while new name still points to Mary Hence the value of new name does not change Example The parameter is mutableMutable objects include list dict and set def f students students append students f students print students Output In the example above as students is a list changing the value of students will also change value of all variables that point to it Hence students becomes Garbage CollectionGarbage collection in Python refers to the automatic process of reclaiming memory occupied by objects that are no longer in use It is a mechanism that manages the allocation and deallocation of memory in Python Python uses a garbage collector to automatically detect and remove objects that are no longer referenced or reachable by the program When an object is no longer needed the garbage collector identifies it as garbage and frees up the memory occupied by that object The two strategies used for garbage collection arereference countinggenerational garbage collection Reference CountingIt keeps track of the number of references to each object and when the count reaches zero indicating that no references to the object exist the object is considered garbage and the memory is reclaimed To get the reference count of an object we can use the built in ctypes module import ctypesdef count references address Count the number of references to the object at the given address return ctypes c long from address address valuestudents print count references id students output Step toppers students print count references id students output Step toppers print count references id students output Step students print count references id students output Step reference count of students Image by author Step reference count of students Image by author Step reference count of students Image by author But reference counting cannot the problem of cyclical reference A cyclical reference also known as a reference cycle or circular reference occurs in Python when a group of objects reference each other in a way that forms a closed loop preventing them from being garbage collected This can lead to memory leaks as the objects involved are not eligible for automatic memory reclamation since their reference counts never reach zero Basic example of cyclical reference x x append x print x In the above example x is referring to itself which makes it a cyclical reference To solve this problem Python uses Generational Garbage Collection Generational Garbage CollectionGenerational Garbage Collection uses a trace based garbage collection technique Trace based garbage collection is a technique used in some garbage collection algorithms to identify and collect unreachable objects It works by tracing the execution of a program and identifying live objects based on their accessibility from root references Generational Garbage Collection divides objects into different generations based on their age with the assumption that most objects become garbage relatively quickly after they are created The main idea behind Generational Garbage Collection is that younger objects are more likely to become garbage than older objects Python s garbage collector focuses its efforts on the younger generations performing frequent garbage collection on them Older generations are garbage collected less frequently since they are expected to contain objects that have survived multiple collections and are less likely to become garbage Generational Garbage Collection helps address the problem of cyclical references by periodically examining objects in different generations and collecting those that are no longer reachable It detects and breaks cyclical references by identifying unreachable objects through a process known as mark and sweep Generational Garbage Collection thus ensures no memory leaks proper utilization of system resourcesefficient garbage collection Programmatically interact with Python s garbage collectorIn the example below we create two classes Students and Boys referencing each other and perform garbage collection using in built gc module Garbage Collector interface You should never disable the garbage collector unless required import gcimport ctypesdef count references address Count the number of references to the object at the given address return ctypes c long from address address valuedef object exists obj id Return True if the object with the given id exists for obj in gc get objects if id obj obj id return True return Falseclass Students def init self self boys Boys self print f Students hex id self Boys hex id self boys class Boys def init self students self students students print f Boys hex id self Students hex id self students gc disable students Students students id id students boys id id students boys print f Number of references to students count references students id print f Number of references to boys count references boys id print f Does students exist object exists students id Trueprint f Does boys exist object exists boys id Truestudents Noneprint f Number of references to students count references students id print f Number of references to boys count references boys id print f Does students exist object exists students id Trueprint f Does boys exist object exists boys id Trueprint Collecting garbage gc collect print f Does students exist object exists students id Falseprint f Does boys exist object exists boys id Falseprint f Number of references to students count references students id print f Number of references to boys count references boys id Output Boys xebcd Students xebStudents xeb Boys xebcdNumber of references to students Number of references to boys Does students exist TrueDoes boys exist TrueNumber of references to students Number of references to boys Does students exist TrueDoes boys exist TrueCollecting garbage Does students exist FalseDoes boys exist FalseNumber of references to students Number of references to boys ConclusionGarbage collection in Python helps manage memory efficiently automatically freeing up resources and preventing memory leaks so developers can focus on writing code without explicitly managing memory deallocation GitHub Twitter Substack karishmashukla |
2023-07-07 12:29:14 |
Apple |
AppleInsider - Frontpage News |
Save up to 35% on the best in portable power solutions with Bluetti's unbeatable Prime Day deals |
https://appleinsider.com/articles/23/07/07/save-up-to-35-on-the-best-in-portable-power-solutions-with-bluettis-unbeatable-prime-day-deals?utm_medium=rss
|
Save up to on the best in portable power solutions with Bluetti x s unbeatable Prime Day dealsWhether you re looking for a stable backup power generator or reliability during your most grueling off grid adventures Bluetti s Prime Day deals are the perfect opportunity to save big on the whole lineup of portable power solutions Save up to on Bluetti s portable power stations this Prime Day Prime Day is July th and th and Bluetti is slashing prices on a wide range of power solutions including the ACP AC B and AC B on Amazon and the Bluetti website With discounts of up to you can afford to power your unique lifestyle or remove worry during power outages Read more |
2023-07-07 12:57:11 |
Apple |
AppleInsider - Frontpage News |
Apple's disputed Irish tax account loses $1 billion |
https://appleinsider.com/articles/23/07/07/apples-disputed-irish-tax-account-loses-1-billion?utm_medium=rss
|
Apple x s disputed Irish tax account loses billionWhile the EU continues to appeal against Apple s tax deal with Ireland alleged back taxes have been held in escrow ーbut the fund is shrinking Apple IrelandApple s on off dispute with the EU over its tax payments in Ireland is still continuing with a ruling going against Apple and a one backing up the company As the European Commission is taking the case to the Court of Justice of the European Union the money Apple may owe in back taxes is being held in an escrow account Read more |
2023-07-07 12:07:59 |
Apple |
AppleInsider - Frontpage News |
New 'Shot on iPhone' film is an action-packed Mexican Wrestler movie |
https://appleinsider.com/articles/23/07/07/new-shot-on-iphone-film-is-an-action-packed-mexican-movie?utm_medium=rss
|
New x Shot on iPhone x film is an action packed Mexican Wrestler movieApple has released a new minute film promoting the cinematography of the iPhone Pro and recounting the adventures of a wrestler fighting to save all of Mexico from an evil pinata Source Apple Shot on iPhone was originally a quite straightforward marketing campaign with Apple showing off spectacular still photography all taken with various iPhones It s become much more elaborate now with Apple collaborating with renowned film directors to create whole short movies Read more |
2023-07-07 12:28:16 |
海外TECH |
Engadget |
Apple may launch the Vision Pro headset with appointment-only sales |
https://www.engadget.com/apple-may-launch-the-vision-pro-headset-with-appointment-only-sales-124119032.html?src=rss
|
Apple may launch the Vision Pro headset with appointment only salesApple is planning to roll out its Vision Pro headset gradually starting in the US with appointments for demos in designated Apple Store areas according to Bloomberg s Mark Gurman The gradual rollout is in line with the quot niche and complex nature quot of the mixed reality headset and resembles what Apple originally did with the Watch when it launched in nbsp Apple will require appointments to try and buy the Vision Pro much as it did with the Apple Watch according to people with knowledge of the matter It will also ask potential buyers to provide their eyeglass prescriptions Special areas will be created in stores that offer demo Vision Pro devices seating and tools to size accessories nbsp The primary aim is to make sure that customers leave with a headset that fits correctly and gives them a clear view It has even developed an iPhone app and physical machine that will scan your head to ensure a tight seal that keeps light out Apple may also be working on a second strap that will make the headset more comfortable for people with smaller heads nbsp Vision Pro demo spaces will only be available at Stores in major US markets like New York and Los Angeles to start with before eventually rolling out across the US It will come to other countries at the end of possible starting with the UK and Canada followed by Europe and Asia soon after nbsp The Vision Pro is Apple s most important product in years but also one of the most complex devices it has ever built It s also much more expensive than other consumer VR headsets To that end Apple is no doubt counting on the Vision Pro to get mainstream consumers excited about the idea of mixed reality In our hands on preview we found that the device delivered an awesome experience offering an quot unparalleled sense of immersion with displays sharp enough to read text on websites plus an intuitive gesture based user interface quot according to Engadet s Devindra Hardawar He also had concerns though about the solitary nature of using mixed reality headsets particularly for socially oriented activities like movie watching nbsp Apple has reportedly had manufacturing issues as well and only expected to sell a units in the headset s first year However even that modest target has reportedly been slashed by over half to units due to the tiny and costly OLED displays the Financial Times reported yesterday nbsp This article originally appeared on Engadget at |
2023-07-07 12:41:19 |
海外TECH |
Engadget |
Engadget Podcast: Diving into Threads and Twitter's latest mess |
https://www.engadget.com/engadget-podcast-twitter-meta-threads-123027507.html?src=rss
|
Engadget Podcast Diving into Threads and Twitter x s latest messWhile Twitter encountered many self inflicted wounds this week users jumped to Blue Sky and Mastodon Then Meta decided it was a fine time to drop its Twitter copycat Threads In this episode Cherlynn and Devindra chat with Engadget s Karissa Bell about where all of these services are headed Will Threads be the clear winner thanks to Instagram s social graph Or will the future lie with fully decentralized platforms like Mastodon Listen below or subscribe on your podcast app of choice If you ve got suggestions or topics you d like covered on the show be sure to email us or drop a note in the comments And be sure to check out our other podcasts the Morning After and Engadget News Subscribe iTunesSpotifyPocket CastsStitcherGoogle PodcastsTopicsTwitter continues to crumble Meta introduces Threads Twitter clone The next AirPods Pro release could include health features like a hearing test and body temperature sensors Google s Pixel Pro prototype leaked EU Digital Markets Act identifies a class of large gatekeeper tech companies for additional regulation U S Federal Trade Commission announces huge fines for fake product reviews Working on Picks CreditsHosts Cherlynn Low and Devindra HardawarGuest Karissa BellProducer Ben EllmanMusic Dale North and Terrence O BrienThis article originally appeared on Engadget at |
2023-07-07 12:30:27 |
海外TECH |
Engadget |
Apple's 10.9-inch iPad falls back to $400 |
https://www.engadget.com/apples-109-inch-ipad-falls-back-to-400-120534541.html?src=rss
|
Apple x s inch iPad falls back to This is a great time to grab a Apple iPad from Amazon where it s currently on sale for just more than its all time low The inch tablet will set you back on the website or lower than its retail price of That price applies to the blue pink and yellow color options of the WiFi only GB version of the th generation iPad We gave the tablet a score of in our review and praised it for having an updated modern design which makes it look more like the iPad Air than the previous versions of Apple s basic tablet It still costs more than the previous iPad but it is larger than its predecessor and this price cut makes it a more affordable and enticing option nbsp In addition to giving the iPad flatter edges and thinner bezels Apple also give it a USB C port like its more expensive siblings Underneath the hood you ll find an A Bionic chip ーit s an older model that debuted with the iPhone but it still represents upgraded performance for the tablet The iPad has a solid battery life as well When we tested it out we found that it could last up to hours and minutes while playing back a movie purchased from the iTunes Store nbsp But the best upgrade if you use your iPad for video conferences is perhaps its front facing camera that s now installed on the landscape edge of the device The camera is no longer awkwardly placed to the side when you put the tablet on landscape mode and your face will now finally be centered when you take a video call Take note that while the silver version of the iPad isn t listed at the same price you can get still get it for on the e commerce website Your Prime Day Shopping Guide See all of our Prime Day coverage Shop the best Prime Day deals on Yahoo Life Follow Engadget for the best Amazon Prime Day tech deals Learn about Prime Day trends on In the Know Hear from Autoblog s car experts on must shop auto related Prime Day deals and find Prime Day sales to shop on AOL handpicked just for you This article originally appeared on Engadget at |
2023-07-07 12:05:34 |
金融 |
金融庁ホームページ |
鈴木財務大臣兼内閣府特命担当大臣閣議後記者会見の概要(令和5年7月4日)を掲載しました。 |
https://www.fsa.go.jp/common/conference/minister/2023b/20230704-1.html
|
内閣府特命担当大臣 |
2023-07-07 14:00:00 |
ニュース |
BBC News - Home |
Babbs Mill boys' frozen lake deaths accidental, coroner rules |
https://www.bbc.co.uk/news/uk-england-61979007?at_medium=RSS&at_campaign=KARANGA
|
december |
2023-07-07 12:38:11 |
ニュース |
BBC News - Home |
Wimbledon school crash: Driver questioned after death of girl, 8 |
https://www.bbc.co.uk/news/uk-england-london-66131084?at_medium=RSS&at_campaign=KARANGA
|
floral |
2023-07-07 12:20:55 |
ニュース |
BBC News - Home |
UK weather: Heat-health alert will be followed by thunderstorms |
https://www.bbc.co.uk/news/uk-66132649?at_medium=RSS&at_campaign=KARANGA
|
downpours |
2023-07-07 12:22:19 |
ニュース |
BBC News - Home |
US plans to send controversial cluster munitions to Ukraine- reports |
https://www.bbc.co.uk/news/world-us-canada-66134663?at_medium=RSS&at_campaign=KARANGA
|
ukraine |
2023-07-07 12:29:14 |
ニュース |
BBC News - Home |
First alleged neo-Nazi under special terror powers, BBC learns |
https://www.bbc.co.uk/news/uk-66133530?at_medium=RSS&at_campaign=KARANGA
|
extremist |
2023-07-07 12:38:05 |
ニュース |
BBC News - Home |
Rosie Jones’s documentary and the R-word: 'We can't keep being poked like a bear' |
https://www.bbc.co.uk/news/disability-66131363?at_medium=RSS&at_campaign=KARANGA
|
disability |
2023-07-07 12:23:53 |
ニュース |
BBC News - Home |
Scottish government wants drug possession to be legal |
https://www.bbc.co.uk/news/uk-scotland-66133549?at_medium=RSS&at_campaign=KARANGA
|
government |
2023-07-07 12:16:18 |
ニュース |
BBC News - Home |
Teachers' strike: Pay 'very difficult choice' says minister as NEU walks out in England |
https://www.bbc.co.uk/news/uk-66130783?at_medium=RSS&at_campaign=KARANGA
|
Teachers x strike Pay x very difficult choice x says minister as NEU walks out in EnglandStrikes hit England s schools for second time this week as ministers consider next year s pay offer |
2023-07-07 12:32:31 |
ニュース |
BBC News - Home |
The Ashes: Moeen Ali caught by Steve Smith after lucky escape moments before |
https://www.bbc.co.uk/sport/av/cricket/66132896?at_medium=RSS&at_campaign=KARANGA
|
The Ashes Moeen Ali caught by Steve Smith after lucky escape moments beforeMoeen Ali is caught by Steve Smith at at deep backward square with a rash pull shot he got away moments earlier during day two of the third Ashes Test at Headingley |
2023-07-07 12:08:45 |
ニュース |
BBC News - Home |
James Trafford: From farm to the final, is this England's future number one? |
https://www.bbc.co.uk/sport/football/66121133?at_medium=RSS&at_campaign=KARANGA
|
euros |
2023-07-07 12:13:19 |
ニュース |
BBC News - Home |
Wimbledon 2023: Petra Kvitova through to third round; Paula Badosa retires injured |
https://www.bbc.co.uk/sport/tennis/66132659?at_medium=RSS&at_campaign=KARANGA
|
Wimbledon Petra Kvitova through to third round Paula Badosa retires injuredTwo time Wimbledon champion Petra Kvitova progresses to the third round of this year s tournament with a comprehensive win over Aliaksandra Sasnovich |
2023-07-07 12:07:56 |
コメント
コメントを投稿