python |
Pythonタグが付けられた新着投稿 - Qiita |
pythonでCSVレコードをモデルに変換 |
https://qiita.com/hoshi_kouki/items/b932710304df3e6cc65a
|
生年月日の形式を変更したモデルclassPersonCSVModelnameColumnString名前ageColumnInteger年齢birthdayColumnDateYmd生年月日createdatColumnDateTimeYmdHMS作成日どうやって実現するかCSVの読み込み自体は標準で用意されているものを使います。 |
2021-12-04 03:55:22 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
体重を入力すると適正「身長」を教えてくれるアプリを作った |
https://qiita.com/fujit33/items/fa40a79b905d31e8449c
|
ソースコードはGithubにアップロードされています使い方直感的なUI体重をスクロール入力するだけで、適正身長がすぐに分かりますオプション入力で専門家っぽい人からアドバイスもらえる現在の身長を入力することで、専門家っぽい人からあなたにぴったりなアドバイスをもらえますヘルスケアアプリで唯一干支入力機能搭載特に使い道はありませんが、干支を入力することができます今後の展望現在はリリース初期ということもあり、ターゲットを絞ったシンプルなサービスにとどめています。 |
2021-12-04 03:22:40 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
p5.jsの関数まとめ part.3 lerpColor() ~ 赤と青の間の色は本当に紫なのか ~ |
https://qiita.com/shibuya01055/items/6987fbb73860f90d26da
|
これは色指定ができる関数にそのままあてることができます。 |
2021-12-04 03:22:06 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
1次元配列と多次元配列のメソッドの記述方法がとなる理由を知りたいです。 |
https://teratail.com/questions/372189?rss=all
|
次元配列と多次元配列のメソッドの記述方法がとなる理由を知りたいです。 |
2021-12-04 03:40:21 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Unityで魚眼レンズから動画をパノラマ形式にしたい |
https://teratail.com/questions/372188?rss=all
|
unity |
2021-12-04 03:38:34 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
python(水道料金の関数) |
https://teratail.com/questions/372187?rss=all
|
python水道料金の関数python初心者のものです。 |
2021-12-04 03:07:24 |
海外TECH |
Ars Technica |
This enthusiast’s keyboard and trackball used to launch nuclear missiles |
https://arstechnica.com/?p=1817937
|
minuteman |
2021-12-03 18:44:42 |
海外TECH |
MakeUseOf |
Struggling to Remember Your Passwords? Try These 5 Chrome Extensions |
https://www.makeuseof.com/chrome-extensions-remember-passwords/
|
Struggling to Remember Your Passwords Try These Chrome ExtensionsRemembering all your passwords can be challenging especially if you ve got lots of online account So here s five Chrome extensions that can help |
2021-12-03 18:30:12 |
海外TECH |
MakeUseOf |
3 Ways to Make the Most of God Mode on Windows 10 |
https://www.makeuseof.com/windows-10-god-mode-customization/
|
windows |
2021-12-03 18:15:12 |
海外TECH |
DEV Community |
Last Chance to Join the 2021 GitHub Actions Hackathon on DEV! |
https://dev.to/devteam/last-chance-to-join-the-2021-github-actions-hackathon-on-dev-1aje
|
Last Chance to Join the GitHub Actions Hackathon on DEV This is your final reminder that the GitHub Actions Hackathon on DEV closes on Wednesday December th PM PT AM UTC the following day The GitHub Actions Hackathon is nearing an end and we ve already seen so many incredible submissions from the community seriously ーgo check them out here With that said we know that early submissions aren t everyone s style and some of you are more of the last minute types So consider this your official nudge to get that GitHub Actions Hackathon project in while you can As a reminder all participants with a valid submission will receive a limited edition profile badge and a sticker pack runners up will win all of that plus USD cash or the equivalent value in your local currency and a USD gift code to the DEV shop Five lucky grand prize winners will receive a sticker pack a limited edition profile badge USD in cash and USD at the DEV shop gt gt Click here to find out how to participateWant to share an update on your project or connect with other participants Check out the community update thread Need help with your submission Have a question about the hackathon rules or GitHub Actions Head over to the help thread to connect with the DEV and GitHub teams directly Good luck all our participants We can t wait to announce the winners later this month Click here to read the hackathon rules and get started |
2021-12-03 18:43:00 |
海外TECH |
DEV Community |
Automating Terraform With Github Actions |
https://dev.to/mariehposa/automating-terraform-with-github-actions-1hc3
|
Automating Terraform With Github Actions My WorkflowA project to demonstrate how to automate terraform workflow with Github Actions Login to your AWS account and generate AWS ACCESS KEY ID and AWS SECRET ACCESS KEY After that login to your Terraform Cloud account Create a new workspace and select API driven workflow Then navigate to the Variables tab and click on Add variable Add AWS ACCESS KEY ID and AWS SECRET ACCESS KEY with their respective values From your Terraform Cloud User Settings click on Tokens and generate an API token named GitHub Actions Add the token to your Github repository as a secret Name the secret TF API TOKEN Clone and open your Github repo on your code editor Checkout to a new branch with git checkout b lt branch name gt Add your changes with git add and commit the changes with a message using git commit m lt commit message gt Then push your changes with git push Go back to the Github repository and generate a pull request from the new branch You can view the status of the job through the pull request created Actions tab or the Terraform Cloud workspace Then merge the pull request Submission Category DIY Deployments Yaml File or Link to Code mariehposa terraform automation Terraform AutomationA project to demonstrate how to automate terraform workflow with Github Actions Github Actions after creating a pull requestGithub Actions after Merging to main branchGetting StartedThese instructions will get you a copy of the project up and running on your local machine for development purpose PrerequisitesTo get started with this project you need a basic knowledge of the following Version Control Git TerraformAWSAutomating Terraform with Github ActionsLogin to your AWS account and generate AWS ACCESS KEY ID and AWS SECRET ACCESS KEY After that login to your Terraform Cloud account Create a new workspace and select API driven workflow Then navigate to the Variables tab and click on Add variable Add AWS ACCESS KEY ID and AWS SECRET ACCESS KEY with their respective values From your Terraform Cloud User Settings click on Tokens and generate an API token named GitHub Actions Add the token to your Github repository as a… View on GitHub |
2021-12-03 18:35:36 |
海外TECH |
DEV Community |
What was your win this week? |
https://dev.to/devteam/what-was-your-win-this-week-4l7b
|
What was your win this week Hey there Looking back on this past week what was something you were proud of accomplishing All wins count ーbig or small Examples of wins include Starting a new projectFixing a tricky bugEmbarking on a new creative challenge or whatever else might spark joy ️Congrats on your accomplishments this week |
2021-12-03 18:29:27 |
海外TECH |
DEV Community |
🎁 CodeCast's Coding Advent: Day Three 🎁 |
https://dev.to/codecast/codecasts-coding-advent-day-three-1ohg
|
CodeCast x s Coding Advent Day Three DAY THREEApps like Linktree have become incredibly popular to share multiple links on a single landing page Our ambassador Michael Tirona has created a three part series where teaches you how to make your own Linktree clone with React Find the tutorial here You can also be sure to follow us on Instagram Twitter Facebook and LinkedIn to see our daily advent releases there |
2021-12-03 18:13:08 |
海外TECH |
DEV Community |
How to Set Up Elgato's Stream Deck on Ubuntu Linux 21.10 |
https://dev.to/erikaheidi/how-to-set-up-elgatos-stream-deck-on-ubuntu-linux-2110-pdh
|
How to Set Up Elgato x s Stream Deck on Ubuntu Linux Popular with streamers everywhere in the world the Elgato Stream Deck is a customizable device that works as an external input and can be configured to trigger commands and shortcuts at the press of a button And although the device is super popular with live streamers it is also very useful for anyone who works with several different applications on a desktop setting since it greatly facilitates switching windows and running commands on your computer While this looks like a very useful device the official website says the device is only supported on MacOS and Windows systems A bummer for sure That s what kept me from buying one for quite some time Turns out I got a really nice package from the GitHub Stars program including a button Stream Deck I have heard rumors that it was possible to run it on Linux and that s what brought me to this article As you can see from the video I got it working here Erika Heidi erikaheidi Streamdeck running smoothly on Ubuntu rodando liso PM Dec In this post I ll share how I set up my Stream Deck on an Ubuntu system and which commands tools I configured so far Note this was tested on Ubuntu and Ubuntu but it might work with other versions as well Step Install streamdeck uiThe streamdeck ui program provides a Linux compatible graphical user interface to control your Stream Deck running on top of the Python Stream Deck Library With this software you can set up each individual key by providing an icon a command or a shortcut and an optional title It supports multiple pages which means you are not limited to the physical slots in the device As long as you use one or more keys to paginate through your icon pages you can have as many buttons as you need To get started install the dependencies with the following command sudo apt install python pip libhidapi libusb libxcb xineramaThen you ll need to set up special permissions that will allow you to use the application with a regular system user sudoedit etc udev rules d streamdeck rulesPaste the following content into this file SUBSYSTEM usb ATTRS idVendor fd ATTRS idProduct TAG uaccess SUBSYSTEM usb ATTRS idVendor fd ATTRS idProduct TAG uaccess SUBSYSTEM usb ATTRS idVendor fd ATTRS idProduct c TAG uaccess SUBSYSTEM usb ATTRS idVendor fd ATTRS idProduct d TAG uaccess Save and close the file Then reload udev rules with sudo udevadm control reload rulesThe installation instructions advise you to unplug and plug again your device before continuing Once you do that run the following command to install streamdeck ui pip install user streamdeck uiNext you ll need to make sure you have HOME local bin in your PATH If you are using regular bash you should have a bashrc file where your PATH is defined If you are using zsh this should be zshrc instead For instance I use zsh and this is how my PATH is defined within my zshrc export PATH HOME bin HOME local bin usr local bin PATHAfter updating your PATH you can run streamdeck ui from your terminal in background mode with streamdeck amp You should see a screen like that You can now start setting up each button Keep in mind that the program must be running all times for the buttons to be actually functional It will be visible as a system tray icon on the top right of your screen It is recommended that you include the streamdeck command in your startup commands on Ubuntu you can set this on the Startup Applications Preferences utility Hint type window and then Startup to find this program on Ubuntu Setting up command buttonsSetting up a button to run a command is pretty straightforward with streamdeck ui Having an icon is optional since you can also use a simple text just needs to keep it very short as it doesn t support linebreaks To try it out configure your first button to open your file browser called as nautilus The update is effective immediately so you can click on the button and you should see a new Nautilus window opening up Setting up shortcut buttonsYou can also set up shortcuts to run when you click a button although this may work inconsistently depending on which application is currently on focus I use shortcuts to switch scenes on OBS but then I have to first make sure I focus the OBS window and only then I hit the shortcut button To configure shortcuts use the Press Keys text field to define the sequence of keys To make it work with OBS you ll first need to configure your OBS shortcuts on Settings gt Hotkeys inside OBS It is also possible to use commands to change which window is currently on focus that s what we ll see next Manipulating windows with xdotoolTo switch between windows you ll need to install a tool called xdotool On Ubuntu you can install it with the following command sudo apt install xdotoolThis tool allows you to search for a window by title or class which is an internal name used by each application This information can be found with the built in command xprop which obtains information about active windows on your graphical interface To find out which class an application uses for its main window you can run xprop grep CLASS Then you ll have to click on the window you want to obtain more information about Make sure you click somewhere inside the window not at the title bar For instance if you want to find out the class name for your Firefox browser after clicking somewhere in the Firefox window you ll get output like this WM CLASS STRING Navigator Firefox The second string in the output is what we need Once you know the class name for an application you can move it to active focused with the following command in this case we re activating the Firefox window xdotool search desktop class Firefox windowactivateSo this is the command you ll have to set up within streamdeck ui to be able to easily switch applications using your Stream Deck Here is a list with my own buttons that you can probably reuse on your setup in case you want similar functionality Firefoxxdotool search desktop class Firefox windowactivate Terminal Terminator xdotool search desktop class Terminator windowactivate PhpStormxdotool search desktop class jetbrains phpstorm windowactivate OBSxdotool search desktop class obs windowactivate Zoomxdotool search desktop class Zoom windowactivate Slackxdotool search desktop class slack windowactivateThis is what my current setup looks like And this is how it looks like on the device Finding iconsYou can find default icons from the Ubuntu system and applications spread through several directories on usr share Have a look at usr share icons and you should find several subdirectories with icons this might work but it can be difficult to find just the icon you want I personally prefer to look for icons on google images and have set a local folder in my home directory where I keep these icons and reference them from streamdeck ui Icons must be in png format ConclusionI hope you have enjoyed this article and that it can help you customize your Stream Deck up to the minimal details for a perfect setup Worth noting that the Stream Deck device is pretty handy for anyone working on a desktop since it can speed up switching windows and running commands on your system |
2021-12-03 18:11:48 |
海外TECH |
Engadget |
NSO spyware was reportedly used to target iPhones of US State Department employees |
https://www.engadget.com/nso-group-spyware-us-state-department-report-183647765.html?src=rss
|
NSO spyware was reportedly used to target iPhones of US State Department employeesOn Friday Reuters nbsp shed new light on the Biden administration s recent decision to sanction Pegasus spyware developer NSO Group Citing four people “familiar with the matter the outlet reports an unknown assailant used the firm s software to infect iPhones belonging to at least nine US State Department officials The attacks reportedly targeted federal employees who were either stationed in Uganda or whose work involved the East African country Reuters wasn t able to identify who was behind the hacks The State Department also declined to comment on the report NSO says it will investigate the matter “If our investigation shall show these actions indeed happened with NSO s tools such customer will be terminated permanently and legal actions will take place quot a spokesperson for the company told Reuters NSO said it would also “cooperate with any relevant government authority and present the full information we will have NSO says its spyware can t work on devices with US numbers that start with the country But in the case of the State Department employees deployed to Uganda they were reportedly using iPhones with local telephone numbers They were also hacked before Apple released iOS which addressed the CoreGraphics vulnerability NSO had exploited to allow its spyware to infect an iPhone without the victim even needing to tap on anything On November rd Apple sued NSO to “hold it accountable for its actions Speaking on condition of anonymity a senior Biden administration official told Reuters the threat to US officials is one of the reasons the White House is cracking down on NSO and working with allies to combat ransomware and other cybersecurity threats On November rd the Commerce Department added the company to its Entity List preventing American companies from doing business with the firm At the time the company told Engadget it “dismayed by the decision and claimed its tools have helped the US by “preventing terrorism and crime |
2021-12-03 18:36:47 |
Cisco |
Cisco Blog |
Checkmate in One…Cisco Silicon One |
https://blogs.cisco.com/sp/checkmate-in-onecisco-silicon-one
|
internet |
2021-12-03 18:07:53 |
Linux |
OMG! Ubuntu! |
Blender 3.0 is Out, And It’ll Blow Your Socks Off |
https://www.omgubuntu.co.uk/2021/12/blender-3-0-released-with-new-features
|
Blender is Out And It ll Blow Your Socks OffA new version of the free D creation software Blender is out and it looks phenomenal Blender comes with new features and updates like an upgraded Cycles X rendering engine times better mesh editing performance and much faster file loading times thanks in part to Zstandard compression An open source tentpole Blender is the go to D creation suite for creatives of all shades animators game makers visual effects wizards across all operating systems Blender offers a complete end to end D pipeline from modelling rigging and animation to compositing motion tracking and video editing Am I versed enough in the complexities This post Blender is Out And It ll Blow Your Socks Off is from OMG Ubuntu Do not reproduce elsewhere without permission |
2021-12-03 18:37:55 |
海外科学 |
NYT > Science |
Billions for Climate Protection Fuel New Debate: Who Deserves It Most |
https://www.nytimes.com/2021/12/03/climate/climate-change-infrastructure-bill.html
|
Billions for Climate Protection Fuel New Debate Who Deserves It MostThe trillion infrastructure law funds programs that tend to favor wealthy white communities ーa test for Biden s pledge to defend the most vulnerable against climate change |
2021-12-03 18:54:46 |
海外科学 |
NYT > Science |
Meet an Ecologist Who Works for God (and Against Lawns) |
https://www.nytimes.com/2021/12/03/climate/climate-change-biodiversity.html
|
house |
2021-12-03 18:54:09 |
ニュース |
BBC News - Home |
Michigan school shooting: Parents of gunman charged with manslaughter |
https://www.bbc.co.uk/news/world-us-canada-59523682?at_medium=RSS&at_campaign=KARANGA
|
handgun |
2021-12-03 18:45:26 |
ニュース |
BBC News - Home |
I now feel less safe as a gay man - MP Chris Bryant |
https://www.bbc.co.uk/news/uk-politics-59508498?at_medium=RSS&at_campaign=KARANGA
|
culture |
2021-12-03 18:43:32 |
ニュース |
BBC News - Home |
Yorkshire coaching staff leave amid racism scandal |
https://www.bbc.co.uk/sport/cricket/59518669?at_medium=RSS&at_campaign=KARANGA
|
Yorkshire coaching staff leave amid racism scandalDirector of cricket Martyn Moxon coach Andrew Gale and all members of the coaching staff are among people to leave Yorkshire amid the racism scandal |
2021-12-03 18:39:10 |
ニュース |
BBC News - Home |
Arthur Labinjo-Hughes: What were the opportunities missed to save him? |
https://www.bbc.co.uk/news/uk-59519562?at_medium=RSS&at_campaign=KARANGA
|
arthur |
2021-12-03 18:09:22 |
ニュース |
BBC News - Home |
Hamilton fastest in Saudi second practice as Leclerc crashes heavily |
https://www.bbc.co.uk/sport/formula1/59526873?at_medium=RSS&at_campaign=KARANGA
|
Hamilton fastest in Saudi second practice as Leclerc crashes heavilyFerrari s Charles Leclerc emerges unscathed from a mph crash as Lewis Hamilton ends practice fastest at the Saudi Arabian Grand Prix |
2021-12-03 18:17:21 |
ニュース |
BBC News - Home |
UK Championship Snooker: Kyren Wilson's five best shots against Ronnie O'Sullivan |
https://www.bbc.co.uk/sport/av/snooker/59522308?at_medium=RSS&at_campaign=KARANGA
|
UK Championship Snooker Kyren Wilson x s five best shots against Ronnie O x SullivanWatch Kyren Wilson s five best shots as he knocks out Ronnie O Sullivan in a final frame decider to reach the semi finals of the UK Championship |
2021-12-03 18:39:52 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
精神科医が呆れる「他人に相談できない人の残念な考え方」ワースト1 - ストレスフリー超大全 |
https://diamond.jp/articles/-/289066
|
精神科医が呆れる「他人に相談できない人の残念な考え方」ワーストストレスフリー超大全あなたは、誰かに相談する勇気を持っているだろうか総フォロワー数万人を超える精神科医、樺沢紫苑氏による『ストレスフリー超大全』では、ストレスフリーに生きる方法を「科学的なファクト」と「今すぐできるToDo」で紹介した。 |
2021-12-04 04:00:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
冨永愛の「パスタ・中華麺・ご飯・パン・粉チーズ」の代替食品 - 冨永愛 美をつくる食事 |
https://diamond.jp/articles/-/288824
|
冨永愛の「パスタ・中華麺・ご飯・パン・粉チーズ」の代替食品冨永愛美をつくる食事年以上トップモデルとして活躍する冨永愛。 |
2021-12-04 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「左利き」はマイノリティではなく、10人に1人の選ばれた人 - すごい左利き |
https://diamond.jp/articles/-/289492
|
「左利き」はマイノリティではなく、人に人の選ばれた人すごい左利き人に人といわれる左利き。 |
2021-12-04 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
認知科学的に正しい「仕事でミスしたとき、心を立て直す」方法 - 独学大全 |
https://diamond.jp/articles/-/289160
|
認知科学 |
2021-12-04 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
大きな夢を叶えたい人、注目! 山梨にある「世界を掴む開運神社」をご存じですか? - 1日1分見るだけで願いが叶う!ふくふく開運絵馬 |
https://diamond.jp/articles/-/287055
|
大きな夢を叶えたい人、注目山梨にある「世界を掴む開運神社」をご存じですか日分見るだけで願いが叶うふくふく開運絵馬Amazonランキング第位祭祀・楽天ブックスランキング第位民俗・。 |
2021-12-04 03:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
出世より“3つの武器”! 人生100年時代に「安定」を 手にする人の意外すぎるアプローチ - 真の「安定」を手に入れるシン・サラリーマン |
https://diamond.jp/articles/-/288742
|
出世より“つの武器人生年時代に「安定」を手にする人の意外すぎるアプローチ真の「安定」を手に入れるシン・サラリーマン仕事がデキない、忙しすぎる、上司のパワハラ、転職したい、夢がない、貯金がない、老後が不安……サラリーマンの悩み、この一冊ですべて解決これからのリーマンに必要なもの、結論、出世より「つの武器」リーマン力副業力マネー力。 |
2021-12-04 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ドラッカーと神田昌典が定義する 「マーケティング」と「セールス」の違いとは? - コピーライティング技術大全 |
https://diamond.jp/articles/-/288647
|
ドラッカーと神田昌典が定義する「マーケティング」と「セールス」の違いとはコピーライティング技術大全話題沸騰Amazonランキング第位広告・宣伝、。 |
2021-12-04 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
サイバーエージェントの人事トップが語る 若手の成長に「意思表明」が欠かせない理由 - 若手育成の教科書 |
https://diamond.jp/articles/-/288931
|
曽山哲人 |
2021-12-04 03:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
FRB、失業率低下でテーパリング加速が視野に - WSJ発 |
https://diamond.jp/articles/-/289628
|
視野 |
2021-12-04 03:23:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
精神科ってどういうところ? - 精神科医Tomy対談 |
https://diamond.jp/articles/-/287871
|
必然に導かれるようにして実現した今回の対談では、「幸せとは何か」「父親の死を経験して思ったこと」「精神科との付き合い方」「発達障害とは」など、多岐にわたり語りあった。 |
2021-12-04 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
コロナ禍で「お出かけ」需要に固執するのはナンセンス - 弱者の戦術 |
https://diamond.jp/articles/-/288200
|
|
2021-12-04 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国が国有レアアース会社設立へ、市場支配力の強化狙う - WSJ発 |
https://diamond.jp/articles/-/289629
|
会社設立 |
2021-12-04 03:13:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
どうして人は、必要以上に群れたがるのか - 孤独からはじめよう |
https://diamond.jp/articles/-/288638
|
自分 |
2021-12-04 03:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
49歳で約1500万円を相続した女性が、なぜか少し残念がった理由 - DIE WITH ZERO |
https://diamond.jp/articles/-/288343
|
diewithzero |
2021-12-04 03:05:00 |
コメント
コメントを投稿