Skip to content

Commit 4280bf3

Browse files
authored
Merge branch 'master' into master
2 parents 53fd148 + 3633dfd commit 4280bf3

File tree

2 files changed

+134
-6
lines changed

2 files changed

+134
-6
lines changed

draft/2022-02-09-this-week-in-rust.md

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,26 @@ If you find any errors in this week's issue, [please submit a PR](https://github
1919
### Foundation
2020

2121
### Project/Tooling Updates
22+
* [A first look at Sycamore's new reactive primitives](https://sycamore-rs.netlify.app/news/new-reactive-primitives)
23+
24+
* [What's new in SeaORM 0.6.0](https://www.sea-ql.org/SeaORM/blog/2022-02-07-whats-new-in-0.6.0/)
25+
26+
* [SixtyFPS (GUI crate): Changelog for 06th of February 2022](https://sixtyfps.io/thisweek/2022-02-07.html)
2227

2328
### Newsletters
2429

2530
### Research
2631

2732
### Observations/Thoughts
33+
34+
* [audio] [Building with Rust: Josh Triplett on Building the Build System of his Dreams](https://anchor.fm/building-with-rust/episodes/Josh-Triplett-on-Building-the-Build-System-of-his-Dreams-e1dt81c)
2835
* [ZH] [为什么 Rust 没有继承?Why doesn't Rust have inheritance?](https://fengliang.io/RustWHY/design_choices/why_not_inheritance.html)
2936

3037
### Rust Walkthroughs
38+
- [ESP32 MQTT Publish with Rust](https://medium.com/iotics/esp32-mqtt-publish-with-rust-678d1068ee2)
39+
40+
* [series] [video] [Rust Embedded for STM32 Microcontrollers - Cross-compilation](https://youtu.be/WmEBBoc2iYM)
41+
* [series] [video] [Rust Embedded for STM32 Microcontrollers - HAL Crates](https://youtu.be/4oJy3ywY2B0)
3142

3243
### Miscellaneous
3344

@@ -37,7 +48,7 @@ This week we have two crates: [update-informer](https://github.com/mgrachev/upda
3748
library to embed an update check into your CLI project and
3849
[blake3](https://crates.io/crates/blake3), a fast cryptographic hash function.
3950

40-
Thanks to [Grachev Mikhail](https://users.rust-lang.org/t/crate-of-the-week/2704/1014) and
51+
Thanks to [Grachev Mikhail](https://users.rust-lang.org/t/crate-of-the-week/2704/1014) and
4152
[Zac Burns](https://users.rust-lang.org/t/crate-of-the-week/2704/1014) for the suggestions!
4253

4354
[Please submit your suggestions and votes for next week][submit_crate]!
@@ -139,26 +150,38 @@ decision. Express your opinions now.
139150

140151
## Upcoming Events
141152

142-
Rusty Events between 2/2/2022 - 3/2/2022 🦀
153+
Rusty Events between 2/9/2022 - 3/9/2022 🦀
143154

144155
### Online
145156

146-
* [February 3, 2022 | Cardiff, UK | **Rust Book Study Session - Smart Pointers** | Rust and C++ Cardiff](https://www.meetup.com/rust-and-c-plus-plus-in-cardiff/events/283480500/)
147-
* [February 5 & 6, 2022 | Kyiv, UA | **Write a Game on Rust** | Rust Ukraine](https://dou.ua/calendar/42115/)
148-
* [February 8, 2022 | Saarbrücken, DE | **Meetup: 17u16** | Rust-Saar](https://www.meetup.com/Rust-Saar/events/283617274)
149-
* [February 8, 2022 | Seattle, WA, US | **Monthly meetup** | Seattle Rust Meetup](https://www.meetup.com/Seattle-Rust-Meetup/events/283213217/)
157+
* [February 9, 2022 | Boulder, CO, US | **Monthly Meetup** | Boulder Elixir and Rust](https://www.meetup.com/boulder-elixir-rust/events/283700330/)
150158
* [February 9, 2022 | Los Angeles, CA, US | **Raphael Tessmer & Celeste, finding craters on a rusty planet** (Virtual) | Rust Los Angeles](https://www.meetup.com/Rust-Los-Angeles/events/283232930/)
151159
* [February 9, 2022 | Stuttgart, DE | **Rust-Meetup** | Rust Community Stuttgart](https://www.meetup.com/Rust-Community-Stuttgart/events/282545292)
160+
* [February 10, 2022 | San Diego, CA, US | **San Diego Rust February 2022 Tele-Meetup** | San Diego Rust](https://www.meetup.com/San-Diego-Rust/events/283655575)
161+
* [February 15, 2022 | Berlin, DE | **Rust Hack and Learn** | OpenTechSchool Berlin](https://www.meetup.com/de-DE/opentechschool-berlin/events/283633079/)
152162
* [February 15, 2022 | Indianapolis, IN, US | **Indy.rs - with Social Distancing** | Indy Rust](https://www.meetup.com/indyrs/events/283538948)
153163
* [February 15, 2022 | Washington, DC, US| **Mid-month Rustful** | Rust DC](https://www.meetup.com/RustDC/events/283351974/)
154164
* [February 16, 2022 | Vancouver, BC, CA | **Rust Study/Hack/Hang-out Night** | Vancouver Rust](https://www.meetup.com/Vancouver-Rust/events/283260386/)
155165
* [February 17, 2022 | München, DE | **Rust - beyond "Hello World"**| Agile Softwareentwicklung München](https://www.meetup.com/maibornwolff-software-engineering-netzwerk/events/283379985)
156166
* [February 17, 2022 | Nürnberg, DE | **Rust Nürnberg online #10**| Rust Nuremberg](https://www.meetup.com/rust-noris/events/283545751/)
157167
* [February 17, 2022 | Stuttgart, DE | **Rust-Meetup** | Rust Community Stuttgart](https://www.meetup.com/Rust-Community-Stuttgart/events/282545308)
158168
* [February 17, 2022 | Würzburg, DE | **Meet and chat about Rust** | Rust Würzburg Meetup Group](https://www.meetup.com/rust-wurzburg-meetup-group/events/283609518)
169+
* [February 22, 2022 | Dallas, TX, US | **Last Tuesday Meetup** | Dallas Rust](https://www.meetup.com/Dallas-Rust/events/283669162/)
159170
* [February 22, 2022 | Dublin, IE | **Rust Dublin February Meetup** - Rust Dublin](https://www.meetup.com/Rust-Dublin/events/283613610)
171+
* [February 23, 2022 | México City, MX | **Platica Febrero 2022** | Rust MX](https://www.meetup.com/Rust-MX/events/283662630)
160172
* [February 24, 2022 | Linz, AT | **Rust Meetup Linz - 19th Edition** | Rust Linz](https://www.meetup.com/Rust-Linz/events/283377693/)
173+
* [March 1, 2022 | Buffalo, NY, US | **First Tuesdays: Buffalo Rust User Group** | Buffalo Rust Meetup](https://www.meetup.com/Buffalo-Rust-Meetup/events/283638736)
174+
* [March 2, 2022 | Berlin, DE | **Rust Hack and Learn** | OpenTechSchool Berlin](https://www.meetup.com/de-DE/opentechschool-berlin/events/283633083/)
175+
* [March 7, 2022 | Valence, FR | **Coding-dojo - Rust** | Ardèch’Drôm Dev](https://www.meetup.com/Ardech-Drom-Dev/events/283624590)
176+
* [March 8, 2022 | Seattle, WA, US | **Monthly meetup** | Seattle Rust Meetup](https://www.meetup.com/Seattle-Rust-Meetup/events/283221922/)
177+
178+
### North America
161179

180+
* [March 14, 2022 | Atlanta, GA, US | **_New_ Atlanta Rust Meetup** | Atlanta Rustaceans](https://twitter.com/atl_rustaceans/status/1489586471367589893)
181+
182+
### North America
183+
184+
* [March 14, 2022 | Atlanta, GA, US | **_New_ Atlanta Rust Meetup** | Atlanta Rustaceans](https://twitter.com/atl_rustaceans/status/1489586471367589893)
162185

163186
If you are running a Rust event please add it to the [calendar] to get
164187
it mentioned here. Please remember to add a link to the event too.
@@ -169,6 +192,10 @@ Email the [Rust Community Team][community] for access.
169192

170193
# Rust Jobs
171194

195+
**LoanPASS**
196+
197+
* [Full Stack Engineer, Rust + Typescript (Remote US)](https://loanpass.io/careerPage.html)
198+
172199
*Tweet us at [@ThisWeekInRust](https://twitter.com/ThisWeekInRust) to get your job offers listed here!*
173200

174201
# Quote of the Week

tools/generate_event_links.py

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
#!/usr/bin/python3
2+
3+
"""
4+
Generates `meetup.com` URLs for the upcoming TWiR
5+
"""
6+
import datetime
7+
8+
WEDNESDAY_DATETIME_DAY = 2
9+
END_DATE_WEEKS = 4 # Number of weeks to skip
10+
11+
DATE_FORMAT = "%Y-%m-%d"
12+
START_URL_ENCODING = "T03%3A00%3A00-05%3A00" #T03:00:00
13+
END_URL_ENCODING = "T02%3A59%3A00-05%3A00" #T02:59:00
14+
EVENT_TYPES = [
15+
"online",
16+
"inPerson"
17+
]
18+
KEYWORDS = [
19+
"Rust"
20+
]
21+
LOCATIONS = [
22+
"us--tx--Dallas",
23+
"us--ca--San%20Francisco",
24+
"us--ma--Boston",
25+
"gb--Greater%20London--London",
26+
"ru--Moscow",
27+
"ma--Casablanca",
28+
"de--Berlin"
29+
]
30+
31+
def get_closest_wednesday():
32+
"""
33+
Returns the closest Wednesday to the current day
34+
"""
35+
day = datetime.datetime.today()
36+
37+
while day.weekday() != WEDNESDAY_DATETIME_DAY:
38+
day += datetime.timedelta(days=1)
39+
40+
return day
41+
42+
def get_desired_date_range():
43+
"""
44+
Returns datetime.datetime for the next closest Wednesday, and the Wednesday that
45+
is four weeks later.
46+
"""
47+
closest_wednesday = get_closest_wednesday()
48+
49+
# We add END_DATE_WEEKS, and 1 day because Meetup requires DAY+1 for proper querying
50+
end_date = closest_wednesday + datetime.timedelta(weeks=END_DATE_WEEKS, days=1)
51+
52+
return closest_wednesday, end_date
53+
54+
def get_formatted_dates():
55+
"""
56+
Returns formatted date strings of format "YEAR-MONTH-DAY"
57+
58+
e.g. March 11, 2022 would be 2022-03-01{START_URL_ENCODING}
59+
"""
60+
61+
start, end = get_desired_date_range()
62+
63+
formatted_start = f"{start.strftime(DATE_FORMAT)}{START_URL_ENCODING}"
64+
formatted_end = f"{end.strftime(DATE_FORMAT)}{END_URL_ENCODING}"
65+
66+
return formatted_start, formatted_end
67+
68+
def get_urls():
69+
urls = []
70+
start_date, end_date = get_formatted_dates()
71+
72+
for event_type in EVENT_TYPES:
73+
for keyword in KEYWORDS:
74+
for loc in LOCATIONS:
75+
full_url = f"https://www.meetup.com/find/" \
76+
f"?keywords={keyword}" \
77+
f"&source=EVENTS&" \
78+
f"customStartDate={start_date}" \
79+
f"&customEndDate={end_date}" \
80+
f"&location={loc}" \
81+
f"&eventType={event_type}"
82+
urls.append(full_url)
83+
84+
return urls
85+
86+
87+
def main():
88+
urls = get_urls()
89+
90+
# TODO: Auto parse results... For now, generates an HTML page of links to use
91+
CUTOFF_POINT = 160 # Skips all portions of URL up to the location + in-person/online
92+
93+
date_title = str(datetime.datetime.today().strftime("%m_%d_%Y"))
94+
with open(f'{date_title}.html', 'w') as f:
95+
f.write(f'<p>{date_title}</p>\n<br>\n')
96+
for i, url in enumerate(urls):
97+
text_line = url[CUTOFF_POINT:]
98+
f.write(f'<a href="{url}" target="_blank">{text_line}</a>\n<br>\n<br>\n')
99+
100+
if __name__ == '__main__':
101+
main()

0 commit comments

Comments
 (0)