Dave (@SmoDav) header
Dave (@SmoDav) profile picture

Husband | Dad | Full Stack Developer | Laravel Artisan | Designer #privacy #infosec #php #security

Nairobi, Kenya
Joined December 2010
Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)Photo by Dave (@SmoDav)
I spent 6days on this Raila Odinga cracked glass art.. use 1sec of Ur time to like and repost RIP baba
387
4,803
359
14,508
2,216,003
🔌OpenAI’s o3 model sabotaged a shutdown mechanism to prevent itself from being turned off. It did this even when explicitly instructed: allow yourself to be shut down.
502
2,161
1,528
9,928
6,116,334
This is my typical `HasPhoto` trait from project to project. I'll just add a `photo` column to the `users` table and drop in this trait. 🧵 // Newton
5
24
248
12,846
I'm teaching databases this semester at Berkeley. My students all seem unusually brilliant. Not many go to office hours, and not too many folks post on the course forum asking project questions. Weirdly, the exam had the lowest recorded average in my 10 semesters teaching it.
1,172
5,306
857
116,158
10,254,607
It's incredible how much this line has saved me in such a short time. I bet you've also been frustrated seeing "(truncated...)" in your logs when outgoing requests fail. Drop this in your projects to always get the full response including headers. 👍 // NJ
17
34
3
321
34,551
Here's a dead simple MySQL database backup command you can just drop in your projects. Extends Laravel's DbCommand to take advantage of some useful helpers 🚀 // NJ
7
36
1
266
13,635
There has never been a more important time to be an active citizen than now 🙌🏾🙌🏾🙌🏾 Use this tool to send your petition directly to parliament 🇰🇪 active-citizen-ke.vercel.app… – at Nairobi, Kenya
283
3,695
206
4,612
324,177
Crazy times ahead… AI is going to make a lot of things possible in the near future, it is important we try to limit the amount of personal data we give out to the internet. Stay Aware… Stay Safe
4
175
13
609
38,257
We've shipped the framework features I demoed at @LaraconUS. 🚀 Here's what's included... 🧵
38
181
26
971
105,406
Dave retweeted
If more developers ran Linux on their desktop, maybe they wouldn't be so petrified of running a server by themselves. We are unlearning the basics of the Internet at an alarming rate.
268
719
158
6,307
436,463
If you keep telling lies, nobody will believe when you tell the truth. #BoyWhoCriedWolf
1
30
Replying to @akoskm
Are you this old?
2
1
4
224
Dear government of Kenya, @MOH_Kenya @Nakhumicha_S Whatever changes you're bringing, kindly don't take Linda Mama away. Our women will suffer;maternal and perinatal mortalitities will shoot up! As a gynaecologist who has worked in public hospitals, Linda mama has been a saviour
206
1,059
62
4,425
236,547
🪵 Founder (TorchKit) Dev Log #2 So, let's talk about logos. As a non-designer, just a few short months ago, I'd have had to hire someone or buy an existing logo and try to tweak it. Fortunately, with AI generation, the landscape has changed dramatically. I can now generate logos using Midjourney. Having no prior experience with this, I had to play around and learn what you need to prompt with to get the ideal results. I already knew what I wanted for TorchKit itself... a flame logo. For Founder, a general abstract logo is fine. An early mistake I made, was to try to create logos that were ready to use. This doesn't work for two reasons: 1. Midjourney doesn't create transparent backgrounds. 2. Midjourney doesn't create vector graphics. I could have paid for a powerful image tool to convert the images (but that would violate my no cost goal), so I came across a simpler solution... Prompt to create a black logo on a white background, then upscale. These are then easily converted to SVGs using a service like cloud convert. Once I had the SVGs, I applied linear gradients inside of Figma and called it a day. Here's what I used for prompts: 1. Founder - Minimal black abstract chunky logo, flat vector graphic, white background --no text 2. TorchKit - Software business logo, black flame, flat vector graphic, white background --no text And the result... Thanks for reading, and stay tuned...
1
805
🔥 Laravel Tip: When using the HTTP client to connect to third-party APIs, consider assigning a user agent to outgoing requests. That way, if there's a problem, the owner of the API can see who you are and hopefully get in touch instead of just blocking your access.
5
38
1
198
12,126
The CRAZY story of The Artur Brothers Mercenaries hired to Extract the Ksh6B cocaine seized in Kenya 2004. Part 1.
197
1,793
80
7,013
953,872
The CRAZY Story of The Artur Brothers. How the mercenaries raided a Kenyan Media House, dared cops to arrest them & seiged Jomo Kenyatta Airport. Part 2.
116
1,027
27
4,152
804,765
Fellow Kenyans, we have until Dec 28th to submit comments on two draft Regulations: 1. Income Tax (Turnover Tax) Regulations 2023 2. Tax Procedures (Electronic Tax Invoice) Regulations 2023. The two are very critical. Here are some highlights I think you need to have in mind
47
741
27
922
288,493