• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 19:51
CEST 01:51
KST 08:51
  • 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 1 - Final Week4[ASL19] Finals Recap: Standing Tall10HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced6Weekly Cups (June 30 - July 6): Classic Doubles6[BSL20] Non-Korean Championship 4x BSL + 4x China10Flash Announces Hiatus From ASL70
StarCraft 2
General
The GOAT ranking of GOAT rankings RSL Revival patreon money discussion thread We need to be discussing a new patch right now! Firefly given lifetime ban by ESIC following match-fixing investigation RSL Season 1 - Final Week
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament $25,000 Streamerzone StarCraft Pro Series announced WardiTV Mondays
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
BW General Discussion A cwal.gg Extension - Easily keep track of anyone ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ Script to open stream directly using middle click
Tourneys
Small VOD Thread 2.0 [Megathread] Daily Proleagues Last Minute Live-Report Thread Resource! [BSL20] Non-Korean Championship 4x BSL + 4x China
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile CCLP - Command & Conquer League Project Stormgate/Frost Giant Megathread The PlayStation 5 Nintendo Switch Thread
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 The Accidental Video Game Porn Archive Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Men Take Risks, Women Win Ga…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 554 users

The Big Programming Thread - Page 660

Forum Index > General Forum
Post a Reply
Prev 1 658 659 660 661 662 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.
Acrofales
Profile Joined August 2010
Spain17973 Posts
August 28 2015 11:52 GMT
#13181
On August 28 2015 17:57 Biolunar wrote:
Show nested quote +
An app can never be purely C/C++, because there is no I/O access through the NDK. That means any input and output has to be done in the Android framework in any case.

How is that even possible? At the very least you must be able to call the syscalls directly if there is no C library wrapping them.

Ok. You're right of course. I meant that the NDK doesnt have access to the touch screeen (either for collecting user touches or for putting something on it, or access to the microphone or speaker. There's a C api for getting sensor data, which is also I/O, and you have file system access. But your main ways of getting input and creating output on a smartphone are inaccessible.
Manit0u
Profile Blog Joined August 2004
Poland17247 Posts
August 31 2015 16:53 GMT
#13182
Java Install did not complete. Error code: 1603


Uninstall all installed Java versions. Restart. Try 32-bit and 64-bit online and offline installers for the newest version. Same thing.

Screw you, Oracle, screw you...
Time is precious. Waste it wisely.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
Last Edited: 2015-08-31 20:59:57
August 31 2015 20:55 GMT
#13183
@whoever was doing android

Just use Java. Use the right tool for the job, and for Android that's clearly Java. It's silly to even consider using C++ imo unless you need to use something specific to C++. Don't make yourself dependent on languages.
There is no one like you in the universe.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
August 31 2015 23:43 GMT
#13184
--- Nuked ---
Acrofales
Profile Joined August 2010
Spain17973 Posts
September 01 2015 00:01 GMT
#13185
On September 01 2015 08:43 Nesserev wrote:
Show nested quote +
On September 01 2015 05:55 Blisse wrote:
@whoever was doing android

Just use Java. Use the right tool for the job, and for Android that's clearly Java. It's silly to even consider using C++ imo unless you need to use something specific to C++. Don't make yourself dependent on languages.


What about using Java on top of C++? Java for the application itself, C++ for intensive program components?
Never tried it myself, but it should be feasible and manageable, right?


Feasible? Sure. Performance improving? Depends on what you mean with "intensive program components". Most stuff normal people call "intensive program components" are better programmed in Java, both to reduce complexity and because what they call intensive is not really all that intensive, and thus running it on the heavily optimized Android JVM is actually faster than an NDK library. If, however, with intensive program components you mean stuff like game engines or video processing (OpenCV for instance, is a thinly veiled Java wrapper around an NDK library), then yes, optimized C++ code will run better than run those algorithms in Java.
wherebugsgo
Profile Blog Joined February 2010
Japan10647 Posts
September 01 2015 02:20 GMT
#13186
The best question is, "why?" If there is a good reason to be writing C++ code you would hopefully already have an app built using Java that you can benchmark/profile and categorically say that the reason you are seeing performance issues is because you are using Java and not something else. You should code to the platform when it comes to mobile devices, because any other idea is a terrible waste of time. This is generally the approach you should take, as languages can be thought of as tools. Just as physical tools have their respective places for different tasks, so do software engineering tools, and Java as a tool is the best fit for Android.

BisuDagger
Profile Blog Joined October 2009
Bisutopia19230 Posts
September 01 2015 02:28 GMT
#13187
If you want to program for the Android use C#! Especially if you are a C++ programmer and just not willing to make that java jump. Working in C# will push you closer to the same concepts java enforces while still keeping C++ syntax. Now at this point some of you may be thinking, "wtf c# and android"? Well there is a beautiful thing called unity that will make all your code work for the android and is super easy to use in app development. Just an idea :D
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
Khalum
Profile Joined September 2010
Austria831 Posts
September 01 2015 06:36 GMT
#13188
On September 01 2015 11:28 BisuDagger wrote:
If you want to program for the Android use C#! Especially if you are a C++ programmer and just not willing to make that java jump. Working in C# will push you closer to the same concepts java enforces while still keeping C++ syntax. Now at this point some of you may be thinking, "wtf c# and android"? Well there is a beautiful thing called unity that will make all your code work for the android and is super easy to use in app development. Just an idea :D

Off topic:
+ Show Spoiler +
I was really tempted to comment on your 3-0 prediction for Bisu in the preview article. The actual outcome would have made me regret any snarky remarks though so I'm happy I didn't.
BisuDagger
Profile Blog Joined October 2009
Bisutopia19230 Posts
September 01 2015 08:13 GMT
#13189
On September 01 2015 15:36 Khalum wrote:
Show nested quote +
On September 01 2015 11:28 BisuDagger wrote:
If you want to program for the Android use C#! Especially if you are a C++ programmer and just not willing to make that java jump. Working in C# will push you closer to the same concepts java enforces while still keeping C++ syntax. Now at this point some of you may be thinking, "wtf c# and android"? Well there is a beautiful thing called unity that will make all your code work for the android and is super easy to use in app development. Just an idea :D

Off topic:
+ Show Spoiler +
I was really tempted to comment on your 3-0 prediction for Bisu in the preview article. The actual outcome would have made me regret any snarky remarks though so I'm happy I didn't.

+ Show Spoiler +
I did it purely out being a Bisu fan and just having fun. I honestly thought it either go all five games of hero would win 3-1. Bisu has looked terrible vs Zerg these days. My serious predictions were 100% correct for the rest of the tournament at least :D. And snarky remarks welcome when I post a prediction like that lol.
ModeratorFormer Afreeca Starleague Caster: http://afreeca.tv/ASL2ENG2
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2015-09-01 15:18:32
September 01 2015 15:15 GMT
#13190
I've got the most bizarre SQL problem that's driving me crazy. I have an update statement that joins several tables together and updates one of the tables. When executed, the statement updates x number of rows. However, it's not updating all the rows it should. If you take the exact same where/join conditions and do a select, it returns more rows than it's updating.

The only thing I can think of is that the table I'm trying to update has duplicates based on the join conditions, but I've already checked and it's not the case. It's blowing my mind. Any idea why this might happen? I'm using MS SQL Server, btw. See code below if you really want to see it:

+ Show Spoiler +


--This updates 95,505 rows
update dd
set dd.DealPerRevSum = dd.DealPerRevSum
from AlgorithmStructuresToDeals ad
inner join AlgorithmDealsWithDates dd on dd.DealId = ad.DealId
inner join #temp t
on t.StructureId = ad.StructureId
and t.DealId = ad.DealId

--This returns 97,355
select count(*)
from AlgorithmStructuresToDeals ad
inner join AlgorithmDealsWithDates dd on dd.DealId = ad.DealId
inner join #temp t
on t.StructureId = ad.StructureId
and t.DealId = ad.DealId



Edit: Nevermind, I just realized what the issue is. The table I'm trying to update has rows used more than once in the join. Thanks!
Manit0u
Profile Blog Joined August 2004
Poland17247 Posts
Last Edited: 2015-09-01 18:57:05
September 01 2015 18:56 GMT
#13191
On September 01 2015 08:43 Nesserev wrote:
Well, your biggest problem is that you're running Windows


It's not even my computer and I'm still mad. All I run now is #! (crunchbang) since nothing else works reasonably fast with modern features on the only 10 year old laptop (if not older) I have.
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-09-01 21:27:27
September 01 2015 21:22 GMT
#13192
On September 01 2015 08:43 Nesserev wrote:
Well, your biggest problem is that you're running Windows


Windows is a good operating system for those who need to do work instead of waste time googling basic stuff as you do for Linux/*NIX. Also better support. Do we still argue about Windows vs Linux in 2015?

Linux was good when performance was needed, but CPUs are so powerful nowadays that it doesn't matter. Linux is still a good server though.
Birdie
Profile Blog Joined August 2007
New Zealand4438 Posts
September 01 2015 22:45 GMT
#13193
On September 02 2015 06:22 darkness wrote:
Show nested quote +
On September 01 2015 08:43 Nesserev wrote:
Well, your biggest problem is that you're running Windows


Windows is a good operating system for those who need to do work instead of waste time googling basic stuff as you do for Linux/*NIX. Also better support. Do we still argue about Windows vs Linux in 2015?

Linux was good when performance was needed, but CPUs are so powerful nowadays that it doesn't matter. Linux is still a good server though.

Linux has a better desktop environment than Windows (or at least, all the desktop environments that I've used are better currently), is generally easier to use if you use something like Ubuntu, and has a whole bunch of advantages over Windows. The only reason I keep my Windows install is application support, specifically games. Linux is far more comfortable for everything else.
Red classic | A butterfly dreamed he was Zhuangzi | 4.5k, heading to 5k as support!
Soap
Profile Blog Joined April 2010
Brazil1546 Posts
September 01 2015 23:29 GMT
#13194
I put Ubuntu on my laptop to install AMP with less hassle, and ended up using it because it has better support for the trackpad (two fingers to scroll instead of the tiny strip on the side.)

CPUs are not so powerful nowadays if you care about power/heat, in fact because of energy management they're often below 1 GHz. Also, space may be at a premium with a SSD, and here Windows is twice the size.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
September 01 2015 23:38 GMT
#13195
--- Nuked ---
Manit0u
Profile Blog Joined August 2004
Poland17247 Posts
September 02 2015 09:53 GMT
#13196
Also, I remember that a big part of Linux vs Windows discussion in corporate environment came down to costs and ease of implementation. There's no arguing that you can run nix on your machines at lower costs than Windows. What's interesting is that it's actually easier for people to transition from Windows to Linux than from one version of Windows to another (that's why the government of Austria decided to switch despite MS giving them 95% discount if I remember correctly).

A lot of hate towards Linux comes from super outdated premise that it's harder to configure and use than Windows, which isn't true. Sure, if you go with a distro like Debian, Gentoo or Arch you'll have to do a lot of work yourself since they're targeted at either experienced users or those willing to spend time learning Linux management from the ground up. On the other end of the spectrum you have distros like Ubuntu or openSuse, which "just work" (they even ask you for a permission to automatically install proprietary codecs and software after installation - java, flash and such). Installing them is really easy, usage is also much easier than Windows because of many reasons:
a) they come packed with useful things (browser that doesn't suck, media players that don't suck, image manipulation programs, full office suite, codecs, java, flash, graphics drivers etc. etc. stuff you have to spend hours setting up after Windows installation)
b) easier app installation (you just type the name of an app you want, or a part of it and select packages from the list, alternatively you can type one command in the terminal, no more browsing throught the Internet, downloading, extracting, going through installation wizards etc.)
c) security, no more nagging antivirus bullshit.

You don't have access to as many games on Linux (which is slowly changing since Valve started pushing their SteamOS), but unless you need something that works only under Windows for your work or all the games then there's absolutely no other reason to use it.
Time is precious. Waste it wisely.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2015-09-02 17:44:41
September 02 2015 17:35 GMT
#13197
When I was last testing Linux, it was a while ago; I think it was in 2011 and I first tried Linux in about 2004-2005, so I have known Linux for quite a long time. Tried distributions in order: openSUSE, Slackware, Debian, Ubuntu, Gentoo. Thanks, but I remember how many hours I invested in configuring basic stuff with Linux such as X.org (resolution/fonts/language), kernel menu config, etc. These things are only a few clicks on Windows. Good OS as I said, but not for desktop. It's unnecessarily complex. That's probably fine if you have free time and/or you're an IT guy, but sometimes you don't want to bother.

Edit: Also Linux programs were very limited and not so user friendly back then.

Edit 2: It's not a reason for me not to use Linux, but Linus is an asshole when he talks about C++ and NVIDIA.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
September 02 2015 17:57 GMT
#13198
I tried ubuntu for like 1 or 2 years and wasn't happy with it.

We should just agree that all of this is entirely subjective. Some people like windows, some like <insert linux distribution here>. For various subjective reasons. That's all there is to it.
If you have a good reason to disagree with the above, please tell me. Thank you.
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
September 02 2015 18:03 GMT
#13199
--- Nuked ---
Frolossus
Profile Joined February 2010
United States4779 Posts
September 03 2015 04:53 GMT
#13200
i've been using arch for 6 years on my work/school computer and couldn't be happier
Prev 1 658 659 660 661 662 1031 Next
Please log in or register to reply.
Live Events Refresh
The PiG Daily
22:50
Best Games of SC
Clem vs ByuN
SHIN vs GuMiho
PiGStarcraft419
LiquipediaDiscussion
SC Evo Complete
22:00
Enki Epic Ser. Taeja vs soO EN
davetesta58
Liquipedia
OSC
20:00
Mid Season Playoffs
Spirit vs GeraldLIVE!
Solar vs ShoWTimE
SteadfastSC209
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft419
SteadfastSC 209
Nina 158
JuggernautJason85
ViBE72
Nathanias 71
CosmosSc2 50
StarCraft: Brood War
NaDa 19
LuMiX 4
Dota 2
monkeys_forever346
canceldota150
NeuroSwarm85
League of Legends
Grubby3214
JimRising 334
febbydoto12
Counter-Strike
Fnx 2124
taco 772
sgares70
Super Smash Bros
hungrybox470
AZ_Axe123
Liquid`Ken48
Heroes of the Storm
Khaldor189
Other Games
summit1g10110
fl0m534
C9.Mang0146
Pyrionflax90
Trikslyr66
PPMD45
Livibee42
Organizations
Other Games
gamesdonequick43719
BasetradeTV21
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Hupsaiya 47
• Adnapsc2 10
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Pr0nogo 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos1520
Other Games
• Scarra1856
Upcoming Events
RSL Revival
10h 10m
SHIN vs Clem
Cure vs TBD
FEL
12h 10m
FEL
16h 10m
Gerald vs PAPI
Spirit vs ArT
CSO Cup
16h 10m
BSL20 Non-Korean Champi…
18h 10m
Bonyth vs QiaoGege
Dewalt vs Fengzi
Hawk vs Zhanhun
Sziky vs Mihu
Mihu vs QiaoGege
Zhanhun vs Sziky
Fengzi vs Hawk
Sparkling Tuna Cup
1d 10h
RSL Revival
1d 10h
Classic vs TBD
FEL
1d 15h
BSL20 Non-Korean Champi…
1d 18h
Bonyth vs Dewalt
QiaoGege vs Dewalt
Hawk vs Bonyth
Sziky vs Fengzi
Mihu vs Zhanhun
QiaoGege vs Zhanhun
Fengzi vs Mihu
Replay Cast
3 days
[ Show More ]
WardiTV European League
3 days
Replay Cast
5 days
The PondCast
5 days
Replay Cast
6 days
Epic.LAN
6 days
Liquipedia Results

Completed

KCM Race Survival 2025 Season 2
HSC XXVII
NC Random Cup

Ongoing

JPL Season 2
BSL 2v2 Season 3
Acropolis #3
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
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

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
CSL Xiamen Invitational: ShowMatche
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
Underdog Cup #2
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.