• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 17:39
CET 23:39
KST 07:39
  • 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
SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2
Community News
BSL Season 2025 - Full Overview and Conclusion6Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)16Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 105
StarCraft 2
General
Stellar Fest "01" Jersey Charity Auction SC2 All-Star Invitational: Tournament Preview Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list?
Tourneys
SC2 All-Star Invitational: Jan 17-18 Sparkling Tuna Cup - Weekly Open Tournament SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 509 Doomsday Report Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone
Brood War
General
BW General Discussion [ASL21] Potential Map Candidates BGH Auto Balance -> http://bghmmr.eu/ Video Footage from 2005: The Birth of G2 in Spain BSL Season 2025 - Full Overview and Conclusion
Tourneys
[Megathread] Daily Proleagues [BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0 Azhi's Colosseum - Season 2
Strategy
Soma's 9 hatch build from ASL Game 2 Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026! Nintendo Switch Thread Mechabellum
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 Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
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
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2358 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
Spain18191 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
Poland17610 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
Poland17610 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
Hyrule19189 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
Poland17610 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
Poland17610 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
Hyrule19189 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
BSL 21
20:00
Non-Korean Championship - D4
Bonyth vs Sziky
Mihu vs QiaoGege
Sziky vs XuanXuan
eOnzErG vs QiaoGege
Mihu vs DuGu
Dewalt vs Bonyth
ZZZero.O262
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
JuggernautJason132
StarCraft: Brood War
Shuttle 628
ZZZero.O 262
Dota 2
syndereN300
Pyrionflax230
LuMiX1
Super Smash Bros
Westballz22
Other Games
tarik_tv19645
gofns9626
summit1g7583
FrodaN6165
Grubby3448
Liquid`RaSZi2722
Fnx 1461
fl0m1231
B2W.Neo820
Liquid`Hasu269
ToD260
XaKoH 213
KnowMe149
ArmadaUGS106
Organizations
Other Games
gamesdonequick2030
EGCTV1100
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 20 non-featured ]
StarCraft 2
• HeavenSC 39
• Hupsaiya 39
• musti20045 25
• RyuSc2 14
• Reevou 10
• IndyKCrew
• sooper7s
• AfreecaTV YouTube
• intothetv
• Kozan
• LaughNgamezSOOP
• Laughngamez YouTube
• Migwel
StarCraft: Brood War
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• masondota21244
League of Legends
• TFBlade1112
Other Games
• imaqtpie2948
• Scarra1324
Upcoming Events
Replay Cast
10h 21m
Wardi Open
13h 21m
Monday Night Weeklies
18h 21m
OSC
1d 12h
The PondCast
2 days
OSC
2 days
Big Brain Bouts
4 days
Serral vs TBD
BSL 21
5 days
BSL 21
6 days
Liquipedia Results

Completed

Escore Tournament S1: W4
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
Proleague 2026-01-18
OSC Championship Season 13
Underdog Cup #3
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
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 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
BLAST Bounty Winter 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.