投稿時間:2023-01-09 04:21:15 RSSフィード2023-01-09 04:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
python Pythonタグが付けられた新着投稿 - Qiita 乱数を用いた正方行列の生成プログラム(Python) https://qiita.com/persim/items/87f4812fe8bf0ab90d00 airmdockerubuntultspython 2023-01-09 03:19:30
python Pythonタグが付けられた新着投稿 - Qiita Firefox で selenium を実行しながら JavaScript を on/off する方法 https://qiita.com/Phinloda/items/cb7af7203140a4a90d0d bitpythonanacondaselenium 2023-01-09 03:17:34
js JavaScriptタグが付けられた新着投稿 - Qiita Firefox で selenium を実行しながら JavaScript を on/off する方法 https://qiita.com/Phinloda/items/cb7af7203140a4a90d0d bitpythonanacondaselenium 2023-01-09 03:17:34
AWS AWSタグが付けられた新着投稿 - Qiita AWS認定機械学習 - 専門知識を受験した時の話 https://qiita.com/aminosan000/items/7cd2059b8b731d030b99 inelearningspecialtymlsc 2023-01-09 03:39:11
海外TECH MakeUseOf How to Create a Start Menu and Game Over Screen With PyGame https://www.makeuseof.com/start-menu-and-game-over-screen-with-pygame/ pygame 2023-01-08 18:30:15
海外TECH MakeUseOf How to Fix the "Input Signal Out of Range" Error in Windows https://www.makeuseof.com/input-signal-out-of-range-error-windows/ windows 2023-01-08 18:16:16
海外TECH DEV Community PyBricks ile ileri geri ve sağa sola dönme https://dev.to/aliorhun/pybricks-ile-ileri-geri-ve-saga-sola-donme-45h3 PyBricks ile ileri geri ve sağa sola dönmeLego nun Technic Large Hub ıiçin varsayılan firmware yerine PyBricks firmware ükullanarak Lego cihazınızda MicroPython kullanabiliyoruz Bu yazımızda Lego nun uzaktan kumandası ile motor lu bir düzeneğin çalıştırılmasıanlatılmıştır PyBricks firmware yüklemeBunun için öncelikle Firmware üsisteme yüklemek gerekiyor ki bunun için Lego Technic Hub üzerindeki bluetooth tuşuna basılıtutarken cihaza USB kablosunu takarak ışıkların birkaçkere yanıp sönmesini bekledikten sonra sisteme girişyapılmasısağlanır Bu adımdan sonra aşağıdaki adreste bulunan güncel Firmware seçilerek kurulum gerçekleştirilir Bu kısımda bazıdetaylar bulunabiliyor fakat bunlarla ilgili internette bir çok makaleye rastlanabilmekte PyBricks kullanımıPyBricks firmware kurulduysa ve yeniden başlattıktan sonra artık cihazınızıbluetooth ile kullanabilirsiniz Bunun için yine yukarıdaki adresten Bluetooth işaretine basarak firmware kurulumda verdiğiniz ismi seçerek cihazına bağlanabilirsiniz Cihazınıza bağlantıkurabildiyseniz eşleştiyseniz bluetooth ikonu aşağıdaki gibi olacaktır Bu adımdan sonra kodunuzu yazdıktan sonra çalıştır ve durdur butonlarıile kodunuzu göndermeye başlayacaksınız Uzaktan kullanımlıiki motorlu örnekTemel belgelendirmesi oldukça güzel olan PyBricks için Technic Large Hub üzerindeki A ve C portlarına adet motor bağlıdır Aşağıdaki kodda öncelikle gerekli kütüphaneler eklenmişve sonrasında Hub üzerindeki hem x lik matris ışıklandırmasıhem de güçtuşunun ışığınıkapatmaktayız Sonrasında A ve C girişine bağlı motor tanımlanmaktadır Eğer motorlar takılıdeğilse kodunuz hata verecek ve çalışmayacaktır Sonrasındaki kısımda Lego nun uzaktan kumandasıeklenmişoldu İşlemler diye yorumlanmışkısım ise tamamen uzaktan kumandadaki tuşların durumlarına göre yazılmıştır Tüm süreçbir while döngüsüiçerisinde hazırlanmıştır ve döngüsırasında ilk öncelikle eğer herhangi bir tuşa basılıdeğilse motorlarıdurduracak şekilde bir kod bloğu bulunmaktadır Sonrasında ise tek tek ve birden fazla tuşların basılmasıdurumlarınıifade eden şekilde ileri geri sağ sol anlamlarınıkazanacak motor için durum yer almaktadır değerleri saniyede derecelik açıyıtarayacak ve ters yönde derece olacak şekilde hazırlanmıştır from pybricks pupdevices import Motorfrom pybricks parameters import Portfrom pybricks tools import waitfrom pybricks pupdevices import Remotefrom pybricks parameters import Button Colorfrom pybricks hubs import PrimeHubfrom pybricks tools import waitfrom pybricks parameters import Icon Hub üzerindeki ışıklarıkapatmahub PrimeHub hub display off hub light off A girişindeki motoru tanımlama motor motor Motor Port A C girişindeki motoru tanımlama motor motor Motor Port C Kumandayıtanımlamaremote Remote işlemlerwhile True pressed tıklanılmadığında while not pressed pressed remote buttons pressed motor reset angle motor reset angle Sağdaki tuşlarımotor e atama if Button RIGHT PLUS in pressed motor run elif Button RIGHT MINUS in pressed motor run Soldaki tuşlarımotor ye atama elif Button LEFT PLUS in pressed motor run elif Button LEFT MINUS in pressed motor run elif Button RIGHT PLUS and Button LEFT PLUS in pressed motor run motor run elif Button RIGHT PLUS and Button LEFT MINUS in pressed motor run motor run elif Button RIGHT MINUS and Button LEFT PLUS in pressed motor run motor run elif Button RIGHT MINUS and Button LEFT MINUS in pressed motor run motor run while pressed pressed remote buttons pressed 2023-01-08 18:12:49
海外TECH DEV Community Removing Google Analytics and Replacing it with a cookie free Javascript Geo Tracking app https://dev.to/rickdelpo1/removing-google-analytics-and-replacing-it-with-a-cookie-free-javascript-geo-tracking-app-2dko Removing Google Analytics and Replacing it with a cookie free Javascript Geo Tracking appRunning Google Analytics slows down site performance because adding any script to our html head tag adds overhead to our app This includes any third party libraries also added to the head tag I found a free jsonp geo tracking app pulled country city and ip variables into my javascript then passed these vars into a Lambda function and saved them as a json file to a simple AWS S bucket This way I could avoid adding the google analytics to my head tag thereby speeding up my performance a bit I included the following code just before my end body tag lt script type text javascript src gt lt script gt then my callback function looks like this function myCallback post session Math random toString substring Math random toString substring added default session pg name whatever ur page name is country post country city post city ip address post ip passVars first run start script then run passvars javascript function to pass vars to Lambda end myCallbackmy passvars javascript function looks like this note we fetch Lambda inside this functionfunction passVars var date new Date toLocaleDateString en US var now new Date toLocaleTimeString var out new Date toLocaleTimeString then pass objects ses hit etc to lambda and call event ses inside lambda note this object must be called articleconst article ses session city city hit date date pg name ip ip address country country time now time out call Lambda function here this next line is the AWS api gateway call to the Lambda functionfetch method POST Adding body or contents to send body JSON stringify article Adding headers to the request headers Content type application json charset UTF my Lambda function looks like thisconst AWS require aws sdk const fetch require node fetch const s new AWS S exports handler async event gt first fetch ur current json file from s bucket const res await fetch const json await res json then add a new record json push get geo data then pass vars into here from javascript file country event country session event ses page name event date hit event hit ip event ip time in event time time out event time event name event city then re write whole updated file back to s and it will overwrite existing file var params Bucket xxxx Key tracker json Body JSON stringify json pass fetch result into body with update from push ContentType json var sResponse await s upload params promise My AWS S json file looks like this country Philippines session jwnqxnlvfxyja page name Learn Java hit ip time in PM time out PM country United States session njaczvlectnbd page name Learn Java hit ip time in AM time out AM After passing variables to my S json file I can then render the result to html see the SQL section of my website atfor moreHappy coding folks 2023-01-08 18:06:50
海外TECH Engadget Twitter has reportedly laid off more of its global content moderation team https://www.engadget.com/twitter-reportedly-lays-off-part-of-global-content-moderation-team-182048288.html?src=rss Twitter has reportedly laid off more of its global content moderation teamIn what has become a monthly occurrence at Twitter the company has cut more of its workforce On Friday night Twitter reportedly laid off “at least a dozen workers across its Dublin and Singapore offices According to Bloomberg the casualties include Analuisa Dominguez the company s former senior director of revenue policy The outlet reports that Twitter also cut workers responsible for handling the company s misinformation policy in addition to a handful of employees involved with the platform s global appeals process and state media program Ella Irwin Twitter s head of trust and safety confirmed the company recently laid off more staff but disputed the teams impacted by the cuts “It made more sense to consolidate teams under one leader instead of two for example she told Bloomberg adding Twitter eliminated roles in areas where the company didn t see enough “volume to justify the talent expenditure She also said Twitter increased staffing at its appeals department and would continue to have a head of revenue policy On November st shortly after issuing his “extremely hardcore ultimatum to Twitter employees Elon Musk reportedly said the company wouldn t fire or lay off any more workers during an all hands meeting While the scale of Twitter s subsequent layoffs hasn t matched those that came shortly after Musk s takeover the company has cut staff despite the billionaire s pledge The company let go of part of its infrastructure division halfway through last month One recent estimate by The Information puts the company s headcount at around employees or a little over a quarter of what it had before Musk s purchase 2023-01-08 18:20:48
海外科学 BBC News - Science & Environment Single-use cutlery and plates to be banned in England https://www.bbc.co.uk/news/business-64205460?at_medium=RSS&at_campaign=KARANGA england 2023-01-08 18:38:04
ニュース BBC News - Home Single-use cutlery and plates to be banned in England https://www.bbc.co.uk/news/business-64205460?at_medium=RSS&at_campaign=KARANGA england 2023-01-08 18:38:04
ニュース BBC News - Home Aston Villa 1-2 Stevenage: League Two side produce stunning late comeback https://www.bbc.co.uk/sport/football/64198131?at_medium=RSS&at_campaign=KARANGA aston 2023-01-08 18:54:56
ニュース BBC News - Home Manchester City 4-0 Chelsea: Riyad Mahrez scores twice as sorry Blues thrashed in FA Cup https://www.bbc.co.uk/sport/football/64193420?at_medium=RSS&at_campaign=KARANGA Manchester City Chelsea Riyad Mahrez scores twice as sorry Blues thrashed in FA CupManchester City cruise into the FA Cup fourth round with a routine victory over a desperately poor Chelsea at Etihad Stadium 2023-01-08 18:48:46
ニュース BBC News - Home FA Cup: Dean Campbell scores the winning goal as Stevenage shock Aston Villa https://www.bbc.co.uk/sport/av/football/64205247?at_medium=RSS&at_campaign=KARANGA aston 2023-01-08 18:51:41
ニュース BBC News - Home FA Cup highlights: Manchester City 4-0 Chelsea https://www.bbc.co.uk/sport/av/football/64165873?at_medium=RSS&at_campaign=KARANGA etihad 2023-01-08 18:49:16
ニュース BBC News - Home Masters 2023: Shaun Murphy holds off fightback from defending champion Neil Robertson https://www.bbc.co.uk/sport/snooker/64204492?at_medium=RSS&at_campaign=KARANGA Masters Shaun Murphy holds off fightback from defending champion Neil RobertsonShaun Murphy holds off a fightback from defending champion Neil Robertson to reach the quarter finals of the Masters with a win at Alexandra Palace 2023-01-08 18:04:08
ビジネス ダイヤモンド・オンライン - 新着記事 【本日は一粒万倍日×大安吉日!】 ムーンパワー開運超爆発!! 金運が“爆上がり”するたった1つの方法 - 1日1分見るだけで願いが叶う!ふくふく開運絵馬 https://diamond.jp/articles/-/314055 【本日は一粒万倍日×大安吉日】ムーンパワー開運超爆発金運が“爆上がりするたったつの方法日分見るだけで願いが叶うふくふく開運絵馬たちまち刷続々TV出演NHK「朝ごはんLab」“絵馬師のおすすめ開運・福福朝ごはんフジテレビ「FNNLiveNewsイット」で話題沸騰見るだけで「癒された」「ホッとした」「本当にいいことが起こった」と大反響Amazon・楽天位史上初神社界から「神道文化賞」を授与された絵馬師が、神様仏様に好かれる開運法を初公開。 2023-01-09 03:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 【マンガ】『世界一受けたい授業』で話題! 体が硬い人は絶対やってみて! こり固まった肩をほぐす“ベッドで簡単ストレッチ” - いつでも、どこでも、1回20秒で硬い体が超ラクになる! スキマ★ストレッチ https://diamond.jp/articles/-/313942 2023-01-09 03:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 【シン富裕層のお金の増やし方】 やってはいけない“ギャンブル性の高い取引”とは? - 個人投資家もマネできる 世界の富裕層がお金を増やしている方法 https://diamond.jp/articles/-/313954 米国の富裕層の間では、米国以外の海外資産を組み入れるグローバル投資の動きが、以前にも増して加速しているという。 2023-01-09 03:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 【日本人最大の弱点! 出口学長・哲学と宗教特別講義】 ヘーゲルにとてつもない影響を与えた“フランスの革命家”とは? - 哲学と宗教全史 https://diamond.jp/articles/-/314405 2023-01-09 03:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 「子どもはまだか?」と尋ねるデリカシーのない親戚と賢くつき合うたった一つの方法【書籍オンライン編集部セレクション】 - 嫌われる勇気──自己啓発の源流「アドラー」の教え https://diamond.jp/articles/-/315653 今回は、故郷の親戚などとの関係に悩む男性からのご相談。 2023-01-09 03:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 【ワークマン仕掛け人・新年特別講義】 42年間、一度も競争したことのない会社が、 4000億円の空白市場を開拓できたワケ - ワークマン式「しない経営」 https://diamond.jp/articles/-/314082 【ワークマン仕掛け人・新年特別講義】年間、一度も競争したことのない会社が、億円の空白市場を開拓できたワケワークマン式「しない経営」たちまち万部今、最も注目を集める急成長企業ワークマン。 2023-01-09 03:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 【神様が味方になる生き方】 「周囲から尊敬される人」の3つの条件 - ありがとうの神様――神様が味方をする習慣 https://diamond.jp/articles/-/315069 【神様が味方になる生き方】「周囲から尊敬される人」のつの条件ありがとうの神様ー神様が味方をする習慣年の発売以降、今でも多くの人に読まれ続けている『ありがとうの神様』。 2023-01-09 03:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 「何もしていない」のに疲れてしまう自分に、落ち込むことがありませんか?【予約の取れないカウンセラーが教える】 - あなたはもう、自分のために生きていい https://diamond.jp/articles/-/315637 twitter 2023-01-09 03:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 【精神科医が教える】 なぜあの人は感じが悪いのか…なぜかムカつく人、好感をもつ人の“決定的な違い” - 精神科医Tomyが教える 心の執着の手放し方 https://diamond.jp/articles/-/315370 そんなときの助けになるのが、最新刊の感動小説『精神科医Tomyが教える心の執着の手放し方』ダイヤモンド社だ。 2023-01-09 03:05:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)