• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 16:14
CEST 22:14
KST 05:14
  • 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] Ro4 Preview: On Course3Code S Season 1 - RO8 Preview7[ASL21] Ro8 Preview Pt2: Progenitors8Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16
Community News
Maestros of The Game 2 announcement and schedule !7Weekly Cups (April 27-May 4): Clem takes triple0RSL Revival: Season 5 - Qualifiers and Main Event12Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25
StarCraft 2
General
Code S Season 1 - RO8 Preview Behind the Blue - Team Liquid History Book Weekly Cups (April 27-May 4): Clem takes triple Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results
Tourneys
WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) Maestros of The Game 2 announcement and schedule ! GSL Code S Season 1 (2026)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players
External Content
Mutation # 525 Wheel of Misfortune The PondCast: SC2 News & Results Mutation # 524 Death and Taxes Mutation # 523 Firewall
Brood War
General
Quality of life changes in BW that you will like ? [ASL21] Ro4 Preview: On Course Why there arent any 256x256 pro maps? RepMastered™: replay sharing and analyzer site BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[Megathread] Daily Proleagues [BSL22] RO16 Group Stage - 02 - 10 May [ASL21] Ro8 Day 3 [ASL21] Ro8 Day 4
Strategy
Fighting Spirit mining rates Simple Questions, Simple Answers Muta micro map competition What's the deal with APM & what's its true value
Other Games
General Games
Warcraft III: The Frozen Throne Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Daigo vs Menard Best of 10
Dota 2
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread UK Politics Mega-thread The Letting Off Steam Thread European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [Req][Books] Good Fantasy/SciFi books
Sports
2024 - 2026 Football Thread McBoner: A hockey love story Formula 1 Discussion
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
How EEG Data Can Predict Gam…
TrAiDoS
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2234 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
Poland17743 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
Hyrule19210 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
Norway8256 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
Spain18290 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
Poland17743 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
Spain18290 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
Poland17743 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
Poland17743 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
Poland17743 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
Spain18290 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
BSL
19:00
RO16 Group D
Dewalt vs DragOn
Aether vs Jimin
ZZZero.O377
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ForJumy 35
StarCraft: Brood War
ZZZero.O 377
Dota 2
Gorgc7352
XaKoH 1012
monkeys_forever283
LuMiX1
League of Legends
Doublelift2283
JimRising 102
Counter-Strike
Fnx 1270
Heroes of the Storm
Liquid`Hasu406
Khaldor220
Other Games
Grubby5132
FrodaN3779
Liquid`RaSZi2022
fl0m1210
B2W.Neo832
Beastyqt589
Pyrionflax176
Hui .159
ArmadaUGS133
BananaSlamJamma97
KnowMe96
Organizations
Other Games
gamesdonequick2865
BasetradeTV114
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• HeavenSC 6
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• 80smullet 17
• Airneanach11
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• imaqtpie2886
Upcoming Events
GSL
11h 46m
Afreeca Starleague
13h 46m
Soma vs Leta
Wardi Open
15h 46m
Monday Night Weeklies
19h 46m
OSC
1d 3h
CranKy Ducklings
1d 13h
Afreeca Starleague
1d 13h
Light vs Flash
Replay Cast
2 days
Replay Cast
3 days
The PondCast
3 days
[ Show More ]
Replay Cast
4 days
RSL Revival
4 days
Korean StarCraft League
5 days
RSL Revival
5 days
BSL
5 days
GSL
6 days
Cure vs TBD
TBD vs Maru
BSL
6 days
Liquipedia Results

Completed

Escore Tournament S2: W6
WardiTV TLMC #16
Nations Cup 2026

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
IPSL Spring 2026
KCM Race Survival 2026 Season 2
Acropolis #4
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
PGL Astana 2026
BLAST Rivals Spring 2026
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2

Upcoming

YSL S3
Escore Tournament S2: W7
Escore Tournament S2: W8
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
Maestros of the Game 2
2026 GSL S2
BLAST Bounty Summer 2026: Closed Qualifier
Stake Ranked Episode 3
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 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.