Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "jinja"
-
Me: So we've used Bootstrap for front-end and Django for ...
Teacher: Bootstrap is not a front-end framework.
Me: Uh..Okay. It's a CSS framework ? My bad.
Teacher: No, Python is for front-end.
Me: You mean templating ? Yeah! We've used Jinja templates.
Teacher: No. Use Python for front-end.10 -
So someone decides that the employees need to do these stupid Web-based training's that not even high school kids should be looking into.
What is about ?
Security and Cryptography, and now event the real stuff.
What it covers?
Alice and Bob, Bob and Alice.
Alice wants Bob some pics/messages that she suspects someone else will see. DDDDDDAAAAAAAFFFFFFFAAAAAAAAAKKKKKK
A total of 7 useless time wasting interactive and annoying training's, 20+ min each.
But someone forgot that please do not send this shit to engineers of your company, specially Software/Network engineers. Oh another subset, specially not to those who work deeper into the domain.
I'm getting paid to do this time wasting activity, and still.
I also may come back and remove this BUT FOR NOW I NEED TO RANT.rant alice time_waste boolsheet web_training useless fake_security demotivators bob corporate_crap foo -
I had to bite my tongue today when the MD and my colleague started to have a conversation about remote working "not working". It doesn't ******* work if you sit at your mom's kitchen table, cramped around "the team" while all using laptops without additional monitors.... yeah sure, my 3 monitors, large desk, peace and quiet and the ability to go to the bathroom without a security card "doesn't work" and is such a bad environment to get stuff done. ARGGGGG2
-
Elasticsearch, from the bottom of my heart...
How can one ecosystem be so batshit crazy inconsistent?
Seemingly every agent does the same (e.g. filebeat vs journalbeat vs packetbeat)… yet there are subtle changes in configuration everywhere.
Plus YML. The most shitty markup language one can use and the cockslubbing durps used it fucking everywhere.
Makes fun to have complex stuff and requiring a python Jinja to JSON to YML converter to be able to write the complex stuff without having the fucking migraine to count like a stupid 4 year old whitespace with both hands...
To make it even more absurd: the ingest pipelines which contain a lot of regular expressions / grok and are thus very prone to quoting issues... Yes. Let's do this in YML too.
If you need to add an fucking manual section how to debug YML errors you should have realized what a fucking stupid idea it was, morons.
Now I have the joy of having a python script regex quoting the shit for a Jinja template which then generates JSON which then generates YML.
Why the JSON part?
Yeah... Because ECS and changes in the upstream YML files / GitHub.
To be able to run diffs in a sane way because in YML distinguishing thing is pretty much impossible, so JSON as an intermediary format solely for the purpose of converting upstream YML to JSON to diff it against modified JSON ingest pipelines downstream.
I fucking hate elasticsearch8 -
12:55 AM, Subject gets and decides to look at crude oil chart.
1:05 AM, At it.
1:10 AM, Subject decides to check the temperature, using laptop screen in dark.
1:12 AM, Does a wild aerobic move to save flying laptop.
1:13 AM, Finds out that screen is gone.
1:23 AM, Orders new screen.
1:26 AM, Types this rant. -
Sorry Google, you got it wrong this time ....
Oh my gosh, look at that function definition ...
Oh my gosh, look at that variable ...
Oh my gosh, look at that zone ...
Oh my gosh, look at that long ...
Oh my gosh, look at that short ...
Oh my gosh, look at that stop ... is more my style.10 -
Python:
come.here(dear_friend)
Perl:
@body = qw(dead _ friend)
come->here{join( " ", @body )};++@#!A$!@ !
Grrr!!!
Ignore syntax/conceptual/logical/all errors.
Sent from my keyboard.3 -
Best debugging trick ever:
Wear your fucking glasses while coding so that you do not mistake COMMA(,) with a DOT (.).
So by
1. Doing that (which obviously aren't a huge number) and
2. Cleaning my screen (yes that).
I was able to wrap my head around the issue that almost wasted one day.
So what I intended to pass as string concatenation join operation value actually was being passed as an argument to the underlying function (that wasn't taking care of it and returning a timestamp from thin air).
Murphy's Law in production and practice.
Nice!
Depressing music continues......!3 -
Thank to this UPS driver ... i'm not going to get my package (laptop screen) until Monday evening.
Express Priority shipping $35.xx or whatever that is down the drain.
Never had this issue with Fedex and 100's packages delivered.
This ends the rant.3 -
Some <super smart> person ran DHCP in production lab (without disconnecting from main network and/or using firewall)
, now the admin turned all the ports off and went home.
Traffic gens are also unavailable now so are upgrade servers.
Result: I can't run my work over the weekend and the reports are expected on Monday.
Not so bad : I'll run on Monday.
Bad part : This fucking shit takes 2 days to do everything on the rack.3 -
Wasting time of 20+ developers to deliver a 'how to use a bug reporting system', coz:
- you've only 2 newembers in team, and
- just to have a bi-weekly meeting.
Is not productive, motivating and wise by any means.
Combined $$$/hr amount here is quite an important metric.2 -
I'm on the verge of breaking this shit Windows based work laptop (Dell, so called i5, yes it's outdated but still) with idk what.
15 and a half mins since bootup and I've not been able to access Microsoft Outlook.6 -
debian sarge (yes sarge, not stretch) and mozilla v1.7.8 (yes mozilla not firefox) ..
You cannot go wrong with that.
Nothing wrong here. -
Seeking help from anyone able to read Laptop motherboard semantics sheet
In short: Looking for a blown fuse on Laptop (Dell Inspiron 7547) near LCD cable connector, as not getting backlight after a new screen installation. Screen is functional and is detected properly and the device is passing all the diagnostics tests.
Issue tracked here
https://reddit.com/r/Dell/...
And here,
http://tomsguide.com/answers/...
Thanks ++8 -
Stayed up all night to make interactive data visualizations from CFTC data and now I want to show it out.
BUT
No one is interested. Why Earth why?
Whatever, where is keyboard, and turn off the lights.
- Dark music plays. -
$logger->log_info("Dumper ln:[" . __LINE__ ."] INFO:" , Dumper(%cmd));
[May 1,2018 12:46] Dumper ln:[1118] INFO: 2018-05-01-T12:46:04
...
day++;
frustration ++;
...
Replaces < , > with < . > in line 1.
[May 1,2018 12:53] Dumper ln:[1183] INFO:$VAR1 = 'SQL dude why?';
Mother of Perl !!! -
I must assume that whoever designed jinja2 was either on crack, or hadn’t used template systems before. This thing is too fucking complicated, and doesn’t make sense. From their docs:
“Jinja2 supports dynamic inheritance and does not distinguish between parent and child template as long as no extends tag is visited. While this leads to the surprising behavior that everything before the first extends tag including whitespace is printed out instead of being ignored, it can be used for a neat trick.”
My response: “I don’t give a fuck!! I need this fucking website to be fucking done already! I pass data into a fucking template engine, and the engine applies my fucking markdown!! This is bullshit!! Why am I still trying to understand your fucking nonsense?!? AGGJCDJVFD&@!?&@$?)@&!SHHHVBSHK!!!!!!”
*desk flip*
Fuck you to hell you jinja fucker3 -
There are contractors in office to take out garbage (devices, boxes etc) that we'd put away last week as part of spring cleaning
Now they're doing it on premises ...
Sound of metal, boxes, clutter, breaking this and that. This is quite annoying and hard to bear
And a freaking Monday, why can't they arrange shit over the weekend.
It's no noisy like a (scrap) kabadi shop.
sounds in the background
[bam
bang DING
RRUUMBLE SCRUNCH SCRUUMBLE SCRUUUNCHH
ca-chunk
Chrrrick chrrrick chrrrick chrrrrick
CHUMMA CHUMMA CHUMMA, HUFFT HUFFT FALUMP
gr gr k k grk
clickety-clack
GRRRAKKA KKAKKAKKAKKAKKAKKAKK AKKAKKAKKAKK AKKAKKAKK AKKA KKAKKA AKK
tluck....tlock]
Dark music plays ....
source: http://www.writtensound.com/i -
Someone save me from this fucking stupid corporate web based trainings and let me focus on more important shit like re-factoring my code (ohh joke) and/or writing something more code then going what i just mentioned above.
-
Rant:
My jupyter notebook has outgrown itself on some real world trading data analysis and its becoming a pain to add to (further) and share.
Need to find better alternatives, web apps where are you?
But i know nothing about it. Learning curve ahead!
Requirements:
I've 7 interactive dashboard plots (from some data) in jupyter-notebook.
- It'd be nicer to have a web app to use them without running notebook from a different location.
- Or running notebooks remotely (running as daemons on host machine).
Any suggestions for a starter ?
rant before requirements, coz rants lead to better requirements.
if rant++:
make_requirements(what_something)
do_work(that_something)8 -
wanted to parse jinja templates for parameters to be collected at runtime.
Python - 4 lines and done
Java with jinjava library - did not get anything done, lost some hair going throught their highly undocumented code.1 -
Hey guys I want to make a android app in my trash phone but I don't know any Aide for phone because I dont have any pc or laptop23
-
Just realized that before i did that commit there was this guy (let's call him a friend, fucking asshole from a different department who can't see someone is working before continuing their stupid conversations) took my attention away for 15-20 mins and i being distracted didn't commit 1 file out of 7 and ended up changing (exact same file over next code merge) it.
Now Everything fails.
Sweet afternoon work is gone.
To be repeated ....3 -
jinja templates make me look towards html in a whole new light. are we 'inserting' data to an already rendered page? am i really mixing server code with ui ? It doesn't feel so. there are if else and loops being executed for html code, like wtf?
I don't know but everything feels so good. like i was literally hating every piece of website i was writing in php. everytime i wrote <div>....</div> followed by <?php ... ?> followed by another html tag /php tag in a fuckin php file, i wanted to kill someone from w3c.
WHY THE FUCK ARE WE ALLOWING THE MIXUP ?WHY IS PHP FILE HOLDING HTM TAGS? WHY?WHY?WHY?
But this... this is beauty. their is separation of concerns. jinja has some big powers, we can loop, repeat, make clauses, inherit other html classes, load html content into blocks, set variables,
but main concepts like file handling, response/request handling,calculations,etc are all being done in separate python files. I know that these jinja templates also might be running python in background, but atleast a developer cannot fuck up that code.
we can be sure that if correct jinja codes are written in html, then it would load correctly. And wherever devs doesn't fuck up, the output is better to understand and more maintainable/scaleable3 -
Salt is awesome, no questions about that. YAML is giving me headaches, but it's my fault and eventually I'll get used to it. But this being my first encounter with jinja, WHO THE HELL THOUGHT THIS PIECE OF CRAP DESERVES TO LIVE! Instead of writing python inside {% %} you have to write kinda pseudo python and I just spend over hour trying to build list inside for. Yes, great idea, scoping fors, and lets make it hard to escape scoping, beacause it would be a shame if somebody COULD ACTUALLY DO SOMETHING USEFULL. I though several times of using different renderer, but I want to keep my code readable and mainrainable and in the end I found a workaround, but still, Jinja, YOU SUCK!4
-
Since most of you are working in IT , Communication and related fields, what advice can you give to a student like me who has just began studying Computer Science Engineering ...I mean how should I began, what to do next and get myself placed in a good company.
Talking about myself I have started learning C language and have learnt about basics, pointers, memory allocation, not yet started with data structures and algorithms
I have just done HTML and basic CSS , have understanding of MySQL and know a little bit about flask and Jinja framework in python.
If you could share your experiences, like what you felt at this stage what you do and how you do....how you got placed...what should I do different to cope with the growing competition....
Look I know this place is not for this bullshit but.... my seniors are egocentric bastards, my batchmates don't give a shit about CS , and being a student of tier-3 state government college in India, professors don't care......so I really appreciate if you guys can come forward, and especially Indian guys.4 -
Spent all day fucking around with a tool, hoping to make it work, only to realize that I could just use Jinja templating and a cheap command line alias to render the template all along.