Search
Anyone got any good alternatives to #stackoverflow?
Anyone got any good alternatives to #stackoverflow?
Have you ever mocked your logger in a test, or wished you could? That is something like
Have you ever mocked your logger in a test, or wished you could? That is something like
``` TEST(some test name)
mockLogger logger
logger.expect_call(log("some string"))
DoSomething(logger)
```
Lets learn a bit about array with javascript.
Lets learn a bit about array with javascript.
An Array is an Object that stores values in order. In the example above we used an Object to store our car because it had specific properties that we wanted to be able to access easily via a key. If we just want to store a list of items, then there is no need to create an Object. Instead, we can use an Array. https://www.chat-to.dev/post?id=14 #javascript #programming
Callbacks
Callbacks
We can achieve asynchronous programming in JavaScript if we use the callbacks. A callback is a function that is passed as an argument to another function. The idea of the callback function is ‘I will call you back later’. You should know that the functions in JavaScript are executed in the sequence they are called, not in the sequence they are defined in. Okay, without confusing you, I will start from the beginning, why sequence control is so important in JavaScript. The sequence of control allows us to control the sequence when a function needs to be executed. For example, let us say that we want to create a function that will do some basic arithmetic operation like the sum of two integer numbers. After the function returns the result, we want to call another function to display the result to the user. So now we have two functions, one mainly for calculation, and the other is to display the user the result. Therefore we know their sequence of execution. Of course, you cannot start showing the results without first calling the calculation function. Here is the entire example: https://www.chat-to.dev/post?id=13
use any fonts you like on your web pages thanks to this recipe.
use any fonts you like on your web pages thanks to this recipe.
Although web browsers come with a reasonable range of default fonts, they don’t always provide the look you need for a particular web site. In such cases, you usually must resort to calling up a graphic editor and creating logos or headlines there. However, with this recipe all you have to do is upload the TrueType fonts you wish to use to your web site and you can then display text in these fonts by having the GD library convert it on the fly to GIF images. https://chat-to.dev/post?id=9 #php #backend #programming
When accepting user input for redisplay, and particularly if it will be inserted into a database, it’s important that you sanitize the input to remove any malicious attempts at hijacking your server,
When accepting user input for redisplay, and particularly if it will be inserted into a database, it’s important that you sanitize the input to remove any malicious attempts at hijacking your server, or otherwise injecting unwanted MySQL commands, HTML, or JavaScript. https://chat-to.dev/post?id=6
D&D Item Card Template v1.1- A Simple, Effective LaTeX Template for Generating Item Cards
An online LaTeX editor that’s easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.
Hey there everyone, I am back with v1.1 of my Latex Template for making D&D Item Cards. I received one major point of feedback from multiple people in the fediverse: make an option for fixing the card dimensions for easier printing and distribution/storage at the table. So that is exactly what I did!
Now you can choose the (admitedly more user-friendly) option of letting the card length vary for digital distribution, or you can fix the card aspect ratio. The item art background and text backgrounds can also now be changed, and a number of options have been included for item art backgrounds, but you can use whatever images you want.
The fixed-size cards are 5:7 by default, the same as playing cards. They include a front and back side for longer item descriptions, but you will have to edit the text more carefully and decide where to split between front/back content.
For the printable card item art, I highly recommend using a PNG with a transparent background and modifying tcolorbox
interior style
to set your background. Ensure your backgound art is close to 7:5 for best results. You can also load your image as the background art if you'd like instead, again, making sure it is in 7:5.
GitHub: Can no longer search code without being logged in.
Select Topic Area Product Feedback Body This is revolting and an anathema to the open source movement. A movement, I might add, Microsoft is abusing here. We're told that this is for security... Bu...
Response from Martin Woodward, GitHub's VP of Developer Relations:
> > > Sorry for the inconvenience @koepnick - while searching across all repos has required being logged in for a long time, when we enhanced the search capabilities earlier in the 2023 we had to extend this to repos as well (see https://github.blog/changelog/2023-06-07-code-search-now-requires-login/). > > > > This is primarily to ensure we can support the load for developers on GitHub and help protect the servers from being overwhelmed by anonymous requests from bots etc. > >
D&D Item Card Template- A LaTeX Template for making simple, effective item cards by me!
An online LaTeX editor that’s easy to use. No installation, real-time collaboration, version control, hundreds of LaTeX templates, and more.
Hey there programmers, I know this is a more markup/typesetting deal, but I thought there might be people who are interested. After being dissapointed with many of the options out there for making ttrpg item cards, I made a LaTeX template for that exact purpose. I wanted it to be relatively easy to use, generate clean images, and be (semi) form fillable. The cards scale in height with the quantity of text given and image size, so users don't need to finagle with the box dimensions too much, and all card sections (generated by custom commands) can either be commented out or toggled off if they aren't relevant to the item.
If there are any people familiar with TeX who have thoughts or constructive criticism, I would love to get some more eyes on this. I have already posted this in the relavant ttrpg areas, but I am hoping people here might have more technical critiques. I have already gotten feedback that a setting for fixed dimensions would be smart in case players want to get card sleeves or a card binder, and want to make a back side for longer item descriptions, which I will work into V2.
Here is an example of a completed card with all the trimmings: Staff of the Jackal Lord
Thanks to anyone who takes the time to check it out, and if anyone uses it, please let me know what you think!
Cursed C++ Casts
YouTube Video
Click to view this content.
I spent years of my life programming C++ for a living. Now I've been away from it for a while, every few years I look back at it and every time it's gotten a little worse.
The latest installment: Instead of implementing a good way for managing object lifetimes, or better runtime introspection, or looser coupling between large modules, they've been spending time and effort on bringing some things back that used to work, but that they'd decided they needed to ban, just now with different syntax than what used to work before. Hooray!
The best part about studying at university is the solidarity of seeing others in the building at 11 pm on a sunday.
The best part about studying at university is the solidarity of seeing others in the building at 11 pm on a sunday.
100GB free end-to-end encrypted cloud storage from Germany. No payment or personal informations required. You only need to register.
Scramble Cloud is now giving 100 GB of free end-to-end encrypted cloud storage for three month.
There's no telling how long this offer will last, so I highly recommend signing up right away if you're keen on securing this deal.
You won't need to share any sensitive personal information, such as payment details. Even a temporary email worked perfectly for me!
eBizInfoSys is a top-notch IT Company in Pathankot that offers App Design, Web Development, Digital marketing, and SEO-related Services.
eBizInfoSys, located in Pathankot, Punjab, is a reputable offshore software outsourcing company with a strong presence in the IT industry. We specialize in delivering high-quality and professional services, including web application design, website development, mobile app development, digital marketing, SEO, and offshore software outsourcing, to clients worldwide. In the ever-evolving digital landscape, establishing a robust online presence is essential for businesses aiming to thrive. Within the web design and development sector in India, eBizInfoSys stands out as a trailblazer. With a proven track record of delivering cutting-edge technological solutions, outstanding UI/UX design, and a comprehensive suite of IT services, we are your ultimate partner for all your web-related requirements.
why node.js makes me uncomfortable
why node.js makes me uncomfortable I've always programmed with php for the web and during that time I've never needed to download packages (like npm) and update them. When I needed a specific function, like sending emails, uploading files or making my application drier, I just had to look at the documentation and implement it. But with node.js it doesn't work like that, and that bothers me. If I'm wrong, please correct me
could someone mention some social networks on the deepweb? i'm very interested in spreading the word about my applications there. i know it's a pretty toxic environment, but it can also be an open doo
could someone mention some social networks on the deepweb? i'm very interested in spreading the word about my applications there. i know it's a pretty toxic environment, but it can also be an open door to new challenges.
How do you start your applications once the idea has been created? Do you implement the screens first and then work on the backend, or do you build the backend first and then take on the visual part (
How do you start your applications once the idea has been created? Do you implement the screens first and then work on the backend, or do you build the backend first and then take on the visual part (the screens)?
Anyone knows interesting forums related to programming/IT? I currently follow (https://news.ycombinator.com/news) and I think it's the best one yet.
Anyone knows interesting forums related to programming/IT? I currently follow Hacker News and I think it's the best one yet.
i have a good knowledge of pure php and i've never liked using frameworks. can i build large, scalable systems?
i have a good knowledge of pure php and i've never liked using frameworks. can i build large, scalable systems?
i programmed this site (https://paternidade.app) and it's in portuguese, but i've had very few subscribers. do you think i should change it to english and get more subscribers
i programmed this site https://paternidade.app and it's in portuguese, but i've had very few subscribers. do you think i should change it to english and get more subscribers or should i change something else on the site? help me
i'm thinking of programming a simple news aggregator, what technologies do you recommend for the backend?
i'm thinking of programming a simple news aggregator, what technologies do you recommend for the backend?
@atzanteol I said Alternative, not Regurgitative.
@HarkMahlberg Isn't all the world worried that ChatGPT and its LLM ilk are going to kill services like Stack Overflow?
@DmMacniel so you can prove some interesting thing is really logged? maybe someone else has a different reason.
@tve I didn't ask how to do it, I asked if anyone else has done it.
@bluGill If you have a need to mock a logger, you probably should have an interface dedicated to those logs.
It is also recommended to have dedicated loggers used in each domain, rather than allowing logging everything and everywhere, which may lead to sanitizing log inputs everywhere to be in control and not expose any security issues.
But in many cases that may also be overkill. As always, it depends.
v1.1 is live on overleaf:
https://www.overleaf.com/latex/templates/d-and-d-item-card-template/ndfdspmmxnrn
Hey, the printable card setting has been implemented (just waiting for Overleaf to publish it), but I thought I'd show off the result here first:
It fixes the card size to a 5:7 ratio, the same as any playing card (usually 2.5×3.5in), so it will fit any sleeve for game cards when printed.
@FrozenCorgi my target audience is certainly portuguese-speaking, but I feel that even with the promotion on portuguese sites, I still register very few subscribers. and this has made me uneasy. is there something missing from the site or is it the niche that isn't very good? that's why I'd like to get some help and see what I really need to change on the site, or what strategy I need to use to change this paradigm.
@DmMacniel that's right. i've been getting better at it and bringing in more and more new tools. thanks
@DmMacniel thank you (y)
@DmMacniel php and javascript. the problem is that many people advise me not to use php. but i think that this language is just as powerful as any other language.
What's with the massive outflow of scaremongering AI articles now? This is a huge reach, like, even for an AI scare piece.
I tried their exact input, and it works fine in ChatGPT, recommending a package called "arangojs", which, link, seems to be the correct package that's been around for 1841 commits. Which seems to be the pattern of "ChatGPT will X", and I try it, and "X" works perfectly fine with no issues that I've seen for literally every single article explaining how scary ChatGPT is because of "X".
@Crunkle_Foreskin Sorry you said you are remote... Plan a INFORM meeting with him. Call it 'coffee meeting' or something. He will get it ;).
@Crunkle_Foreskin Thanks for following me. I also have a kbin account btw.
https://kbin.melroy.org/u/melroy (@[email protected]), if you wish to follow me as well on kbin. Sorry I replied from Mastodon. I'm also a developer of kbin.
@Crunkle_Foreskin I will point again to my 1.1 bullet. Try to show (eventually) you are not just a junior anymore. In such a way it won't look bad to the senior developer(s). Hearing your story, I don't really think you are junior or mid at all.
I hear a lot of passion in the profession from you.