• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:08
CET 12:08
KST 20:08
  • 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: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
2026 KongFu Cup Announcement3BGE Stara Zagora 2026 cancelled12Blizzard Classic Cup - Tastosis announced as captains15Weekly Cups (March 2-8): ByuN overcomes PvT block4GSL CK - New online series18
StarCraft 2
General
BGE Stara Zagora 2026 cancelled Blizzard Classic Cup - Tastosis announced as captains BGE Stara Zagora 2026 announced ByuL: The Forgotten Master of ZvT Terran AddOns placement
Tourneys
RSL Season 4 announced for March-April PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament 2026 KongFu Cup Announcement [GSL CK] Team Maru vs. Team herO
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 516 Specter of Death Mutation # 515 Together Forever Mutation # 514 Ulnar New Year
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BSL 22 Map Contest — Submissions OPEN to March 10 ASL21 General Discussion Are you ready for ASL 21? Hype VIDEO Gypsy to Korea
Tourneys
[Megathread] Daily Proleagues [BSL22] Open Qualifiers & Ladder Tours IPSL Spring 2026 is here! ASL Season 21 Qualifiers March 7-8
Strategy
Simple Questions, Simple Answers Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Zealot bombing is no longer popular?
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread PC Games Sales Thread No Man's Sky (PS4 and PC)
Dota 2
Official 'what is Dota anymore' discussion 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
Five o'clock TL Mafia Mafia Game Mode Feedback/Ideas Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Mexico's Drug War Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine NASA and the Private Sector
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! [Req][Books] Good Fantasy/SciFi books
Sports
Formula 1 Discussion 2024 - 2026 Football Thread General nutrition recommendations Cricket [SPORT] TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Funny Nicknames
LUCKY_NOOB
Money Laundering In Video Ga…
TrAiDoS
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
Shocked by a laser…
Spydermine0240
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2262 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
Spain18234 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
Poland17693 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
Poland17693 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
Hyrule19194 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
Poland17693 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
Poland17693 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
Hyrule19194 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
RSL Revival
10:00
Season 4: Group D
ByuN vs SHIN
Maru vs Krystianer
Tasteless1143
IndyStarCraft 213
Rex108
LiquipediaDiscussion
Sparkling Tuna Cup
10:00
Weekly #123
Shameless vs YoungYakovLIVE!
CranKy Ducklings62
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Tasteless 1143
IndyStarCraft 213
Rex 108
StarCraft: Brood War
Sea 46920
Calm 14047
Horang2 2356
GuemChi 1826
Jaedong 859
BeSt 857
actioN 474
Soma 178
Last 173
EffOrt 160
[ Show more ]
Mini 154
Rush 126
Dewaltoss 98
Mind 95
ToSsGirL 84
Hm[arnc] 68
Backho 59
ZerO 56
sorry 47
JulyZerg 38
NaDa 30
Barracks 30
IntoTheRainbow 29
HiyA 26
GoRush 20
ivOry 16
SilentControl 11
ajuk12(nOOB) 7
Sea.KH 4
Dota 2
Gorgc2951
XaKoH 581
XcaliburYe124
League of Legends
JimRising 459
Counter-Strike
zeus354
byalli71
Super Smash Bros
Mew2King107
Heroes of the Storm
Khaldor277
MindelVK7
Other Games
B2W.Neo735
Fuzer 155
ZerO(Twitch)15
Organizations
Dota 2
PGL Dota 2 - Main Stream18031
Other Games
gamesdonequick800
ComeBackTV 281
StarCraft: Brood War
lovetv 21
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• 3DClanTV 74
• LUISG 60
• CranKy Ducklings SOOP4
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1598
Upcoming Events
WardiTV Team League
52m
Patches Events
5h 52m
BSL
8h 52m
GSL
20h 52m
Wardi Open
1d
Monday Night Weeklies
1d 5h
WardiTV Team League
2 days
PiGosaur Cup
2 days
Kung Fu Cup
2 days
OSC
3 days
[ Show More ]
The PondCast
3 days
KCM Race Survival
3 days
WardiTV Team League
4 days
Replay Cast
4 days
KCM Race Survival
4 days
WardiTV Team League
5 days
Korean StarCraft League
5 days
uThermal 2v2 Circuit
6 days
BSL
6 days
Liquipedia Results

Completed

Proleague 2026-03-13
WardiTV Winter 2026
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
BSL Season 22
RSL Revival: Season 4
Nations Cup 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual

Upcoming

CSL Elite League 2026
ASL Season 21
Acropolis #4 - TS6
2026 Changsha Offline CUP
Acropolis #4
IPSL Spring 2026
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
NationLESS Cup
Stake Ranked Episode 2
CS Asia Championships 2026
IEM Atlanta 2026
Asian Champions League 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 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.