• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:00
CET 04:00
KST 12:00
  • 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
[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy5ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289
Community News
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool38Weekly Cups (March 9-15): herO, Clem, ByuN win42026 KungFu Cup Announcement6BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains18
StarCraft 2
General
Potential Updates Coming to the SC2 CN Server Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (March 2-8): ByuN overcomes PvT block Weekly Cups (August 25-31): Clem's Last Straw? Weekly Cups (March 9-15): herO, Clem, ByuN win
Tourneys
World University TeamLeague (500$+) | Signups Open RSL Season 4 announced for March-April Sparkling Tuna Cup - Weekly Open Tournament WardiTV Team League Season 10 KSL Week 87
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026]
External Content
Mutation # 518 Radiation Zone The PondCast: SC2 News & Results Mutation # 517 Distant Threat Mutation # 516 Specter of Death
Brood War
General
Soulkey's decision to leave C9 JaeDong's form before ASL BGH Auto Balance -> http://bghmmr.eu/ [ASL21] Ro24 Preview Pt1: New Chaos ASL21 General Discussion
Tourneys
[Megathread] Daily Proleagues ASL Season 21 LIVESTREAM with English Commentary [BSL22] Open Qualifiers & Ladder Tours Small VOD Thread 2.0
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2
Other Games
General Games
General RTS Discussion Thread Stormgate/Frost Giant Megathread Nintendo Switch Thread Path of Exile Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion The Story of Wings Gaming
League of Legends
G2 just beat GenG in First stand
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 Things Aren’t Peaceful in Palestine YouTube Thread Canadian Politics Mega-thread Russo-Ukrainian War Thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Movie Discussion! [Req][Books] Good Fantasy/SciFi books [Manga] One Piece
Sports
2024 - 2026 Football Thread Cricket [SPORT] Formula 1 Discussion Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
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: 5890 users

The Big Programming Thread - Page 971

Forum Index > General Forum
Post a Reply
Prev 1 969 970 971 972 973 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
Poland17698 Posts
August 28 2018 14:59 GMT
#19401
http://asset-6.soupcdn.com/asset/14412/3954_65e2.mp4

Hahaha
Time is precious. Waste it wisely.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
August 28 2018 22:07 GMT
#19402
I've taken over a role. I'm writing code that fulfills a framework as part of a system provided to us. The system makes some changes to the DB, calls my code, then my code makes some changes to the DB.

We've been having (a lot of) issues with data quality and I want to guarantee that the code from the framework and our code does what we think it does, through functional tests. How would you implement that in this case? Do you need access to that framework?

We have a test DB, but we could also use Mocks(I just don't think they'll help).
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
August 29 2018 02:51 GMT
#19403
Is it possible to use an old phone as a firewall/ad blocker/filter (placed between the router and your machine)? Similar to a raspberry pi
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
phar
Profile Joined August 2011
United States1080 Posts
Last Edited: 2018-08-29 02:53:27
August 29 2018 02:52 GMT
#19404
golang v2 dev notes, including

improved error handling
and

something that looks like generics if you squint at it the right way
Who after all is today speaking about the destruction of the Armenians?
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
August 31 2018 20:59 GMT
#19405
so, my buddy is in the air force, he is doing a CS program online through Regis University.
He sent me his homework assignment. It is due Sunday, he just looked at it. His class started on monday.

Quick note: he has no experience with C, and no experience with automata
Here is the assignment (pdf): https://ufile.io/ituhz


Is this not completely absurd? I saw this and I started laughing and told him he's screwed and his teacher is insane. But maybe one of you has a different opinion? But just to go over it, they expect him to understand what a DFA is, how to make the DFA correctly, and how to do literally all those things in C. All in well less than a week.

Curious about opinions on that.
tofucake
Profile Blog Joined October 2009
Hyrule19196 Posts
August 31 2018 21:04 GMT
#19406
Seems like data structures and algorithms would be a prerequisite for CS 390, which would mean he should know automata. Also it's 390, so he should either have exposure (at least) to C or be good enough in other languages by now to know how to find out what is needed to make this in C.

It seems pretty reasonable for a 390 level course.
Liquipediaasante sana squash banana
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
August 31 2018 21:15 GMT
#19407
Yeah the course levels are super confusing. In terms of courses completed he is starting his 2nd year.
Excludos
Profile Blog Joined April 2010
Norway8243 Posts
Last Edited: 2018-08-31 22:24:38
August 31 2018 22:22 GMT
#19408
On September 01 2018 06:15 travis wrote:
Yeah the course levels are super confusing. In terms of courses completed he is starting his 2nd year.


If any reasonable naming convention was followed, CS390 would be a third year subject. You sure he didn't sign up for the wrong one? It also would make more sense with the "sudden" language change, as while you can't expect second years to simply jump onto a new language for a subject, a third year student should be able to.

Also, he should have started earlier..but I can't really fault him for that since I know how I was as a student myself.
Acrofales
Profile Joined August 2010
Spain18240 Posts
August 31 2018 23:01 GMT
#19409
On September 01 2018 07:22 Excludos wrote:
Show nested quote +
On September 01 2018 06:15 travis wrote:
Yeah the course levels are super confusing. In terms of courses completed he is starting his 2nd year.


If any reasonable naming convention was followed, CS390 would be a third year subject. You sure he didn't sign up for the wrong one? It also would make more sense with the "sudden" language change, as while you can't expect second years to simply jump onto a new language for a subject, a third year student should be able to.

Also, he should have started earlier..but I can't really fault him for that since I know how I was as a student myself.

All of this. Also, most programming assignments in courses I followed and taught can be done in pairs, although I guess maybe distance learning is different.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
September 02 2018 01:36 GMT
#19410
I don't think that's an unreasonable 1 week assignment. That said, I don't really know what the courseload is like, but that seems like something I did when I was a full-time student.
There is no one like you in the universe.
Howie_Dewitt
Profile Joined March 2014
United States1416 Posts
September 07 2018 21:17 GMT
#19411
I would like to reach out to you all for help.
I am designing a game for my friends, and I'd like to make a map of the game that tells you things about the part of the territory you're mousing over.
We're also going to be using an excel file that will be constantly updated that contains statistics about every territory (the name, the population, number of armies, etc).

I found an interactive map of the United States that resembles what we're looking for, and I think i would be able to create an SVG file of my homebrew map and switch that with the states. However, since we're designing this in tandem with a spreadsheet, i need the program to read from a spreadsheet.
the interactive map demo, when mousing over the state of florida, has code that writes in, essentially, when mousing over this shape, say "Florida."
is there a way to get it to display the contents of one specific cell from an excel spreadsheet?
it's in HTML, which I've never used before. However, the other person designing the game with me understands the basics of HTML. I only understand the basics of Python myself.

This is the demo map i mentioned.
+ Show Spoiler +
https://websitebeaver.com/how-to-make-an-interactive-and-responsive-svg-map-of-us-states-capitals

Thank you!
Sisyphus had a good gig going, the disappointment was predictable. | Visions of the Country (1978) is for when you're lost.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
September 08 2018 14:38 GMT
#19412
Yeah, that's possible.

When they say

Add the following code to the HTML file, right after id="HI", like so data-info="<div>State: Hawaii</div><div>Capital: Honolulu</div>". Repeat this for all of the states. 


You can instead replace that info with your info. There are 2 ways to do that - either you use a server side templating language like Jinja2, JSP, etc. and fill that information into your HTML template before you send it to the user, or you use a client side language and request the information for each component.

So in a server side templating language the pseudo code might be like:


<div id="{{ info[1].title }}" data-info="{{ info[1].info }}">


for each component.

Similarly in client-side you would simply query for a component with ID 1 and return the HTML above.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Manit0u
Profile Blog Joined August 2004
Poland17698 Posts
September 12 2018 12:37 GMT
#19413

Revert "Revert "Revert "Revert "Revert "Implement Kafka producer"""""


What a magnificent pull request title...
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18240 Posts
September 12 2018 12:46 GMT
#19414
On September 12 2018 21:37 Manit0u wrote:

Revert "Revert "Revert "Revert "Revert "Implement Kafka producer"""""


What a magnificent pull request title...

Lol. Sounds like two developers having a little bitch fight. You their supervisor? :D
Manit0u
Profile Blog Joined August 2004
Poland17698 Posts
September 13 2018 09:55 GMT
#19415
On September 12 2018 21:46 Acrofales wrote:
Show nested quote +
On September 12 2018 21:37 Manit0u wrote:

Revert "Revert "Revert "Revert "Revert "Implement Kafka producer"""""


What a magnificent pull request title...

Lol. Sounds like two developers having a little bitch fight. You their supervisor? :D


Nope, guy from other team trying to really, really, finally, for sure this time fix a problem in production
Time is precious. Waste it wisely.
Manit0u
Profile Blog Joined August 2004
Poland17698 Posts
Last Edited: 2018-09-13 13:41:48
September 13 2018 13:31 GMT
#19416
Python problem:


>>> r = r'mit einem kurzen \u00dcberblick dar\u00fcber anfangen'
>>> b = r.encode('utf-8')
>>> u = b.decode('utf-8')
>>> u
'mit einem kurzen \\u00dcberblick dar\\u00fcber anfangen'

# 'mit einem kurzen Überblick darüber anfangen' was expected


How the hell do I convert this raw string back into unicode? It has to be raw, that's how it comes from the db and it's fucking annoying as hell... (Python 3)

Edit:

The thing is it has to be converted and saved back with unicode characters since some records are broken like that and it's messing up with searches.
Time is precious. Waste it wisely.
Khalum
Profile Joined September 2010
Austria831 Posts
September 13 2018 13:54 GMT
#19417
Why are you using the 'r' prefix in the first line?
Manit0u
Profile Blog Joined August 2004
Poland17698 Posts
Last Edited: 2018-09-13 14:08:57
September 13 2018 13:59 GMT
#19418
On September 13 2018 22:54 Khalum wrote:
Why are you using the 'r' prefix in the first line?


To force it to be raw, like it comes from the db (when special unicode characters are not parsed, this simulates SQLAlchemy behavior). I managed to solve the problem though.


>>> r = r'mit einem kurzen \u00dcberblick dar\u00fcber anfangen'
>>> b = r.encode('ascii')
>>> u = b.decode('unicode_escape')
>>> u
'mit einem kurzen Überblick darüber anfangen'
Time is precious. Waste it wisely.
Acrofales
Profile Joined August 2010
Spain18240 Posts
September 13 2018 14:52 GMT
#19419
python and unicode are annoying. python3 is a hell of a lot better than python2 tho.
Thaniri
Profile Blog Joined March 2011
1264 Posts
September 14 2018 02:52 GMT
#19420
Just spent a year not programming, and now I need to learn to program again because my CTO changed my job title.

Need to check out Golang because half of the stuff I'm using is written in Golang these days and we need to take advantage of open source by adding in the features we want ourselves. For example, did you know Cassandra (Java) open source version has no auditing capabilities? So one of our devs wrote something to do that.

With Golang I think it will become immediately very annoying if I need to reference everything imported from a different package first with the package name.

$HOME/go/test.go

package Card

type Card struct {
Suit string
Number int
}


$HOME/go/card/card.go

package main

import (
"test/Card"
"fmt"
)

func main() {
fmt.Println("hi")

card := Card.Card{Suit: "heart", Number: 3}
fmt.Println(card.Suit)
}


So if I make card related functions, I need to specify every time Card.MyFunction.

Coming from Java this seems pointless when my compiler should know that I only have one Card struct. It's not like I rewrote the math package and need to specify that I want to use MY math package instead of the default math package.
Prev 1 969 970 971 972 973 1032 Next
Please log in or register to reply.
Live Events Refresh
The PiG Daily
21:20
Best Games
Solar vs Cure
herO vs TBD
LiquipediaDiscussion
PSISTORM Gaming Misc
20:00
FSL showmatch Nachoz vs all
Liquipedia
LAN Event
16:00
StarCraft Madness Day 2
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft445
RuFF_SC2 208
Nathanias 203
StarCraft: Brood War
GuemChi 5661
Artosis 719
Noble 30
NaDa 30
Bale 14
Dota 2
monkeys_forever654
LuMiX2
League of Legends
JimRising 732
Other Games
summit1g11933
Maynarde147
ViBE144
Mew2King109
UpATreeSC41
JuggernautJason12
deth10
Temp03
Organizations
Other Games
gamesdonequick925
Dota 2
PGL Dota 2 - Main Stream73
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 185
• davetesta22
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki18
• RayReign 14
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo223
Upcoming Events
Replay Cast
6h
Afreeca Starleague
7h
Sharp vs Scan
Rain vs Mong
Wardi Open
9h
Monday Night Weeklies
14h
Sparkling Tuna Cup
1d 7h
Afreeca Starleague
1d 7h
Soulkey vs Ample
JyJ vs sSak
Replay Cast
2 days
Afreeca Starleague
2 days
hero vs YSC
Larva vs Shine
Kung Fu Cup
2 days
Replay Cast
2 days
[ Show More ]
KCM Race Survival
3 days
The PondCast
3 days
WardiTV Team League
3 days
Replay Cast
3 days
WardiTV Team League
4 days
RSL Revival
5 days
Cure vs Zoun
herO vs Rogue
WardiTV Team League
5 days
Platinum Heroes Events
5 days
BSL
5 days
RSL Revival
6 days
ByuN vs Maru
MaxPax vs TriGGeR
WardiTV Team League
6 days
BSL
6 days
Liquipedia Results

Completed

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

Ongoing

KCM Race Survival 2026 Season 1
BSL Season 22
CSL Elite League 2026
CSL Season 20: Qualifier 1
ASL Season 21
Acropolis #4 - TS6
RSL Revival: Season 4
Nations Cup 2026
NationLESS Cup
BLAST Open Spring 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

2026 Changsha Offline CUP
CSL Season 20: Qualifier 2
CSL 2026 SPRING (S20)
Acropolis #4
IPSL Spring 2026
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
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.