IT |
気になる、記になる… |
Anker、モバイル公式アプリで24製品を最大33%オフで販売するセールを開催中(9月12日まで) |
https://taisy0.com/2022/09/09/161454.html
|
android |
2022-09-09 10:34:16 |
IT |
気になる、記になる… |
楽天モバイル、「iPhone 14」シリーズの販売価格を発表 |
https://taisy0.com/2022/09/09/161444.html
|
apple |
2022-09-09 10:07:37 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 富士通の“政府認定クラウド”が再監査に |
https://www.itmedia.co.jp/news/articles/2209/09/news188.html
|
fjcloudv |
2022-09-09 19:44:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 同志社大の司法研究科教授が論文盗用 「ネット上の学生の文章に著作権はないと誤解」 |
https://www.itmedia.co.jp/news/articles/2209/09/news185.html
|
itmedia |
2022-09-09 19:11:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] ダイハツ、コペン誕生20周年 特別仕様車を生産開始 |
https://www.itmedia.co.jp/business/articles/2209/09/news179.html
|
itmedia |
2022-09-09 19:11:00 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Viteで本番と開発環境で変数を変えたい |
https://qiita.com/Yuumillar/items/b5f4715f4f2aaa12350e
|
envdev |
2022-09-09 19:38:30 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
viteでbiuld時にconsole.logを削除する |
https://qiita.com/Yuumillar/items/3defd315189a8f608edc
|
consol |
2022-09-09 19:09:53 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
サーバー送信イベント |
https://qiita.com/RINYU_DRVO/items/64391fa1fc9a67c91970
|
通信 |
2022-09-09 19:03:49 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
【Git】認証情報を保存する方法 |
https://qiita.com/P-man_Brown/items/db0099fc940003f7584e
|
globalcredentialhelperc |
2022-09-09 19:47:42 |
海外TECH |
DEV Community |
How to Push an empty commit? |
https://dev.to/devsimc/how-to-push-an-empty-commit-28dd
|
How to Push an empty commit Have you ever tried to push a commit to a Git branch without changing any files in order to re run your integration process If yes then you are at the right corner git commit allow empty m “Message ProblemFor continuous integration we are using AWS CI CD delivery pipelines which allow us to build test and deploy applications on a single push to a specific git branch It helps us to reduce the manual overhead of deploying code to the server and handle all the actions automatically But today I faced a problem where I needed to re run my delivery pipeline of a branch without adding any extra space or changing any files in the repository so I searched for the solution for a while and It turns out that Git is allowing us to push an empty commit without adding any staged files to the branch by using one option allow empty during git commit Enough of the problem let s jump on to the solutionPushing a commit with staged filesgit add git commit m changes on app controller git push origin master The above commands will add all unstaged files and add commit and push the code to the master branch after that our delivery pipeline will be started Once the pipeline process fails or you need to run the process again you will have to push something to the branch but as I mentioned earlier we will not make any changes to the files and even then We will be able to commit the branch with this command Pushing empty commitgit commit allow empty m rerunning the delivery pipeline git push origin master After the above commands you can see that the commit has been pushed to your branch and the delivery pipeline will be started |
2022-09-09 10:49:15 |
海外TECH |
DEV Community |
How to Build API with Go and QuestDB |
https://dev.to/arifintahu/how-to-build-api-with-go-and-questdb-19ld
|
How to Build API with Go and QuestDBQuestDB is a relational column oriented database designed for time series and event data It uses SQL with extensions for time series to assist with real time analytics If you are not familiar enough with QuestDB here is demo link to get in touch In this tutorial we will build simple API and implement QuestDB as timeseries database in our project Then we will use Gin Framework for handling HTTP routes Before we begin I ll assume that you Have Go installed on your machineUnderstand the basics of Go languageHave a general understanding of RESTful API Running QuestDBFirstly we need to run QuestDB in our local There are several methods to install it you can find here But we will use Docker and the latest questdb Docker image for convenience To start QuestDB via Docker run the following docker run p p p questdb questdbAlternatively macOS users can use Homebrew brew install questdbbrew services start questdbAfter starting QuestDB the web console is available on port so navigating to localhost should show the UI which looks like the following Alright QuestDB is ready Now let s begin to the next step Building a REST API in Go using Gin and GormLet s start by initializing a new Go module to manage our project s dependencies go mod initNow let s install required dependenciesgo get u github com joho godotenvgo get u gorm io gormgo get u github com gin gonic ginAfter installation is complete the folder should contain go mod and go sum Both of the files contain information of the packages that we have installed For reference I published the entire source code in my github Feel free to clone it git clone Setting up databaseLet s start by creating our database connection and models models tracker gopackage modelsimport time type Tracker struct Timestamp time Time gorm type timestamp json timestamp VehicleId int gorm type int json vehicleId Latitude float gorm type double json latitude Longitude float gorm type double json longitude We have tracker models that will record every position of vehicles Each tracker should have a timestamp a VehicleId with type of integer a Latitude and a Longitude with type of float We should consider if our types are available in QuestDB types or not as stated here Next we will create setup function to connect to our database We can interact with a QuestDB database by connecting to various network endpoints such as Web Console InfluxDB Line Protocol PostgreSQL Wire Protocol HTTP REST API We will use PostgreSQL Wire Protocol by connecting to port because we can use gorm as ORM in golang Before that we need to install gorm driver postgres because we will connect QuestDB using Postgres driver go get u gorm io driver postgresThen we will write function for database connection models setup gopackage modelsimport fmt gorm io driver postgres gorm io gorm var DB gorm DBtype DBConfig struct Host string User string Password string Name string Port string func dbConfig DBConfig ConnectDatabase error dsn fmt Sprintf host s user s password s dbname s port s dbConfig Host dbConfig User dbConfig Password dbConfig Name dbConfig Port database err gorm Open postgres Open dsn amp gorm Config if err nil return err database AutoMigrate amp Tracker DB database return nil In setup go we also define auto migration for tracker model Therefore we don t need to create table in our database first Writing controllersNext we will build simple controllers where we can create and find trackers controllers trackers gopackage controllersimport go api questdb models net http time github com gin gonic gin type CreateTrackerInput struct VehicleId int json vehicleId Latitude float json latitude Longitude float json longitude func CreateTracker c gin Context var input CreateTrackerInput if err c ShouldBindJSON amp input err nil c JSON http StatusBadRequest gin H data err Error return tracker models Tracker Timestamp time Now UTC VehicleId input VehicleId Latitude input Latitude Longitude input Longitude models DB Create amp tracker c JSON http StatusOK gin H data tracker func GetTrackers c gin Context var trackers models Tracker models DB Find amp trackers c JSON http StatusOK gin H data trackers In trackers controller we have CreateTrackerInput to validate request body in CreateTracker handler then we just call our DB instance to execute row creation We also have GetTrackers handler to fetch all rows RESTful routesWe almost there The last thing we need to do is creating route handler and application entry point main gopackage mainimport go api questdb controllers go api questdb models os github com gin gonic gin github com joho godotenv autoload func main r gin Default dbConfig models DBConfig Host os Getenv DB HOST User os Getenv DB USER Password os Getenv DB PASSWORD Name os Getenv DB NAME Port os Getenv DB PORT err dbConfig ConnectDatabase if err nil panic err r POST trackers controllers CreateTracker r GET trackers controllers GetTrackers r Run localhost In main go we have dbConfig for initializing our database connection and we load our database credentials in env file Therefore we need to add env file in our project We will use default user and password of QuestDB as stated here envDB HOST localhostDB USER adminDB PASSWORD questDB NAME qdbDB PORT Alright let s run out APIgo run main goGreat our app is successfully running in localhost and successfully migrating new table Let s test it out by sending POST request to localhost trackerscurl request POST localhost trackers header Content Type application json data raw vehicleId latitude longitude Then we got data timestamp T Z vehicleId latitude longitude Let s test again by sending GET request to localhost trackers and we got data timestamp T Z vehicleId latitude longitude Yeay we have successfully built API with Go and QuestDB |
2022-09-09 10:21:47 |
Apple |
AppleInsider - Frontpage News |
Apple raises iPhone prices outside US and China |
https://appleinsider.com/articles/22/09/09/apple-raises-iphone-prices-outside-us-and-china?utm_medium=rss
|
Apple raises iPhone prices outside US and ChinaApple made a point of saying it was keeping the iPhone range priced the same as the iPhone one but it turns out that was only for the US and China Before Apple s September Far Out event it was sometimes predicted that the iPhone would be as much as more expensive than the iPhone Plus the iPhone Pro line was routinely rumored to be more costly than the iPhone Pro line The reports and rumors were strong and consistent enough that it was a surprise when Apple revealed it was keeping all new iPhone prices the same as in Except now according to CNBC those original rumors were close to accurate ーfor countries other than the US and China Read more |
2022-09-09 10:58:25 |
Apple |
AppleInsider - Frontpage News |
Speck announces new iPhone 14 compatible cases |
https://appleinsider.com/articles/22/09/09/speck-announces-new-iphone-14-compatible-cases?utm_medium=rss
|
Speck announces new iPhone compatible casesCase manufacturer Speck has a series of new offerings for the iPhone and the company has updated its long running lines to suit When your iPhone arrives you re going to want to keep it looking as good as new Speck has expanded its popular Presidio CandyShell and GemShell lines to fit Apple s latest iPhone Presidio Read more |
2022-09-09 10:40:00 |
Apple |
AppleInsider - Frontpage News |
Apple Store is down ahead of iPhone 14, AirPods Pro 2 preorders |
https://appleinsider.com/articles/22/09/09/apple-store-is-down-ahead-of-iphone-14-airpods-pro-2-preorders?utm_medium=rss
|
Apple Store is down ahead of iPhone AirPods Pro preordersApple has taken down the Apple Store in preparation for opening preorders for the iPhone range and the new AirPods Pro from am ET As usual Apple has taken down the entire Apple Store and it will stay down for several hours before returning with all iPhone and AirPods Pro preorder details This does mean that temporarily it is not possible to continue preordering the new Apple Watch range Apple s new iPhone will start at while the iPhone Pro will begin at This year there is a new iPhone Plus which retails from while the other large screen option the iPhone Pro Max starts at Read more |
2022-09-09 10:04:26 |
Apple |
AppleInsider - Frontpage News |
Apple will increase feature gap in the iPhone 15, says Kuo |
https://appleinsider.com/articles/22/09/09/apple-will-increase-feature-gap-iphone-15-models-says-kuo?utm_medium=rss
|
Apple will increase feature gap in the iPhone says KuoAnalyst Ming Chi Kuo predicts that s iPhones will show a greater gap between the regular and Pro models and also between the iPhone Pro and iPhone Pro Max As Apple prepares to take preorders for the iPhone range Kuo has figures from the industry about what proportion of the different models Apple is ordering from its manufacturers Based partly on that he s also extrapolated what he believes is a trend to differentiate models that will become clearer with the iPhone Kuo reports that a survey of supply chain sources in China reveals that Apple is ordering production of dramatically more Pro models than the regular ones Together the total order allocation for two Pros is about of Apple s total orders says Kuo Read more |
2022-09-09 10:40:52 |
海外TECH |
Engadget |
Instagram will introduce a repost feature as part of a new test |
https://www.engadget.com/instagram-is-about-to-start-testing-a-repost-feature-with-select-users-104335702.html?src=rss
|
Instagram will introduce a repost feature as part of a new testInstagram will soon be testing reposts something that s never been available in the main feed part of the app but is a key feature on Facebook and Twitter It was first spotted on the profile of Twitter CEO Adam Mosseri by social media consultant Matt Navarra and Instagram later confirmed it with TechCrunch quot quot We re exploring the ability to reshare posts in Feed ーsimilar to how you can reshare in Stories ーso people can share what resonates with them and so original creators are credited for their work quot a Meta spokesperson told TechCrunch quot We plan to test this soon with a small number of people quot A new screen describes the features as a way to recommend a post to friends and spark conversations wiht follows who can reply to your repost with a message Feed reposts are quot shown in a separate tab in your profile quot along with posts reels and tagged photos and will be visible to followers This is what the new instagram repost feature intro screen looks like h t alexapic twitter com VbwIvRluEーMatt Navarra MattNavarra September Reposts have been available in Stories since but the only way to do it in feeds has been via third party apps clues about the feature were first spotted back in May by researcher Alessandro Paluzzi Instagram s arch rival TikTok recently introduced a repost feature for videos following tests early in However reposted TikTok videos only appear in your friends For You feeds and not in your own profile Instagram has introduced a slew of updates recently to help it better compete with TikTok It recently launched a full screen TikTok like feed and boosted the amount of recommended content you see However following complaints including from celebrities it backed off and said it would phase out the full screen mode and scale back recommended posts Some social media experts worry that reposts may create similar issues by pushing content from strangers quot Reposting is another explicit step towards dismantling the IG that you know in favor of one that Instagram thinks will be a better experience for you quot wroteSocial Media Today s Andrew Hutchinson quot BeReal s growth shows that there is a real desire for more authentic connection and community engagement outside of the constant highlight reels of viral clips quot |
2022-09-09 10:43:35 |
海外TECH |
CodeProject Latest Articles |
Timestamp Converter for Excel (VBA) |
https://www.codeproject.com/Articles/5341500/Timestamp-Converter-for-Excel-VBA
|
converter |
2022-09-09 10:29:00 |
海外TECH |
WIRED |
The Legendary Frank Drake Shaped the Search for Alien Life |
https://www.wired.com/story/the-legendary-frank-drake-shaped-the-search-for-alien-life/
|
extraterrestrial |
2022-09-09 11:00:00 |
海外TECH |
WIRED |
California’s Heat Wave Is a Big Moment for Batteries |
https://www.wired.com/story/californias-heat-wave-is-a-big-moment-for-batteries/
|
energy |
2022-09-09 11:00:00 |
海外TECH |
WIRED |
Our 7 Favorite Deals on Apple Products We Love |
https://www.wired.com/story/apple-deals-september-2022/
|
watch |
2022-09-09 11:00:00 |
海外TECH |
WIRED |
Am I Wrong to Judge People for Talking to Me in Emoji? |
https://www.wired.com/story/am-i-wrong-to-judge-talking-in-emoji/
|
literary |
2022-09-09 11:00:00 |
海外TECH |
WIRED |
How to Preorder the iPhone 14—and Which Model Should You Buy? |
https://www.wired.com/story/how-to-preorder-iphone-14/
|
apple |
2022-09-09 11:00:00 |
海外TECH |
WIRED |
Google and Amazon Seek Defense Contracts, Despite Worker Protests |
https://www.wired.com/story/google-and-amazon-want-more-defense-contracts-despite-worker-protests/
|
Google and Amazon Seek Defense Contracts Despite Worker ProtestsThe tech giants corporate offices across the US drew demonstrations over an Israeli government cloud contract that opponents say could have military uses |
2022-09-09 11:00:00 |
金融 |
金融庁ホームページ |
e-Gov電子申請サービスの復旧について公表しました。 |
https://www.fsa.go.jp/news/r4/sonota/20220909/20220909.html
|
電子 |
2022-09-09 11:00:00 |
金融 |
ニッセイ基礎研究所 |
「みなし入院」に対する入院給付金、支払対象見直しへ-どう見直され、いつの診断まで支払われるのか-いつまで請求できるのか- |
https://www.nli-research.co.jp/topics_detail1/id=72324?site=nli
|
ー「みなし入院」による入院給付金支払対象等の見直しの内容前述のとおり、発生届の範囲について、全国一律に限定する方向で政府が検討している事等を受け、月日付で生命保険協会より、「新型コロナウイルス感染症による宿泊施設・自宅等療養者に係る療養証明書の取扱い等について」が公表され、生命保険会社各社宛、保健所等に療養証明書の発行を求めない事務構築の検討とともに、入院給付金の取扱を見直す方向で検討を行うように周知していることが明らかにされた。 |
2022-09-09 19:39:51 |
海外ニュース |
Japan Times latest articles |
People lay flowers outside British Embassy as Japan mourns Queen Elizabeth II |
https://www.japantimes.co.jp/news/2022/09/09/national/queen-elizabeth-mourned-embassy-tokyo/
|
People lay flowers outside British Embassy as Japan mourns Queen Elizabeth II“I can t talk about her too much without crying but I live nearby and I just wanted to come here today to say goodbye a |
2022-09-09 19:20:54 |
海外ニュース |
Japan Times latest articles |
Ex-PM Mori questioned over Tokyo Olympics corruption scandal |
https://www.japantimes.co.jp/news/2022/09/09/national/crime-legal/mori-olympics-corruption/
|
Ex PM Mori questioned over Tokyo Olympics corruption scandalProsecutors have been seeking to establish a bribery case against Haruyuki Takahashi who allegedly received money from two companies in return for sponsorship deals |
2022-09-09 19:02:02 |
ニュース |
BBC News - Home |
Queen Elizabeth II: King Charles to address nation for first time as monarch |
https://www.bbc.co.uk/news/uk-62847191?at_medium=RSS&at_campaign=KARANGA
|
address |
2022-09-09 10:40:51 |
ニュース |
BBC News - Home |
Premier League games off following Queen's death |
https://www.bbc.co.uk/sport/62846756?at_medium=RSS&at_campaign=KARANGA
|
Premier League games off following Queen x s deathThis weekend s Premier League and English Football League fixtures will be postponed as a mark of respect following the death of Queen Elizabeth II |
2022-09-09 10:47:10 |
ニュース |
BBC News - Home |
Death of Queen Elizabeth II: Royal Family tree and line of succession |
https://www.bbc.co.uk/news/uk-23272491?at_medium=RSS&at_campaign=KARANGA
|
children |
2022-09-09 10:54:30 |
ニュース |
BBC News - Home |
Manchester IRA 1996 bomb: Man arrested at Birmingham Airport |
https://www.bbc.co.uk/news/uk-england-manchester-62850703?at_medium=RSS&at_campaign=KARANGA
|
evening |
2022-09-09 10:47:08 |
ニュース |
BBC News - Home |
'Forever in our hearts' - sport pays tribute to Queen Elizabeth II |
https://www.bbc.co.uk/sport/62843668?at_medium=RSS&at_campaign=KARANGA
|
sportspeople |
2022-09-09 10:35:48 |
ニュース |
BBC News - Home |
Porsche call off Formula 1 collaboration with Red Bull after talks breakdown |
https://www.bbc.co.uk/sport/formula1/62850221?at_medium=RSS&at_campaign=KARANGA
|
stall |
2022-09-09 10:13:35 |
北海道 |
北海道新聞 |
大間原発の工事再開2年延期 運転開始は30年以降か 電源開発 |
https://www.hokkaido-np.co.jp/article/728819/
|
大間原発 |
2022-09-09 19:27:00 |
北海道 |
北海道新聞 |
ウクライナ即時停戦求める 道内16団体、ロシア総領事館に要望書 |
https://www.hokkaido-np.co.jp/article/728817/
|
即時停戦 |
2022-09-09 19:25:00 |
北海道 |
北海道新聞 |
川岸、菅沼、山下が首位に並ぶ 日本女子プロゴルフ第2日 |
https://www.hokkaido-np.co.jp/article/728789/
|
女子プロ |
2022-09-09 19:05:04 |
北海道 |
北海道新聞 |
Jリーグ、入場数の制限緩和 声出し応援席以外は100% |
https://www.hokkaido-np.co.jp/article/728814/
|
新型コロナウイルス |
2022-09-09 19:19:00 |
北海道 |
北海道新聞 |
裁判官のすね蹴り減給処分 神戸地裁尼崎支部の書記官 |
https://www.hokkaido-np.co.jp/article/728808/
|
神戸地裁 |
2022-09-09 19:13:00 |
北海道 |
北海道新聞 |
70歳以上の野球大会企画 小樽銭函連盟 日頃のグラウンド整備に感謝込め 小樽で11日開幕 市外からも参加 |
https://www.hokkaido-np.co.jp/article/728806/
|
限定 |
2022-09-09 19:09:00 |
北海道 |
北海道新聞 |
個人情報を売却 2等海曹を停職処分 自衛隊旭川地方協力本部 |
https://www.hokkaido-np.co.jp/article/728800/
|
個人情報 |
2022-09-09 19:05:00 |
北海道 |
北海道新聞 |
板東・美唄市長が再選出馬表明 |
https://www.hokkaido-np.co.jp/article/728798/
|
出馬表明 |
2022-09-09 19:03:00 |
北海道 |
北海道新聞 |
70代女性が400万円詐欺被害 札幌・南区 |
https://www.hokkaido-np.co.jp/article/728797/
|
受け取り |
2022-09-09 19:02:00 |
ニュース |
Newsweek |
エリザベス女王の死の間際、なぜか彼女のもとへすぐ向かわなかったヘンリーの謎 |
https://www.newsweekjapan.jp/stories/world/2022/09/post-99583.php
|
|
2022-09-09 19:21:00 |
IT |
週刊アスキー |
佐賀県唐津市出身の3巨匠に迫る! 佐賀県立博物館で特別展「建築の建築―日本の『建築』を築いた唐津の3巨匠―」を開催 |
https://weekly.ascii.jp/elem/000/004/105/4105041/
|
佐賀県唐津市 |
2022-09-09 19:50:00 |
IT |
週刊アスキー |
「これが我々の本気です。」新作VR捜査ゲーム『ディスクロニア:CA』特別価格になる事前予約受付がスタート |
https://weekly.ascii.jp/elem/000/004/105/4105026/
|
episodei |
2022-09-09 19:30:00 |
IT |
週刊アスキー |
今度はCS機で戦争だ!PS4/Switch版『大戦略 SSB』の紹介動画が公開 |
https://weekly.ascii.jp/elem/000/004/105/4105028/
|
nintendo |
2022-09-09 19:05:00 |
コメント
コメントを投稿