1
5
submitted 1 year ago by MonyetAdmin to c/cafe
2
71
submitted 1 hour ago by cm0002@toast.ooo to c/funny@sh.itjust.works
3
15
submitted 1 hour ago by kingofras@lemmy.world to c/mop@quokk.au
4
18

I was going to post this in !britishcolumbia@lemmy.ca, but this is likely a national / international problem.

City officials say the QR codes were not authorized by either the municipality or its mobile payment provider, PayByPhone. While the stickers appeared to advertise a convenient way to pay for parking, they actually redirected drivers to a fraudulent site.

I guess it's best to either use the machine (while jiggling the card reader), or you keep the official app pre-installed on your device

5
5
submitted 47 minutes ago* (last edited 44 minutes ago) by KuroXppi@hexbear.net to c/earth@hexbear.net

Popular cultivar with lovely creamy pink and yellow inflorescence. Adored by honey eaters*. Yim yum

*Honeyeaters are a group of birds

6
17
Sergio! (hexbear.net)
submitted 1 hour ago by microfiche@hexbear.net to c/pets@hexbear.net

Working at someone house rerouting some plumbing and this little guy followed me into the tunnel and hung out w me all day. He followed me back and forth to get parts and I shared my lunch w him.

His name is Sergio and he is a good boi.

7
17
submitted 1 hour ago by yogthos@lemmy.ml to c/technology@lemmy.ml
8
22
submitted 1 hour ago by floofloof@lemmy.ca to c/world@quokk.au
9
11
A handy guide (slrpnk.net)

cross-posted from: https://lemmy.world/post/43337214

I found an opossum! Now what?

10
27
submitted 2 hours ago* (last edited 2 hours ago) by schizoidman@lemmy.zip to c/canada@lemmy.ca

cross-posted from : https://lemmy.zip/post/59425135

58 per cent of Canadians surveyed said they no longer view the U.S. as a reliable ally

Over two-thirds of Canadians said the U.S. tends to create problems for other countries rather than solve them

11
134

Context: after eating a death cap (Amanita phalloides), you'd notice a few of the symptoms at first, but these usually resolve after a day or two. After this, you'll enter a latent phase where you feel fine, but your liver and kidneys slowly start to fail. By the time you notice, it's usually already too late.

12
15

Snip:

Krapivnik detailed Russian contributions, noting the delivery of aircraft and reestablishment of Iran’s air defense networks.

“Russia came back, built a reintegrated system, and over the last six months trained up Su-35 pilots and delivered Su-35 fighters — which outrange, by the way, the F-35s, even though it’s a generation 4++ fighter versus the generation 5 fighter that the F-35 represents.”

Chinese contributions, he explained, include high-resolution radar and satellite-linked early warning systems.

“The Chinese are bringing in their integrated radar systems, which include very tight-beamed, low-wavelength sections that can pick up — integrated with the satellite systems — anything within, I think, 500 to 600 kilometers outside of Iran. So anything that the US or Israel is launching is already being picked up and gives them enough time to start reacting to it.”

13
10
submitted 1 hour ago by yogthos@lemmy.ml to c/worldnews@lemmy.ml
14
9
yuri will always deliver (lemmy.blahaj.zone)
15
5
submitted 1 hour ago by yogthos@lemmy.ml to c/usa@lemmy.ml
16
22
submitted 1 hour ago by yogthos@lemmygrad.ml to c/news@hexbear.net
17
11
submitted 1 hour ago by yogthos@lemmy.ml to c/technology@lemmy.ml
18
2
submitted 8 minutes ago by NightOwl@lemmy.ca to c/canada@lemmy.ca
19
6

cross-posted from: https://news.abolish.capital/post/29702

British Prime Minister Keir Starmer is blocking President Trump from using British Royal Air Force (RAF) bases to launch an attack on Iran, The Telegraph reported on Thursday. The report said that the British government has yet to give consent for the US to use bases in the UK for bombing runs against Iran because […]


From News From Antiwar.com via This RSS Feed.

20
4
submitted 1 hour ago by yogthos@lemmy.ml to c/worldnews@lemmy.ml
21
1
22
16
submitted 47 minutes ago by MashedHobbits@lemy.lol to c/world@quokk.au
23
5

Decided to bite the bullet and learn PHP, which is used for nearly everything at my job. My starting voyage was to mess around with "pure php", as in, no frameworks, no libraries, not even javascript, just the basic server with v8.3 running and some (currently very shitty) CSS styling.

So, I decided to go with a 2 step process: first, a site for me to post my stuff, with the possibility for external users to make accounts and leave comments. Step 2 would be making a forum where said users can interact. Before I began coding anything, I wrote down the database specification, though it's still "open for debate". I also didn't pay attention and made all tables as MyISAM initially instead of InnoDB, which made me lose all foreign keys, thankfully easily remedied given the small size of the project.

Thus far, I've got the user creation, listing, login (with hashed password), post creation and post viewing working. Visitors, normal users and admin see different links and forms, depending on pages, all with inline php code in appropriate pages - for instance, (unlogged) visitors don't see a comment box when reading a post. I'm currently working on the user edit page.

Anyway, why do I think I'm doing a lot of "wrongs"? For starters, I'm not using classes. At all. Functions are being added "globally" to one of 3 include somepage.php; that are in every page; every database related function - select all, select 1, update, are all in the db.php file. So, every page load is also loading the entire list of database functions, plus a bunch of html-automation related functions, even when none of them are used. Since PDO::fetch() returns an array with mapped keys (ie: $result['column1']), I feel like I have "no good reason" to use classes, especially as I'm still putting some finishing touches on the tables. I mean, I can access the relevant data with $bla['column_name'];, which is all I need thus far.

A lot of the resulting html comes from echo, some of it from functions to handle it more easily, like passing an array so a "global" function of mine returns it as neatly organized <td> elements.

There is no MVC, just good ol' <a href> and <form method=post> where they need to be. All my forms' actions call a separate php page that's just code to handle the form, always as POST, in order to check blank fields, size and character constraint, etc.

I've no doubt that, as is, my project has a number of security holes, though cross-site scripting and session poisoning are not among them. I did try sql injection and couldn't get it to work, so good on me.

As awful as this project might be against "the real world" use, I feel weirdly proud of what I'm achieving. Is there a name for this feeling, of pride for something you know is subpar?

24
8
submitted 1 hour ago by yogthos@lemmy.ml to c/technology@lemmy.ml
25
23
view more: next ›

monyet.cc

2,373 readers
0 users here now

Welcome to monyet.cc!

This site is geared towards Malaysians, but is not restricted to Malaysians or Malaysian topics. All are welcome!

Signing up is easy. No email address needed!

Rules

1)Be Nice

Just get along and respect each other and we'll be fine.

2)No Bigotry

Malaysia is a multiracial country and sometime we tend to rub shoulder with each other, sometime stuff getting heated up. Argument is fine, disagreement is fine, as long as it stay civil and no one get banned. Bigotry include but not exclusive to: Racism, Sexism, Homophobia, Transphobia, Xenophobia, and so on.

3)No Porn

Do not post, share, or distribute any pornographic material, either here or posting to other instance using account made from here. NSFW discussion(in words only) is allowed, and should be marked as NSFW.

4)No Ads & Spam

Do not spam this Instance with irrelevant shitpost or ads. If your intention of creating an account or community is to flood this place or another instance with shitpost, rage bait, or content for the purpose of cyberbullying, then it break this rule, and will be banned without warning.

All the rule above also extend to the username, community name, banner, and avatar. Your action that breach above rule on another instance will count toward violation as well.

Need Help?

Alternative UI

founded 2 years ago
ADMINS