• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:27
CEST 16:27
KST 23:27
  • 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
[ASL19] Finals Recap: Standing Tall8HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
Flash Announces Hiatus From ASL44Weekly Cups (June 23-29): Reynor in world title form?12FEL Cracov 2025 (July 27) - $8000 live event16Esports World Cup 2025 - Final Player Roster16Weekly Cups (June 16-22): Clem strikes back1
StarCraft 2
General
The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Esports World Cup 2025 - Final Player Roster How does the number of casters affect your enjoyment of esports? Weekly Cups (June 23-29): Reynor in world title form?
Tourneys
RSL: Revival, a new crowdfunded tournament series [GSL 2025] Code S: Season 2 - Semi Finals & Finals $5,100+ SEL Season 2 Championship (SC: Evo) FEL Cracov 2025 (July 27) - $8000 live event HomeStory Cup 27 (June 27-29)
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma Mutation # 477 Slow and Steady
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Help: rep cant save Flash Announces Hiatus From ASL BW General Discussion [ASL19] Finals Recap: Standing Tall
Tourneys
[Megathread] Daily Proleagues [BSL20] GosuLeague RO16 - Tue & Wed 20:00+CET The Casual Games of the Week Thread [BSL20] ProLeague LB Final - Saturday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Nintendo Switch Thread Stormgate/Frost Giant Megathread Path of Exile What do you want from future RTS games? Beyond All Reason
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Trading/Investing Thread The Games Industry And ATVI
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread NBA General Discussion Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
Game Sound vs. Music: The Im…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 556 users

The Big Programming Thread - Page 746

Forum Index > General Forum
Post a Reply
Prev 1 744 745 746 747 748 1031 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
Poland17243 Posts
July 27 2016 06:49 GMT
#14901
On July 27 2016 11:19 Frudgey wrote:
Does anyone know if it's possible to paginate (I hope I spelt that right) a text area on a HTML page?

I'm okay to use HTML, JavaScript or JQuery to try and do this. I was just wondering if anyone knows what I am talking about.

For context, thousands of values are being loaded into a text area and I think it's slowing down the HTML page that it's on, so I want to try and rectify this.

Thanks!


Well, technically you could save the text into js variable, slice it and use scroll events or something to append textarea value.

But if your textareas are so big that they slow down the browser then I think your problem might be lying somewhere else...
Time is precious. Waste it wisely.
Djagulingu
Profile Blog Joined December 2010
Germany3605 Posts
July 27 2016 07:54 GMT
#14902
On July 27 2016 15:49 Manit0u wrote:
Show nested quote +
On July 27 2016 11:19 Frudgey wrote:
Does anyone know if it's possible to paginate (I hope I spelt that right) a text area on a HTML page?

I'm okay to use HTML, JavaScript or JQuery to try and do this. I was just wondering if anyone knows what I am talking about.

For context, thousands of values are being loaded into a text area and I think it's slowing down the HTML page that it's on, so I want to try and rectify this.

Thanks!


Well, technically you could save the text into js variable, slice it and use scroll events or something to append textarea value.

But if your textareas are so big that they slow down the browser then I think your problem might be lying somewhere else...

If you know how many lines will fit into the text box at all times, responsively, then you could design something like android's listview, which stores the data that should be displayed plus the immediate scroll content, retrieves more content from memory as the user scrolls.
"windows bash is a steaming heap of shit" tofucake
tofucake
Profile Blog Joined October 2009
Hyrule19029 Posts
July 27 2016 12:36 GMT
#14903
Paginate a textarea? Sure. Create some link elements for page buttons, then you have a few approaches:
1. js array of the values for each page. Messy, and annoying if you want to save several different texts at once
2. ajax that shit. Can be slow, but better than an array
3. hidden inputs that you swap values with. lets you save everything, but still messy like js array
Liquipediaasante sana squash banana
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 27 2016 15:49 GMT
#14904
Depending on the amount of text, AJAX would be the way to go. If it's not a ton, like your page loads in less than a second, then you should think about hiding the text and displaying when necessary.
Life?
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
Last Edited: 2016-07-27 20:18:57
July 27 2016 20:18 GMT
#14905
Shit. Got called about new job today. They want to snag me and make me a product owner.

Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...

Have any of you been there/done that? What are your experiences?
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
July 27 2016 23:30 GMT
#14906
Any idea how I can get the list of installed programs on Windows? I've tried example from http://stackoverflow.com/questions/24909108/get-installed-software-list-using-c-sharp , but there are some programs which are not listed such as Speccy. CCleaner lists it though, so I wonder what they use. I'm also fine with Windows API, C# and C++ if that's what your example could use.
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
July 28 2016 00:58 GMT
#14907
On July 28 2016 08:30 Shield wrote:
Any idea how I can get the list of installed programs on Windows? I've tried example from http://stackoverflow.com/questions/24909108/get-installed-software-list-using-c-sharp , but there are some programs which are not listed such as Speccy. CCleaner lists it though, so I wonder what they use. I'm also fine with Windows API, C# and C++ if that's what your example could use.


Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)...
Time is precious. Waste it wisely.
zatic
Profile Blog Joined September 2007
Zurich15325 Posts
July 28 2016 06:38 GMT
#14908
Via R1CH:

http://html9responsiveboilerstrapjs.com/
ModeratorI know Teamliquid is known as a massive building
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
July 28 2016 06:52 GMT
#14909
On July 28 2016 09:58 Manit0u wrote:
Show nested quote +
On July 28 2016 08:30 Shield wrote:
Any idea how I can get the list of installed programs on Windows? I've tried example from http://stackoverflow.com/questions/24909108/get-installed-software-list-using-c-sharp , but there are some programs which are not listed such as Speccy. CCleaner lists it though, so I wonder what they use. I'm also fine with Windows API, C# and C++ if that's what your example could use.


Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)...


My goal is to see if an application is installed. If it is, then I uninstall it programmatically. Unfortunately, all the C# examples I find just list mainly Microsoft products and they miss programs such as Speccy. I'm going to see if C++ could achieve this task better by calling different API.
Deleted User 101379
Profile Blog Joined August 2010
4849 Posts
July 28 2016 07:18 GMT
#14910
On July 28 2016 15:52 Shield wrote:
Show nested quote +
On July 28 2016 09:58 Manit0u wrote:
On July 28 2016 08:30 Shield wrote:
Any idea how I can get the list of installed programs on Windows? I've tried example from http://stackoverflow.com/questions/24909108/get-installed-software-list-using-c-sharp , but there are some programs which are not listed such as Speccy. CCleaner lists it though, so I wonder what they use. I'm also fine with Windows API, C# and C++ if that's what your example could use.


Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)...


My goal is to see if an application is installed. If it is, then I uninstall it programmatically. Unfortunately, all the C# examples I find just list mainly Microsoft products and they miss programs such as Speccy. I'm going to see if C++ could achieve this task better by calling different API.


If you are looking for a specific application, wouldn't it be more sensible to look for it's registry entry to determine whether it's installed and then run it's uninstall, which should be in the registry as well?
TheEmulator
Profile Blog Joined July 2010
28087 Posts
July 28 2016 08:05 GMT
#14911
On July 28 2016 15:38 zatic wrote:
Via R1CH:

http://html9responsiveboilerstrapjs.com/

That's amazing

And true.
Administrator
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
Last Edited: 2016-07-28 14:33:48
July 28 2016 14:33 GMT
#14912
On July 28 2016 17:05 TheEmulator wrote:
Show nested quote +
On July 28 2016 15:38 zatic wrote:
Via R1CH:

http://html9responsiveboilerstrapjs.com/

That's amazing

And true.


This guy's twitter is amazing: https://twitter.com/H9RBSjs
Time is precious. Waste it wisely.
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
July 28 2016 15:01 GMT
#14913
http://blog.durandal.io/2016/07/27/aurelia-1-0-is-here/ - Talking about Aurelia earlier, they've released 1.0... So no more beta!

Also on that html9responsive, I love it, gotta love this part too:

2. How do I install this?
Um... are you stupid or something? Just attackclone the grit repo pushmerge, then rubygem the lymphnode js shawarma module – and presto!
Life?
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2016-07-28 22:28:11
July 28 2016 22:20 GMT
#14914
I don't know if MSIINSTALLCONTEXT_MACHINE means "all installed products" on machine, but if it does, then MsiGetProductInfoEx is probably still not good enough. I'm using this API: msdn.microsoft.com

Edit: It feels good when I don't have to use heap memory.
Khalum
Profile Joined September 2010
Austria831 Posts
Last Edited: 2016-07-29 12:19:15
July 29 2016 08:39 GMT
#14915
Is anyone here proficient with CMake (3.0+)?
ShoCkeyy
Profile Blog Joined July 2008
7815 Posts
Last Edited: 2016-07-29 14:28:11
July 29 2016 14:27 GMT
#14916
On July 28 2016 05:18 Manit0u wrote:
Shit. Got called about new job today. They want to snag me and make me a product owner.

Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...

Have any of you been there/done that? What are your experiences?


So, I went from being a backend programmer to frontend while making more $$ and now I'm more of a UX/UI consulting guy. I really like the analytical part of building websites, so I haven't really touched building guts of a beast in a while, and to tell you the truth, I love it. Less stress, more pay, and eventually you'll be up at the top as long as you show performance. Also, as a product owner, I definitely think you'll be in the guts anyways making sure code doesn't look like shit.

Are you doing Agile development or Scrum within the new/old company?
Life?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
July 29 2016 14:33 GMT
#14917
--- Nuked ---
Khalum
Profile Joined September 2010
Austria831 Posts
Last Edited: 2016-07-29 15:25:25
July 29 2016 15:12 GMT
#14918
On July 29 2016 23:33 Nesserev wrote:
Show nested quote +
On July 29 2016 17:39 Khalum wrote:
Is anyone here proficient with CMake (3.0+)?

Posting your question never hurts

That was a question..
Alright, in all seriousness, this is my situation:

I'm using CMake to generate a Visual Studio solution. Everything works as intended for the different libs and executables in there. Now I also have some files that need to be copied into different directories.

The way I have it set up right now is that I made a custom command similar to this:

add_custom_command(OUTPUT ${dst}
      COMMAND ${CMAKE_COMMAND} ARGS -E copy ${src} ${dst}
      DEPENDS ${src})

${src} would be a source file, ${dst} the destination file.

I'm creating these commands in a foreach loop that iterates over all the input files and output paths ('[..]/release/' and '[..]/debug/'), so each source/destination combination has its own command.
All the ${dst} values get added to a list, let's call it ${all_dsts} now.

Then I wrote a custom target that depends on the commands outputs, like this:

add_custom_target(CopyStuff ALL DEPENDS ${all_dsts})


Okay, so far so good. Whenever a source file changes it gets copied into the places it needs to go. Great.

BUT!
Let's say I ran the debug build and all files have been copied. Now I run the release build - and they get copied again since the release build has no idea about what the debug build did. Also: every build copies the files into both the /debug and the /release directories, which is totally not what I want to happen. What If I have no intentions of ever building the debug configuration - I don't need any files to be copied!

So. I know about generator expressions and know about $<CONFIG:cfg>, but I have no idea how to combine that with what I wrote so far.

Is there a way to write something like this? (pseudo code below)

set(${dst} if($<CONFIG:Debug>) ${dst_debug} elseif($<Config:Release>) ${dst_release})


[edit]
I also thought about adding the configuration to the DEPENDS section of the command but have no idea if/how I can combine generator expressions and file dependencies.


How can I achieve what I want?
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
Last Edited: 2016-07-29 18:34:35
July 29 2016 18:24 GMT
#14919
--- Nuked ---
Manit0u
Profile Blog Joined August 2004
Poland17243 Posts
July 29 2016 19:07 GMT
#14920
On July 29 2016 23:27 ShoCkeyy wrote:
Show nested quote +
On July 28 2016 05:18 Manit0u wrote:
Shit. Got called about new job today. They want to snag me and make me a product owner.

Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...

Have any of you been there/done that? What are your experiences?


So, I went from being a backend programmer to frontend while making more $$ and now I'm more of a UX/UI consulting guy. I really like the analytical part of building websites, so I haven't really touched building guts of a beast in a while, and to tell you the truth, I love it. Less stress, more pay, and eventually you'll be up at the top as long as you show performance. Also, as a product owner, I definitely think you'll be in the guts anyways making sure code doesn't look like shit.

Are you doing Agile development or Scrum within the new/old company?


I did go through various implementations of Agile development and Scrum techniques in a couple companies I worked for (was a scrum master for about a month in one of them). Anyway, I think I'll ditch the offer since I just like coding too much (and higher pay isn't my priority).
Time is precious. Waste it wisely.
Prev 1 744 745 746 747 748 1031 Next
Please log in or register to reply.
Live Events Refresh
Next event in 1h 34m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 545
Lowko422
ProTech66
StarCraft: Brood War
Britney 47569
Rain 5500
Sea 3484
Jaedong 1870
EffOrt 1197
BeSt 457
Stork 407
actioN 293
ZerO 283
ToSsGirL 272
[ Show more ]
Snow 205
Light 158
hero 102
Mong 74
Sharp 72
Shinee 61
Pusan 53
Mind 47
Sea.KH 46
Rush 40
sSak 36
PianO 28
Terrorterran 24
Nal_rA 22
Noble 18
GoRush 13
ajuk12(nOOB) 12
Sacsri 11
yabsab 11
sorry 10
soO 8
SilentControl 8
IntoTheRainbow 7
JulyZerg 7
zelot 3
scan(afreeca) 2
Dota 2
qojqva3530
XcaliburYe496
Counter-Strike
byalli250
markeloff218
edward68
kRYSTAL_26
Super Smash Bros
Mew2King140
Other Games
hiko1148
B2W.Neo938
DeMusliM758
crisheroes344
Happy256
ArmadaUGS108
KnowMe54
QueenE38
ZerO(Twitch)24
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 6
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• StrangeGG 71
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• blackmanpl 3
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Nemesis7512
• TFBlade765
Upcoming Events
WardiTV European League
1h 34m
ByuN vs NightPhoenix
HeRoMaRinE vs HiGhDrA
Krystianer vs sebesdes
MaxPax vs Babymarine
SKillous vs Mixu
ShoWTimE vs MaNa
Replay Cast
9h 34m
RSL Revival
19h 34m
herO vs SHIN
Reynor vs Cure
OSC
22h 34m
WardiTV European League
1d 1h
Scarlett vs Percival
Jumy vs ArT
YoungYakov vs Shameless
uThermal vs Fjant
Nicoract vs goblin
Harstem vs Gerald
FEL
1d 1h
Korean StarCraft League
1d 12h
CranKy Ducklings
1d 19h
RSL Revival
1d 19h
FEL
2 days
[ Show More ]
Sparkling Tuna Cup
2 days
RSL Revival
2 days
FEL
2 days
BSL: ProLeague
3 days
Dewalt vs Bonyth
Replay Cast
4 days
Replay Cast
4 days
The PondCast
5 days
Replay Cast
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Proleague 2025-06-28
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Championship of Russia 2025
RSL Revival: Season 1
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.