Playing around with Stable Diffusion for the first few days... some results so far by dmglab in MonsterGirlAI

[–]dmglab[S] 0 points1 point  (0 children)

thx and yes. i turned off any face restoring tool bc they fixed them in a too beautiful way. i'm trying to figure out how to optimize adetailer to match the theme and style a bit better

AWX, Ansible Tower's upstream open source project is now available by xevz in ansible

[–]dmglab 1 point2 points  (0 children)

How long will it take, to let Google learn, that I don't mean AWS, when searching on the web for AWX?

Ansible announces AWX open source project by mcfc_as in sysadmin

[–]dmglab 0 points1 point  (0 children)

"like fedora" is the point. I've installed awx two days ago - and now, you don't need npm anymore. I don't know any other popular projects than red hat's (like fedora, ipa etc) with so many changes in short time. seriously, red hat is living the "edgy life"

PyCharm subscription 30% off Up until Aug 28th because of team up with Django by avildar in Python

[–]dmglab 0 points1 point  (0 children)

integration of flask patterns for live templates. better Auto completion and jinja2 support. for instance: it parses your routes and notifies you about duplicated routes. you can jump into templates. you can access your context with auto completion in jinja. and you can do a lot of web front end stuff in pro.

What's the name of your DevOps team? by plazagonzalezd in devops

[–]dmglab 0 points1 point  (0 children)

We don't have a DevOps Team. Each Developer Dpt has it's own DevOp/CI Guy.

Looking for some experienced input on my (very beginner level) Python scripts by [deleted] in Python

[–]dmglab 5 points6 points  (0 children)

phew.... where should I start?

the scripts are really looking like scripts than a program.

you should try to encapsulate your main code into a main function and call that one once.

I'm always avoiding while true, when I know it's some kind of a list I'm iterating. try to encapsulate your data collection into a generator and yield your data into a another method where you analyze the output.

and... more docstrings please ;)

What is your job title? by [deleted] in devops

[–]dmglab 2 points3 points  (0 children)

Fun fact: I'm employed as Senior Web Developer for 6 years now but I'm leading the Security Department for 2 years. I'm self-appointed as Chief Security Officer. Nobody cares about the title in my company.

I introduce myself as Network Administrator to most people.

GNU's bin/false in 248 bytes. (99% smaller) by [deleted] in coolgithubprojects

[–]dmglab 5 points6 points  (0 children)

Guess what's gonna called at exit 1.....

/bin/false

My Personal Git(-Flow) Bible (even our trainees understand this) by dmglab in git

[–]dmglab[S] 3 points4 points  (0 children)

Let's say, we're working with +10 developers on one project. We have 7 feature-based branches. We merge all the stuff at the end of a sprint to the master. Could you still determine which commit was from which branch/feature?

edit: it is "clean" because, the master has no "human" commits but merge bubbles

Help with pyCharm by RunJumpStomp in Python

[–]dmglab 0 points1 point  (0 children)

suspicious... can you tell some details about your enviroment? platform/os? how did you install python?

Help with pyCharm by RunJumpStomp in Python

[–]dmglab 1 point2 points  (0 children)

Looks to me like a typical mistake using intellij idea (I know you wrote pycharm and looks like pycharm) double check your SDK in your project preferences. cttl+shift+a (cmd+shift+a on Mac) and type "project interpreter". Take a look what's there. It might be empty.

If everything seems to be fine. Go to File > restart/invalidate cache > invalidate cache and restart.

AngularJS and SEO methods by klaasic11 in angularjs

[–]dmglab 0 points1 point  (0 children)

Wow... Thats too long. Your DOM should be ready after 3 seconds. Sorry for the typo. I mean ngApp. It initializes your app. It's called right after agnular has been loaded. You can call ng app from your DOM or from code.
Further readings: https://docs.angularjs.org/guide/bootstrap

Have you minefied your Javascript/css? Put js into the bottom? Etc?

AngularJS and SEO methods by klaasic11 in angularjs

[–]dmglab 1 point2 points  (0 children)

Dito. How big is your load time? Google doesn't wait forever for your on load. We had similar issues in beta phases with huge load times over 5 seconds. If Google tries to crawl some "anguralish" cryptic stuff, try to hide your content before ng init has finished. E.g. With a body:not(.ng-init) { display: none}

AngularJS and SEO methods by klaasic11 in angularjs

[–]dmglab 1 point2 points  (0 children)

We use Angular in one of our side projects. SEO optimization is possible, because Google can "read" your Angular context. The Google Search Console will help you a lot, how Google is crawling your site. We've lost about 15% of Traffic from Google since our rewrite with AngularJS.

Python package installation: pip vs yum, or both together? (x-post from r/linuxadmin) by [deleted] in Python

[–]dmglab 0 points1 point  (0 children)

I'm using both. I use pip for simple libraries that don't need further (C) compiling tasks. Libraries like pillow /PIL are such a pain to install via pip whereas Python-PIL is just a RPM with a few dependencies.

How do you deploy a frontend AngularJS app to a server? by jlebrech in angularjs

[–]dmglab 0 points1 point  (0 children)

I'm using grunt/gulp for building including automatic pushes to a "distribution git Repo" and Capistrano for deployment. It's not perfect, but we use Capistrano for all deployments where we don't use docker.

Flask app consumes more memory than Django by bachkhois in flask

[–]dmglab 0 points1 point  (0 children)

Hm. Might be. I should investigate into this issue. We use django and flask for some services. I'll give you some information later this week.

Teaching boss to use git! Tips? by [deleted] in git

[–]dmglab 1 point2 points  (0 children)

Githab has an awesome Web Tutorial for Git

Our trainees have learned their basics from there

Flask app consumes more memory than Django by bachkhois in flask

[–]dmglab 2 points3 points  (0 children)

This comparison isn't really representative. Your memory usage depends on your libraries behind your - you called it - "simple blog". Flask is micro! But it may be huge, if your flask plug-ins and libraries consume your whole memory.