• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 12:11
CET 18:11
KST 02:11
  • 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
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
RSL Season 3: RO16 results & RO8 bracket13Weekly Cups (Nov 10-16): Reynor, Solar lead Zerg surge1[TLMC] Fall/Winter 2025 Ladder Map Rotation14Weekly Cups (Nov 3-9): Clem Conquers in Canada4SC: Evo Complete - Ranked Ladder OPEN ALPHA12
StarCraft 2
General
RSL Season 3: RO16 results & RO8 bracket SC: Evo Complete - Ranked Ladder OPEN ALPHA RSL Season 3 - Playoffs Preview Mech is the composition that needs teleportation t GM / Master map hacker and general hacking and cheating thread
Tourneys
RSL Revival: Season 3 $5,000+ WardiTV 2025 Championship StarCraft Evolution League (SC Evo Biweekly) Constellation Cup - Main Event - Stellar Fest 2025 RSL Offline Finals Dates + Ticket Sales!
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 500 Fright night Mutation # 499 Chilling Adaptation Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened
Brood War
General
soO on: FanTaSy's Potential Return to StarCraft A cwal.gg Extension - Easily keep track of anyone Data analysis on 70 million replays [ASL20] Ask the mapmakers — Drop your questions FlaSh on: Biggest Problem With SnOw's Playstyle
Tourneys
[BSL21] RO16 Tie Breaker - Group A - Sat 21:00 CET [Megathread] Daily Proleagues Small VOD Thread 2.0 [BSL21] GosuLeague T1 Ro16 - Tue & Thu 22:00 CET
Strategy
Game Theory for Starcraft Current Meta How to stay on top of macro? PvZ map balance
Other Games
General Games
Clair Obscur - Expedition 33 Stormgate/Frost Giant Megathread EVE Corporation Path of Exile [Game] Osu!
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
Mafia Game Mode Feedback/Ideas
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread The Games Industry And ATVI Things Aren’t Peaceful in Palestine About SC2SEA.COM
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread Korean Music Discussion
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
TL Community
The Automated Ban List
Blogs
The Health Impact of Joining…
TrAiDoS
Dyadica Evangelium — Chapt…
Hildegard
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1770 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
Spain18131 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
Poland17450 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
Poland17450 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
Hyrule19159 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
Poland17450 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
Poland17450 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
Hyrule19159 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
OSC
17:00
Masters Cup #150: Group C
davetesta7
Liquipedia
IPSL
17:00
Ro16 Group B
Julia vs Artosis
JDConan vs DragOn
Liquipedia
PSISTORM Gaming Misc
15:00
FSL TeamLeague wk19 PTB vs IC
Freeedom29
Liquipedia
WardiTV Korean Royale
12:00
Group B
WardiTV1375
TKL 422
Rex133
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko428
TKL 422
Rex 133
SteadfastSC 87
Codebar 58
BRAT_OK 56
IndyStarCraft 54
MindelVK 13
StarCraft: Brood War
Britney 47949
Rain 2413
firebathero 269
Noble 66
soO 64
Oya187 61
Rock 58
Backho 49
Aegong 49
Movie 30
[ Show more ]
ToSsGirL 21
Shine 16
HiyA 15
Dewaltoss 0
Dota 2
Gorgc5834
qojqva3975
Dendi1084
League of Legends
Trikslyr59
rGuardiaN35
Counter-Strike
ScreaM1222
Heroes of the Storm
Khaldor474
Other Games
B2W.Neo1821
FrodaN1064
Mlord632
Beastyqt542
crisheroes414
Hui .219
XcaliburYe84
XaKoH 79
KnowMe14
Organizations
Dota 2
PGL Dota 2 - Main Stream17779
Other Games
EGCTV959
StarCraft: Brood War
lovetv 7
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• LUISG 16
• Kozan
• AfreecaTV YouTube
• sooper7s
• intothetv
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Airneanach25
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• C_a_k_e 2524
• Ler97
League of Legends
• Nemesis3461
Other Games
• Shiphtur87
Upcoming Events
BSL 21
2h 50m
TerrOr vs Aeternum
HBO vs Kyrie
RSL Revival
14h 20m
Classic vs SHIN
Maru vs TBD
herO vs TBD
Wardi Open
20h 50m
IPSL
1d 2h
StRyKeR vs OldBoy
Sziky vs Tarson
BSL 21
1d 2h
StRyKeR vs Artosis
OyAji vs KameZerg
OSC
1d 5h
OSC
1d 15h
Monday Night Weeklies
1d 23h
OSC
2 days
Wardi Open
2 days
[ Show More ]
Replay Cast
3 days
Wardi Open
3 days
Tenacious Turtle Tussle
4 days
The PondCast
4 days
Replay Cast
5 days
LAN Event
6 days
Replay Cast
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Proleague 2025-11-16
Stellar Fest: Constellation Cup
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
BSL Season 21
CSCL: Masked Kings S3
SLON Tour Season 2
RSL Revival: Season 3
META Madness #9
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
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 © 2025 TLnet. All Rights Reserved.