|
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. |
On April 09 2013 17:39 Tobberoth wrote:Show nested quote +On April 09 2013 17:24 Abductedonut wrote: This doesn't have much to do with programming as it does ranting but here it goes.
Learn touch typing guys. Learn it properly (keys on home row and everything!). There will come a point in your career when you realize that IDEs are trash and that VIM is better than anything that you can find for text editing. And if you don't touch type it will be a pain to use.
Heed my warning! Don't be lazy and learn it! I agree that learning to touch type is awesome for a programmer, but I don't know about that vim comment. Vim is certainly an amazing editor if you're good at it (as is emacs), but in some development, it's not as fitting. Especially if you work with microsoft technologies like C#, ASP.Net etc, you're going to want to use Visual Studio regardless. That said, there are apparently some pretty sweet vim bindings for visual studio, but you have to pay for them.
edit:nah
|
Well, since Im pretty much lost regarding this problem I need to solve, maybe someone can give me some help.
I need to parse (in Java) a XML but the structure of the XML is as follow:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><list> <AL type="1111" value="Company Name"/> <AL type="2222" value="10"/> <AL type="3333" value="20"/> <AL addressType="MAC Address" type="44444" value="XX-XX-XX-XX-XX-XX"/> <AL type="55555" value="YYYY"/> </list>
I've looked around and couldn't find examples using a similar structure (including list and attributes values). Can someone give me some help or a similar example? I tried using XStream, but it wasn't clear to me how I would create POJOs for the xml in question, since all the examples I found used straightforward XMLs as follow:
<staff> <name>John Doe</name> <id>1234</id> </staff>
|
I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?
|
On April 18 2013 10:57 Kenpachi wrote: I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?
You're here arent ya
|
On April 18 2013 10:57 Kenpachi wrote: I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)? Program more if you're still interested in finding out.
|
On April 18 2013 10:57 Kenpachi wrote: I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)? Ya most programmers I know are like "herpa derpa nerd stuff"
And I'm like "I wanna play games"
Whenever I ask this question, I ask myself, what else would I do? Cook? Be a professional game theorycrafter? There's nothing else I'm good at (either :p)
|
While I'm not a fan of people doing jobs that they don't actually want (because they took it thinking they're good for no other jobs), I do encourage people to try programming to see if they enjoy it, because it really is a satisfying job. However, please don't stay in the profession simply because you like to program.
I see a lot of programmers just scrapping by because they enjoy programming and that just stuck with them because they didn't look at, try, or want other courses. Not that anything is wrong with that if your priorities are aligned well, but I would much rather you try to pursue all the goals you have set for yourself rather than just "settle" as a programmer.
In reality, a lot of "programmers" just do programming as their job - they're pretty chill otherwise. And then you have some that live and breathe programming and computer science. It's a really mixed bunch, and you don't really have to be "herpa derpa nerd" to be one, even though it caters to that area I suppose. And the jobs you can get that are considered programming are still extremely varied. So it's good in that regard. Just try not to go into programming, or any field, with the attitude that you're only here because you have no other useful skills.
To find out what programming really is, dive into your own projects and see what disciplines of programming you enjoy the most. After getting experience by developing your own applications and diving into open-source projects, try a short internship and see if you like it. If you don't, tell us and we'll tell you if it's what you should expect in the real world :p Experience is the most important point for programmers.
|
On April 18 2013 10:57 Kenpachi wrote: I've been juggling some of my interests around and sometimes I wonder if I will truly love compsci and programming. I got a small taste of what its like from Flash Programming (class at school. had a blast just doing simple codes with introductory material) and programming my TI-83 lol. I also loved making maps back in Brood War but that probably isn't indicative of anything. How would I truly know if I should go further into programming and coding (i just read the article about programmers being a vague term but I guess I'm part of the majority that doesn't know enough ><)?
Have a look at some coding tutorials I suppose. Also be prepared computer science programs usually have some math as well (varies, but I had like 40-50%) although in practice you wont end up using that much of it. Still some stuff like linear algebra became super useful when I started programming 3d graphics, something I could not have foreseen all those years ago
|
i know this is not programming but this thread is the best place i could ask. + Show Spoiler +http://i.imgur.com/QlGpd.gif i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 ( $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format? P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.
|
On April 18 2013 21:26 Isualin wrote:i know this is not programming but this thread is the best place i could ask. + Show Spoiler +http://i.imgur.com/QlGpd.gif i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 ( $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format? P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.
Wikipedia is your friend: http://en.wikipedia.org/wiki/BMP_file_format
|
of course i checked the wikipedia article before but i couldn't figure how i am going to use it until i tried a HEX editor. thanks anyway, i managed to do what i wanted.
|
Does anyone in here have experience writing Firefox add-ins? I'm working on one and having a very frustrating problem: I have a script that by its nature (it's an implementation of bcrypt) runs slowly, and scripts running in the chrome's context run even slower, so I'm trying to dynamically load the script into the document so it'll run in the document context and (hopefully) run as quickly as the dedicated webpage version of the program. I've set contentaccessible=yes as described in the mdn docs in my chrome.manifest, but the scripts are still being blocked.
If you understood the above paragraph and think you can help, I would be eternally grateful for any ideas.
|
Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers.
EDIT: Figured it out!! But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries.
|
On April 20 2013 01:41 betaflame wrote:Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers. EDIT: Figured it out!!  But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries. Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this.
I'm watching a speeding up joomla webinar right now. In an effort to be more social, I'll post the link here + Show Spoiler + How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting. Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers.
|
On April 21 2013 08:29 obesechicken13 wrote:Show nested quote +On April 20 2013 01:41 betaflame wrote:Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers. EDIT: Figured it out!!  But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries. Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this. I'm watching a speeding up joomla webinar right now. In an effort to be more social, I'll post the link here + Show Spoiler +http://www.youtube.com/watch?v=s3gwwcahnkA&feature=youtu.be How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting. Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers.
Optimization is a huge pet peeve of mine, i see it done wrong all the time. There are many ways to make a site faster. However, 90% of those ways cost more in man hours than just buying another server, so in reality noone cares if your site only has 80% of the possible performance. Readable and maintainable code is usually fast enough that only very few usecases require you to do performance optimization. Sites of the scope of Facebook or Amazon require careful optimization but, well, you won't be working on those any time soon.
Web Service Providers often don't have special optimizations because they can interfere with the clients scripts and have bad side effects. Sites that really require the performance usually have their own servers anyways.
From experience i can tell you: Only optimize if there really IS a noticeable bottleneck, otherwise focus on writing clean code first.
Relevant links: http://www.codinghorror.com/blog/2009/01/the-sad-tragedy-of-micro-optimization-theater.html http://www.codinghorror.com/blog/2008/12/hardware-is-cheap-programmers-are-expensive.html
|
On April 21 2013 09:33 Morfildur wrote:Show nested quote +On April 21 2013 08:29 obesechicken13 wrote:On April 20 2013 01:41 betaflame wrote:Anyone have experience with PHP simple HTML DOM Parser? I am trying to parse a url and extract an img src from one of the headers. EDIT: Figured it out!!  But I am just wondering if anyone has any idea about the differences/pros/cons of simple HTML DOM Parser vs the built in DOM libraries. Not sure what the difference is between a dom parser and library is. I thought someone else would have experience with this. I'm watching a speeding up joomla webinar right now. In an effort to be more social, I'll post the link here + Show Spoiler +http://www.youtube.com/watch?v=s3gwwcahnkA&feature=youtu.be How do I make a site better? Faster? With the joomla framework? I feel like it's just going to be telling me to use cloudflare and optimize the site by removing debugging / unused features / buying more hosting. Oh god it's so boring... But I learned you can have binary versions of PHP files so that when people access them they don't have to be recompiled every time. I now wonder if this is done automatically by web service providers. There are many ways to make a site faster. However, 90% of those ways cost more in man hours than just buying another server, so in reality noone cares if your site only has 80% of the possible performance. Readable and maintainable code is usually fast enough that only very few usecases require you to do performance optimization. Both good points. Developer time is very valuable imo and so it should be used in the most useful ways.
Optimization isn't worth the time for many sites.
Right now I'm going into a course for interactive programming for python on Coursera. I was always confused by how Coursera would make any revenue. They recently added certificates though $45 each I think... Also some of these companies trying to add certification use webcams to monitor test taking and others rent out test centers.
|
On April 18 2013 21:26 Isualin wrote:i know this is not programming but this thread is the best place i could ask. + Show Spoiler +http://i.imgur.com/QlGpd.gif i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 ( $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format? P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that.
There is a better and more sophisticated way. Try googling steganography. There's a program called openpuff that does it.
|
On April 21 2013 11:42 b3n3tt3 wrote:Show nested quote +On April 18 2013 21:26 Isualin wrote:i know this is not programming but this thread is the best place i could ask. + Show Spoiler +http://i.imgur.com/QlGpd.gif i want to do a similiar thing by hiding a text in a bmp file. i tried few and all of them start with stuff like "BMZ 6 ( $ " then other characters according to colors in a text editor. anyone have any idea on the bmp format? P.S:i know there is a method using the least significant bits to hide stuff in images and audio files but i dont want to do that. There is a better and more sophisticated way. Try googling steganography. There's a program called openpuff that does it. Gotta defeat that light pink book man. If Isualin is doing something for class this may be overkill. But I guess if he's trying to hide shit from someone, openpuff is probably right up his alley. Cool stuff
|
any recommendations of LInux API intro texts?
|
I need help with something:
In a class, I have to make an add function that takes in another instance of that class, and iterate over a private member of that function, a map that takes in two string arguments. Then I have to iterate over the first string argument, and add both to the existing one. This doesn't work: + Show Spoiler +void add ( const PhonebookEntry& copyFrom ) { for ( map<string, string>::iterator itty = this->numbers.begin() ; itty != this->numbers.end() ; itty++ ) { } }
What is the correct way to iterate over this?
|
|
|
|