• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 03:45
CET 08:45
KST 16:45
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
2026 KongFu Cup Announcement3BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains15Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18
StarCraft 2
General
BGE Stara Zagora 2026 cancelled Blizzard Classic Cup - Tastosis announced as captains BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT Terran AddOns placement
Tourneys
RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament 2026 KongFu Cup Announcement [GSL CK] Team Maru vs. Team herO
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BSL 22 Map Contest — Submissions OPEN to March 10 ASL21 General Discussion Are you ready for ASL 21? Hype VIDEO Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread PC Games Sales Thread No Man's Sky (PS4 and PC)
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
Formula 1 Discussion 2024 - 2026 Football Thread General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2877 users

The Big Programming Thread - Page 1010

Forum Index > General Forum
Post a Reply
Prev 1 1008 1009 1010 1011 1012 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
September 18 2019 11:57 GMT
#20181
Speaking of OP. I think this should be added there for Ruby: https://www.poodr.com/

Amazing book in general.
Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
September 18 2019 12:58 GMT
#20182
I'd put it in but the site isn't loading for me so eh?
Liquipediaasante sana squash banana
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
September 18 2019 13:05 GMT
#20183
On September 18 2019 21:58 tofucake wrote:
I'd put it in but the site isn't loading for me so eh?


Tested and it is working for me.
I'll always be your shadow and veil your eyes from states of ain soph aur.
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
September 18 2019 13:40 GMT
#20184
Yeah basically as soon as I posted that it loaded. Whatever.
Liquipediaasante sana squash banana
Blitzkrieg0
Profile Blog Joined August 2010
United States13132 Posts
September 18 2019 13:46 GMT
#20185
On September 18 2019 22:40 tofucake wrote:
Yeah basically as soon as I posted that it loaded. Whatever.


Complaining about things not working should be officially supported troubleshooting steps.
I'll always be your shadow and veil your eyes from states of ain soph aur.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-09-23 14:20:54
September 23 2019 14:19 GMT
#20186
So i started making my first webpage. I am using python3 (DJANGO) right now i am wondering what should i use for frontend. Bootstrap?? I will add i have almost none experience in regards to web development, the only thing i did that is somehow connected is automation with selenium so i will have to learn everything from scrap.

What do You guys recommend?
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
Last Edited: 2019-09-24 09:45:32
September 24 2019 06:37 GMT
#20187
On September 23 2019 23:19 Silvanel wrote:
So i started making my first webpage. I am using python3 (DJANGO) right now i am wondering what should i use for frontend. Bootstrap?? I will add i have almost none experience in regards to web development, the only thing i did that is somehow connected is automation with selenium so i will have to learn everything from scrap.

What do You guys recommend?


This will get you through the basics:
https://www.obeythetestinggoat.com/pages/book.html#toc

Bootstrap and JQuery will be fine to begin with. Later on you'll want to figure out how to not do a full stack but rather a back-end API in Python and front-end in React if you want to be more versatile (I have started with front-end, moved on to full-stack and now I only ever do back-end and never want to touch front again).

Starting with full-stack and simple stuff like Bootstrap and JQuery will give you a nice overview of the basics so it'll be much easier to grasp other concepts later down the line.

The biggest challenge with web-dev is that you need to cross a lot of boundaries. You need to know how the web works, know HTML, CSS, JS, most likely SQL (please don't use MySQL, go with PostgreSQL), language of choice for the back-end (PHP, Java, Ruby, Python, etc.) and on top of that you'll probably need to know how to set up a Linux server in some capacity.

When you grasp the basics you then learn about automated deployment cycles with test pipeline, learn about Docker, various async messaging systems (Kafka, RabbitMQ), numerous authentication and encryption schemes and what not.

It's not easy to get started so begin with small and simple things or you'll get overwhelmed and drown.
Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
September 24 2019 10:43 GMT
#20188
There is nothing wrong with mysql. I personally prefer it to postgres
Liquipediaasante sana squash banana
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
September 24 2019 10:49 GMT
#20189
Thanks for answer, right now my aim is to just finish my little personal side project, plus be able to handle maintenace of our test report database at work. In both places this is just a sideline thing, not major by part by any means but it is nice to learn new things.
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
September 25 2019 08:53 GMT
#20190
On September 24 2019 19:43 tofucake wrote:
There is nothing wrong with mysql. I personally prefer it to postgres


But why? Everything is worse in mysql. It has fewer data types, some truly wonky stuff (I don't remember if they fixed NULL = NULL for uniqueness purposes etc.) and is in general just a worse db in my opinion.

In the modern days, where you tend to use a lot of JSON postgres is superb with its special data types for json and ability to create indices for json internal properties. Bloody brilliant.
Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19194 Posts
September 25 2019 12:42 GMT
#20191
MySQL has JSON: https://dev.mysql.com/doc/refman/5.7/en/json.html

And plenty others. Part of it is that it's the first SQL I learned, but I've been working with a lot of postgres, redshift, and TSQL recently and I find them frustratingly annoying in the little things, like why can't I use double quotes for strings like in every other language? Why is double quotes a column? Why are square brackets also column? Why are there more options for defining column than there are for defining value?
Liquipediaasante sana squash banana
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
Last Edited: 2019-09-26 11:01:15
September 26 2019 11:00 GMT
#20192
Since I've been mostly just removing code instead of writing code at work for the past months (removed ~40k lines of code recently) I went back to doing some MUD coding on the side.

Now I'll get to work with oldschool LPC code from 1998. This'll be fun.
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-10-02 12:53:06
October 02 2019 12:52 GMT
#20193
So i am working at my website and i need to answer philosophical question (i am using DJANGO).

I want to render a table with ~60 rows, each row with 4 fields one of which will be various kinds of input fields and rest are just text. Texts are unique in each row. INput fields types vary by row.
Now the question is how to do that in efficient and elegant way (The options i see):
a)I can render each row separetly in .html file, but that seems very ugly and time consuming
b)Load from model.py via forms.py but i am not really sure how to that correctly --> one model with those rows as fields? But in DJANGO Input fields (Char or Integer) do not support adding user defined fields with that, so i do not know how to add that text data i need--> other then overridding all Input fields type i would use (do not seem elegant at all). I guess i can store my text data in some dictionary/list and load from it but that doesnt look nice...
c)Load without forms.py as intermediary directly from models.py (but i am not really sure how to do that, didnt find such use case in any tutorial.
d) Other options???

So my question is how to do that properly? Where should i hold the text data corespodning to Input fields? What are the best practices/my options?
Pathetic Greta hater.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-10-02 20:17:19
October 02 2019 20:14 GMT
#20194
Or more specific, i have some data that i want to render on page, thats mostly text data (like 60 rows of unique text). And models in DJANGO are working in a way that each field is supossed to represent a field in database. But i dont want to store that text in database. Were do i put this text data (other then .html itself) so i can loop over those 60 rows in convinient fashion if not in a model?

Normally i would just define a list somewhere and loop over it but how do i access that list in .html file?
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
Last Edited: 2019-10-03 01:33:03
October 03 2019 01:32 GMT
#20195
You can generate stuff in html.


<h1>Table</h1>

<table>
{% for obj in obj_list %}
<tr class="whatever">
<td>{{ obj.val }}</td>
<td>{{ obj.other_val }}</td>
</tr>
{% endfor %}
</table>
Time is precious. Waste it wisely.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-10-03 07:00:42
October 03 2019 06:48 GMT
#20196
I know that. But i have hard time retriving the data. Right now i am using CreateView class and acessing my model fields trough "form.field". See my code below.

models.py

class ShipSystems(Ship):
def __init__(self, *args, **kwargs):
super(ShipSystems, self).__init__(*args, **kwargs)

thrust = models.PositiveIntegerField(default=0, max_length=2)
advanced_thrust = models.PositiveIntegerField(default=0, max_length=2)
ftl_drive = models.BooleanField()
screens = models.PositiveIntegerField(default=0)
armor = models.PositiveIntegerField(default=0)
fire_control = models.PositiveIntegerField(default=0)
shield_generators = models.PositiveIntegerField(default=0)


views.py

class CVShipSystems(CreateView):
template_name = 'fading_thrust/ship_systems_form.html'
model = ShipSystems
fields = ['thrust', 'advanced_thrust', 'ftl_drive', 'screens', 'armor', 'fire_control', 'shield_generators']



ship_systems_form.html

{% extends "fading_thrust/home.html" %}
{% block title %}Fading Thrust{% endblock title %}

{% block content %}
<div class="pb-2 mt-4 mb-2 border-bottom">
<h3>Ship systems</h3>
</div>
<div class="table-responsive table-sm table-striped">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>System name</th>
<th>Selection</th>
<th>Mass</th>
<th>Points</th>
<th>Comments</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Standard drive</td>
<td>{{ form.thrust }}</td>
<td>5 % of total mass per point of thrust</td>
<td>1 point per point of mass</td>
<td>Half of thrust can be spent on turning</td>
</tr>
</tbody>
</table>
</div>

<button type="submit" class="btn btn-primary">Save</button>
{% endblock content %}


And this works and renders just fine. The problem i have is how do i pass text or other data to ship_systems_form.html ??? What tags should i use???? I tried numerous tags and always got the result that page rendered but field was empty (it looks if it doesnt find a tag and just skips it and renders rest of page).
I also tried usuing ListView class but with similiar results. So maybe i am making some basic mistake....i also never saw
 obj_list 
mentioned but i did try
 object_list 
(and it didnt work) when i tried to call
 object_list.thrust 
or
 ShipSystems.thrust 
or something similiar. What tag should work in Your opinion?
Pathetic Greta hater.
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-10-05 19:23:40
October 05 2019 19:01 GMT
#20197
Nevermind. I am an idiot
Pathetic Greta hater.
SC-Shield
Profile Joined December 2018
Bulgaria837 Posts
October 06 2019 10:46 GMT
#20198
Just out of curiosity, how long do you stay at company on average?
Silvanel
Profile Blog Joined March 2003
Poland4742 Posts
Last Edited: 2019-10-07 07:13:09
October 07 2019 07:10 GMT
#20199
I am into my fifth year working at the same company, doing basicly the same stuff the whole time(automotive embedded - testing/test automation). Its starting to wear on me, so i am considering switching. Hence learning new technologies etc.

Ohh, i will also add that for all those years i am doing stuff for the same customer. The projectes i worked for are named: NTG5, NTG6, NTG7, NTG7 RSU. Go figure.
Pathetic Greta hater.
Manit0u
Profile Blog Joined August 2004
Poland17693 Posts
October 08 2019 14:03 GMT
#20200
On October 06 2019 19:46 SC-Shield wrote:
Just out of curiosity, how long do you stay at company on average?


It's 6 to 24 months for me, so the average would be about 15 months
Time is precious. Waste it wisely.
Prev 1 1008 1009 1010 1011 1012 1032 Next
Please log in or register to reply.
Live Events Refresh
Next event in 2h 15m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Sea 38764
Killer 1279
Hm[arnc] 144
ToSsGirL 83
HiyA 74
Dota 2
XaKoH 517
NeuroSwarm194
League of Legends
JimRising 683
Counter-Strike
Stewie2K1335
Super Smash Bros
Mew2King153
Heroes of the Storm
Khaldor218
Other Games
summit1g8409
WinterStarcraft490
Happy265
Moletrap3
Organizations
Other Games
gamesdonequick704
ComeBackTV 274
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1481
• HappyZerGling131
Upcoming Events
Sparkling Tuna Cup
2h 15m
RSL Revival
2h 15m
ByuN vs SHIN
Maru vs Krystianer
WardiTV Team League
4h 15m
Patches Events
9h 15m
BSL
12h 15m
GSL
1d
Wardi Open
1d 4h
Monday Night Weeklies
1d 9h
OSC
1d 16h
WardiTV Team League
2 days
[ Show More ]
PiGosaur Cup
2 days
Kung Fu Cup
3 days
The PondCast
4 days
KCM Race Survival
4 days
WardiTV Team League
4 days
Replay Cast
4 days
KCM Race Survival
5 days
WardiTV Team League
5 days
Korean StarCraft League
5 days
uThermal 2v2 Circuit
6 days
BSL
6 days
Liquipedia Results

Completed

Proleague 2026-03-13
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.