-
Should i continue programming?
I like to do this, but every single thing i do ends up very bad with shitty code and not even working, should i quit?
-
What does working with SAP look like?
From an Academic background SAP was hardly ever mentioned and I have hardly any idea what it does. I am studying cs and have a practical coming up in the Future and many companies I have looked at state that they are working with SAP. Now what does that mean ? Is it just a set of libraries or APIs in use or how does it influence you from a Developer standpoint?
This question is probably a little vague and slightly off topic but from what i've read on the internet sap seems to be everywhere but theres no good explanation of what it encompasses, which is why i am asking (I have literally no idea) Appreciating any answers!
Edit: i should probably say that im not talking about companies receiving service in form of applications by sap but stating they develop extensions of some form
-
Trying to convert a string to an integer adds an extra 0 on x86_64 assembly
I created this function for converting a string taken from standard input to an integer: ``` str2int: mov rax, 0
L2: cmp byte [input + r10], 0 je done2
add al, [input + r10] sub rax, '0' imul rax, 10
inc r10 jmp L2
done2: ret ```
but when i use it, it adds an extra 0 at the end of the number (example: a 1 gets turned into a 10, a 30 into a 300 and so), what is the problem with it?
-
Tool for quick UI mockup design to use as a reference for web and/or app dev
I am curious if anyone of you know of or use a tool you can play around with layout to use as a reference, currently I would just use paper and pencil to write down ideas for screens, modals, and features, then use a drawing pad on my phone to put down boxes that represent where the content will be placed. It is an arduous task, but it really helps me focus as I suck at being very creative when I code since I just sit there changing colors or sizes for hours till it looks ok to me.
-
Error while linking x86_64 assembly file
I was trying to assemble and link this file, but when i try to link it with the following command:
gcc x64_hello.o -o x64_hello.elf -nostdlib
gcc throws the following error:
/usr/bin/ld: x64_hello.o: relocation R_X86_64_32S against '.data' can not be used when making a PIE object; recompile with -fPIE /usr/bin/ld: Failed to set dynamic section sizes: bad value collect2: error: ld returned exit status 1
-
Is Programming Stealing Your Life Away?
YouTube Video
Click to view this content.
Watched this video and everything he said is a sign is applying directly to me and it's scaring me, however I think it's invaluable to others and I just want to share it with everyone.
-
What is the easiest assembly language to learn
I have a project for which i will probably need to lear assembly language for some architecture, but it doesnt have to be an specific architecture, as long as it is a real one is ok, so, what is the architecture with the easiest assembly to learn
-
What you as a game developer want from the game engine?
What are your thoughts on the game engine functionality, structure and workflow? What is your preferred choice?
-
How i should do projects
Im kinda new on programming, and always i try to do a project, it ends up full of bugs and the code ends up being a mess, so i wonder, how i should start a project
-
is it normal i'm afraid to do a coworker PR, even though i am forced to by my teamlead?
Tldr: coworker lash out at me for doing his PRs, he always wants to call after I review his stuff so I can read the shit I wrote in the comments live. What can I do?
I’m a junior FE dev and there is a guy on my team, with more YOE then me, whose PRs are, most of the time, a mess.
He improved recently, after we had a big fight after three out of three PRs were broken - as in, full of errors, bugs and with missing/half backed features. Nonetheless, his PRs are a time sink:
- he doesn’t follow the design closely, which means I waste a lot of time pointing out obvious differences
- he is huge hack - his motto is “if it works, it’s good”; as you can imagine this means his code works by God’s grace, which makes me believe he is a part-time messiah (it works until it doesn’t anymore after all).
- Finally, the thing I hate the most, is that he always wants to call for us to fix his stuff together, which would be fine if it were hard but it’s not, we don’t do anything hard and our work is mostly mechanical. And if he is in a bad mood, which he is most of the time, he lash out at me telling me to merge his stuff and that he will fix it later
So well, a few days after our fight I did a small experiment: I merged every PR he sent me. It went down as well as you can imagine, to the point where the team lead asked me to fix the history and the mess he made (and I had to drop a lot of commits).
And well, I thought “here, he finally got it!”. Except he didn’t, his PRs are still a mess - albeit with slightly better testing [as in, now they are with a lot of warnings and differences with the design and hacks, but no breaking error most of the time!] - and he still wants to call me every time I did a review, which means I have to review the same fucking PR twice - if I’m lucky.
-
Anyone know of any good apps I can subscribe to and practice on the go?
Let me get this out of the way, I always get a bunch of “don’t use an app just start this course or open an ide and follow this tutorial” that’s great for you but I have a very busy schedule at this point in my life and a mobile solution to practice fundamentals works best for me. Thank you for understanding.
So I’ve been looking at MiMo, I’m currently on iPhone while I wait for my android to be repaired so one that works on both is preferred. I think I can trick the app into giving me the $50 year deal if I start a new account but I’m wondering if anyone has any alternatives they feel teach better or have more material? From what I can see MiMo doesn’t teach C which is unfortunate since I’ll need to know some more when I go back to college later next year.
I know grasshopper used to be a thing but I can’t find any mention of that in the AppStore anymore, any ideas?
-
Open source bug databases
I’m interested in finding projects that have bug databases (eg bugzilla) that allow people to access them, especially if the available data includes histories for comments and state changes. Ideally, it would include bug reports and feature requests submitted by both the dev team and by users and would have a fair amount of traffic.
To be clear, I don’t mind if the bug tracking software or the project is open source (although that helps). I’d just like something where I can access status and histories over time on a relatively current project.
- codeconfessions.substack.com LZ77 Is All You Need? Why Gzip + KNN Works for Text Classification
Decoding the Success of Gzip + KNN: The Central Role of LZ77
-
How to concentrate on small intervals?
When I'm not interrupted, I can code effectively for 20 to 30 minutes. However, constant notifications from instant messaging, emails, and meetings disrupt my concentration and make it challenging to finish tasks on time.
I once read an analogy that relates to this situation, stating that just like the value of money remains the same whether you have a $100 bill or in coins, the overall time remains constant even if you have small intervals.
How do I overcome this?
-
Graphical SQL Editor with auto-complete for Relational Tables? [CROSS-Post from !sql]
lemmy.world Graphical SQL Editor with auto-complete for Relational Tables? - Lemmy.worldHi! I’m looking at manually entering quite a bit of relational data and I am wondering whether anyone knows of a nice GUI tool to do it? What I’m looking at doing is something like matching up names with addresses. I have a table with a list of people, and I have a list of properties. I want to crea...
>Hi! > I’m looking at manually entering quite a bit of relational data and I am wondering whether anyone knows of a nice GUI tool to do it?
>What I’m looking at doing is something like matching up names with addresses. I have a table with a list of people, and I have a list of properties. I want to create a table where I could pair up people with properties. I would like the ID’s to be entered into the Database, but I would like to see names and addresses on the front-end. Preferably when I click into the new relational table’s columns it would give me an auto-complete list of possible values as I type. (So offer suggestions for names / addresses).
>I’m looking for something web-based or MacOS / Linux compatible.
>Does anyone know of such a tool?
-
Best resource for unit testing fundamentals?
Interviewing for a role which involves a lot of unit testing.
Been doing it for years but would like to get the fundamentals right.
Is there a go-to resource, book, course etc for the principles of unit testing? Like what "Clean Coding" is for clean code.
Thanks!
-
WorkFromAnywhere: Looking for mobile keyboard, displays etc.
Hi, I'm looking for a mobile setup that I can pack into a laptop bag and take with me:
- a small but comfortable BT, ANSI keyboard (microsoft designer compact?),
- a mobile display with foldable stand, preferably 15'', at least FHD, HDMI,
- compact docking station with DP over USB-C, 2xHDMI, charging back over USB-C.
What I have right now:
- laptop :),
- Nexstand CL-07 K2: great, light, great for your comfort,
- microsoft sculpt mouse+keyboard: great, but huge.
Can you recommend any hardware?
#it #hardware #programming #workfromanywhere
-
Solve Sudoku puzzle from a screenshot (sudoku-solver-ocr in C, bash)
cross-posted from: https://lemmy.world/post/961924
> A script in bash in combination with a script in C can help you solve a sudoku puzzle in a png file. > > https://gitlab.com/christosangel/sudoku-solver-ocr > > You can see the script in action in this video. > > The main dependency is tesseract OCR, responsible for the oprical character recognition. > > Another important dependency is imagemagick, responsible for the necessary image manipulation. > > The file selection of the png image is done with zenity. > > Feel free to give your feedback.
- reticulated.net Adventures in AI Programming: Daily Experiments with GPT-4
Discovering the advantages, disadvantages, processes, and use cases for coding with GPT-4 by building something different every day
-
Cryptographic hash functions calculator on-line.
Hi all, I implemented yet another on-line cryptographic hash functions calculator. It is written in C, compiled into WebAssembly and is running inside your web browser (nothing is sent to the server). The calculator: https://marekknapek.github.io/hash, web page source code: https://github.com/MarekKnapek/MarekKnapek.github.io, C source code: https://github.com/MarekKnapek/mk_clib.
-
A Comparison of my Favorite Fonts for Reading and Writing Code
jdsalaro.com Jayson Salazar Rodriguez | @jdsalaro | BlogPersonal activity log of lessons learned, obscure and not so obscure technical tidbits and even some philosophy rants, which are a by-product of my personal and professional comings and goings.
- chennima.github.io Zanzibar与Ory/Keto: 权限管理服务简介
用户的权限管理对每个项目来说都至关重要。不同的业务场景决定了不同的权限管理需求,不同的技术栈也有不同的解决方案:如果你在写一个Ruby On Rails应用,那你可能会选择cancan, 如果你正在使用K8S,那你很可能需要与K8S的RBAC系统打交道。那如果你面对一个非常复杂的业务,需要实现极为灵活的权限配置,并且同时对接多个服务怎么办呢?谷歌的一致性全球授权系统Zanzibar以及其开源实现Ory/Keto或许可以帮到你。 Zanzibar 简介 Google Zanzibar是谷歌201…
- juejin.cn Kratos微服务框架实现鉴权 - Google Zanzibar(Ory/Keto、OpenFGA) - 掘金
Google Zanzibar是谷歌2016年起上线的一致性全球授权系统。其开源实现有Ory的Keto和Auth0的OpenFGA。
- warrant.dev Learn - What is Multitenancy?
A deeper look into multitenancy architecture and how it compares/contrasts with single-tenant applications.
-
How to Linux?
So after reading a number of posts and comments on here about Linux, I've decided to give 'er a go. I have access to an Azure VM, but I have never done anything involving Unix before and have only a basic understanding of coding in general.
Where do I even start? The most daunting thing for me is command line script, as it seems I have to memorize close to 150 common commands and their functions. Is there a set of tools or free classes that would make it easier for me to understand, or should I just get stuck in there? I was planning on using Pop!_OS since I do a lot of gaming and it seems like the closest thing Ubuntu has for that purpose.
-
Tesla Fleet Telemetry
github.com GitHub - teslamotors/fleet-telemetryContribute to teslamotors/fleet-telemetry development by creating an account on GitHub.
Seems like an answer to products like TeslaFi and Teslamate
-
v86 - x86 emulator running entirely in web browsers
Unlike other browser-based x86 emulators, OSes running inside v86 can actually access internet via a transparent proxy relay. You can load your own OS images, or choose one from a pretty comprehensive list (Arch Linux, Windows 1.01 to 2000, SerenityOS, \*BSD, Android 1.6, Haiku, QNX, and so on).
The VM images are loaded in stages, so it boots fast. When you run a program or code that's not loaded yet, it'll fetch the image and perform a JIT compilation of x86 code to wasm. The delay when fetching additional images and performing JIT compilation is noticeable, but the program run fast afterward considering this is a full x86 emulator running entirely within a web browser.
-
Beyond the DevTools: Profiling WebApps at the Assembly Level
leaningtech.com Beyond the DevTools: Profiling WebApps at the Assembly Level - Leaning TechnologiesAt Leaning Technologies, we constantly strive to push the boundaries of browser performance, making performance optimization a crucial concern for our developers. Thanks to groundbreaking technologies like CheerpX and CheerpJ, we have successfully redefined what was previously considered achievable ...
I am excited to share what I have been working on as a Software Engineer Intern at Leaning Technologies. At Leaning Technologies, we create WebAssembly solutions to help businesses transition from native to modern Web Applications.
My primary project was to overhaul the company's previous profiling workflow. The blog post dives into profiling web applications, how I developed a new custom profiling workflow, and what I learned and discovered while doing so. It was an incredibly fun and challenging project, and I even discovered a small bug in the Linux Kernel source code while working on it! I also assembled a collection of useful tools and information in a GitHub repository, which is linked in the post. Feel free to check it out!
-
Note taking methodologies for dense CS textbooks
Hey Beehaw!
I've recently received a copy of Physically Based Rendering 4th edition. I've been going through the book slowly, but have had a hard time retaining information. I used to use markdown to take extensive notes, but found that I would end up copying too much useless information. Also, writing latex notes for math is painfully slow.
I was wondering what note taking methodologies you all use. I think my ideal note taking method would fulfill three criteria:
- Minimal note-taking overhead: Doesn't take too much time to create notes. (Esp for complex math expressions)
- Easy to reference: The notes should be brief and easy to comprehend at a glance. They should also be searchable.
- Easy to store: Minimal physical presence. I tend to lose papers all the time.
-
Android Developer community
Hello! I've been a hobbyist programmer for a couple years, and now I want to turn this hobby into my day job. I find Android a fascinating platform so I've started my learning path. Google search, pointed me to google developer codelabs, and they pretty fun!
However, I'm getting a little stuck, and am looking for a community of android developers. I'm avoiding Twitter and Reddit at all costs, but a lot of resources have pointed me there, any other places I should check out, or learning resources other then Google themselves? For context, I'm learning Jetpack compose with Kotlin and Android Studio.
-
kbin-mod-options; Mod options made easy
cross-posted from: https://kbin.social/m/kbinStyles/t/109271
> kbin-mod-options > ========== > > Description > ---------- > > The purpose of this script is to allow mods to more easily implement settings. > > Functionality > ---------- > > ### Header ### > >
> kmoAddHeader(<modName>, <{author: 'name', version: 'versionNumber', license: 'licenseType', url: 'modUrl'}>); > >
> > * modName - required > * info object - optional > > #### Example #### > >> kmoAddHeader( > 'kbin-mod-options examples', > { > author: 'Ori', > version: '0.1', > license: 'MIT', > url: 'https://github.com/Oricul' > } > ); > >
> > Header Example > > ### Toggle Switch ### > >> kmoAddToggle(<settingLabel>, <settingValue>, <settingDescription>); > >
> > * settingLabel - required > * settingValue - required > * settingDescription - optional > > #### Example #### > >> // Create toggle switch > const settingEnabled = kmoAddToggle( > 'Enabled', > true, > 'Turns this mod on or off.' > ); > // Listen for toggle > settingEnabled.addEventListener("click", () => { > // Log enabled state to console. > console.log( kmoGetToggle(settingEnabled) ); > }); > >
> > Toggle Switch Example > > ### Drop-Down ### > >> kmoAddDropDown(<settingLabel>, <[{name: 'friendlyName', value: 'backendValue'},{name: 'friendlyNameTwo', value: 'backendValueTwo'}]>, <currentSetting>, <settingDescription>); > >
> > * settingLabel - required > * options array - required > * name/value in options array - required > * currentSetting - required > * settingDescription - optional > > #### Example #### > >> // Create drop down > const font = kmoAddDropDown( > 'Font', > [ > { > name: 'Arial', > value: 'font-arial' > },{ > name: 'Consolas', > value: 'font-consolas' > } > ], > 'font-consolas', > 'Choose a font for kbin.' > ); > // Listen for drop down change > font.addEventListener("change", () => { > // Log drop down selection to console. > console.log( kmoGetDropDown(font) ); > }); > >
> > Drop-Down Example > > ### Button ### > >> kmoAddButton(<settingLabel>, <buttonLabel>, <settingDescription>); > >
> > * settingLabel - required > * buttonLabel - required > * settingDescription - optional > > #### Example #### > >> // Create button const > const resetButton = kmoAddButton( > 'Default Settings', > 'Reset', > 'Resets settings to defaults.' > ); > // Listen for button press. > resetButton.addEventListener("click", () => { > // Log press to console. > console.log( 'button pressed!' ); > }); > >
> > Button Example > > ### Color Dropper ### > >> kmoAddColorDropper(<settingLabel>, <currentColor>, <settingDescription>); > >
> > * settingLabel - required > * currentColor - required > * settingDescription - optional > > #### Example #### > >> // Create color dropper const > const primaryColor = kmoAddColorDropper( > 'Primary Color', > '#0ff', > 'Select primary theme color' > ); > // Listen for new color change > primaryColor.addEventListener("change", () => { > // Log color selection out to console. > console.log( primaryColor.value ); > }); > >
> > Color Dropper Example > > Usage > ---------- > > Simply add kbin-mod-options to your script's requires. > >> // @require https://github.com/Oricul/kbin-scripts/raw/main/kbin-mod-options.js > >
> > ### Example ### > >> // ==UserScript== > // @name kbin-mod-options-dev > // @namespace https://github.com/Oricul > // @version 0.1 > // @description Attempt at standardizing mod options. > // @author 0rito > // @license MIT > // @match https://kbin.social/* > // @icon https://kbin.social/favicon.svg > // @grant none > // @require https://github.com/Oricul/kbin-scripts/raw/main/kbin-mod-options.js > // ==/UserScript== > > (function() { > 'use strict'; > > // Section header - kmoAddHeader(<modName>, {author: 'name', version: 'versionNumber', license: 'licenseType', url: 'modUrl'}); > // modName - required, author - optional, version - optional, license - optional, url - optional > kmoAddHeader( > 'kbin-mod-options examples', > { > author: 'Ori', > version: '0.1', > license: 'MIT', > url: 'https://github.com/Oricul' > } > ); > // Toggle switch - kmoAddToggle(<settingLabel>, <settingValue>, <settingDescription>); > // settingLabel - required, settingValue - required, settingDescription - optional > const settingOne = kmoAddToggle( > 'Enabled', > true, > 'Turn this mod on or off.' > ); > // Listener for toggle switch - kmoGetToggle(<toggleSwitchVar>); > // toggleSwitchVar - required > settingOne.addEventListener("click", () => { > console.log(kmoGetToggle(settingOne)); > }); > // Dropdown Menu - kmoAddDropDown(<settingLabel>, [{name: 'name', value: 'value'},{name: 'name2', value: 'value2'}], <currentSetting>, <settingDescription>); > // settingLabel - required, name & value - required, currentSetting - required, settingDescription - optional > const settingTwo = kmoAddDropDown( > 'Font', > [ > { > name: 'Arial', > value: 'font-arial' > },{ > name: 'Consolas', > value: 'font-consolas' > } > ], > 'font-consolas', > 'Choose a site-wide font.'); > // Listener for dropdown menu - kmoGetDropDown(<dropDownVar>); > // dropDownVar - required > settingTwo.addEventListener("change", () => { > console.log(kmoGetDropDown(settingTwo)); > }); > // Button - kmoAddButton(<settingLabel>, <buttonLabel>, <settingDescription>); > // settingLabel - required, buttonLabel - required, settingDescription - optional > const settingThree = kmoAddButton( > 'Default Settings', > 'Reset', > 'Resets settings to defaults.' > ); > // Listener example for buttons. > settingThree.addEventListener("click", () => { > console.log('button pressed'); > }); > // Color Dropper - kmoAddColorDropper(<settingLabel>, <currentColor>, <settingDescription>); > // settingLabel - required, currentColor - required, settingDescription - optional > const settingFour = kmoAddColorDropper( > 'Primary Color', > '#0ff', > 'Select primary color for style.' > ); > // Listener example for color dropper. > settingFour.addEventListener("change", () => { > console.log(settingFour.value); > }); > })(); > >
-
I developed a platform to navigate with slow or unstable connections
blaze.cyclic.app BlazeBlaze: The search engine for seamless browsing in challenging connections. Discover fast results and access online content efficiently.
Recently, I ran out of mobile data on my phone, and I was forced to browse at a significantly reduced speed. It was so slow that it was practically unusable, except for messaging apps. So, I developed a platform in the form of a search engine that allows browsing and accessing information while exchanging a negligible amount of data. This way, even with very slow or unstable connections, it became possible to search something on Google and read content. It can be useful as an emergency search engine. However, I must mention that the project is still in the proof-of-concept stage and has many bugs. Nonetheless, it has already enabled me to browse and search for information several times. I would be curious to hear your feedback, and I would be glad if it proves useful to someone other than myself! Additionally, it's worth mentioning that the visited pages are also accessible offline.
-
Work-Efficiency vs. Step-Efficiency (in parallel processing)
bheisler.github.io Work-Efficiency vs. Step-EfficiencyAt work recently, I found myself trying to explain the Work-Efficiency vs Step-Efficiency tradeoff to a coworker, but when I searched for online resources to help I couldn’t find any that I liked, so I decided to take a shot at writing my own. I found this idea presented in a video lecture series ab...
Good explanation of the difference between work efficiency and step efficiency when talking about parallel algorithms.
-
I created this with a few friends a while ago, though I might share it here
-
Should we clone reddit posts?
From a technical and legal standpoint, ignoring ethics and dignity, is there anything preventing us from scripting a scraper that recreates reddit posts in a lemmy instance? Like maybe top 100 posts of the top 50 subreddits, without comments. I think it would help convince people to join, since the major argument for sticking with reddit is that it has more content. Thoughts?
-
What are the best open source game engines? that can work on a potato...
So what good open source game engine sare out there i know about things like godot but are there any others? i keep wanting to make a game but coding just gos right over my head but still i want to mak eone. it dosent help how my pc is low-end-ish (8gb of ram, windows 10, nvidia 1030 card).
im not even sure how to code or if there is a more visaul way to make games, i would prefer 2d btw becasue it seems easyier for beginner. im not even sure why i want to make a game but i just do maybe becasue im a nerd-ish and it give sme a goal/hobby.
also please share anything you feel is needed aswell and remeber im bascily a absolute beginner who dreams way too big.