• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 06:25
CEST 12:25
KST 19:25
  • 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] Ro8 Preview Pt2: Progenitors4Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun13[ASL21] Ro8 Preview Pt1: Inheritors16[ASL21] Ro16 Preview Pt2: All Star10Team Liquid Map Contest #22 - The Finalists22
Community News
RSL Revival: Season 5 - Qualifiers and Main Event10Code S Season 1 (2026) - RO12 Results12026 GSL Season 1 Qualifiers25Maestros of the Game 2 announced92026 GSL Tour plans announced15
StarCraft 2
General
Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Code S Season 1 (2026) - RO12 Results Code S Season 1 - RO12 Group A: Rogue, Percival, Solar, Zoun Team Liquid Map Contest #22 - The Finalists MaNa leaves Team Liquid
Tourneys
2026 GSL Season 2 Qualifiers Sparkling Tuna Cup - Weekly Open Tournament StarCraft Evolution League (SC Evo Biweekly) $1,400 SEL Season 3 Ladder Invitational RSL Revival: Season 5 - Qualifiers and Main Event
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
Mutation # 524 Death and Taxes The PondCast: SC2 News & Results Mutation # 523 Firewall Mutation # 522 Flip My Base
Brood War
General
Why there arent any 256x256 pro maps? BW General Discussion ASL21 General Discussion [ASL21] Ro8 Preview Pt2: Progenitors BGH Auto Balance -> http://bghmmr.eu/
Tourneys
[ASL21] Ro8 Day 3 [ASL21] Ro8 Day 2 [Megathread] Daily Proleagues Escore Tournament StarCraft Season 2
Strategy
Simple Questions, Simple Answers Fighting Spirit mining rates What's the deal with APM & what's its true value Any training maps people recommend?
Other Games
General Games
Daigo vs Menard Best of 10 Stormgate/Frost Giant Megathread OutLive 25 (RTS Game) Dawn of War IV Nintendo Switch Thread
Dota 2
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
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread European Politico-economics QA Mega-thread Russo-Ukrainian War Thread 3D technology/software discussion Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Anime Discussion Thread [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion McBoner: A hockey love story
World Cup 2022
Tech Support
streaming software Strange computer issues (software) [G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Movie Stars In Video Games: …
TrAiDoS
ramps on octagon
StaticNine
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1572 users

The Big Programming Thread - Page 1016

Forum Index > General Forum
Post a Reply
Prev 1 1014 1015 1016 1017 1018 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.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 11 2020 18:58 GMT
#20301
Anyone know about the current state of neural network sentiment analysis (language processing)?
I am making a stock prediction NN, and I was thinking about merging what I am currently building with a sentiment analysis network - but im not gonna waste my time if it won't have reliable accuracy.

Available research on NNets for trading the markets seems to be pretty limited, for obvious reasons I guess.
teamamerica
Profile Blog Joined July 2010
United States958 Posts
January 11 2020 19:06 GMT
#20302
On January 07 2020 10:56 Burned Toast wrote:
Is there an API or something that can locate a specific frame in a Youtube video by image recognition ?

I would love to develop a more automated process when i write the posts for the for Small Vod Thread, and the ability to locate the frames with the image of the BW lobby in a long youtube video would be an interesting time saver...


Do you have some example vods to look at? One thing that comes to mind is
1) start with youtube-dl to download it to a local video
2a) Use some shot transition detection to write out shot detections with timestamp and screenshot, which would let you easily browse through the game start. See something like https://cloud.google.com/video-intelligence/docs/shot-detection or https://pyscenedetect.readthedocs.io/en/latest/
2b) Instead of that, actually search for something. I'm not sure if you are only talking about vods that have bw lobby countdown (where maybe you can search for that by trying to modify some cv based stopsign detection code https://github.com/mbasilyan/Stop-Sign-Detection), or not.

I'm not up to date at all with the real best way to solve this so take my answer with a grain of salt.
RIP GOMTV. RIP PROLEAGUE.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
January 11 2020 22:32 GMT
#20303
--- Nuked ---
JesusNolan
Profile Joined January 2020
4 Posts
January 13 2020 05:31 GMT
#20304
--- Nuked ---
Acrofales
Profile Joined August 2010
Spain18285 Posts
Last Edited: 2020-01-13 07:38:42
January 13 2020 07:30 GMT
#20305
On January 13 2020 14:31 JesusNolan wrote:
How the programming language was created?

Which one?

But essentially, start with Ada Lovelace and work forward in time. Although you could even argue that the basis for programming is with Leibnitz, or further back, al-Khwarizmi. But they didn't actually program anything, hence why Ada Lovelace is, imho, the first programmer.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2020-01-26 21:35:59
January 26 2020 21:35 GMT
#20306
It's a longshot that I will be able to get help here for this, I have done a lot of research and come up short.

I have a neural network made with keras backed by tensorflow.

At one point I have a symbolic tensor (output of a layer) that has shape (None,500,8). (it's none because keras doesn't define the batch size).

I have another tensor of shape (None,1), where every value corresponds to an index to slice from.

I want to dynamically slice from the first symbolic tensor using the second symbolic tensor. For each slice, I want to take 20 elements. So for example if my batch size was 2, and my index tensor was ([[0],[7]], then I want to extract a single new tensor from indices: [0,0:20, and [1,7:27,.

I can do this using a loop to look at each sample of my batch independents and then concatenating them together into a new tensor. But, I cannot seem to find a way to do it vectorized. It's actually really shitty, and makes me want to start looking at backends that aren't tensorflow because this seems super limiting.
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
Last Edited: 2020-02-04 04:09:35
February 04 2020 04:07 GMT
#20307
I have a really dumb question that I attribute to my lack of formal CS training.

I'm creating some model validations for the system and I'm getting some weird conversions on floating point numbers...

Namely, when I pass 1.123 as an attribute it shows it as 0.112e1 and I have absolutely no idea why. Maybe Rails wants to be too smart and converts it based on actual db column settings?


# Column definition in the db (Postgres)
bid numeric(8,2) DEFAULT 0.0 NOT NULL

# Validations for this column in the code
validates :bid, presence: true,
format: { with: /\A\d+(?:\.\d{0,2})?\z/ },
numericality: {
greater_than: -1_000_000,
less_than: 1_000_000
}


Any ideas on what could be wrong? 1.123 shows as valid, even though it shouldn't be and when I inspect the model it shows as 0.112e1. Column is defined as decimal with precision 8 and scale 2.
Time is precious. Waste it wisely.
Neshapotamus
Profile Blog Joined May 2006
United States163 Posts
Last Edited: 2020-02-04 05:07:45
February 04 2020 05:06 GMT
#20308
On February 04 2020 13:07 Manit0u wrote:
I have a really dumb question that I attribute to my lack of formal CS training.

I'm creating some model validations for the system and I'm getting some weird conversions on floating point numbers...

Namely, when I pass 1.123 as an attribute it shows it as 0.112e1 and I have absolutely no idea why. Maybe Rails wants to be too smart and converts it based on actual db column settings?


# Column definition in the db (Postgres)
bid numeric(8,2) DEFAULT 0.0 NOT NULL

# Validations for this column in the code
validates :bid, presence: true,
format: { with: /\A\d+(?:\.\d{0,2})?\z/ },
numericality: {
greater_than: -1_000_000,
less_than: 1_000_000
}


Any ideas on what could be wrong? 1.123 shows as valid, even though it shouldn't be and when I inspect the model it shows as 0.112e1. Column is defined as decimal with precision 8 and scale 2.


This makes sense I think. Its a numeric data type with 8 precision and 2 scale. This basically means that you have 8 digits total in your number and there are 2 decimal digits. When you pass 1.123, it truncates the 3, as you are passing in more digits than the expected date type. It looks correct as 0.112e1(scientific notation) = 1.12 which states that there are 2 decimal spots.

I don't know the exact database you are using but here is the sql server docs on Numeric type: https://docs.microsoft.com/en-us/sql/t-sql/data-types/decimal-and-numeric-transact-sql?view=sql-server-ver15
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
Last Edited: 2020-02-04 10:44:59
February 04 2020 09:38 GMT
#20309
It's what I thought but it just surprised me it does it for decimals but doesn't for other types (on the model, nothing to do with db yet). You can try and assign strings to integers or booleans and they don't get converted. That's why I wanted to add the validation so that the user knows they screwed up by adding too many decimal digits but it seems that I can't properly validate it now.

I'll see if I can work around it somehow and force it to not coerce the value during assignment.
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
February 05 2020 23:19 GMT
#20310
Hey, here is a question for everyone:

Is it normal to need to look up how to use the same function in any given library over and over and over? Or am I just braindead?
tofucake
Profile Blog Joined October 2009
Hyrule19210 Posts
February 06 2020 00:38 GMT
#20311
Normal.
Liquipediaasante sana squash banana
emperorchampion
Profile Blog Joined December 2008
Canada9496 Posts
February 06 2020 02:36 GMT
#20312
^
TRUEESPORTS || your days as a respected member of team liquid are over
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
February 06 2020 16:45 GMT
#20313
Depends on the function, some just are not designed to be very memorable...
If you have a good reason to disagree with the above, please tell me. Thank you.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
February 06 2020 18:52 GMT
#20314
I'm pulling my hair out trying to figure this .NET MVC problem. In a view, I have the following EditorFor command:
@Html.EditorFor(model => model.Export, "EditorTemplates/Report/Export")

For whatever reason, it does not find and use the specified template. I cannot think of any reason why. I've tried renaming the view and its subfolder. I've tried using this command in a different view. None of it works.

I know it doesn't work because I have a breakpoint in the specified view. Any ideas?
AKnopf
Profile Blog Joined March 2011
Germany259 Posts
February 07 2020 11:47 GMT
#20315
Hi enigmaticcam,

A little more information about the MVC version you are using and what controller you are in and the folder structure would have been useful.
That being sad:
- Have you tried giving the full path to the template (like "~/Views/Shared/EditorTemplates/Report/Export") perhaps with the ending ".cshtml" at the end?
- Usually, when a view cannot be found, you will get a runtime error with the folders the view was expected to be in. Since you do not get an error, there might be another view with the apropriate name in a folder "higher" up the hierarchy. In this case your break point would not get hit because a different view gets rendered.
- Have you tried cleaning the solution and recompiling it? This should get rid of some funny business (even though chaning views should work without having to recompile)
- Last but no least: Did you compile and run the solution in debug mode? (a classic :D)
The world - its a funny place
Manit0u
Profile Blog Joined August 2004
Poland17743 Posts
February 18 2020 14:29 GMT
#20316
Time is precious. Waste it wisely.
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
Last Edited: 2020-04-09 16:30:31
April 09 2020 16:30 GMT
#20317
I'm looking at sparking some friends' interest in programming while we are all trapped indoors. Can anyone recommend any beginner online programming courses that use Python? Ideally free or very cheap and as high quality as possible. These are people with no real background for development at all, though they will have me to ask questions of.

I'm choosing Python because I'm familiar with it and I'm making the assumption that it's one of the easiest to learn.
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
Last Edited: 2020-04-09 17:51:31
April 09 2020 17:50 GMT
#20318
On April 10 2020 01:30 WarSame wrote:
I'm looking at sparking some friends' interest in programming while we are all trapped indoors. Can anyone recommend any beginner online programming courses that use Python? Ideally free or very cheap and as high quality as possible. These are people with no real background for development at all, though they will have me to ask questions of.

I'm choosing Python because I'm familiar with it and I'm making the assumption that it's one of the easiest to learn.


Obey The Testing Goat!

One of the best programming courses ever. It's Python + Django for web apps.

If they're willing to pay up then you have this for $30:
https://learnpythonthehardway.org/python3/
Time is precious. Waste it wisely.
tofucake
Profile Blog Joined October 2009
Hyrule19210 Posts
April 09 2020 19:41 GMT
#20319
Stanford is doing a full course: https://compedu.stanford.edu/codeinplace/announcement/
Liquipediaasante sana squash banana
WarSame
Profile Blog Joined February 2010
Canada1950 Posts
April 10 2020 05:33 GMT
#20320
I suppose I should add more criteria to my request:

This would need to be something entirely within the browser, with no installation. If you've seen w3schools Im thinking along those lines. It would also need ideally 0 background knowledge. Example from LPTHW:

If you do not know how to use PowerShell on Windows, Terminal on macOS or bash on Linux then you need to go learn that first. You should do the exercises in Appendix A first before continuing with these exercises.
would just immediately filter everyone out.

These are people who have not programmed before. I am hoping they can get the basics down and understand how computers work a little better. I am not trying to make them into professionals.

I think I was also wrong in using the word course. Maybe more appropriate would have been tutorial or introduction. The Stanford course has homework, you need to apply to get in, etc. This would not work for this group of people.
Can it be I stayed away too long? Did you miss these rhymes while I was gone?
Prev 1 1014 1015 1016 1017 1018 1032 Next
Please log in or register to reply.
Live Events Refresh
Afreeca Starleague
10:00
Ro8 Match 3
Jaedong vs Light
Afreeca ASL 16695
StarCastTV_EN510
Liquipedia
Replay Cast
09:00
WardiTV Mondays #80
CranKy Ducklings134
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko125
StarCraft: Brood War
Calm 14080
Bisu 7516
Sea 3802
BeSt 1278
Soulkey 836
EffOrt 652
Pusan 431
Zeus 319
Larva 272
Soma 180
[ Show more ]
hero 178
Killer 166
Hyun 117
PianO 88
ToSsGirL 81
Backho 64
Sharp 53
Hm[arnc] 37
Barracks 30
Sacsri 27
Sexy 26
soO 20
JulyZerg 17
GoRush 16
Terrorterran 15
Noble 4
ajuk12(nOOB) 3
Dota 2
monkeys_forever201
NeuroSwarm107
ODPixel92
XcaliburYe83
canceldota24
League of Legends
JimRising 431
Counter-Strike
x6flipin9
Super Smash Bros
hungrybox799
Other Games
singsing1060
ceh9649
Livibee11
Organizations
StarCraft: Brood War
UltimateBattle 228
Dota 2
PGL Dota 2 - Main Stream55
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 14 non-featured ]
StarCraft 2
• LUISG 48
• CranKy Ducklings SOOP39
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• WagamamaTV214
League of Legends
• TFBlade629
Upcoming Events
Wardi Open
35m
Monday Night Weeklies
5h 35m
Replay Cast
13h 35m
Sparkling Tuna Cup
23h 35m
Afreeca Starleague
23h 35m
Snow vs Flash
WardiTV Invitational
1d
SHIN vs Nicoract
Solar vs Nice
GSL
1d 23h
Classic vs Cure
Maru vs Rogue
GSL
2 days
SHIN vs Zoun
ByuN vs herO
OSC
3 days
OSC
3 days
[ Show More ]
Replay Cast
3 days
Escore
3 days
The PondCast
3 days
WardiTV Invitational
4 days
Zoun vs Ryung
Lambo vs ShoWTimE
Replay Cast
4 days
CranKy Ducklings
4 days
RSL Revival
4 days
SHIN vs Bunny
ByuN vs Shameless
WardiTV Invitational
5 days
Krystianer vs TriGGeR
Cure vs Rogue
uThermal 2v2 Circuit
5 days
BSL
5 days
Replay Cast
5 days
Sparkling Tuna Cup
5 days
RSL Revival
5 days
Cure vs Zoun
Clem vs Lambo
WardiTV Invitational
6 days
BSL
6 days
Replay Cast
6 days
Afreeca Starleague
6 days
Liquipedia Results

Completed

Proleague 2026-05-02
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
SCTL 2026 Spring
RSL Revival: Season 5
2026 GSL S1
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
PGL Cluj-Napoca 2026

Upcoming

YSL S3
Escore Tournament S2: W6
KK 2v2 League Season 1
BSL 22 Non-Korean Championship
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
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
PGL Astana 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.