• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 22:30
CEST 04:30
KST 11:30
  • 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, and the Limitations of Standard Play1Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7Code S Season 2 (2026) - RO8 Preview8
Community News
[TLMC] Summer 2026 Ladder Map Rotation05.0.16 patch for SC2 goes live (8 worker start)76ZeroSpace at Steam NextFest - Last free demo33Weekly Cups (June 8-14): Clem and Solar double, PTR tested0RSL: S6 Finals played at BlizzCon 202611
StarCraft 2
General
Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) Daily SC2 Player Grid - feedback wanted The Death of Cheese: From a Professional Cheeser Mizenhauer's Douyu Cup Preview
Tourneys
Maestros of The Game 2 announcement and schedule ! Douyu Cup 2026: $20,000 Legends Event (June 26-28) RSL Revival: Season 6 - Qualifiers and Main Event INu's Battles#17 <BO.9> Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
The PondCast: SC2 News & Results Mutation # 531 Experimental Artillery Mutation # 530 One For All Mutation # 529 Opportunities Unleashed
Brood War
General
ASL 22 Proposed Map Pool Best thing happen to StarCraft since Remastered? Fact based Zerg Upgrade Tier List BGH Auto Balance -> http://bghmmr.eu/ Quality of life changes in BW that you will like ?
Tourneys
[Megathread] Daily Proleagues [ASL21] Grand Finals The Casual Games of the Week Thread [BSL22] GosuLeague Casts - Tue & Thu 22:00 CEST
Strategy
Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration?
Other Games
General Games
ZeroSpace at Steam NextFest - Last free demo Nintendo Switch Thread Path of Exile Stormgate/Frost Giant Megathread Beyond All Reason
Dota 2
Looking for a Dota Mentor Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread The Games Industry And ATVI Canadian Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread
Fan Clubs
The HerO Fan Club! The herO Fan Club!
Media & Entertainment
Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023 Cricket [SPORT]
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread Facing Challenges in Mobile App Development
TL Community
The Automated Ban List
Blogs
Listen To The Coaches!
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 12112 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
Poland17774 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
Hyrule19224 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
Norway8264 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
Spain18332 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
Poland17774 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
Spain18332 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
Poland17774 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
Poland17774 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
Poland17774 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
Spain18332 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
Next event in 3h 30m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ViBE234
RuFF_SC2 105
SpeCial 71
Ketroc 46
FoxeR 32
StarCraft: Brood War
Hyuk 389
NaDa 60
Noble 26
Terrorterran 15
Dota 2
NeuroSwarm115
LuMiX1
League of Legends
Doublelift10999
JimRising 628
Super Smash Bros
AZ_Axe155
Heroes of the Storm
Khaldor152
Other Games
summit1g13098
UpATreeSC260
JuggernautJason49
Mew2King32
Organizations
Other Games
gamesdonequick1328
BasetradeTV223
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 94
• davetesta21
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki14
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota21223
League of Legends
• Jankos350
Upcoming Events
Douyu Cup 2020
3h 30m
BSL22 NKC (BSL vs China)
11h 30m
Mihu vs TBD
Online Event
12h 30m
RSL Revival
23h 30m
WardiTV Weekly
1d 8h
RSL Revival
2 days
RSL Revival
2 days
Bombastic Starleague
2 days
Kung Fu Cup
3 days
OSC
3 days
[ Show More ]
CrankTV Team League
4 days
Bombastic Starleague
4 days
Replay Cast
4 days
The PondCast
5 days
HomeStory Cup
5 days
Replay Cast
5 days
HomeStory Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

CSL Season 21: Qualifier 1
Maestros of the Game 2
Heroes Pulsing #2

Ongoing

IPSL Spring 2026
Acropolis #4
CSCL: Masked Kings S4
YSL S3
BSL 22 Non-Korean Championship
CSL Season 21: Qualifier 2
SCTL 2026 Spring
Douyu Cup 2026
Murky Cup 2026
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
IEM Rio 2026

Upcoming

CSL 2026 Summer (S21)
ASL Season 22:Wild Card Qualifier
CSLAN 4
Blizzard Classic Cup 2026
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
HSC XXIX
BCC 2026
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E1
Heroes Pulsing #3
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 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.