#development
1 messages · Page 9 of 1
Thats actually what I plan to do. my goal is to convert all my invoicing numbers to date/time
like such
I guess its technically the subject line of an email so there's no way for it to change after sending.
yeah once its sent its just text.
Does that also apply to the body of the email?
yeah
Anyone know of any free write-only public log file services?
I need to be able to accept semi-private log files (Brower Command Line data that can contain search queries) from users in a way that allows them to upload-only, and that I can read later. Are there any existing services for this that I use and can point my github issue reporters for uploading?
Alternatively, I could ask users to encrypt their log files using public key encryption but I don't want to encrypt the local log files by default so that more tech savvy users can review the log files themselves.
Suggestions are appreciated, Thanks in advance!
add a log upload tool inside your application? let them upload through a website controlled by you that you do encryption inside before passing stuff to permanent cheap storage?
Releasing support for decode benchmarking as well as support for Intel iGPU QSV encoders to my tool soon; next up is Intel AV1 😎 https://github.com/Proryanator/encoder-benchmark
I imported my Apple PC's to my game (btw the name of the brand in-game is changed due to copyright reasons)
Did you do Pineapple?
I named the Apple brand "Quince"
All 3 of my latest changes are now stalled from submission because of issues in the testbenches that are causing them to fail 😅
all of them failing in a different team's testbench
working on a linux version of a game im making
it's designed for windows but a linux port may do well
you should try using comic sans, it's a very professional font and everybody likes it
I'm about to send a cease & desist to amazon for its continuous campaign to psychologically scar me as an AWS user
good
In what respect?
what did i just read
Several, but overall the absolute state of some of their services & developer tooling. I keep having to re-learn the lesson that a lot of things are broken and will leave you stranded as soon as your use-case strays outside of mundane/rudimentary.
Amazon has such a massive marketing budget - its easy to be suckered into thinking things like Amplify, Codepipeline, AppSync etc are viable when there are 100 prominent influencers on medium and youtube claiming they are the bees knees.
So many services that just dont work - half-finished, half-baked solutions that were seemingly incepted when some company paid an AWS Solutions architect to build something, and then released to the public and never fixed/maintained/updated again... at least until a new company comes along, tries to use it, gets stranded and pays another solutions architect to further develop the service.
oh you better believe it
especially if it's not a tier 1 amazon app.
we used amazon uhh... whatever the phone thing is
no api. Login uses an AWS login, so if you're using/testing it and you login to AWS it fucks it up. UUGGGHHHHHHH
a lot of things are just thin veneers over a bunch of lambda functions (I'm looking at you code pipeline)
The key is to stick to the "basics" tier 1 services and go from there.
ran into something like that at work a month or two ago
they just randomly made breaking changes to one of their SDKs with no warning and didn't even mention it in the changelog
lambda, ec2, sqs, sns, s3, efs, rds, networking, load balancing, etc.
ooof. That is unusual to be fair, they are usually pretty good about that
then when i complained to our rep and in a ticket their response was straight up "we can change things whenever we want and actually it's your fault for assuming we follow semantic versioning"
user error 😄
the cloud service APIs yeah
the SDKs are usually pretty poorly documented and maintained
but that is definitely the most egregious I've seen
oooh, yeah, they are.... .... useable.
but I haven't done AWS for like ... a year?
and I have done azure, and fuck I hate azure. It's like a microsoft guy from 2005 heard about cloud and was like "oh shit we better make some cloud"
AWS as discussed has its problems, but it has the feel that it was at least core designed by engineers, not button mashers
oh no, yeah I've heard azure is worse lol
IDK SAM is absolute jank
Anyone know of a good way to implement a metrics counter within AWS? We use DDB for a lot of things but their non-atomic "atomic" updates in DDB aren't great.
Having used both I have to agree. Altough I used Azure like 4 years ago so it might be better now...
does this look like a 2008 UI ?
Looks like a Zune skin
I think the white shadow doesn't make it look any better... 2008 tho? Nah not really. I don't personally like the look tho.
i think it looks good
what the fuck does this mean
Makefile:2: *** missing separator. Stop.
here is my makefile:
all:
g++ -g --std=c++17 -I../include -L../lib ..src/*.cpp ../src/glad.cpp -lglfw3dll -o main
Twitter's public algorithm has some banger PRs today
usually means you have a trailing whitespace or used the wrong tabs/spaces or whatever
makefiles are whitespace sensitive
i normally suggest using cmake instead of make because it simplifies your life a ton
thanks I figured it out
but I actually just switched to rust because I got lazy 💀
++ for Rust. Cargo runs circles around cmake imo
for those who used MATLAB in university, do you actually got a school license for it, or just a "license"(aka, a iso)
school license
That's why you use bazel 🙂
School licenses it
Would login with school email and it will give you the proper licence
Announced today
I want to employ your guys' brilliance - I'm working on a birthday scavenger hunt type thing for my wife. I'm making it in Python, if that matters.
I already have 10 steps coded that range from silly (fake) questions, to substitution cipher, ASCII85 encoded strings on notes around the house, Bacon Cipher, Satisfactory coordinates to a clue, Spotify playlist QR with titles as the clue and so on.
She's into geeky things, video games movies and the like. She's not so much into coding, ciphers and all that, but I figured this might be a fun way to introduce her to the concepts here.
I'm wondering if you might have any other cool ideas of how I can hide clues to stuff.
Ideas I've been considering but too lazy/stupid to implement: AR model with a clue hidden inside it, youtube videos where the clue can be decoded by skipping to the parts in a correct order, geocaching.
advantages of being on a non-english country i guess. but it's probably because we just use matlab for simple stuff. 🤣
Might be a stupid question. But I created a Docker container for the data science project my team is working on. So we have to deal with less merge conflicts when working on the same notebook and so we can share one requirements.txt file that works on all machines (because of different operating systems). We like to use VS Code for development because it has an easy integration with Git, decent highlighting, and integration of handy plugins like GitHub Copilot. But.. once I select the Jupyter server of the Docker container as the interpreter, the intellisense of packages installed with pip install are lost. Only the most basic packages still have intellisense since their source code is stored in ~/.vscode/extensions. Now I don't really want to use the Dev Containers extension because you lose access to git integration from the terminal/extensions that way. But would it be possible to select the python interpreter of the Docker container as the python interpreter for VS Code? Or would it be possible to add the source code of other extensions to the ~/.vscode directory? And would it be possible to update these automatically when starting the Docker container according to the requirements.txt file?
yeah its definitely 2011 or something, i remember the apps on my old tablet (flashfligh etc.) and they always had this pseudo 3d ui
Cargo is more comparable to Conan, but yes cargo is great
picking up objects
im loving the sound
thanks, i got it on a royalty free website
shotgun channels much
love the object names. especially the cube
Anyone developing for scientific research in emacs? (Very niche field I’m aware)
I use nano
Scientific computing for fluid dynamics
But to be honest, I develop on my laptop in VS Code, then copy paste the whole file into nano when I SSH into the HPC
Ping me btw
@shadow rapids ahhh I don’t work in HPC mainly computational math (working with a perturbation algorithm for a graph network)
It makes sense why you would use nano though, you don’t really need to do extra editing once you have it established in vscode
I’ve started using emacs for latex and python but I still run MATLab and R in their respective ides
I want to figure out a way to run MATLAB in VS Code
I really hate the default editor
Problem is, I use macOS, and MathWorks has not released an Apple Silicon compatible CLI MATLAB. Which, in my opinion, is completely embarassing.
To be fair, MathWorks as a company is very very very privatized. If you can, you might like looking into Julia since it can run pretty fast in respect to C++ but still has the ease of use similar to matlab
Their community is super nice too, similar to rust
I've been actually thinking about doing that. Julia is attractive due to it's speed. My PI wants me to translate my current prototypes into C, but if I can figure out an interface, I'm sure Julia would honestly be comaprable speed with much faster Python -> translation
Julia is very fast compared to Python, and it’s speed is near comparable to C. The documentation is there and it’s really good for establishing macros and runs with LLVM
Obviously nowhere near as good as C but better than matlab
I need to use matlab simulink and there is no real other alternative
You could develop without Simulink kekw, but why is Simulink so vital to you?
I’m sure there’s numerical libraries for any other language that’ll offer you the same endgoal, but is it just the graphical interaction you prefer?
it's basically the standard for controls
and modeling
I don't use Simulink
it's not just the graphics, there's many other parts of it that are useful
I do modeling and we don’t need Simulink, my models are for neurons/neural networks
We just use matlab because it’s easy to code a quick simulation for testing but not implementation
ah yeah, but that's neural stuff, not physical engineering models/simulations
I run data sets from physics engines. But there’s literally FreeCad
freecad sucks
I think Simulink might make it an easier front end but it’s not the only option
it's fine for hobby, but doesn't have the features needed for commerical use
I mean, then why not C
The libraries have existed for years, same with Fortean
Fortran
MATLab uses a lot of the open source C libraries
can I model circuits in C?
You can draw them with hand and figure out how to model them
that's a waste of time when there is software to do it for you
The EE I know who’s been working with circuits uses a software specific to their company so I don’t know why you use matlab
Are you in school? Because then that makes sense
What is your job or end goal?
Because if you need matlab then you can just use it, but I was just offering a solution to someone who wanted a different solution than matlab
yeah, I'm just trying to say that as much I wish there was foss alternatives there really aren't in that area
Well, if you’re in school. There’s nothing stopping you from building that alternative for the future if you have time. Hopefully if you’re still in school, then by the time you go to a company you can just use their implementation because they usually have it scaled to their entire operation
thanks
no they don't
we do
just use #development like normal people
any roblox developers??? 
we literally have an entire discord dedicated to rust. I think we're fine.
I was bored so i created a calculator
go to #gaming then
Does anyone have experience with getting the API key from a Google Cloud project? Im super confused and google is just not helpful...
pretty sure you have to create one first
why you use that font🤮
I have a question regarding testing. Let's say I have a test case where i have to update/manipulate data a certain way and check if it updates correctly. However, the test data should be reset to the original state so the test can run and update it again. Should I perform the reset before or after the test?
For example in jest's context:
beforeAll() vs afterAll()
Don't know the context but maybe you could look into mock testing? It's often not that great if you have to change the state to be able to run the tests. But if you need to, I'd prefer to do it before the test (and maybe roll back to what you had before the reset after the test)
I'm actually the mostist coolest
best looking font on the s4 💀
it’s i. the google console
Does music production count as development?
If you develop the software
anyone good with MySQL Queries, got a strange one I can't thing of a resolve for
It's for views, I'm querying the views table and grouping by country and date, to graph, but if I limit the query then it will limit the amount of days of data it shows, but i want all days of data in a range, just for a limited amount of countries
SELECT
*
FROM
views
WHERE
date BETWEEN 'yyyy-mm-dd' and 'yyyy-mm-dd'
AND
country IN ('france','germany','italy')```
or am I misunderstanding something ere
i probably am, normally not digging into views :P
select
`country`.`display_name`,
Date(article_views.created_at) as date,
COUNT(article_views.id) as value
from
`article_views`
left join `articles` as `article` on `article_views`.`article_id` = `article`.`id`
left join `ip_addresses` as `ips` on `article_views`.`ip_address_id` = `ips`.`id`
left join `cities` as `city` on `ips`.`city_id` = `city`.`id`
left join `countries` as `country` on `city`.`country_id` = `country`.`id`
where
`article_views`.`created_at` >= '2022-04-06 00:00:00'
group by
`country`.`display_name`,
`date`
order by
`date` desc
This is the current query, table looks something like this https://cdn.dectom.dev/noc-kYjnOV3jXu.png
IP Address ID resolves to an IP which has a city which belongs to a country
I want to group the views by date and country, then only return the top 10 countries
about to jump into a meeting but I threw the question at bing...
select
`country`.`display_name`,
Date(article_views.created_at) as date,
COUNT(article_views.id) as value
from
`article_views`
left join `articles` as `article` on `article_views`.`article_id` = `article`.`id`
left join `ip_addresses` as `ips` on `article_views`.`ip_address_id` = `ips`.`id`
left join `cities` as `city` on `ips`.`city_id` = `city`.`id`
left join `countries` as `country` on `city`.`country_id` = `country`.`id`
-- subquery to rank the countries by their total views
join (
select
country_id,
rank() over (order by sum(value) desc) as rank
from (
select
city.country_id,
count(article_views.id) as value
from
article_views
left join ip_addresses as ips on article_views.ip_address_id = ips.id
left join cities as city on ips.city_id = city.id
where
article_views.created_at >= '2022-04-06 00:00:00'
group by
city.country_id
) as t
group by
country_id
) as r on r.country_id = country.id
where
`article_views`.`created_at` >= '2022-04-06 00:00:00'
-- filter by the rank of the countries
and r.rank <= 10
group by
`country`.`display_name`,
`date`
order by
`date` desc;```
(I've had mixed success with bing and sql queries myself)
oh yeah it's gpt powered now, forgot about ai. might have to give it a hit
and r.rank <= 10 it just made up a rank column?
oh i see nvm but still https://cdn.dectom.dev/noc-AjKWue0tFg.png
wrapping the rank with '' just resolves it, it runs, a bit slower then i'd have liked but it does run
kinda sucky on the performance https://cdn.dectom.dev/noc-CQ73CSJE3V.png might not work in prod with a lot more data
Yeah it did spit out at me that its good to test it first to make sure things are ok.. but yeah, it did look a bit more "fluffy" than I wouldve wanted too..
SELECT
`country`.`display_name`,
DATE(article_views.created_at) AS date,
COUNT(article_views.id) AS value
FROM
`article_views`
LEFT JOIN `articles` AS `article` ON `article_views`.`article_id` = `article`.`id`
LEFT JOIN `ip_addresses` AS `ips` ON `article_views`.`ip_address_id` = `ips`.`id`
LEFT JOIN `cities` AS `city` ON `ips`.`city_id` = `city`.`id`
LEFT JOIN `countries` AS `country` ON `city`.`country_id` = `country`.`id`
WHERE
`article_views`.`created_at` >= '2022-04-06 00:00:00' AND
`country`.`display_name` IN (
SELECT
`country`.`display_name`
FROM
`article_views`
LEFT JOIN `ip_addresses` AS `ips` ON `article_views`.`ip_address_id` = `ips`.`id`
LEFT JOIN `cities` AS `city` ON `ips`.`city_id` = `city`.`id`
LEFT JOIN `countries` AS `country` ON `city`.`country_id` = `country`.`id`
WHERE
`article_views`.`created_at` >= '2022-04-06 00:00:00'
GROUP BY
`country`.`display_name`
ORDER BY
COUNT(article_views.id) DESC
LIMIT 10
)
GROUP BY
`country`.`display_name`,
DATE(article_views.created_at)
ORDER BY
COUNT(article_views.id) DESC;
This seems like a better solution I got from chatgpt after prompting it a bit, but I get this error [42000][1235] This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
So I can't limit in a subquery on the where? kinda sucky, wonder what version i can go to for that its just straight up not supported https://dev.mysql.com/doc/refman/8.0/en/subquery-errors.html
https://cdn.dectom.dev/noc-PRyf2LYj0e.png
As a whole, far more efficient, but still doesn't limit to top 10 countries 
Typically I use before methods to setup and after methods to tear down / cleanup. Since you are talking about resetting state to default, I’d use after.
Quick note on all methods, they are used for the test suite / file in Jest. So you’d use beforeAll todo setup once for multiple tests and afterAll to cleanup. When you need todo it per a test then you use the each methods, beforeEach and afterEach.
On the Jest docs there is a helpful section called order of execution that demonstrates when every method runs using console logs.
Could someone tell me what im doing wrong here, its discord.py
import os
import discord
from discord.ext import commands
from discord_slash import cog_ext
from discord_slash.context import SlashContext
from discord_slash.utils.manage_commands import create_option
Tries to import "discord_slash" and says this
Traceback (most recent call last):
File "main.py", line 4, in <module>
from discord_slash import cog_ext
ModuleNotFoundError: No module named 'discord_slash'
pip install discord_slash
your python environment doesn't have the library installed
I tried that
@client.tree.command(name="ping")
async def ping(interaction: discord.Interaction):
await interaction.response.send_message(
f"Pong! {round(client.latency * 1000)}ms", ephemeral=False)
This is what it says when I do that
ERROR: Could not find a version that satisfies the requirement discord-py-slash-command (unavailable) (from versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.4.1, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.8.1, 1.0.8.2, 1.0.8.3, 1.0.8.4, 1.0.8.5, 1.0.9, 1.0.9.1, 1.0.9.2, 1.0.9.3, 1.0.9.4, 1.0.9.5, 1.1.0, 1.1.1, 1.1.2, 1.2.0, 1.2.1, 1.2.2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.1.0, 2.2.0, 2.2.1, 2.3.0, 2.3.1, 2.3.2, 2.4.0, 2.4.1, 2.4.2, 3.0.0, 3.0.1a0, 3.0.1, 3.0.3, 4.2.1)
ERROR: No matching distribution found for discord-py-slash-command (unavailable)
just use discord interactions
how install that?
you already did. its part of the discord library
I did???????
set up your slash commands the same way my ping slash command i sent is set up
Had that error in another context: Most probably: There is no version of discord_py_slash which supports your python version.
try 0.1 + 0.2
Can soemone with a google play console account dmme? i want to transfer 2 apps to another play console acc since theyre clogging my list, and i cant delete them please dm me
I've never used Google Play Console (aka an Appstore developer account?) but looks like Google has instructions on a support article.
https://support.google.com/googleplay/android-developer/answer/6230247?hl=en
If you have apps that you want to transfer to a different Google Play developer account, you can submit a transfer request after reviewing the instructions below.
Get your app ready to transfer
Step
can't seem to figure out how to give this the proper user input
May be a long shot, but try changing the ++x in your for loop to x++
I can't really see anything wrong with your code
print shortEntry and make sure the value is expected for the input you give.
I'm a python abuser but in my google searches it looks like .substring() takes a starting index
Would it be possible to run a game’s logic and how often it checks for input at a higher rate than the framerate? Wouldn’t that reduce latency? Or is there some problem with doing that?
Yup what Pepe said, looks like subString requires a start, but end is optional and if end isn’t passed it goes from start to end. Since you passed 3 characters and start at the 3rd I’m guessing that shortEntry is now an empty string and matching the first item in the books. Try changing it to subString(0,3)
Idk Java well, but looks like the code is also trying to stop the loop by making X the length of the array. You can probably use a keyword like break to get out of the loop more elegantly.
If you have a local IDE with debugger it’ll help a lot with inspecting the code while running it, but if you don’t a quick hack could be to toss in some println to print the current variable values.
I switched if(books[x][0].startsWith(shortEntry) to if(books[x][0].startsWith(entry) and it passed the checks
yes, it's possible, I think the issue is just having inconsistency in esports games which is probably the only place where it'd be super useful. there was something i saw a few months ago, it was kind of an input layer being rendered at a consistent 60FPS for registering input separately from the game's framerate.
Anyone understand arrays well? This is for a homework assignment, but I'm unsure how to set this up
so... a few things
line 28, you should use distances to fix that error
as far as the error on line 15, you're trying to use a double as an array index. all array indices are of type int. to fix this, you'll need to use distances[(int) average]. note that this will get rid of the decimal point (eg: 1.9 becomes 1) so it may be best to use a different variable for the index
god i should get back into programming...
different variable?
I'm confused
I'm still getting lossy conversion errors on line 16 and line 27
so for your array index, you want an int. currently you're using a double. im just saying it mnay be best to make a new variable for your index (you don't HAVE to tho 😊 )
ahh ok, the problem is I need to be able to input doubles and get the averages of doubles, not integers
OHso you'd want to do an explicit typecast everywhere you're using average as an array index. just put (int) in front of it
which is great! but you can't use a double as an array index, even if it's, say, 1.0
got this now
java sees that decimal point and freaks
oh wtf then how do I input doubles then?
do I need to convert the double into a String and then convert the String into an integer?
no you can get a double directly. make a Scanner object and then call it with nextDouble(). example:
double myUserInput = input.nextDouble();```
line 26, change double x to int x. again, you're using a double as an array index
gonna say this rn: don't feel bad if you don't understand arrays right away. it took me a solid month in school to figure it out
oh i forgot! you'll need a new import statement to use Scanner
at the top of the file, add import java.util.Scanner;
i think i see some confusion... when i say array index, i mean the spot in the array where the data is located, not the data itself, example: in array[x] = 2, x is simply telling Java where in the array to stuff that 2
if you were to print the contents of array[x] after that, java would print a 2
ahh ok
uhh the only thing I have now is a "bad operand for binary operator on line 29
wtf
also when I try to get an average it just tells me "no numeric values were entered
if I change it to 'average' instead of 'distances' it works
oh shit when I change it to my 'distance' double it tells me the average is Infinity
idk what I'm doing lol
im getting intellij
give me a sec. i would already have IntelliJ but i wiped my computer recently
wait i could do this in vs code...
I THINK I FOUND THE ISSUE
you're using the average as an index
im seeing a lot wrong now that im copying this
lmao
this is why I use a method called the "write twice" super time efficient method. I write code once, then I go line by line rewriting it.
I asked stackoverflow
wait how does that work?
i write the code once, right
and then i rewrite it which lets me go through the code step by step and disassociate with the code
i talk in my head like
"ok so we're gonna iterate through th-- oh shit thats inclusive exclusive its gonna be 1 off"
"alright now if this value is 💃 this 💃 itll do this but oh crap theres an edge case here"
this helps so much. talk through it. LITERALLY talk through it. if what you're saying sounds stupid, odds are you messed up your code at that spot, and now you know where to start fixing it
the screen is my rubber ducky
how do I make the total not 0 tho
I don't know how to do that, I'm just tryna get the averages
from what i can tell you're doing that math correctly
I tried asking for help on stackoverflow and they closed my comment
Good day Linus tech tips
I hope you are doing well and having fun as per your tube channels which we as a family love to watch.
My name is Markus and I’m from South Africa.
We all our pcs and electricity costs are getting extremely high, not just for personal use but for business use as well
What if I tell you that I designed a new energy source which we all can use for our pcs and use later as a source for businesses as well.
This means you wont ever have to pay for electricity but just for maintenance for the design.
I would love to have an opportunity to have a full in depth chat to you regarding my design and see where our chat leads us
Thanks again and always stay as your are
Is it written in java or go
Has to be Adobe ColdFusion
It's like ASPX but JAVA https://en.m.wikipedia.org/wiki/ColdFusion_Markup_Language
ColdFusion Markup Language, more commonly known as CFML, is a scripting language for web development that runs on the JVM, the .NET framework, and Google App Engine. Multiple commercial and open source implementations of CFML engines are available, including Adobe ColdFusion, Lucee, New Atlanta BlueDragon (who offer both a Java-based and a .NET-...
Does someone have some VueJS / Cors expierience who's brain i can pick? 🙂
You mean CORS as in Cross-Origin Resource Sharing?
I do have some knowledge in VueJS but wouldn't call myself an expert. Still learning the more advanced ways of working with the Options API and only recently started reading into the new Composition API...
Stick to 419ing
Hi guys. I've been working on a website project in java script... most of the stuff is done however there's some issues with the login service (database). I use MongoDB/Atlas. If there's anyone with experience, you can DM me and i can explain, or even call if it's not a problem. I don't think the issue is big, i think i roughly can point to the problem that's occurring, and i don't think it's a huge issue. I had an issue with the recipes, but i kinda sorted that out. Backend is kind of my weaker side, i haven't gotten the time around to play with it. If anyone wants to help me, you can hit me up! The project also uses node.js code as well. Any help would be appreciated!
The website is about food products. And no, this won't be a website that i will use.
Hey guys, I’m working on a project that involves pulling data from several rest APIs and comparing the data across them. We are trying to use a DB with it and I’m trying to find the best way to do this. Currently we are using Python but I was curious to see if there is another better way.
If you have any insight, feel free to send me a DM. I would love to bounce ideas off of someone with more experience.
What is this and how do I get rid of it? My website should have no facebook plugins or anything of that nature.
I made a minecraft mod
https://www.curseforge.com/minecraft/mc-mods/motools-1-19-4 fairly simple. Gonna add more tool types once I get the spare time
open devtools in your browser (F12), go to the "Network" tab, then go to your site (you might need to reload using Ctrl + F5 to clear the cache)
I don't see anything from facebook when doing that method. What would cause lighthouse to pick it up?
i am a uni student and i am sort of ok with java but i have never used swing before
the assignment description said to use swing
then swing it
i didn't read the assignment description properly and made the entire project in javafx
it is due in 2 days
ill probably be fine but :(
that sucks
Did you try in new private browser window? Could be something like a login option you didn’t see because you are cookied. 🤔
Checking on the Facebook developer site looks like connect is for sharing account info, friends, etc often used for signup/login with Facebook. If you have a pre-made auth solution, like Okta, Firebase, AWS Amplify, etc they often have a Facebook option.
I don't see it coming up in incognito mode either
I think I may know what the source is though. Could it be from facebook's advertising tracking? I think its called pixel?
If you posted the site I'm sure someone here would find it in about five seconds.
Tracking pixels, 3rd party comment systems, maybe GTM, there's a whole bunch of options.
Even if its found, I may not be able to do anything about it. Anything I'm going to do to it, has to be usable with shopify's interface and without digging into the code for the theme.
Source is https://connect.facebook.net/en_US/fbevents.js, getting loaded by https://cdn.shopify.com/s/trekkie.storefront.32dc1f4fe8f576a6d20c0db4541aff3dd4b06687.min.js
Looks like it's just a thing Shopify Kit does. People are not thrilled. https://community.shopify.com/c/technical-q-a/shopify-trekkie-loading-extra-tracking-pixels/td-p/786148
so not much I can do about it I take it?
From StackOverflow:
So, I contacted shopify support. I was told that Trekkie is shopify's internal script for tracking the various transactional data. This is used to display the admin analytics in the Shopify dashboard. This script cannot be deleted.
https://stackoverflow.com/questions/62557873/shopify-trekkie-loading-extra-tracking-pixels
Probably not
if you see any glaring slowdowns, especially for mobile, let me know. I've tried to reduce the size of as many photos as possible that'd be loading on home screen, and done away with an app I noticed was taking up too much.
would be greatly appreciated 👍
Hey guys what do you think of my tech stack? /s
where's ember
Discourse used it back in 2013
but i mean Angular has been proclaimed dead for a while and still exists
I've been helping maintain an Angular app for years. It's absolutely fine. Pretty boring, which is increasingly a desirable quality in frontend frameworks.
0.3
chatgpt to translate it to swing 
too late
well did you fail
not yet
but the gui is almost done
i stayed up all night 2 nights in a row
and the rest of my group is helping where they can but only around 3 of 25 people know what they're doing
i can create gui in seconds
mainly because I use html instead of real code 
i can also create a gui in seconds but it might just be an empty window
is that really a gui tho
add a button that crashes the program
now that's a gui
all i need to do is type ! and visual studio will write the html file and then I just write <button>Hello World</button>
every time i see a self checkout station in a store im going to get ptsd but i don't like them anyway because the scan noise hurts my ears
that little beep?
you're scared of that?
how many times do you have to hear that little noise for it to hurt your ears
then shouldn't fire alarms or someone screaming be worse
once, depending on how loud it is
if there's a fire alarm i will have a meltdown on the spot
what did you do in elementery through high school when they had drills
i covered my ears, but i was able to not scream. Those weren't super loud though compared to the residence hall ones. I should have specified
as a small child i would scream at the vaccum cleaner and stuff but now i don't unless im really caught off guard
just cover your ears in the market
isn't the silence to loud
no
i don't know bout you but when I use my noice cancelling earbuds after a few hours I get that weird feeling in my ears when I take them off
if im going somewhere crowded noise cancelling headphones aren't strong enough so i use industrial strength hearing protection but even that doesn't get rid of that wanting to scream feeling if people blast music
also, some noise cancelling devices are different than others
usually when headphones hurt my ears it's because of the way they're sitting on my ears
maybe you just have some big ears
i think it's my glasses
thick glasses
people tell me my ears are small which is a weird thing to say to people but ok
get contacts 
you got one trait enhanced while the other one got decreased
my stats are not balanced
update the project is done but my group had to finish it off because i burnt the fuck out a few hours before the deadline due to stress + spending all my waking hours on it for like 2 days and not sleeping much
i actually don't mind it because now i know how to use swing and javafx
programming is fun ngl that's why i was able to focus on it so well
although 25 person groups are hell
especially because it's a second year course and not everyone really understood how the provided code worked
im glad that at least a few other people knew how to do the not code part. It was just drawing big diagram but still
any recommendations for a good lib for building a python TUI?
I think the go-to is usually curses https://docs.python.org/3/library/curses.html
Hey i am going to start college this year, i have good interest in Development and also know Python a little bit, which language should I learn in my college time which will give me good knowledge and of course a high package, like is was thinking of buying a Mac and learning Swift but the 16gb ram Mac Air goes out of budget for me
you can learn and use Swift on Linux (or on Windows, via WSL. there might be a Windows native build now, too)
but I would personally recommend Go. it's a very easy to learn language and I think it's a good stepping stone onto other statically compiled, strongly typed languages, without dropping you in the deep end. + a great ecosystem
Does it need to be a laptop?
a Mac mini is a cheaper alternative
Brthr i am going to college in India so there in any hostel u ain't get space and ports to be using Mac mini
hi, i know this is probably an off topic question but i havent found a better chat to ask this in. im in need of little help in coding in matlab, trying to solve a problem using the equation solver and getting an issue with symbolic non linear equation. in any case that any of you have some knowledge and willing to help a little in this matter, ill be very grateful. also if its not the right channel to ask this in, please @ me and ill move it to the correct place
It’s always the sucky answer of “it depends” lol
What do you enjoy doing, that can help you get to at least a ballpark of what lang is popular in that field. With that said I’d suggest try to get 1 lang to a decent level before hopping all over, once you get over the core concepts most of them transfer to other languages just new syntax which you can often google / read docs to learn.
Got my radio and walkie talkie I made into unity
I’m currently in a stage of testing if models and their materials import correctly (which they thankfully do). When I can get scripts and other gameplay mechanics working correctly I will start the making levels, voice acting and lots of other things
do we know when google cloud's C3 compute engine public preview period will end? I don't want to wake up with unaffordable cost
are you running workloads on your deployed resources?
I wanna try the machine out
I could use some help from people who know python.
i know monty python
[Position]: Machine Learning Engineer
[Experience]: 9 Years
[Previous Projects]: Trading algorithm, Forecasting, Image generation, Computer vision(Captcha recognition), Natural language processing
[Programming Languages]: Python, C/C++, JavaScript, Go
[Availability] 30 ~ 40 hrs / week
at a glance, im going to guess that the context you create in the test isnt the context that is used by the <service> to save the <user>
You don't have to mock everything. If you're just testing if a user is created and saved then the mockContext.Setup(m => m.Users).Returns(System.Linq.Enumerable.Empty<User>()) should suffice. This should work, since a Mocked object doesn't really do anything
||i may have written a few parts wrong since coding on mobile sucks, so please check if it's all written correctly||
What do you mean by it cannot parse the object?
What if i want to include \n inside a string? and i dont want to create a new line
\n ?
oo hey it ate my backslash
\\n
It's always with an extra \ in front of those extra signs to have them included in a string.
in Python, you can also put an r at the start of the string, same as you would for f-strings/u-strings, and it'll do a raw mode. Basically it literally just puts a \ before escape sequences and doesn't interpret them.
to expand on this, \ can be put in front of any character that normally does something other than exist inside a string. It's called an escape character
Does anyone have experience using Appium for mobile test automation? I can't figure out why my Accessibility ID's randomly disappear from Appium Inspector and can not be used when automating
I also can't figure out why it keeps cutting off my output in Appium 2 CLI
Element subtree:
→Window (Main), 0x12af94120, {{0.0, 0.0}, {414.0, 896.0}}
Other, 0x12af94230, {{0.0, 0.0}, {414.0, 896.0}}
Other, 0x12af945e0, {{0.0, 0.0}, {414.0, 896.0}}
Other, 0x12af94340, {{0.0, 0.0}, {414.0, 896.0}}
NavigationBar, 0x12af94450, {{0.0, 48.0}, {414.0, 44.0}}, identifier: 'Feedback'
Button, 0x12af946f0, {{0.0, 48.0}, {44.0, 44.0}}, label: 'Back'
StaticText, 0x12af94800, {{168.0, 60.0}, {78.0, 20.5}}, label: 'Feedback'
Other, 0x12af94910, {{0.0, 0.0}, {414.0, 896.0}}
Other, 0x12af94a20, {{0.0, 0.0}, {414.0, 896.0}}
Other, 0x12af94b30, {{0.0, 92.0}, {414.0, 804.0}}
Other, 0x12af94c40, {{0.0, 92.0}, {414.0, 804.0}}
Other, 0x12af94d50, {{0.0, 92.0}, {414.0, 770.0}}
Other, 0x12af94e60, {{0.0, 92.0}, {414.0, 770.0}}
Other, 0x12af94f70, {{4...```
Hello there 😉
Haven't touched php in eons, but I assume somewhere there is a tool to do this without me writing the whole thing : I would like to generate "badges" for my association members : you can submit text and a (transparent background) picture and the tool will combine all that in the appropriate places I defined.
Does that ring a bell to any of you guys ?
There are a few hundreds of them, I would rather not have someone forced to photoshop all them in 😛
Ok
Day 69693374627 of waiting for microsoft to redesign WordPad, charmap, and regedit in Windows 11
I finally managed to be able to the Vulkan API with VS Code. Only took over an hour to figure this out and a few breakdowns
nice
Anyone experience with Piral and Blazor?
Was it worth it?
Forgot to disable mention sorry >_<
Don't need to be sorry pat pat
And yeah, it is totally worth it since before that I depended so much on Visual Studio and I wanted to change that.
And the knowledge I got from that actually helps with basically everything else I wanna work with in C++, mostly. Like I could also make it work with Qt and/or Boost.
And the principle behind that can also be used in any other language, well almost.
So, I am trying to make a sort of alarm clock in python, however I'm running into a snag where the code does not seem to enter the final while loop at all
@static marten Deutschland, Holland?
the clock.mainloop() blocks everthing.
Because the window would respond to the GUI actions
no more code would execute after that.
Did you verify if the "Script started" is printed after the GUI
if i am attempting to make a sound chips style module in go, with adsr stuff, would oto v2 or faiface/beep by recommended
faiface/beep is more popular, and seems more friendly, but it's based on oto v1, which isn't supported any longer
though the ebitengine from the same guy as oto uses oto, which is more popular than beep?
i guess it boils down to which design pattern i like?
if this is the case, @static marten try throwing in a:
from threading import Thread
mainloop_thread = Thread(target=clock.mainloop, args=()).start()
sometimes I mess up with the args field, if it messes up because of that just put a comma inside the args parenthesis its weird.
Neither.
Thanks, tho. Fixed it by assigning whatever came after the clock as a function, then called that function within the clock.mainloop()
Interesting, I'll have a look.
lovely
Welcome to Omelette labs. Today, we will find out if we can run ray tracing on a MacBook.
Let me know if it deos
Should be considering I'll be doing a 'from scratch' one.
Will start studying it next week.
Please help i am a webdev noob
oh and because it would probably help
the image files for backgroun and the bugged banner
NVM
I fixed it!
YAY
OK so I have an idea - I find myself carrying around lots of USBs for various things and its kind of annoying. I recently found out the raspberry pi zero can emulate a mass storage device and people have been using it to run network drives into the usb port of their TV etc. I am thinking of using it in combination with this screen to navigate/create and select which usb drive you want to emulate. Thoughts?
with the ups-lite board on the bottom and a 3d printed case it should be a similar size to the flipper zero.
i'm certain someone else would have done this already. if anyone knows please send 😛
require('crypto').randomBytes(64).toString('hex')
is this a valid way to generate a secret
sound's like a good idea
you'd just need a big SD card
like 256 / 512GB SD card
yeah it only needs to be small for my needs, I service printers and they only require like a 512mb usb to update firmware, pull data etc
but there are like 300 different models lol
lmfao
tbf with the price of SD cards and the fact that you're limited to USB 2.0 speeds with the pi zero
you could get away with getting a cheap 512 GB then you have headroom to play with
usb 2.0 is foine for my needs, although if it is quick enough to boot hirens or windows installation media it wont stop me from using it haha
you just have to bare in mind that if you're gunna use something like circuit python or something it does have a few annoying things like you have to enable / disable read only file system if you want to write anything to it
i had that issue when i made the code for my Pico W USB rubber ducky
with wifi so you can control the ducky from your phone
it creates its own wifi network you can connect to and control it from your phone
well, from my limited research it seems it just reads/writes to an image or bin file so pretty easy to use
i just need to be able to get a Pico W that has a USB A Male instead of a USB micro B female
i'd advise using circuit python, its very powerful and lightweight
i generally use java for my projects, just my preference as its all im used to
Jpython
idk you might have to make your own storage driver
depending on if you can find one or not
i mean i made an aincent printer, wifi compatible
with a pico w
i wish i had like infinite pico Ws
they're so useful
honestly i'd just keep it simple and just have java run the commands to mount / create / delete the image files
fair
Can the pico emulate a mass storage device too you think?
would make it a hell of a lot smaller and use less power
it can
honestly, with circuit python you can do mf anything
there are sooooooooo many libraries for emulation
you can make the pico act like a fuggin printer
interesting... I bet it would be pretty slow but for mass storage
or tell the pc its a printer, it does everything
yeah that would be weird haha
133mhz processor
then again you get like 2 MB of space to write your code
after you install an "OS"
and it doesn't have an SD card slot so you'd have to solder your own onto it
anyone here any good with expressJS
Error: Can't set headers after they are sent.
at SendStream.headersAlreadySent (/home/ubuntu/etc/node_modules/send/index.js:386:13)
at SendStream.send (/home/ubuntu/etc/node_modules/send/index.js:613:10)
at onstat (/home/ubuntu/etc/node_modules/send/index.js:725:10)
at FSReqWrap.oncomplete (fs.js:154:5)
I know what it means but i dont know where the extra header is, is there an easy way to find it
nevermind i found it
Just check where setHeader used in res
Or the common case is you have used res.send or res.json (similar functions) multiple times for same request
for an example
if (true) {
res.send(something)
}
res.send(something2)
yeah i figured it out
i have a question though,
require('crypto').randomBytes(64).toString('hex')```
is this a valid way to generate a secret
secret normally aa unique string, so yeah u can use this to create a secret
aight good cause i already added them in
what is the scenario tho ?
website encryption
not for hashing to the database, just cookie and session tokens
stuff like that
ah okay so random string, sure this is fine
aight ty
Hello, me and a classmate are in a beginner Java programming class and need help with a program. The instructions say that the code should run properly like this:
Enter area code to add to numbers >> 835
(835) 435-9845
(835) 239-9845
(835) 981-9283
(835) 384-5656
(835) 875-3784
(835) 874-8120
However, when I type the first prompt in, I get no return. The .java file for the program, DebugEleven2.java, is structured like this:
import java.io.*;
import java.nio.channels.FileChannel;
import java.nio.ByteBuffer;
import static java.nio.file.StandardOpenOption.*;
import java.util.*;
public class DebugEleven2
{
public static void main(String[] args)
{
Scanner kb = new Scanner(System.in);
Path fileIn =
Paths.get("/home/nt-user/workspace/DebugData3.txt");
Path fileOut =
Paths.get("/home/nt-user/workspace/DebugData3New.txt");
String areaCode;
String formattedCode;
String phone;
InputStream input = null;
OutputStream output = null;
System.out.print("Enter area code to add to numbers >> ");
areaCode = kb.nextLine();
formattedCode = ("+ areacode +");
try
{
input = Files.newInputStream(fileIn);
BufferedReader reader = new BufferedReader
(new InputStreamReader(input));
output = Files.newOutputStream(fileOut);
phone = reader.readLine();
while(phone != null)
{
phone = areaCode + formattedCode +
System.getProperty("line.separator");
byte[] phoneBytes = phone.getBytes();
output.write(phoneBytes);
phone = reader.readLine();
}
input.close();
output.close();
}
catch (IOException e)
{
System.out.println(e);
}
}
}```
booting up intellij, what version of jdk are you guys using?
what is the recommended way to generate audio/music? i have a function that generates waves, but im not sure if i should create many instances of that generator for each note/wave type, many instances of buffers holding each possible note/mutation, copy them to the buffer as needed, or what. or is this premature optimization
JDK? we're technically on a workspace through Cengage, but I typically use Eclipse
ok, your code doesn't produce anything in the console after writing the areaCode? (at the moment)
in your environment, does it create a file after execution?
because, on my side, it does write something
no it does not
we already have files with the numbers implemented in the assignment
hmmm is it located at "/home/nt-user/workspace"?
I figured it out
what was it?
formattedCode = (areaCode);
It needed to be formattedCode = ("(" + areaCode + ") " );
so the parentheses of the area code would be implemented correctly
the grade checker was reading the .txt file not the .java file, because it outputted to the second .txt file
i see! 😛
yeah it was kinda funny
hmmm yehh kinda weird it acted differently on my side x3 might be windows
anyone know how to divide the file size of two files in Java?
There's a game jam this weekend for aspiring game developers interested in 3D game dev: https://twitter.com/o3dengine/status/1651338745705123841
Don't miss your chance next week to bring your #3D vision to life using the #OpenSource 3D Engine for your chance to win hero status and a free #IGDA membership.
Learn more: https://t.co/WHGr68ZRjz
Register now: https://t.co/Dt5QJWMqmG
Hosted by @awscloud, @RedHat and @IGDA.
i spent my free time doing this
every gen 1 pkmn in a single image not to mention that those are gameboy printer images that I had to painfully wait for when using a emulator
Thanks sharing, I miss those old sprites
that looks awesome
np
Every single pokemon separate (Gen1)
It does render a sample image pretty quickly
Oh rlly
Probably under a minute for 1920x1080
Still better than Colab. It's running on numpy though so I'll be converting the code to jax so I can use GPU
Damn
This is not live raytracing though, just a render.
I need to rework the shadows
Oh ok
how do i make an exo suit
Context??
so like how does he make an exo suit
Yeah I’m gonna need some context for that
how does one make a suit on the exterior
I wish I could back in time and slap the guy who wrote VBA
literally my life for rest of year: https://media.discordapp.net/attachments/470279723910561792/1101412529558794330/RDT_20230428_103734.mp4
I told company I can do the shit they want in C++ / C#
But no... my superiors said it has to be done in VBA...
why?
who can sensibly use VBA these days? unless it's an existing and very old codebase 
???
I know it is idiotic, tried told them it is idiotic, well I was overruled
tell them to do their job and you will do yours lol
We are company of Perkele
would probably personally hand in my resignation at that point ngl
nothing makes sense, everything is on fire, everybody is struggling to survive, we are borderline black company
we have some VB.NET stuff at work, and the only reason is because C# wasn't really a thing back when the codebase was built 😛
It all started when I just wanted to update single spreadsheet that we were using to a bit modern..
thankfully I don't have to touch the codebase though 😄
somehow now it is starting to soon to be full fledged ERP if they keep adding features to spec sheet
don't put your blame on the person making VBA though, they did nothing wrong - your company's managers is the problem here
ERP in VBA? 
yeah... i don't know how things got this bad
tell them to find someone else to do the project lol, and have them assign you to something else, because what they are asking you to do is not a task for you
This single excel file... will make you a report, labels and signs work project, print out instructions for laborers, protect you from doing stupid imcompatible shit
All I wanted to update the report part... and somehow all of those other features were added to it
now I am coding those... and constantly struggling with VBA's unique approach to object oriented coding
just needed to rant... world is... weird... inefficient...
oh is VBA actually still maintained? actually think I confuse it with VBS (which I used for pranks like 20 years ago)
no... VBA is still the same
it is a cyber security hole
and I can see why... you can pretty much invoke anything from this with unlimited rights 😄
wtf, so the reason they tell you to use it is probably because it's built into Excel is my guess?
isn't it cheaper and better to just get an actual ERP system? 
especially if that's the case lol
I am afraid to tell you..
almost forgot what server i was in for a sec
have them look at Zoho? 😛
We have a good ERP, but our dudes in the board and who maintain it... dont know how to use it properly
intergration hell?
sounds like integration hell to integrate anything with Excel anyway, so doubt that's the case
so.... everybody uses... excel... because the ERP we use is configured so badly that it hinders everyday work 😄
lmao, nice 
the e in ERP stands for Excel, clearly
Excel Role Play
Excel Roleplay Program
nice, we thought about the same thing, I was about to type the exact same thing, but decided Roleplay is one word 😛
Also... definitely won't trigger AV: Creating a project folder with folder structures inside
from excel
wait until I get my hands on API of our ERP
I will pull project files out of there automatically... then that old good ERP will turn just into a cloud drive 😄
print your code out and fax it over
github is fixed
close one
imma go back to sitting for hours
First time I've seen FizzBuzz in the wild, here in a basic coding class in university.
#include <stdio.h>
int main(){
int limit;
printf("Enter a whole number:");
scanf(" %d", &limit);
for(int i=1; i<=limit; i++){
printf("\n");
if(i%3==0){
printf("Fizz");
}
if(i%5==0){
printf("Buzz");
}
if(i%3!=0&&i%5!=0){
printf("%d", i);
}
}
}
My solution in C
Nice work.
I am not a fan of C, but it is a course requirement for now.
proof of concept done - using raspberry pi zero w 1.1 got transfer speeds of 34mb/s. more than fast enough for my needs
using 256gb sd card I can store quite a few images
Nice
if you need faster you can always poole multiple Pis together
dont think that would work
you could host an FTP Server using kubernetes and run docker containers
on a pi zero?
yeah, it can run Linux
So it can run pretty much anything if you're patient enough
Not really, no
I just let my cat play on my keyboard and complain to ChatGPT until it compiles.
lead with the actual question and people will be more likely to answer...
Sorry guys
I need some help with a file. I was trying to code in for a small application. Was using PyCharm for that. Now it was on my dad's laptop. Now to host in the bot, i didn't get the .configure file with me. Can I just type it out on a notepad or maybe I need to do it on the app again, it's a fairly simple bot. Ik that it's a dumb question but am really really new to this.
Also where do you guys think should i host my bot, I mean for free maybe? I was considering a few options but maybe you guys can help? please?
The only thing it takes to run python is a .py file an the runtime. you don't need PyCharm installed. On the command like it looks like python myProgram.py. You may or may not have python installed on your computer.
Microsoft, Amazon, and Oracle all have free cloud hosting up a specfic amount.
The host i was using, named discloud requires a .configure file
I'm not familiar with that service, but you'll have to create a new .configure file
I recommend having ChatGPT look it over.
You can probably write that file in whatever program you decide, as long as the formatting is what the interpreter expects it to be
Anyone use lisp? Is it worth learning? I can't think of what I'd use it for but I know people who use it advocate strongly for it
No it's terrible avoid at all costs
If you learn lisp, you can tell other people you know lisp
Any Kubernetes experts ? what is a best way to accumulate the logs from all pods in one place. Technically keeping them permanent
I'm doing a debugging exercise for a class in which a user enters a number, the result is supposed to be the sum of all numbers between that number and the number 5 greater
The result is supposed to be this:
The sum of all the numbers between
5 and 10 is 45
``` Unfortunately, my code has an error, so the code shows like this:
``` Enter a number >> 5
The sum of all the numbers between
5 and 10 is 5
``` I'm unsure of what the issue is.
Here's my code:
```import java.util.Scanner;
public class DebugTwelve2
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int x;
int y;
final int GAP = 5;
int answer;
String userInput;
System.out.print("Enter a number >> ");
userInput = input.nextLine();
x = Integer.parseInt(userInput);
y = x + GAP;
answer = sum(x, y);
System.out.println("The sum of all the numbers between ");
System.out.println(" " + x + " and " + y + " is " + answer);
}
public static int sum(int x, int y)
{
if(y < x)
return(sum(x, y - 1));
else
return (x);
}
}
``` Note this is for a class. I just need some assistance.
It's recursion.
@carmine lantern double check your sum function logic
I did it
it works now, but like how does it function
because I know now that on line 26 it should say return(y + sum(x, y - 1) why does it work like that?
Look at it as the math problem
5...10 = n + (n-1) + (n-2) ... (n-5)
where n is the upper bound (10)
right?
yeeeesss
sigma (10) over (n=5) n + (n-1) + (n-2) + (n-3) + (n-4) + (n-5)
it's a series not a sequence since you're adding the numbers up
I just remembered a trick in these if statements:
Instead of i%3==0 you could also write !i%3 since everything that is 0 is also false in boolean and vice versa. This trick could also be used in every other if statement.
I don't know C, like at all, but I'm not sure it'd work in C. No doubt it would work in other languages.
If this is faster I will throw a fit
i % 3 == 0 is preferable because it's more readable
I recommend reading the article named "Clean Code" - Horrible Performance
It's astonishing, how much speed you can get by breaking some rules of clean code.
Something like that should be optimized by the compiler imo
Compilers aren't build to handle all rules of clean code
luckily I use python, so "fast" only works in big O's
Python is actually one of the slowest languages.
So when speed is crucial or at least important, I wouldn't recommend it
python itself isnt slow its the default VM. pypy is a good example of that.
a lot of libs for python are also actually written in c. numpy being a good example of that.
or just be a mad lad and write a LLVM frontend for python
https://exaloop.io/benchmarks
lol
Yeah, I was also surprised to see that. Especially the difference in speed when ignoring rules of Clean Code.
When you ignore the first 3 rules, your program is 20-25x faster.
Yeah, I know. Though it was just raw Python without any modules.
unreflectedly going from "abstractions are a tradeoff" (which is what the article actually hopefully seems to say) to "need to save every keystroke and use every clever trick bool-less languages have" is not the way though
Readability >
> your program is 20-25x faster
Maybe in some absurd edge and not relying on compiler intrinsic at ALL.
this, generally you are going to get bigger gains by just not doing what you're doing rn and making your code readable helps with changing it
There's a really nice talk by Matt Godbolt about what compilers do for you, if you're in something like C or basically anything that can be compiled by LLVM a lot of these "little tricks" usually don't matter
unless you know what the fuck you're doing, generally the compiler is smarter then you.
Python just likes to throw exceptions and call it a for loop (this is not a joke)
I think this is that:
static PyObject *
builtin_all(PyObject *module, PyObject *iterable)
/*[clinic end generated code: output=ca2a7127276f79b3 input=1a7c5d1bc3438a21]*/
{
PyObject *it, *item;
PyObject *(*iternext)(PyObject *);
int cmp;
it = PyObject_GetIter(iterable);
if (it == NULL)
return NULL;
iternext = *Py_TYPE(it)->tp_iternext;
for (;;) {
item = iternext(it);
if (item == NULL)
break;
cmp = PyObject_IsTrue(item);
Py_DECREF(item);
if (cmp < 0) {
Py_DECREF(it);
return NULL;
}
if (cmp == 0) {
Py_DECREF(it);
Py_RETURN_FALSE;
}
}
Py_DECREF(it);
if (PyErr_Occurred()) {
if (PyErr_ExceptionMatches(PyExc_StopIteration))
PyErr_Clear();
else
return NULL;
}
Py_RETURN_TRUE;
}
Python is still slower then languageslike c# and c++ because it’s a interpreted language. In most cases you won’t see the difference in a python application unless it’s just spaghetti code but it is technically slower
the way I sees it is, if you're doing a lot of iterations/loops, Python's speed will be actually noticeable. for mostly anything else 'see this -> do that' Python is a-okay. most of the time you're doing things in Python that you otherwise wouldn't be able to do without massive development time invested into a project, so doing it at all is faster than not.
True, plus python is a good language to learn. Not something I’d use on a major scale project but still a good language to learn
define interpreted. Its compiled just like java and c#.
python can serve as a good bridge between C based librarys
I think the misunderstanding is in that people think compiled languages = only to machine code. It varies depending on what exactly you're using (and admittedly I'm out of my comfort zone here) like cpython/jpython/ironpython/the other ones
but at least for CPython, code is converted to bytecode and then directed to P(ython)VM (/JVM/etc for others)
conda straight up compiles python to native instructions using LLVM
yep nailed it in one, it's so beautiful
Eh - it's compiled but not to machine language, rather to bytecode that runs on a implementation-specific VM. So yes somewhat like Java and C# but not like C++, which is typically compiled to run directly on the CPU rather than via a VM.
Python (cpython in particular) does have a reputation for being rather slow though this is improving with time - speed wasn't really a priority until somewhat recently.
Well C# and Java will take your bytecode and compile it to native code for better performance buuuut just ignore that if you like putting things in boxes with readable labels
Nope, it was not an edge case, it was a basic example in C++.
The example was with a shape class and soke derived shapes like circles, squares, etc.
Plus a method which calculated the total area of each shape.
And the 20-25x improvement was with lightly optimized code for AVX.
Oh and btw: The code is still readable. It just doesn't use polymorphism but uses switch-cases, a function does know about the internals of an object, a function isn't small and does more than one thing.
Even without AVX optimization you get 10-15x more speed.
It’s ran by an interpreter a system boot whereas c# is a compiled language and is translated directly into machine code. Technically speaking python is compiled but it’s compiled into byte code which is then ran by an interpreter. But the byte code can’t be directly executed by the cpu so it has to be interpreted by tools like pypy, and cython
Thats the only reason technically you can even say it’s slower. Cause it has no direct path to the system resources without first being interpreted
What if I told you C# isn't translated directly into machine language? https://en.wikipedia.org/wiki/Common_Intermediate_Language
Common Intermediate Language (CIL), formerly called Microsoft Intermediate Language (MSIL) or Intermediate Language (IL), is the intermediate language binary instruction set defined within the Common Language Infrastructure (CLI) specification. CIL instructions are executed by a CLI-compatible runtime environment such as the Common Language Runt...
It's translated to bytecode, which you ship.
That’s Wikipedia dude…
It’s quite useful information
It’s still wrong lol
from wikipedia
It’s not.
"This article needs additional citations for verification" even wikipedia says its lmao
Honestly, that example they used was a really shitty fucking example. It assumed you’re deeply invested in the cult of C++ classes and isn’t a accurate representation of even C.
Nor is using intrinsics a “dirty code” thing and is required to get the maximum amount of performance out of modern CPUs
find me a c# interpreter then
It fucking isn't and it's wildly disingenuous of you to state such. But because you claim there's a great conspiracy to pretend that the CLR exists on Wikipedia, here's Microsoft talking about it.
https://learn.microsoft.com/en-us/dotnet/standard/clr
Why the fuck do you think we need to download .net to run shitty C# apps on Linux
In windows .net framework applications compiled intto MSIL files
MSIL is the old name for CIL
What something compiles to means fucking nothing as I can compile python to a EXE buts it’s still ran on a embedded interpreter
Uhm... They used an example with the clean code guidelines (Polymorphism > switch statements, no internal knowledge, functions should be small, functions should do only one thing, Don't repeat yourself). And if you think about it, sometimes simpler is better plus for the first rule you sometimes need extensive coding to achieve basically the same thing.
Polymorphism > switch statements is some bullshit made up by oop languages. Small functions when done right won’t have a performance impact unless it’s a extreme case and it should be optimized later.
im personally willing to argue that short functions are dumb and instead you should avoid nesting
The "functions should be small" thing was also something that is weirdly handled.
I was adviced here at work to put basically every step into a seperate function which is then called. Even though it's just one step called once. And then having to nest the functions because of it but with logical names. That's what they mean with "functions should be small" and "functions should do only one thing", literally. So if you need certain steps for something, every step should be its own function which is called.
Making every step a function is just dumb and even if it’s a “rule of clean code” it isn’t done in practice.
Well, at least in my company it is, or my department to be fair.
Was forced to do it.
MSIL = Microsoft Intermediate Language even, so yeah, weird argument to use
the size of a function is less important than the content of it - at the end of the day, if you have 3000 lines in one function or split it up in 300, you're still executing the same 3000 lines of code
as for readability, shorter != better/easier to read either, people shouldn't follow rules blindly, use common sense and keep standards/conventions/rules in mind and follow them if it makes sense to do so
I missed it
pov: google suddenly decides that your chrome extension is worth promoting, after a year
Congrats on your new found fortune
thanks!
for context, here is my worse chrome extension with 1/9 of the monthly users 😭
question: Would it be stupid to attempt to update an existing react native app that targets sdk 23 and uses gradle 2.x to be compatible with android 13 as my first android dev project?
Why should it?
why should it be first project? or why should it be updated?
Check it out, run the upgrades, wait an eternity for it to do its shit and then build it and see what it yells at you for?
If you aren't using anything special from native it's probably not going to be complicated to do so.
Is it worth it to fight to get it to run in android studio as is and update incrementally, or just better to just try and update everything and work off of error messages? Main issue I've been having is the current packages being so old that they're not supported anymore
Depends on how big your project is I guess. But the SDK version and gradle version are aside from outdated dependencies.
Your project is in React Native. Unsupported packages are a fact of life :P
Ok, thank you
-You will want to update to not use those packages though.
Luckily it's a fairly simple app, just controlling LED lighting via bluetooth. But a lot of the packages are versions from 2015, so def working on getting everything updated
It was initially framed to me as 'the app works, android 13 just has an issue with bluetooth because they changed the calls' and then I start looking into the project and it's back on react v54.2
Question, does anyone here know how to write arduino code and could help me?
sure! what's the question
Best practice is to just straight-up ask the question, instead of asking to ask.
- People don't have to wait for you to actually ask
- You may end up rubber-ducking the problem by writing it out, and realize you don't need to ask at all
Yeah sorry, I'll know next time. And I managed to figure the problem out with another person
What's a good way for me to use my desktop to program junk from my laptop? Both are Arch.
I've done the latter countless times.
The Remote - SSH extension for VS Code is sick
Essentially turns VSCode into a GUI wrapper for your SSH connection
I'd have to learn a new IDE and that sounds like I wouldn't be able to interact with my program correctly.
You get a full-fledged terminal in the IDE, so if you can interact with the program via CLI, it would work fine
I need 3D X windows.
I wouldn't be surprised if other IDE's have an equivalent, would be worth looking into
Ah ok
Perhaps an SSH IDE for the code + Parsec linux for the visuals
Someone suggested forwarding X, I wonder how bad that will be.
Well that's a fail.
Keyboard input isn't working.
It's all in the terminal....
I threw out an entire platform architecture this morning by talking it through to myself and realizing the whole thing was unsecurable garbage and I needed to do something else.
Huh, -Y not -X but it's more of a security risk.
I have done this multiple times.
Pathfinding works (for now).
No it’s not here
I too am experienced and skilled in literally everything on the planet 
i have projects,but they're all mine and you can't have any
Specialized Full Stack Developer is here!!
👊 Results as late and poor as you make them by changing your expectations within the deadline
👊 Web dev is gross but I'll do it if you force me to
👊 Normal eyes and many ideas you will ignore in favor of hammering in screws
✅ Skill set
🔹 You don't care and I'll learn whatever it is your stack is within a few weeks anyways
If you have any projects, please assign me all the IP so I can make money off your hard work
Thank you
Id hire this guy more
Could you post your stack overflow that's shows 30 commits a day. Also we need your linked in.
And for our technical question. How do you create a binary sort in Java (we don't use Java).
(You have 30 minutes to show us, and it has to be in a Google doc. Please give explanations of your work along the way & feel free to ask questions which I will reply "Huh, interesting, I don't know." to.)
Stop being real, go away
No I don't have much good code in public repos because I write primarily core business logic code for businesses and myself, and crappy little scripts to get things done for myself. If I wanted to provide people lots of free stuff, I'd start a charity.
First job interview after I was laid off was this but they left me in a Teams meeting and did other stuff in the interim - I just copied from my IDE actually
I don't think I could answer those code interview questions anymore lol
Not without looking stuff up.
But I enjoy this is the only field where they expect you to work 16 hours a day.
"What do you mean you don't code for fun every waking moment???"
Also them: "We're looking for professional experience, your hobbyist experience doesn't count."
i've been grinding leetcode to try and do well in interviews but man oh man its really humbling how awful I am
don't worry about it but also don't look up solutions (code wise)
at least too early
for now I'm giving myself an hr per easy/medium problem, then I look at videos walking through the solution with their khanacademy chalk board drawings so I can understand where I went wrong
eventually I'm wanting to get it down to 30 mins from first seeing the problem to solving it with a decent solution
good goal and good luck!
"Write a sorting algorithm"
Me, an intellectual:
def my_sort(collection):
return collection.sort();
That's not a sorting algorithm...
I'm working on a game and I have A* implemented, but next I need to figure out how to make the actors move smoothly across the tiles. Any ideas?
You'd have to move off of a grid system or at least increase the grid resolution a lot
The grid is integer based, but the actors are floating point.
I'm just not super sure on the algorithm I should use.
You could still pathfind on the integer, but add extra logic to help getting from grid to grid in float-space
That's exactly what I'm looking for with this question.
My guess is some sort of movement vector that is normalized then multiplied by the movement speed, but I don't know much besides that. I'll eventually just bang my head against the wall until I figure it out.
Right now I'm working on some other game systems.
Hrm, this is another weird one: how can I generate grid positions in order of distance from a given point?
Pfft, I can just do a BFS.
yupp
That's not exactly the most memory friendly thing, but it will work for now.
I should probably create some data structures for this in my level class because this sort of thing is going to be a fairly common task, but it works for now.
Hrm, I'm going to have to think about some subsystems stuff before I break my code more.
search algos wont hurt memory too bad on an integer field like that
prob miniscule rly
public Optional<TilePos> findNearestTile(TilePos start, Predicate<Tile> filter) {
//TODO Optimize this?
var visited = new HashSet<TilePos>();
visited.add(start);
Queue<TilePos> toVisit = new LinkedList<>(start.neighbors());
while(!toVisit.isEmpty()) {
var pos = toVisit.remove();
var tile = tile(pos);
if(filter.test(tile)) {
return Optional.of(pos);
}
for (var neighbor : pos.neighbors()) {
if(!visited.contains(neighbor)) {
toVisit.add(neighbor);
}
}
}
return Optional.empty();
}
A little bit of object churn, but on larger maps this might get expensive.
You're right:
def my_sort(collection):
while collection != collection.sorted():
random.shuffle(collection)
return collection;
what time complexity is that
Probably O(n!)
just get lucky, the code's fast for me.
Yeah best case is Ω(1)
Statistically it would have to converge.
not exactly a priority to find out 
But true it's possible that it never sorts
Bubble sort
Bubble sort is the fastest sort for three items.
thoughts on this syntax for the semantics of something akin to class/mod
page x {}
pg x {}
You shouldn't abbreviate short words
It's not like variables have a small character limit
There's some exceptions to this, such as interfaces, which should begin with a capital I: IPage
If you have something that's like:
ExecuteAndCheckIfInputIsValidForExternalPersonnel
it can be a bit wordy, but this isn't really solved by making shorter:
ExecAndCheckIfInputIsValidForExtPsnl
shortening the words also messes with autocompletions, have to remember which words were shortened and how they were shortened when typing the variable
I'm OK with very commonly understood abbreviations and will generally strip unnecessary words
...Like "ExecAndCheckInputValidForExternalPersonnel" is fine because "exec" is nearly universally understood by in context by novice programmers and the "is" wasn't doing anything helpful.
Though if your names are that long maybe it's time to refactor your code until your function names don't need to be complete sentences to be understood in context.
I don't think interfaces should start with I.
But yeah I shouldn't need a glossary to understand what your functions do from their names, inputs and outputs and being a bit longer is vastly preferred.
I used to use code bases like that, the modern ones without the I are generally nicer.
Modern? As far as I'm aware prefixing interfaces with I is a common convention to this day and nobody seems to really be pushing for an alternative.
Also you don't need to type a lot of this stuff out, Idea lets you do stuff like EACIVFEP for that ExecAndCheck[...] example.
You just leave them without.
Heck, the JDK doesn't even do that.
I'm looking at C# documentation by Microsoft written two months ago and it uses it plenty.
They're not mandatory, you don't have to use them
Oh, I thought this was Java. C# is just Microsoft's jank Java. :V
Eh, not really
That's how it came into existence but they both have their own benefits and are widely used
Eh, I've tried to do C# stuff but it's just not flexible like Java is and the cross platform support isn't as good.
You're entitled to your opinion.
But "flexibility" can be defined many ways and I'm confident at least one of them would suggest C# is better than Java ¯_(ツ)_/¯
It's based on my experiences. With Java you can just do whatever you want with classes as they are loaded and C#'s binary format is far more complex and has much worse documentation.
I use Python more and find it more flexible than other languages I use. Is that the language or my familiarity impacting that?
It's good practice because if you make an interface called ICar, Truck is a ICar and GolfCart is an ICar it still allows you actually implement a Car class in the same namespace.
It improves readability without any downsides
We see this in action in C#'s own code, IDictionary and Dictionary, or IList and List
You can't use an interface in the context of a normal class and IDEs tell you what kind of class classes are.
What's the difference between IList and List?
How's it implemented? In Java List is the interface with ArrayList and LinkedList being the two main implementations. It's really nice because it allows you know the mechanisms behind them and it allows you to pick for better performance.
A List is the actual implementation of a list, but by allowing for an IList interface, you allow the programmer to specify their own object which behaves like List but needs something special.
Suppose for instance you had a TrainCarList which contains a list of all train cars with a list, but this is a special list that you need to behave a certain way. So for instance a TrainCar object may support Next and Previous functions like a LinkedList, but you also want to be able to say, "Get me the third car in the list". By implementing the IList interface you can implement the Add/Remove operators to maintain the integrity of your LinkedList type structure for you.
The real advantage of this is that you can still use your TrainCarList in all places where you would use an IList. So you can use LINQ on your TrainCarList, or pass it into middleware functions that need to transform objects into JSON.
List should be the interface.
It isn't.
I believe the C# version of the list is just the standard array that resizes itself as needed.
This is obviously a basic example, interface use becomes much more necessary when you start doing things like dependency injection.
I know what interfaces are, I've been programming for over a decade...
This is a discussion about naming conventions.
Oh excellent.
Well the I prefix makes it easy to tell what is and isn't an interface at a glance.
Tbh at least part of the reason why in C# is that if you don't you'll be mix-and-matching two conventions depending on what code you're calling if you don't
I realize that is dipping into Hungarian syntax, but it's a compromise I'm willing to make.
Your IDE does that and generally types with multiple implementations are going to be interfaces.
Well, your IDE may highlight it a different color, but it's more accessible to use a letter.
That's great if my IDE was your IDE but I'm not presently paying JetBrains money :P
VS is fickle and VS Code doesn't try
I'm not paying them either. :V
But do as you wish, I mean it's your code.
But the accepted practice is to prefix an I
Where's the official documentation for the C# PE files? I can never find it but the Java stuff is super accessible.
Like Portable Executable?
That's not really C# if so, that's Windows specifically
true
Yeah I'm not seeing anything about CIL.
Well you didn't say CIL did you
it's an ECMA standard
Common Language Infrastructure (CLI) - Defines the infrastructure in which applications written in multiple high-level languages can be executed
CIL isn't bytecode
Actually it is
That's part of its Java heritage, a lot of the instructions are very similar too.
Nah it looks something like this:
extends [mscorlib]System.Object
{
.method private hidebysig static void Main(string[] args) cil managed
{
.entrypoint
// Code size 13 (0xd)
.maxstack 8
IL_0000: nop
IL_0001: ldstr "Hello World!"
IL_0006: call void [mscorlib]System.Console::WriteLine(string)
IL_000b: nop
IL_000c: ret
} // end of method HelloWorld::Main
.method public hidebysig specialname rtspecialname
instance void .ctor() cil managed
{
// Code size 8 (0x8)
.maxstack 8
IL_0000: ldarg.0
IL_0001: call instance void [mscorlib]System.Object::.ctor()
IL_0006: nop
IL_0007: ret
} // end of method HelloWorld::.ctor
} // end of class HelloWorld
That's a form of bytecode.
It's just a textual representation, like ASM is a textual representation of machine code.
Can you hook into the C# compiler like you can with javac?
Yes and there's an open source compiler as well.
That's neat, have you seen faucet? Does C# have something similar?
Hook into? Like debugging? Absolutely.
Like, modify its behavior with plugins.
Im a student looking to go light and want to code on my tablet. Or at least try. I want to use vscode on my browser through code-server. Since i dont have resources to host my own server im interested if theres any Linux VM hosting services offer a free teir that would make this possible.
replit?
Github codespaces sounds ideal for your use case though it's limited to 60 hours a month of usage for free. Support is baked into vscode.dev
If you want a reasonably powerful system to run code for more time than that, either buy a laptop/tablet that can or pay for it really
It's surprisingly usable on a t3.micro you can get on AWS's 1 year free tier if your projects can handle having ~700MB RAM max
also as a student, you can get better access to a lot of github features like pro and copilot, some of those may extend to codespaces, but don't quote me on that
The student stuff is so evil but it's too good of a deal to pass up.
Maybe you want to have a look at the free tier of oracle cloud. https://www.oracle.com/cloud/free/ the Arm-based Ampere A1 are pretty powerful with a lot of ram. But it might be a bit harder to get into
has anyone got some experience in flutter? Basically I want to switch from Svelte but I'm not sure how hard it will be given I got a whole custom UI library built
In relation to web applications? Be aware that Flutter Web is not that great for web. It works, but should not really be considered if web is your only platform
well, I want to create a mobile & desktop app along my web app, so I thought flutter would be the best option. sure, electron exists, but I'm not sure about mobile. while svelte native exists, I'm not a fan of using in-built components as I'd like to have the same UI on all platforms. using a pwa is not really an option, given that it seems to have a different featureset on different browsers.
It does sound like Flutter would be a fitting solution. I just wanted you to be aware of the issues there might come from Flutter web. E.g. since Flutter draws on one big canvas, you can't use it for web sites and expect any kind of SEO. Also, the initial loading of page/web application is going to be slower than e.g. Svalte since Flutter needs to download the libs needed to do the canvas drawing.
Also, making use of multiple threads are also not a fun experience with Flutter web. You can make use of web workers but need to do some manually handling here which is not that smooth
(Should say that I don't use Flutter but only Dart which I have been using/followed for near 11 years. I am active in some Flutter communities just because my Dart knowledge might be helpful for some issues) 🙂
wait, it draws to a canvas? how is accessibility handled?
I don't really know the status of accessibility. They have added some stuff that makes text/buttons being identified by browsers but I still think everything feels kinda "off"
The canvas thing is because this is how Flutter basically work on all platforms. On mobile, it handles drawing every pixel so any kind of styling comes from Flutter and the libs. you are using. It does not make use of any components from the OS itself.
I'll probably have to give it a try to test things like accessibility, thanks anyways!
Yeah. I recommend making some demo apps to test if Flutter can actually be used for your purpose
I recommend joining the r/FlutterDev Discord server which is a large Flutter community server with a lot of people that actually know about Flutter compared to me 😉
Time for the weekend lmao
Fixed it with this dumb shit lol
completely uneducated opinion here, but there's != and then there's !==, im wondering if the != there was checking if leftValue was literally the variable rightValue rather than checking if the values were different
C# doesn't have a !== operator. Or put more accurately, its != operator is Javascript's !== operator. That's not entirely true because it will throw errors if you have different types being compared but that's the gist of it.
But what's what's happening there, is presumably that GetValue is returning an object an object and it's doing an object comparison, which is what C# does by default.
He'll have to override the Equals method to get it to behave like he wants (or use records in C# 9+) https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/statements-expressions-operators/how-to-define-value-equality-for-a-type
Anybody here knows how to code in Android Studio? DM me If you do Thx.
Ive got a tablet its just really not optimal for writing code as ive seen
really? i wasnt even aware
thank you
No shit
Tablets in general suck for IDE work, even with the keyboard covers and whatnot
But you can buy ones that can at least run the full IDE and run unsigned code outside of a browser.
could get a surface
I have a 1st gen Surface Go with a keyboard cover; same form factor as a 10 inch iPad. It's bad as a tablet! It's bad as a laptop! But it's magical to be able to just write code anywhere.
I use gVim to write vanilla JS and and Lua; don't want anything too heavy. Little browser games or Pico-8 cartridges. Was poking at Dart a little bit, reimplementing the SyncThing protocol. Just fun side projects.
It can do Rust, but the build times aren't great. Have to wait ten seconds or so for builds that would be almost instant on my desktop.
(To be clear, the 1st gen Surface was passively cooled and used just about the slowest x86 chip Intel sold at the time. Literally any other Intel tablet would be much faster).
If I'm not in a nice quiet space on a desktop I'm not really working
ive got a tab s7+ and it sucks. i cant even find an app that would come close to a basic ide
You could run VS Code remote development/ Code Server under Termux perhaps?
theres no way, you think?
I'm working on open-source open-hardware PC Fan controller. Mainly because I need one and the ones available on the market are either too expensive or don't have the features I need.
Question for you guys; Would you prefer to have a SATA power and USB connector on the board OR to have screw terminals so you can cut the cable and wire it individually?
I'm asking mainly because sometimes you don't have a USB connector on the motherboard or it's one of those "weird" headers so you wouldn't be able to use off-the-shelf cable...
This is a better question for the broader PC hardware community.
When building multi threaded, how much ram per core is reasonable? I am having issues at about 1.5 G per core.
Maybe less than that.
I'm not sure what you mean.
Memory and CPU cores are two different things.
And when you multithread something normally you're taking something in one block of memory and processing multiple sections of it concurrently.
Ok, for one instance of a gcc compile out need to have a certain amount of memory allocated so it can build. If you have more CPU cores, then you will need more memory to utilize all your cores. I am trying to determine how much ram I want for my machine.
Depends on what you are compiling and on which architecture. But you could safely spawn more threads than you have cores without seeing any major issues.
For example when compiling kernel or a large project, I often "run" 99 threads but since my CPU has 8 cores, there is little difference between 99 and ~20...
Why not both? Could leave the DC terminal unpopulated if BOM's that much of an issue.
Please put a diode on it if you do add screw terminals though.
I'm making multiple variations of the board for different use-cases so people have options.
I guess for the PC probably the most useful would be SATA power connector + USB header
And essentially it's open-source open-hardware project so after the initial release, hopefully the community provides some feedback and suggestions on how to improve it further 🙂
The arch is RV64GC and the software is a yocto image.
I ran into an out of memory issue, so I know I need more memory.
It depends on the program you're trying to compile, I don't know anything about this.
So, yocto builds a whole Linux distraction. I was running into memory issues building GCC, and rust. Yocto decided to at least not build both of them at the same time, but it attempted to build/package other stuff too at the same time.
Do some research, GCC has cross-compile feature that could save you hours of compile time.
Also not 100% sure what your setup is and what you are doing but just because you have a Linux machine and have compiler installed does not mean that machine can run/compile anything you want. Embedded machines can easily run out of resources. That's why cross-compiling is a life saver.
I am building on a ryzen 6 core 12 thread machine targeting a visionfive2 board. (Yes those are obtainable if you know who and when to buy).
hey I'm a complete noob at programming but I'm building an app in vs, a math solver and I have coded for the calculations etc but as for the ui how do I link the input textbox and a solve button to the code in another file
Uh, what language and what framework
Anybody could help pls
does R exist
actually I'm gonna try and figure it out myself. thank you tho
Hey guys i need advice:
I am trying to make a simple project that basically adds authentication and logging system to software defined networking controller layer. Basically protecting controller layer from application layer by adding username/password and logging system using blockchain. Anyone has any advice where i can start with such a project? I am using mininet but i am not very advanced in this..
Uhh, Blockchain has nothing to do with authentication
i want to use it as a database
its such a specific topic that you'll probably have more luck looking in blockchain-specific development places, but I dunno where to point you to
Thats why i am struggling, there is not much resources out there
We had a research team internally that looked into implementing blockchains into our system (it wasn't auth so it could be different in your case). All the options they showed are terrible for auth... The point of blockchains is to verify as a group (subgroup or full) if the action is right -> meaning everybody would have access to the relevant data to process the action in question (list of all username/password)...
Even if you hash the password before logging in, you are allowing an external person to have the user/pass combo... This is not good. They can just bruteforce them one way or another.
There's as well another issue, blockchain has a performance cost...
Note: Im not a pro in blockchains, Im just relating what a presentation of a 6 month research on this subject taught me with some side knowledge. So there could be a way to do it without putting your data in the hands of an external actor, but, to me, it is alot of work for a database that will be slower than a normal sql database 🤷♂️
Yeah, i read few articles about it and its not really a great idea to do irl. but for the purpose of learning we have to do it. to kinda familiarize ourselves with blockchain and sdn thats it
Working on an explainer, to show people how to their own API key for chat gpt so as not to have to pay $20 a month, and I've found an opensource client that macOS/Linux/Windows, and found an iOS client called GeePeeTee that lets you do this, but Android the only OS I don't use. Anyone know of any non sketchy app for android that just let you use an API key?
Does anyone know where I can find a good Java, SDK for android studios?
Doesn't android studios let you download it? (Been a while since i dev in android)
It should come with android studio
It won’t let me download one
It includes a JRE.
I updated to... Flamingo? yesterday and it noted that it was going to use its own JRE it installed in the Google folder under program files
Found the performance issue guys
comment above the function: "// recursive function"

Oh no, not again
https://mcpaste.io/2b325f4c291babed cant get bot online
A easy to use Paste site for Minecraft Server logs.
That's fun, I added a crappy pathfinding cache to my game and the tick time for each tick was nearly cut in half.
My pathfinding code is still garbage, but at least it's a bit faster now.
How big of an area can it search within a tick?
The entire map. :V
read the error perhaps?
so I'm using pycharm... but when I build/run I want it to open a konsole - use my system terminal, rather than the build in junk
is that possible?
It is
I've searched everywhere - can't find it
python main.py
Is there anyone that is good at HTML or CSS real quick
i made this product card
but its not moving to the middle of the website by middle i mean where that background image is
nvm i done IT LETS GO
W
using blockchain as like a database, you'd be talking like ERC-20 type stuff
Google Cloud has a $300 free trial
Sign up for a GCP account, and then boom, use a Linux VM from Compute Engine
Could you help me or nah?
Bro it worked nvm this CSS has sent me on a roller-coaster
Ok
What's up?
Hey guys, I'm a college student in a Java programming class and I need help with a problem.
The goal of the problem is to create a JFrame program that has a JButton that is disabled after 8 clicks, and then displays a message below it that says "That's enough!"
I managed to get the button to disable after 8 clicks, but I can't get the message to display.
This is my code here:
import javax.swing.*;
import java.awt.event.*;
public class JFrameDisableButton2 extends JFrame
implements ActionListener
{
final int SIZE = 180;
Container con = getContentPane();
JButton button = new JButton("Press Me");
JLabel label = new JLabel("");
int count = 0;
final int MAX = 8;
public JFrameDisableButton2()
{
super("Frame");
con.setLayout(new FlowLayout());
setSize(SIZE, SIZE);
setVisible(true);
con.add(button);
button.addActionListener(this);
}
@Override
public void actionPerformed(ActionEvent e)
{
String indicator = "That's enough!";
count++;
if(count == MAX) {
button.setEnabled(false);
label.setText(indicator);
}
}
public static void main(String[] args)
{
JFrameDisableButton2 frame =
new JFrameDisableButton2();
}
}
If someone can tell me what's wrong with it, that would be very helpful
I'm not familiar with what you're doing, but I notice you've added the button to your contentpane but otherwise left your label alone - is is not appearing because you never added it to something that renders?
Fixing your indentation would help readability a ton - please don't finish your degree doing that and become the type of developer I tend to inherit code from.
I was able to put label.setVisible(true); in there
Programming isn't really my passion or anything I'm just doing it for money
Just wanna figure stuff like this out so I'm more presentable to companies
Yep you're going to be that type of developer lol
What do you mean necessarily?
That was a bit rude of me, I don't know you.
It's fine and good to program for money.
But there are many developers out there who just do not care what they're writing and how it reads and just copy-paste badly-formatted cargo-cult garbage into codebases and change it until it runs.
Oh I see.
These people are of negative value to a business if they're touching any code meant to last.
Nah, I genuinely try to read into things to change it around. Bad programming and you end up like YandereDev
Programming is hard though, but I definitely do want to learn it, because I know art can be made with lines of code. I'm an artist.
Figured out all my homework. I think this summer I'm gonna try to make multiple Java programs.
I'm gonna start with a Chess board. And then recreate it in Python.
I write code like I would a paper, its meant for multiple people to read: me, the computer man, and usually other people (which includes me a few weeks from now). I write a rough draft, make some notes about its readability / how it could be simplified, then write it again. eventually you get good at writing that rough draft and making the notes in real time, but even just trying to write the same function 2 or 3 times in different ways each time can really help you figure out what works and reads best.
I see.
That's interesting to note. I'll remember that.
I think my goal this summer is to self-teach myself Python and SQL.
The most valuable thing I've learned programming so far is structure
Namely how to organise and shape data for efficient processing, visualising inputs and outputs and what they'll look like at each end.
anyone know how to add the verbose flag to black's toml settings?
I am not sure if this is the right channel but could anyone tell me if connecting an RGBW light strip like this would work or not?
Please ping me in the response, or preferably dm me
Thanks in advance
Um... Maybe, that controller has to deal with 12V I/O and multiple amps.
You are missing a bunch of grounds.
I can get strong enough diodes so amps shouldnt he an issue
And wdym? The grounds are the White and RGB
Wanna try with mobile app development again, and currently want a cross platform app. Now, when i last tried it was basically xamarin or native languages, but now with React Native and Flutter.. What would people recommend me to do? The app i will be trying to develop will be a very basic app. Mainly a recipe bank, fault codes, but also thinking of adding a chat and maybe integrate MS organisation login (AD). What do people recommend? I can't do native iOS as I do not currently have a Mac, and setting up a hackintosh or emulating a mac is out of question really. Can't really work on that
Fixed it all good I’m mentally broken tho
Basic, eh?
free monthly courses, exam vouchers, and scholarships from various websites. Don't forget to star ⭐ this repository. - free_monthly_learning_resources/readme.md at main · josepraveen/free_m...
Dev Home is a control center providing the ability to track all of your workflows and coding tasks in one place. It features a streamlined setup tool that enables you to install apps and packages in a centralized location, extensions that allow you to connect to your developer accounts (such as GitHub), and a customizable dashboard with a variet...
This is like a conda environment but native
