• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:44
CEST 03:44
KST 10:44
  • 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
[ASL22] Ro8 Preview: In A Tizzy9[ASL22] Ro16 Preview: Holy Diver5[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9
Community News
Weekly Cups (Sep 13-20): herO scores triple2BSL Season 237Weekly Cups (Sep 7-12): SHIN, ByuN, MaxPax double down1StarCraft open world shooter announced at BlizzCon101Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Weekly Cups (Sep 13-20): herO scores triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool How do you feel about the StarCraft shooter announcement at BlizzCon 2026? The Death of Cheese: From a Professional Cheeser
Tourneys
Master Swan Open (Global Bronze-Master 2) Stellar Fest TWO the Moon (Dec 16-20) Sparkling Tuna Cup - Weekly Open Tournament 2026 GSTL Announcement RSL Revival: Season 6 - Qualifiers and Main Event
Strategy
[H] ZvP Mid-Late Game: Stalkers Collossi HT
Custom Maps
[M] (2) Frigid Storage
External Content
Mutation # 544 Double Trouble The PondCast: SC2 News & Results Mutation # 543 Enhanced Defenses Mutation # 542 The Ascended
Brood War
General
Bot on ladder PLAYzone Challenge - open offline tour in Prague BSL Season 23 BW General Discussion NaDa's Body
Tourneys
PLAYzone Challenge - open offline tour in Prague [ASL22] Ro8 Day 2 [ASL22] Ro16 Group D [ASL22] Ro8 Day 1
Strategy
Cliff Jump Revisited (1 in a 1000 strategy) Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation
Other Games
General Games
Nintendo Switch Thread Diablo IV Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread EVE Corporation
Dota 2
Dota 2 Champions League Season 3 Begins April 25! Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Artificial Intelligence Thread Things Aren’t Peaceful in Palestine All you football fans (soccer)!
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Diablo Animated Series on Netflix
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Recent Gifted Posts
Blogs
Gaming Intensity, Problemati…
TrAiDoS
38 yo Retired SWE loo…
PurE)Rabbit-SF
Can Bots Beat Pros?? Starcr…
namkraft
[meme] I finally understa…
LUCKY_NOOB
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6508 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
Poland17845 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
Hyrule19257 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
Norway8279 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
Spain18445 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
Poland17845 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
Spain18445 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
Poland17845 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
Poland17845 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
Poland17845 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
Spain18445 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 8h 16m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RuFF_SC2 168
StarCraft: Brood War
Britney 17618
Shuttle 752
Artosis 661
ggaemo 17
Moletrap 4
Dota 2
monkeys_forever980
NeuroSwarm180
febbydoto18
Counter-Strike
taco 595
C9.Mang0335
minikerr28
Other Games
summit1g9608
Day[9].tv756
JimRising 505
WinterStarcraft249
PiGStarcraft193
ViBE178
Maynarde176
UpATreeSC61
Organizations
Other Games
gamesdonequick1393
StarCraft: Brood War
Afreeca ASL 375
[ Show 11 non-featured ]
StarCraft 2
• Hupsaiya 105
• mYiSmile113
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• Day9tv756
Upcoming Events
The PondCast
8h 16m
Replay Cast
22h 16m
Korean StarCraft League
2 days
CranKy Ducklings
2 days
GSL
3 days
Yamato Cup
3 days
Replay Cast
3 days
Afreeca Starleague
4 days
Soma vs Jaedong
WardiTV Weekly
4 days
Monday Night Weeklies
4 days
[ Show More ]
Sparkling Tuna Cup
5 days
Afreeca Starleague
5 days
Leta vs Soulkey
PiGosaur Cup
5 days
Kung Fu Cup
6 days
Liquipedia Results

Completed

Super Anchor Qualifying S3
Blizzard Classic Cup 2026
Big Dog Cup 2026 Div 1

Ongoing

ASL Season 22
CSL 2026 AUTUMN (S22)
Acropolis #5
Acropolis #5 - GSA
Calamity Invitational
Logitech G Play Connect 2026
SL StarSeries Fall 2026
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Acropolis #5 - GSB
Acropolis #5 - GSC
BSL Season 23
SC4ALL II: Brood War
BSL 23: Non-Korean Championship
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Custodian Cup
Copium Cup
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #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.