« first day (3744 days earlier)      last day (1187 days later) » 

mr5
12:54 AM
@Wietlol so I just learned how to make a local function without using Action or Func
The correct syntax is: explicit_type function_name([params]) => body
 
 
5 hours later…
 
1 hour later…
7:13 AM
@mr5 well yes
it was what I originally thought that the example was showing
until I read "public"
as local functions dont really have a use for visibility modifiers
 
mr5
8:10 AM
void A()
{
    void B()
    {
        void C()
        {
            ...
        }
    }
}
this will also work
it's Friday then...
 
@mr5 you can also make local classes in Java and kotlin... which is also interesting
especially because the compiler wont prevent you from shadowing names
this is a glorified hello world application
 
mr5
8:36 AM
 
hehe
 
mr5
9:13 AM
var auth = Encoding.UTF8.GetBytes($"{username}:{password}");
var token = Convert.ToBase64String(auth);
httpClient.DefaultHeaders.Authorization = new AuthenticationHeaderValue("Basic", token);
And this is executed on http and /GET
 
no direct access to the http client :(
 
mr5
I have no experience using Wireshark but I think I can hack it.
 
hmm... you think you can hack https encryption?
 
mr5
I said it's on http ...no s
 
hmm...
then im not sure
 
mr5
9:15 AM
I think Wireshark is able to decrypt http easily
Eh, I don't even think it's being encrypted at all.
 
could be
 
10:13 AM
Fiddler is user friendlier. Also have https option
 
user12761381
10:28 AM
Greetings # People.
I'm a hobbyist C# and Arduino (C++) Programmer.
So please forgive me for any mistakes as I'm not "pro".

I'm looking for a way to collaborate with someone else in a project I have, but I have almost no idea where to start.
GitHub seems to be the most famous way; but that thing is so user unfriendly...

Can anyone point me in the right direction?

Thanks in advance
 
I think that is the right direction
 
user12761381
...I'll go Left then =p
 
user12761381
<---
 
:)
I think it is easiest to just create a repository in github
then clone it and... work with it
although, I am not much of a git fan, I do all my git operations via Rider
so I wouldnt know the cli commands and stuff
if you use Visual Studio, it should also have a decent git gui
adding a collaborator to the project should also not be a big struggle through the github website
(as long as the both of you have a github account)
 
user12761381
Yes; while I'm still working on my way to GitHub; I seem to have found a simple way to sync my C# project with it.

Collaborator: I'm assuming people seeing my repository in GitHub could ask to be one?
 
10:34 AM
they could indeed
 
mr5
The owner/admin of that repo will invite an outsider to be a collaborator.
 
if I add git as an after thought on a project, I just make a new repo and then copy the entire codebase into it :D
 
mr5
Once the outsider gain an access to your repo, it's up to you which flow you would follow when merging your changes.
 
but starting with a clean repo and then creating the project is much better
 
user12761381
Alright. I definitely have to dig on GitHub.

@Wietlol: Like: creating an empty project and code from the repo?
 
10:37 AM
1) create empty github project
2) in the project on your PC, execute git init
 
mr5
You could have a local repo and just add/point it to the remote repo.
 
user12761381
Thumbs Up
 
@JohnConnor yes, I create the remote repository and then clone it to my local machine and start working on it
 
3) execute `git remote add origin github/name/repo
 
mr5
the command to add a remote is git remote add <name_of_remote_usually_it_is_origin> <address_here_either_https_or_ssh>
:)
 
10:39 AM
basically because of 3 reasons
1, it is easier than creating a local repo and then adding the remote
2, it is just good habit to always use source control (mostly git) for all code projects
3, it keeps the remote repository as source of truth rather than your local repository
 
4) git push
@Wietlol The point of git is that there is no single source of truth except what you define for yourself. Usually that is the remote on github/gitlab/whatevs, but there's no technical difference between 1) cloning to your PC and 2) adding remote and pushing
In the end, both repos have the same state
 
mr5
@Wietlol yeah but there's already a command to also do the #3 even if you started from local, it's git make local source_of_truth
 
user12761381
Just to clarify my insight: Source of Truth (or SSOT) is the Basic Logic the Application Functionality and Code should correspond to and the developers should abide to to be compliant with the required logic.

Is this afirmation correct?
 
user12761381
BTW; Thank you for the GitHub Info =)
 
I think with source of truth he means the place where everything is backed up and you can't force push or delete master basically.
Usually that is the repository on the server, managed by a git hoster like github or gitlab
 
user12761381
10:50 AM
Understood
 
How versed are you in git itself?
 
user12761381
I'm actually trying to understand how to work with it
 
Because technically it can be used with any server, on any network, without the big public git hosters.
 
user12761381
(seems pretty messy)
 
I see
Basically it's a decentralized backup solution.
Let's you synchronize a history of snapshots ('commits') between different repositories - which could be on the same machine, or on a server somewhere
 
user12761381
10:52 AM
From what I've understood:
Devs can edit their own Solution apart from a Base Solution; and Repository owner can accept / edit changes
 
...kinda.
You can completely edit the code on your machine - you copy of the repository
Basically you have a full copy plus a working copy to make changes to ("working tree")
 
user12761381
So far I'm struggling with managing the repositories (send /sync a project).
I'm digging a few tutorials "here and there"
 
And you can make a new named copy - called a 'branch' - on a repository. This happens only on a repository, without synching anything.
 
@Squirrelkiller except that git is not a file system
 
When you have a branch that another repository does not have, you can 'push' the branch to that other repository
 
10:55 AM
and that you sometimes accidentally ignore stuff that was actually mandatory for git
 
user12761381
@Wietlol: Ok that made sense
 
user12761381
Likely the reason I'm so confused.
 
@JohnConnor there are basically 3 operations for "syncing"
fetch
pull
push
fetch will ask the remote server for updates on the project
 
Merge technically
 
pull will actually download all the changes
and push will upload all your committed changes
generally we skip fetch because a pull does that too (iirc)
so, normally, you do
1, commit your changes
2a, pull updates from remote
2b, (when necessary) resolve merge conflicts
3, push the merged changes to the remote
on top of those actions, "clone" is important
and all the others you can learn later on
such as tags, branches, etc
 
user12761381
11:01 AM
Alright. I'll give it a try.
Thank you for the info =)
 
mr5
git fetch syncs the structure between local and remote.
git pull downloads only changes from your branch and modifies your local copy if there are any changes.
 
user12761381
Can't wait to have the project up and running; make it a nice tool and improve my skills with it =)
 
mr5
What project is that? Robotics?
 
CI will be really nice too
 
11:19 AM
[kesarling] errm guys, Remember this Google Maps thing I was talking about yesterday? Its still not working, and is kinda being annoying now
[kesarling] can anyone help?
 
user12761381
@mr5: Similar to "Blynk"; however for Desktop
 
mr5
@kesarling I think it was also you who asked me the same thing before about that map thing. Here's the evidence: github.com/mr5z/BlazorAppTest
 
12:09 PM
sup
!~shiba
fffaaaaaaaaaaaaaaaaaaaakkkkkk
not a good start
there we go
!~squirrel
good good
 
squirrel fisting
Dec 10 '19 at 15:13, by AlRey
oh man....it itches
 
1:05 PM
hehehe
squirrels like it
!~shiba
still no shiba :'(
so sad
 
whoa there's only like 13 people here
 
yeah corona took its toll
rip ppl
 
I refuse to believe that's a real dog lol
 
of course its a real dog
mini shiba
it fits in every gift box
 
1:57 PM
[Not Li] Wot
[Not Li] Anything to do with geocoding or street view
 
2:13 PM
Ryan Donovan on January 15, 2021
Welcome to ISSUE #56 of the Overflow! This newsletter is by developers, for developers, written and curated by the Stack Overflow team and Cassidy Williams at Netlify. This week, we say farewell to Winterbash 2020, look for evidence that a program is being emulated, and create a chess AI that matches the skill of a player instead of…
 
 
3 hours later…
4:58 PM
 
 
4 hours later…
9:17 PM
[mr5] @kesarling I replied to you in so-chat.
[mr5] relay bot didn't work
[mr5] :/
 

« first day (3744 days earlier)      last day (1187 days later) »