« first day (4309 days earlier)      last day (863 days later) » 

01:34
Hi everyone
I love Squirrels
Can someone review/answer my question ? stackoverflow.com/questions/73215410/…
01:56
Looks like I fixed it lready thanks alot
mr5
mr5
02:53
Hello, do you guys have an idea on how to manage git tag names for a codebase that produces different app versions?
 
3 hours later…
05:45
Hi guys, I have a work and also take cases, do you think could I call those cases as my side project
mr5
mr5
Criminal cases?
Sorry for my poor English, I mean some case like build official website for company
mr5
mr5
hmm, if you are doing something you do not own and get paid for doing it, I think it's not a side project but a sideline job since you said you already have job?
Thank you bro, really help
mr5
mr5
In my definition, side project is a project on its early development that you own and you do it when you are free. You are not gaining money from it yet (but there are other projects that you can monetize even if it's just a concept).
@MichaelMao I see you are from Taiwan. Do you mind sharing what is the situation now there? Just curious.
05:58
I will say nothing happen
Maybe two month later nobody will talk about this
This things happen many times so for me nothing need to concern
For long term, not a big deal. But for now Chine do some financial attack to us. So some business and tock got problem but I think this is short term
mr5
mr5
How about the US official, is she still alive? Lol.
Actually, I don't care haha
But I join some Chine technical group. Their opinion is US bother China again
mr5
mr5
According to my news source (9gag), China will kill her if she visited Taiwan. Now that it doesn't seem to be happening, what do you think China will do?
If she got killed that is WW3 but I think 0% for that
I even don't care what will they do as I said before this kind of things happen some many times. But they are doing military exercises
06:15
she is protected by multi categories by multi country, how to kill is issue
also, killing her would elevate a war which is, didnt even solve anything
they simply wont
Oh a interesting thing is someone hack our high speed rail electric board and called her witch
A Taiwan start said Taiwan belong to China
My friends discuss about if we have money which country should we move to
mr5
mr5
Canada!
taiwanese the most should decide go japan i think
mr5
mr5
06:24
Taiwan Felosi
the heck
its wtf without what
Some people think Japan society too much pressure
mr5
mr5
ohh
you said you had money
no pressure in japan, when you had money
mr5
mr5
if (we have money)
  think(which country to move)
06:28
Not for commercial I think is culture
Thailand Singapore Australia
if (money>10000000) move(random(countries))
australia is good if you love driving
mr5
mr5
move(random(countries)) >> Somali
what to do in Somali:
1. Become a pirate
2. ??
3. Profit!
For me I want a country or job don’t need so much work time I want more private time for my life
mr5
mr5
I thought I read "...pirate time for my life"
@mr5 buy boats and rpgs
 
1 hour later…
mr5
mr5
07:34
@Squirrelkiller do you know any slack bot that pulls iOS/Android recent release notes?
 
1 hour later…
09:03
@mr5 For your App our others App
mr5
mr5
@MichaelMao for the operating system itself
@mr5 what do you mean?
naming the tags?
mr5
mr5
yes
what do you put in here if your codebase produces multiple apps with different versions
I have asked the team. They also don't have any idea :/
So I decided to put the "main" app, then include in the description the version of others.
What is that from?
mr5
mr5
09:19
GitLab
I'm not sure how what is the cli version though
oh, it's just:
git tag "Name here"
Let's git tag why relate to OS version
mr5
mr5
huh
@mr5 Git tags don't produce different versions. It's just a way to give a name to a single commit. E.g., if you have commit fef94d49ac7e24f63fce9674b53ed9cf16e7b4a1 and you just name it "tag1". Then you can refer to it with its tag rather than the full hash. That's it.
And due to Git's light approach to history/references/branching the tag can also be considered like a branch. But the HEAD is static.
mr5
mr5
But usually, git tag is associated with the app/library it produces right
No. It's only a named commit.
Although, you could tag releases.
That's up to how you do your Git strategy, though.
mr5
mr5
09:29
huh
You could get the main branch to a stable point, you know you want to release it, so you tag the commit. You name it "release1" for example. You can then build the code from that point in time.
mr5
mr5
I know it only used to name a commit, but it is usually used to refer to a release for a certain commit.
You could also tag other things, not necessarily only releases. As I said, depends on your Git strategy.
mr5
mr5
It says there that the version of its library is 3.7.0-agp4.2
Or you could do releases without tags.
mr5
mr5
09:32
We are going to depend on tag to trigger a pipeline, then publish an app, so that's why I want the tag name to refer to a particular version of the app.
And you want to get last version from IOS and Android?
@mr5 we use version/1.0.0
tags that start with version/ are considered versioned releases
the value after the slash is then used by the build and deploy tool to do whatever
for now, we only use it for libraries
so, for example for nuget packages
we dont produce multiple apps though
generally speaking, we make our repos small enough to not have multiple apps
but if you really want to, you can define a set of apps and work that into the tag
[Captain Obvious] I used to have small repos for indivual things
[Captain Obvious] that was a nice time
version/mac/1.0.1 and version/windows/1.0.0
[Captain Obvious] Now at this company we have one mega-repo which contains everything
09:41
then your deployment task should listen to version/<app>/<number> and optionally to version/<number> to release every app
mr5
mr5
in our case, it's a single codebase to produce "customer branded app"
so it make sense to have a single repo, otherwise, maintenance would be hell
customer branded app?
[Captain Obvious] it's like multi-tenanting but worse
[Captain Obvious] Every example I've seen does it as a seperate repo as inevitably at some point customer needs diverge slightly, and while they can all be built on the same core, there's usually some minor tweaks to be made
we have multi-tenant database storage, but the applications are all the same
mr5
mr5
not anymore. Android Studio have this "flavor" thing wherein you can produce multiple variants of your app. You can also have a source code specific to that variant.
09:44
[Captain Obvious] It's still awful
mr5
mr5
On Xcode, it has the same feature called "schemes"
what you probably want is some form of plugin system for customer specific needs
and tenantized resources
it shouldnt require duplicated codebases
or duplicated resources
mr5
mr5
and how about its repo?
[Captain Obvious] yeah the issue is how are you meant to publish seperate apps though
[Captain Obvious] because each different branded app needs it's own app ID etc
mr5
mr5
you can configure that in build.gradle for Android Studio
for Xcode, everything can be configure per scheme, so scheme is like 1:1 app
09:51
[Captain Obvious] that was more directed at Wiet
[Captain Obvious] Almost all of those apps are built on the same codebase, mostly only differing in branding and theming, and maybe slightly in layout
mr5
mr5
1 message moved to Trash can
the repo is all the same
mr5
mr5
1 message moved to Trash can
on the deployment, you can just tell for which tenant you want to deploy, take the tenant id into account when generating the app id and use that same tenant id to figure out which plugins to load
@CaptainObvious I assume that each own app does not need a unique repo
10:01
[Captain Obvious] When I was looking at doing something similar at my old place I used a plugin system to plug in tenant-specific features/configs and just released with tenanted configs through octopus. Still one app build though
mr5
mr5
4 messages moved to Trash can
how do you properly combine this moved messages. it's awful
generally speaking, when duplicating, you only duplicate what needs to be changed
then you retain SSOT
[Captain Obvious] @mr5 what do you mean
(no, I dont mean State Sponsors Of Terrorism)
[Captain Obvious] When you move messages it creates a new message sayign that you've moved messages
[Captain Obvious] Fun fact: you can edit that message within the usual time period and that message cannot be deleted
[Captain Obvious] The audit messages are indestructible
 
3 hours later…
mr5
mr5
13:10
$ chmod +x -R cicd/non-prod
chmod: -R: No such file or directory
why is this erroring
[Captain Obvious] sounds like the file or directory does not exist
mr5
mr5
it does exist. I have run ls -al before this
[Captain Obvious] what about non-prod inside cicd
mr5
mr5
after executing cd cicd
hmm
[Captain Obvious] 🤷‍♂️
mr5
mr5
13:15
> chmod +x -R "$PWD"/cicd/non-prod
doesn't work as well
fuk this shit
> chmod +x cicd/non-prod/*
a workaround
13:38
[milleniumbug] -R should be before +x
@mr5 -R: No such file or directory means that a file named -R does not exist
^ which indicates -R is taken as a file argument. Therefore at the wrong place.
chmod [OPTION]... MODE[,MODE]... FILE... yup, note the syntax
mr5
mr5
hmm, why did it work on some environment then
maybe you wrote it as chmod -R +x cicd/non-prod back then
mr5
mr5
13:50
this is currently running fine
but the environment is different from what I'm using now
Different chmod implementation?
mr5
mr5
hmm I think I need to print the os names
SO is down...
I definitely wouldn't trust this to work uniformly even without the evidence here. Usually switches like -R (anything starting with a dash or double dash) are separate group to other things. And +x is another thing - it's instructing what permission is to be assigned. Could be that some chmod implementations don't care about the difference. But I wouldn't count on that being the norm.
For the most part *NIX commands are <command> [OPTIONS] [OTHER STUFF] [WHATEVER ARGUMENTS YOU WANT TO FEED HERE. OFTEN FILES/DIRECTORIES]
mr5
mr5
got it
I think I need to modify that previous implementation
oh boi. I'm overtime. I need to stop haha
oh right, it wouldn't work on macOS. The one where it was working was on a linux distro I forgot
Ubuntu: chmod +x -R directory/here # works
macOS: chmod +x -R directory/here # does not work
14:06
Guest Post on August 03, 2022
Developers need to always be learning, but knowing what skills companies need can help you direct your learning towards marketable skills.
14:56
hey does anyone know the shorthand for this I can't remember this I think it has something to do with the ? operator
FinalRuleModel.Status == 1? FinalRuleModel.Status = 2, FinalRuleModel.Status = 0;
mr5
mr5
15:07
@SamuelWakeman change comma to colon
Also, I don't think you can assign variable in that
a = (a == 1) ? 2 : 0;
Can I do something like this in a view
<h4>@item.Language  @item.Name.Count() == 1 ? "Translation": "Translations"</h4>
15:23
thanks guys
15:48

« first day (4309 days earlier)      last day (863 days later) »