• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 18:18
CET 00:18
KST 08:18
  • 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
Rongyi Cup S3 - RO16 Preview3herO wins SC2 All-Star Invitational10SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0
Community News
Weekly Cups (Jan 12-18): herO, MaxPax, Solar win0BSL Season 2025 - Full Overview and Conclusion8Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)19Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7
StarCraft 2
General
PhD study /w SC2 - help with a survey! StarCraft 2 not at the Esports World Cup 2026 Oliveira Would Have Returned If EWC Continued Rongyi Cup S3 - RO16 Preview herO wins SC2 All-Star Invitational
Tourneys
OSC Season 13 World Championship $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) $70 Prize Pool Ladder Legends Academy Weekly Open! SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
[A] Starcraft Sound Mod
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
[ASL21] Potential Map Candidates Gypsy to Korea Which foreign pros are considered the best? BW General Discussion BW AKA finder tool
Tourneys
Azhi's Colosseum - Season 2 [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] Non-Korean Championship - Starts Jan 10
Strategy
Current Meta Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Game Theory for Starcraft
Other Games
General Games
Nintendo Switch Thread Battle Aces/David Kim RTS Megathread Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026!
Dota 2
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 Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread NASA and the Private Sector Canadian Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine
Fan Clubs
The herO Fan Club! The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Navigating the Risks and Rew…
TrAiDoS
My 2025 Magic: The Gathering…
DARKING
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1374 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
Poland17614 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
Hyrule19189 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
Norway8231 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
Spain18195 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
Poland17614 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
Spain18195 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
Poland17614 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
Poland17614 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
Poland17614 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
Spain18195 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 11h 42m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SpeCial 201
PiGStarcraft107
CosmosSc2 79
StarCraft: Brood War
Artosis 549
Shuttle 145
HiyA 11
Dota 2
Pyrionflax227
canceldota36
Counter-Strike
FalleN 3292
Foxcn186
Super Smash Bros
hungrybox969
Mew2King23
Other Games
tarik_tv6159
summit1g5492
FrodaN1808
shahzam452
Liquid`Hasu218
ArmadaUGS65
ViBE51
minikerr13
Liquid`Ken4
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• Hupsaiya 78
• davetesta75
• musti20045 33
• RyuSc2 26
• Laughngamez YouTube
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21489
League of Legends
• Doublelift4381
Other Games
• imaqtpie2829
• Shiphtur273
• WagamamaTV206
Upcoming Events
RongYI Cup
11h 42m
Clem vs ShoWTimE
Zoun vs Bunny
Big Brain Bouts
17h 42m
Percival vs Gerald
Serral vs MaxPax
RongYI Cup
1d 11h
SHIN vs Creator
Classic vs Percival
OSC
1d 13h
BSL 21
1d 15h
RongYI Cup
2 days
Maru vs Cyan
Solar vs Krystianer
uThermal 2v2 Circuit
2 days
BSL 21
2 days
Wardi Open
3 days
Monday Night Weeklies
3 days
[ Show More ]
OSC
4 days
WardiTV Invitational
4 days
WardiTV Invitational
5 days
The PondCast
6 days
Liquipedia Results

Completed

Proleague 2026-01-20
SC2 All-Star Inv. 2025
NA Kuram Kup

Ongoing

C-Race Season 1
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Rongyi Cup S3
Underdog Cup #3
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4 - TS4
Acropolis #4
IPSL Spring 2026
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Nations Cup 2026
Tektek Cup #1
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 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.