@stacksofplates yup! One of the few using golang
I've enjoyed it too once!
Posts made by matteo nunziati
-
RE: Has anyone setup an API for an internal application
-
RE: bash script help splitting string
try this:
# initializing agi variables declare -a array while read -e ARG && [ "$ARG" ] ; do array=(` echo "$ARG" | sed -e 's/://'`) export ${array[0]}=${array[@]:1} #next added line for debug only. comment this out in prod. echo "${array[0]}=${array[@]:1}" done
if you want to "slice" an array use the syntax: ${array[@]:from:to}, not providing the 'to' arg means go up to the end of array.
source here. -
RE: Has anyone setup an API for an internal application
@Dashrender said in Has anyone setup an API for an internal application:
@matteo-nunziati said in Has anyone setup an API for an internal application:
@JaredBusch so currently the file is pushed to a server placed at customers' sites?!
You can write some http API but still you need to set the server.
Can't you othetwise keep the sftp server at the source and let customer use any ftp client (even the browser) to download it? Basically this reverse the process snd customers pull the file.I believe that Google removed FTP from the browser.
https://www.coywolf.news/productivity/chrome-removing-ftp/Yep! still you can use file explorer for sftp if you reverse the ftp architecture. The question is: how much effort has to be put if you have to redo the app in next months?!
-
RE: Has anyone setup an API for an internal application
@JaredBusch said in Has anyone setup an API for an internal application:
@stacksofplates said in Has anyone setup an API for an internal application:
Honestly I'm not sure what you're going to get doing it that way over just normal SFTP. It would be essentially the same thing just over HTTPS instead. The advantage would come in if the remote ends had a way to consume what you were sending instead of just getting it as a file. I can't speak to EDI because I have no experience with that.
Because I do not have an FTP server. The software sends to other people's FTP servers.
But now the customer's customer does not have anything either and they want to pull the data from us.
To me, in the modern world, this means an API to connect and pull their data.
Well if you reverse the process and go for a pull it is easy to build a small REST API by anything to serve the documents and download them. And the client can be the browser or any simple script with curl if you have to automate via cron/ANY-SCHEDULER-IN-THE-OS.
Btw I remember you had .NET developers. You can build a simple auth'ed app with ASP.NET with VB.NET. It will fit your needs and it seems the easiest road, you just need to define how to store the auth credentials. and if, server side there should be a service listening for someone dropping the new CVS now and then.
-
RE: Has anyone setup an API for an internal application
@JaredBusch so currently the file is pushed to a server placed at customers' sites?!
You can write some http API but still you need to set the server.
Can't you othetwise keep the sftp server at the source and let customer use any ftp client (even the browser) to download it? Basically this reverse the process snd customers pull the file. -
RE: Real Time Coronavirus Website
The issues seen in Italy:
New virus: no cure you are on your own. Too weak means you die.
Reason you die: std side effects of unthreated flu on weak people (mostly old people etc..). Covid being able to go deeper in the lungs causing primary type pneumonia (primary=directly caused by virus not by the weakening and by subsequent bacteria installation) which is dangerous even for young people.Main issues: high diffusivity rate, high number of people to require machines to breath. Not enough machines in Italy.
Basically covid is more dangerous than flu but not so dangerous. Unfortunately the sizing of our hospital facilities is not enough to host all the people in need. Therefore, before we have to let people selectively die, government has imposed a quarantine.
-
RE: Real Time Coronavirus Website
@scottalanmiller we are now officially in nation-wide quarantine. You can go out only for relevant reasons.
This all mostly because our hospitals are close to their max cap. -
RE: Compare Azure to Windows On Prem for Normal Business Workloads
The only service I've seen winning hand off wrt a dedicated infra is firebase. Developing apps for super small shops on firebase (the platform not the db only) is really convenient. Also there are a number of cases where developing serverless apps with pure functional back-ends is cheeeper. Butwe are talking custom software deployment not standard software montly billing. In the latter case I agree that could is really expensive for the average SMB.
-
RE: Reconsidering ProxMox
@scottalanmiller said in Reconsidering ProxMox:
@Pete-S said in Reconsidering ProxMox:
@matteo-nunziati said in Reconsidering ProxMox:
Don't forget openbsd:
(https://www.openbsd.org/faq/faq16.html)That is bhyve I believe. Vmm is the kernel module of bhyve.
Ah, that would explain why I didn't know about it
Not exactly, look at this presentation from 2016 (pdf)
https://bhyvecon.org/bhyvecon2016-Mike.pdf -
RE: Reconsidering ProxMox
@scottalanmiller said in Reconsidering ProxMox:
@jmoore said in Reconsidering ProxMox:
@black3dynamite Ok thanks. So it looks like another virtualization option. What advantages and disadvantages does it have with KVM?
The only production virtualization platforms are ESXi, Xen, KVM, Bhyve, and Hyper-V. That's it. And Bhyve might as well not exist.
All products on the market are these products. They may come in different packages, but at the end of the day, every solution is one of these.
Don't forget openbsd:
(https://www.openbsd.org/faq/faq16.html) -
RE: Reconsidering ProxMox
Any update on this?! Never been exposed to proxmox and I'm curious!
-
RE: is k8s a hypervisor ?
Kubernetes is 3 things:
- a container orchestrator (vsphere for containers)
- a container config manamement (ansible for container infrastructure)
- a version control system with rollback capabilities (by default stores the last 10 configs for a deployment)
-
RE: How M$ shakedown stupid corporations
@Dashrender said in How M$ shakedown stupid corporations:
@matteo-nunziati said in How M$ shakedown stupid corporations:
@Obsolesce said in How M$ shakedown stupid corporations:
@Emad-R said in How M$ shakedown stupid corporations:
You have not seen much of "real business" then, I cannot disclose info, but I think this corp is like multi-million revenue.
Thats how it is ins real world, they get bloated and move slower, thats what happen when corp grow, if you keep it startup-ish vibe and "move fast and break things" you will be running the latest but not everyone is like that.
Besides windows painfull upgrading process helps you to stick to whats running.
And no on the client side, its all Win10 ... sadly we use Win10 to manage Linux machines
I hate that mremote/putty shitThis is false.
Big business makes quite an effort to stay current in the Windows world, especially if they are multi-billion $$ company. They HAVE to. It's not a choice.
It's constant change going on, all the time. 2019 is current, when a server is needed at all. Most are really going serverless when possible, lots of SaaS, Cloud, etc.
You might be thinking of U.S. defense companies. I mean they run old shit and pay millions and billions to maintain OAF software support.
I have to disagree: I've recently started a job as a GE/BH oil and gas consultant and they proudly stick on win 7...
They also stick with old unpatched software of all kinds... Maybe it is their italian BU only... But it is rather embarassing...Proudly? What is there to be proud about running 10+ year old software? What are the chances that they are still running on the hardware from back then? Granted you fairly easily still get OEM machines with Windows 7 Pro will into 2016, if not even early 2017 - but still... The writing was on the wall.
Even with the number of hacks that happen every day, clearly enough hasn't happened to people/companies to make the rest stand up and take notice that running old software on machines that connect to the internet - and really, how much doesn't these days - to update their equipment. Unfortunately, this might be one of the first things for business where they can't use it until it dies (I'm talking about IT based technology here) - and I think that is the hard point. Of course businesses that are doing well, and understand efficiencies have been upgrading as the tech makes sense to, well before things like EOL software/hardware come into play, but then many other businesses that run on a shoe string just don't.
Sorry for the late replay. Really busy days...
They are specifically pay extra money to MS to have extra support for win7.
The "proudly" is part was mostly a joke. Reality is that big corps in Italy have very unaware decision makes.They stick with really unprepared supplieres/staff which fill companies with tons of useless gear and SW which easily became unmanageable and a migration nigthmare. so that they easily reach a tech debt in few years (use a phisical token to auth in a vpn used to access the private github repo. Which runs over https...).
On the other side they simply check the bill to be sure it stays well under a predefined threshold simply wasting that money.My last effort is to maintain a ui written by the wrong guy in the wrong language and used to keep alive a software whose user manual has been published in 1988!
And this is the second big corp I've knowleged of. The other one buyed the company I worked in. I've friends there and the logic is the same...
We say that their IT depts are salary factories: they leverage the ignorance of decison makers to auto feed them selves and be sure to increase the amount of men hours required to housekeep the whole infra...
-
RE: How M$ shakedown stupid corporations
@Obsolesce said in How M$ shakedown stupid corporations:
@Emad-R said in How M$ shakedown stupid corporations:
You have not seen much of "real business" then, I cannot disclose info, but I think this corp is like multi-million revenue.
Thats how it is ins real world, they get bloated and move slower, thats what happen when corp grow, if you keep it startup-ish vibe and "move fast and break things" you will be running the latest but not everyone is like that.
Besides windows painfull upgrading process helps you to stick to whats running.
And no on the client side, its all Win10 ... sadly we use Win10 to manage Linux machines
I hate that mremote/putty shitThis is false.
Big business makes quite an effort to stay current in the Windows world, especially if they are multi-billion $$ company. They HAVE to. It's not a choice.
It's constant change going on, all the time. 2019 is current, when a server is needed at all. Most are really going serverless when possible, lots of SaaS, Cloud, etc.
You might be thinking of U.S. defense companies. I mean they run old shit and pay millions and billions to maintain OAF software support.
I have to disagree: I've recently started a job as a GE/BH oil and gas consultant and they proudly stick on win 7...
They also stick with old unpatched software of all kinds... Maybe it is their italian BU only... But it is rather embarassing... -
RE: Tracking Down Ubuntu BASH Session Closing
@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
@matteo-nunziati said in Tracking Down Ubuntu BASH Session Closing:
@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
If I use zsh, I'm good. If I enter BASH from zsh, I get kicked out after several seconds. Definitely is something to do with BASH.
Stupid tryout: use bash and then enter zsh before being kicked out. Still out?
To understand if it is the firing of bash itself or the stay in bash...No, the underlying bash remains until the ZSH closes. Same as if you were running top from it, for example.
So basically bash is able to run long running jobs with your user...
It's the interactivity with the shell to be broken... Meh.Sorry the thread is long, did you mention any test from zsh with:
Bash <-- ok this kills the session
Bash -i any difference???
Bash -l ???
bash --norc
bash --noprofileFrom bashman page
-
RE: Tracking Down Ubuntu BASH Session Closing
@scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:
If I use zsh, I'm good. If I enter BASH from zsh, I get kicked out after several seconds. Definitely is something to do with BASH.
Stupid tryout: use bash and then enter zsh before being kicked out. Still out?
To understand if it is the firing of bash itself or the stay in bash... -
RE: Deciding Between Hardware and Software RAID in My FreeNAS Deployment
@saniplastic said in Deciding Between Hardware and Software RAID in My FreeNAS Deployment:
@DustinB3403 said in Deciding Between Hardware and Software RAID in My FreeNAS Deployment:
metadata
metadata?
please explain more.
The config files where the vm is defined. Do not backup the vm disk only. I suppose he referes to this.
-
RE: Deciding Between Hardware and Software RAID in My FreeNAS Deployment
Smart should simply fail as in a vm. I don't think you need to disabile it.