• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 10:13
CEST 16:13
KST 23:13
  • 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
[ASL22] Ro16 Preview: Rough Waters10[ASL22] Ro24 Preview: Siren's Call8[ASL22] Ro24 Preview: Summer's End9Serral wins HomeStory Cup 2915Serral wins Maestros of the Game 244
Community News
Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism10Official StarCraft website teases new content ahead of BlizzCon?131Stellar Fest TWO the Moon (Dec 16-20)9Weekly Cups (August 24-30): Patches' balance mod takes over3New 3v3 BGH Ladder (and more) on ShieldBattery!46
StarCraft 2
General
Balance hotfix patch 5.0.16b (July 16) Team Liquid Map Contest #22: Results and Winners Weekly Cups (Aug 30-Sep 7): herO thrives amid growing schism SC4ALL: II Winner will earn a spot at HSC 30! SC4ALL II: StarCraft 2 Player Announcement 7/8
Tourneys
RSL goes to London! 2026 Offline Finals Nov 21-22 KSL Week #92 IntoTheTV X SOOP SC2 League : Weekly & Monthly 2026 GSTL Announcement Sparkling Tuna Cup - Weekly Open Tournament
Strategy
[G] Having the right mentality to improve
Custom Maps
Nexus Wars 2021 GUIDE [M] (2) Industrial Park
External Content
Mutation # 542 The Ascended Mutation # 541 Binary Choice The PondCast: SC2 News & Results Mutation # 540 Dodge This
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ Practice Partners (Official) Broodwar Prediction Market Official StarCraft website teases new content ahead of BlizzCon? [D] Brainstorming a balance patch for Brood war
Tourneys
[ASL22] Ro16 Group A [ASL22] Ro16 Group B Escore Tournament - Season 3 Small VOD Thread 2.0
Strategy
Replay Review Process - What do you do? Simple Questions, Simple Answers Odyssey Mineral Stack Saturation Game Theory for Starcraft
Other Games
General Games
Nintendo Switch Thread EVE Corporation Diablo IV [Maplestory Hardcore] Let's Play~!! General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
[TL LoL EUW IHs] Teemo shall perish TSM pausing esports and CLG Dead
Heroes of the Storm
Heroes of the Storm 2.0
Hearthstone
Deck construction bug
TL Mafia
TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread European Politico-economics QA Mega-thread Trading/Investing Thread
Fan Clubs
MarineLorD Fan Club The Creator Fan Club The ShoWTimE Fan Club
Media & Entertainment
Movie Discussion!
Sports
Football (Soccer) Thread TeamLiquid Health and Fitness Initiative For 2023 MLB/Baseball 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Northern Ireland Global Starcraft
Blogs
Virtual Romance, Real-Life C…
TrAiDoS
Regacy Esports:Our Goa…
regacyesports
Dreaming of BW patches (mod…
c3rberUs
LOCKPICKING NOOB
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6527 users

The Big Programming Thread - Page 569

Forum Index > General Forum
Post a Reply
Prev 1 567 568 569 570 571 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.
Requizen
Profile Blog Joined March 2011
United States33802 Posts
January 22 2015 23:02 GMT
#11361
Anyone have experience working with Bootstrap and MVC? I'm trying to apply a theme that our UX team bought and I can't for the life of me get it to apply to the site.
It's your boy Guzma!
Manit0u
Profile Blog Joined August 2004
Poland17843 Posts
Last Edited: 2015-01-23 00:23:10
January 23 2015 00:15 GMT
#11362
On January 23 2015 08:00 travis wrote:
does swing have a menu thats like what you would see in a typical old school rpg?

like where it says like

'items'
'stats'
'equip'

and you can pick between them

what swing component would i want to use for that?
I guess i'll need to learn to make my own?


or would I use a "list" for this?


You're trying to rush things too much travis. Please slow down, work on some basic stuff (without GUI) until you get the gist of it and then move on to more complex things. Most of your problems stem from not knowing the basics and trying to work with something that's intermediate level at least. It's like trying to play poker without knowing which combination beats which so you're just blindly trying things out in hope they'll work.

On January 23 2015 08:02 Requizen wrote:
Anyone have experience working with Bootstrap and MVC? I'm trying to apply a theme that our UX team bought and I can't for the life of me get it to apply to the site.


What exactly seems to be your problem? I work with Bootstrap and MVC frameworks all the time.
Time is precious. Waste it wisely.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2015-01-23 01:39:32
January 23 2015 01:29 GMT
#11363
On January 23 2015 09:15 Manit0u wrote:
Show nested quote +
On January 23 2015 08:00 travis wrote:
does swing have a menu thats like what you would see in a typical old school rpg?

like where it says like

'items'
'stats'
'equip'

and you can pick between them

what swing component would i want to use for that?
I guess i'll need to learn to make my own?


or would I use a "list" for this?


You're trying to rush things too much travis. Please slow down, work on some basic stuff (without GUI) until you get the gist of it and then move on to more complex things. Most of your problems stem from not knowing the basics and trying to work with something that's intermediate level at least. It's like trying to play poker without knowing which combination beats which so you're just blindly trying things out in hope they'll work.


i am aware of this but I am still learning and your method is extremely boring lol
I feel like I have learned a ton for how recently I started this

for the record i am reading the book you told me to read. just slowly because it's so dry.
and really just starting with that book, it is so hard to follow right from the beginning it's like im in 6th grade reading shakespeare. the problem is the author starts using terminology that you don't really use in your everyday life without putting the terminology in context, and then it makes it impossibly hard to read at a reasonable pace
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
January 23 2015 01:39 GMT
#11364
what are you trying to make?
There is no one like you in the universe.
phar
Profile Joined August 2011
United States1080 Posts
January 23 2015 01:40 GMT
#11365
Actually learning how to program properly is going to take a long time, a lot of work, and it won't be all fun and games. At some point down the line you will spend literally hours because of a single missing character... and it will happen multiple times.

Programming requires a lot of patience to do well.



As for the specific problem of line separating in java from above, it depends. If you need cross platform, something like

String foo = String.format("First line%nSecond line");


is probably more readable.

If you just need stuff to work on debug output for purely linux stack stuff, "\n" is sufficient.



For a brief introduction into swing menus, see http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html

It is a lot to digest. It will also probably require some familiarity with callbacks or listeners (not exactly sure for swing).
Who after all is today speaking about the destruction of the Armenians?
Prillan
Profile Joined August 2011
Sweden350 Posts
January 23 2015 02:39 GMT
#11366
On January 23 2015 01:32 herokiller_ wrote:
Show nested quote +
On January 23 2015 01:22 Nesserev wrote:
Just post your question...


I'm having troubles understanding monads (statet for example) and monads transformation

Everyone has problems with monads. I even studied some category theory and have problems understanding them.

I have no experience with using the state monad (I assume "statet" is a typo), but this seems like a good tutorial: https://en.wikibooks.org/wiki/Haskell/Understanding_monads/State
TheBB's sidekick, aligulac.com | "Reality is frequently inaccurate." - Douglas Adams
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2015-01-23 03:59:21
January 23 2015 03:53 GMT
#11367
alright manit0u to make you happy im gonna go through that book and while i do that i will do all the programmingbydoing.com assignments
+ Show Spoiler +
and to learn
Ropid
Profile Joined March 2009
Germany3557 Posts
January 23 2015 06:53 GMT
#11368
On January 23 2015 01:32 herokiller_ wrote:
Show nested quote +
On January 23 2015 01:22 Nesserev wrote:
Just post your question...


I'm having troubles understanding monads (statet for example) and monads transformation

I'm just a noob and haven't worked through it fully myself, but here's stuff I have bookmarked:

If you mean just understanding how monad transformers are used, maybe look through this tutorial:

https://web.archive.org/web/20140821053740/http://www.grabmueller.de/martin/www/pub/Transformers.pdf

It starts out with a code example without any monads, then adds several monad transformers onto that code while stopping and discussing a little after each step. This tutorial doesn't explain at all how it works behind the scenes, just shows how to use things.

Someone seems to have collected the example code in the document and put it onto his github:

https://gist.github.com/tatac1/badd810ad55919e57020

Another example I have bookmarked and which I wanted to look through in the future is this here:

http://hrothen.github.io/2014/09/05/lets-build-a-browser-engine-in-haskell/

There's a tiny bit of StateT use in the second part where he builds a parser for html. That's all that's relevant with regards to StateT as he switches over to using Parsec afterwards. In his posts, the guy follows a series of articles about building a tiny browser engine in Rust. I guess that has to also be read to fully understand what's going on (might anyway be interesting as that Rust stuff looks kind of fun): http://limpet.net/mbrubeck/2014/08/08/toy-layout-engine-1.html

That was all just stuff that might help to get a feel what monad transformers are about. If you meant you literally want to know how monad transformers do stuff in Haskell, I feel I pretty much have no idea. I have this here bookmarked about what monads actually do and how they work exactly in Haskell:

http://mvanier.livejournal.com/

It's the blog posts that are titled "Yet Another Monad Tutorial (part ...)." That series of eight posts goes through things very slow and thorough and starts from the ground up. It does not go over monad transformers, only monads, but it seems to explain well how the code behind monads works. That might already help enough? The monads actually all seem to be just normal Haskell code (except for IO), and the reason the various monads got written is just to make life easier in certain situations.
"My goal is to replace my soul with coffee and become immortal."
solidbebe
Profile Blog Joined November 2010
Netherlands4921 Posts
January 23 2015 09:14 GMT
#11369
where did foo come from? I never understood that
That's the 2nd time in a week I've seen someone sig a quote from this GD and I have never witnessed a sig quote happen in my TL history ever before. -Najda
Manit0u
Profile Blog Joined August 2004
Poland17843 Posts
Last Edited: 2015-01-23 09:59:05
January 23 2015 09:51 GMT
#11370
On January 23 2015 18:14 solidbebe wrote:
where did foo come from? I never understood that


http://en.wikipedia.org/wiki/Foobar

On January 23 2015 12:53 travis wrote:
alright manit0u to make you happy im gonna go through that book and while i do that i will do all the programmingbydoing.com assignments
+ Show Spoiler +
and to learn


Don't do it to make me happy. Do it for yourself.
Time is precious. Waste it wisely.
InvaderUK
Profile Joined January 2011
225 Posts
January 23 2015 10:42 GMT
#11371
On January 23 2015 01:32 herokiller_ wrote:
Show nested quote +
On January 23 2015 01:22 Nesserev wrote:
Just post your question...


I'm having troubles understanding monads (statet for example) and monads transformation


i use haskell at work, so can confirm. it's like a burrito.
patriarch of the church of howard. may maokai smile upon you.
Requizen
Profile Blog Joined March 2011
United States33802 Posts
January 23 2015 15:31 GMT
#11372
On January 23 2015 09:15 Manit0u wrote:
Show nested quote +
On January 23 2015 08:02 Requizen wrote:
Anyone have experience working with Bootstrap and MVC? I'm trying to apply a theme that our UX team bought and I can't for the life of me get it to apply to the site.


What exactly seems to be your problem? I work with Bootstrap and MVC frameworks all the time.

This is my first time working with Bootstrap, I've done MVC work before. I'm using MVC 4 (for whatever reason that's what our company is using), and our UX team bought a Bootstrap template called Sugoi Admin. Every time I look up a guide to apply a Bootstrap Template to MVC, it just says "Install Bootstrap and then overwrite the CSS and JS files with the ones from the template" or something similar. But the one we bought has way more stuff inside it:

[image loading]

The README just talks about Grunt (which I have never heard of prior to now), so I'm not really sure what to do. When I just overwrite the CSS and JS files, nothing happens on the site. So it's confusing to me.
It's your boy Guzma!
YourGoodFriend
Profile Blog Joined June 2010
United States2197 Posts
Last Edited: 2015-01-23 15:42:35
January 23 2015 15:41 GMT
#11373
On January 24 2015 00:31 Requizen wrote:
Show nested quote +
On January 23 2015 09:15 Manit0u wrote:
On January 23 2015 08:02 Requizen wrote:
Anyone have experience working with Bootstrap and MVC? I'm trying to apply a theme that our UX team bought and I can't for the life of me get it to apply to the site.


What exactly seems to be your problem? I work with Bootstrap and MVC frameworks all the time.

This is my first time working with Bootstrap, I've done MVC work before. I'm using MVC 4 (for whatever reason that's what our company is using), and our UX team bought a Bootstrap template called Sugoi Admin. Every time I look up a guide to apply a Bootstrap Template to MVC, it just says "Install Bootstrap and then overwrite the CSS and JS files with the ones from the template" or something similar. But the one we bought has way more stuff inside it:

[image loading]

The README just talks about Grunt (which I have never heard of prior to now), so I'm not really sure what to do. When I just overwrite the CSS and JS files, nothing happens on the site. So it's confusing to me.


So first off bootstrap and themes are just like using any css or js in that you need to include it in your project and then reference it in your code.

We just did a similar thing and to start off you need to figure out what you are using, so start with the navigation open their dummy site (usually a index.html file) and then right click and inspect element and see what classes and ids they are using to make it look that way, then start adding in those to your code.

It seems a bit daunting initially but just think of it as just regular css and js that you need to reference.

Hope this helps

**Grunt is a command line runner used for multiple different purposes usually around minifying your css and js or linting your js
anonymous is the most famous author that anyone can be
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
January 23 2015 18:41 GMT
#11374
http://i.imgur.com/s0i9Xv6.png

ahahah
There is no one like you in the universe.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
January 23 2015 19:16 GMT
#11375
I am sure this is an incredibly dumb question to be asking

but I keep looking at example java code, and the code will list that it is part of one package, and in one java file, but in the code it has more than one class

but according to netbeans every class i make has to have it's own java file?
Toadesstern
Profile Blog Joined October 2008
Germany16350 Posts
Last Edited: 2015-01-23 19:34:23
January 23 2015 19:29 GMT
#11376
On January 24 2015 04:16 travis wrote:
I am sure this is an incredibly dumb question to be asking

but I keep looking at example java code, and the code will list that it is part of one package, and in one java file, but in the code it has more than one class

but according to netbeans every class i make has to have it's own java file?

There's a difference between .java and .class files.
.class files are the bytecode-files the compiler generates for the VM and like you said, that's one file per class.
<Elem> >toad in charge of judging lewdness <Elem> how bad can it be <Elem> also wew, that is actually p lewd.
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2015-01-23 20:09:10
January 23 2015 19:52 GMT
#11377
On January 24 2015 04:29 Toadesstern wrote:
Show nested quote +
On January 24 2015 04:16 travis wrote:
I am sure this is an incredibly dumb question to be asking

but I keep looking at example java code, and the code will list that it is part of one package, and in one java file, but in the code it has more than one class

but according to netbeans every class i make has to have it's own java file?

There's a difference between .java and .class files.
.class files are the bytecode-files the compiler generates for the VM and like you said, that's one file per class.


You probably gave me this answer because what I said didn't make sense. It wasn't really what I was asking.

I figured out my problem though, I wasn't nesting the class inside the first class, I was putting it outside of it
nunez
Profile Blog Joined February 2011
Norway4003 Posts
Last Edited: 2015-01-23 20:19:43
January 23 2015 20:11 GMT
#11378
having some fun with openCL / openGL interop.
triangular dirigibles, with 2 thrusters (rotational, translational),
moving on the surface of a torus, all controlled by arrow keys on keyboard.
rational simulation (integer arithmetic), converted to floating points for drawing
when copied into gl buffer.

1


128


64k


256k is ok too (no lag), but video would not be fine (my connection too slow to upload worthwhile video).
segfault at 512k, but naive implementation, so probably not difficult to make it scale further.
conspired against by a confederacy of dunces.
Blisse
Profile Blog Joined July 2010
Canada3710 Posts
January 23 2015 20:38 GMT
#11379
On January 24 2015 04:16 travis wrote:
I am sure this is an incredibly dumb question to be asking

but I keep looking at example java code, and the code will list that it is part of one package, and in one java file, but in the code it has more than one class

but according to netbeans every class i make has to have it's own java file?


In Java I believe you can have multiple classes inside a java file, but only the first class will be public to other files, so all the rest of the classes are private to the file.

I'm a shitty Java developer so I might be wrong.
There is no one like you in the universe.
spinesheath
Profile Blog Joined June 2009
Germany8679 Posts
January 23 2015 20:46 GMT
#11380
On January 24 2015 05:38 Blisse wrote:
Show nested quote +
On January 24 2015 04:16 travis wrote:
I am sure this is an incredibly dumb question to be asking

but I keep looking at example java code, and the code will list that it is part of one package, and in one java file, but in the code it has more than one class

but according to netbeans every class i make has to have it's own java file?


In Java I believe you can have multiple classes inside a java file, but only the first class will be public to other files, so all the rest of the classes are private to the file.

I'm a shitty Java developer so I might be wrong.

It's not like that issue is of any importance, anyways. One class per file, not because you must, but because you can.
If you have a good reason to disagree with the above, please tell me. Thank you.
Prev 1 567 568 569 570 571 1032 Next
Please log in or register to reply.
Live Events Refresh
WardiTV Invitational
11:00
Pre Blizzcon Cup
Cure vs Zoun
SHIN vs ClassicLIVE!
IntoTheiNu 1077
WardiTV1068
IndyStarCraft 199
Rex114
Liquipedia
CranKy Ducklings
10:00
Sea Duckling Open #149
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Lowko480
IndyStarCraft 199
Rex 114
BRAT_OK 68
MindelVK 21
StarCraft: Brood War
Britney 43157
Calm 7158
Shuttle 1411
Leta 655
Soma 351
Mini 290
firebathero 253
Rush 192
Last 141
Pusan 141
[ Show more ]
910 79
Killer 77
Mong 50
Hm[arnc] 23
Rock 16
SilentControl 12
Noble 7
Icarus 5
Dota 2
qojqva2993
Dendi1441
syndereN474
ODPixel253
420jenkins188
Other Games
singsing1961
crisheroes334
DeMusliM309
Hui .273
mouzStarbuck255
XaKoH 113
Organizations
Other Games
EGCTV404
StarCraft: Brood War
lovetv 8
[ Show 14 non-featured ]
StarCraft 2
• CranKy Ducklings SOOP11
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• Migwel
StarCraft: Brood War
• FirePhoenix8
• Michael_bg 6
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 3129
League of Legends
• Jankos1763
• Nemesis1479
Upcoming Events
AI Arena Tournament
2h 47m
OSC
6h 17m
Sparkling Tuna Cup
19h 47m
WardiTV Invitational
20h 47m
Shopify Rebellion Sundays
1d
Spirit vs Mixu
Clem vs TBD
RSL Revival
1d 1h
Serral vs Rogue
BlizzCon
1d 4h
IdrA vs MC
Replay Cast
1d 9h
Afreeca Starleague
1d 19h
Light vs JyJ
Soulkey vs hero
WardiTV Weekly
1d 20h
[ Show More ]
Monday Night Weeklies
2 days
Afreeca Starleague
2 days
Snow vs Shinee
Shine vs EffOrt
GSL
2 days
PiGosaur Cup
3 days
The PondCast
3 days
Kung Fu Cup
3 days
Replay Cast
4 days
KCM Race Survival
4 days
IntoTheTV X SOOP
4 days
Replay Cast
5 days
IntoTheTV X SOOP
5 days
Replay Cast
6 days
GSL
6 days
Liquipedia Results

Completed

Acropolis #5 - TRS
PiG Sty Festival 8.0
Big Dog Cup 2026 Div 1

Ongoing

KCM Race Survival 2026 Season 3
K-JUNGMAN
ASL Season 22
Super Anchor Qualifying S3
CSL 2026 AUTUMN (S22)
Acropolis #5
RSL Revival: Season 6
Calamity Invitational
FISSURE Playground #3
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
XSE Pro League 2026

Upcoming

Blizzard Classic Cup 2026
Acropolis #5 - GSA
Acropolis #5 - GSB
Acropolis #5 - GSC
SC4ALL II: Brood War
HSC XXX
Stellar Fest 2: Lunar Cup
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Offline Finals
Blizzard Classic Cup 2026
PGL Major Singapore 2026
Stake Ranked Episode 6
BLAST Rivals Fall 2026
IEM Beijing 2026
Stake Ranked Episode 5
PGL Masters Bucharest 2026
1win Private Club #2
Thunderpick World Champ. '26
ESL Pro League Season 24
Stake Ranked Episode 4
1win Private Club #1
Logitech G Play Connect 2026
SL StarSeries Fall 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.