| [+] Jobs Discussion » Spring MVC - Question (Go to) | | Jeremy McNally |
You might also hope that your boss or your new coworker are not frequenters of this 'ere Ranch. I doubt that would help your case much either. |
| [+] Ranch Office » Add starting line to code tag? (Go to) | | Paweł Baczyński |
I had a bit of a play around with this but unfortunately without success. It appears that the Ranch forum uses an old version of Alex Gorbatchev's SyntaxHighlighter, version 1.5.1 for which the documentation lives on this old Google Code page. The [ code ] tags are BB Code which are translated into HTML when you submit your post. So the following BB Code snip: [ code=java] System.out.println("Hello world!"); [ /code] Translates to HTML: <textarea name="code" class="java" cols="60" rows="10" style="display: none;">System.out.println("Hello world!"); </textarea> And gives you the output: Now, according to the SyntaxHighlighter Wiki on configuration options we can add extra configs to the element class as colon separated items. For example if you wanted to remove the "gutter" (line numbers) and the "controls" you'd need the HTML: <textarea name="code" class="java:nogutter:nocontrols" cols="60" rows="10" style="display: none;">System.out.println("Hello world!"); </textarea> Which if I translate that back to BBCode would be: [ code=java:nogutter:nocontrols] System.out.println("Hello world!"); [ /code] Output: At this point I'm feeling confident until I notice that the config item for defining the starting line number is "firstline[x]". So to start a Java snip on line 5 you'd need [ code=java:firstline[5]] which doesn't work because the BB Code closes the code tag on the first closing square bracket. So trying: [ code=java:firstline[5]] System.out.println("Hello world!"); [ /code] gives: Bummer. I though that you would be able to just use the plain HTML and bypass the BB Code altogether by unchecking the "Disable HTML in this message" option in the post editor. But that didn't work either. For now I'm out of ideas.... |
| [+] Jobs Discussion » Career at crossroad (Go to) | | Tim Cooke |
I'm afraid that due to the Ranch's Job Discussion Policy we are not allowed to discuss specific companies. I would expect the company names in your post to shortly be censored out. What we can do though is discuss the differences in the projects you have been offered and the business domains they are in, so perhaps tell us a little more about those and leave out any mention of the companies. |
| [+] Bunkhouse Porch » Java For Dummies: Just how much of a dummy do you have to be? (Go to) | | Barry Burd |
I did not intend to post this in the Bunkhouse Porch forum. Not sure what happened there but thanks for moving it to it's correct home, whoever did. |
| [+] Jobs Discussion » Spring MVC - Question (Go to) | | Jeremy McNally |
Doesn't sound like you managed to get much done since your discussion on the same topic last week. Did you have any of the discussions I recommended with your boss and the new girl? Was your boss aware that you had no means to actually practice using Spring during the 2 weeks you had? If I were in your position I would be pestering the new girl to teach me how to use Spring to achieve my tasks, seeing as though she's the "expert". Perhaps even trying to get some pair programming going on with her. I really think you need to have a proper talk with your boss because the disparity between what he expects and actual reality is going to help nobody and get you very stressed in the process. Maybe suggest that you and the new girl work together initially to help get you up to speed with Spring, with the added bonus that it'll stop her wasting time on the phone or on social media. Who knows... you might even get on. |
| [+] Bunkhouse Porch » Java For Dummies: Just how much of a dummy do you have to be? (Go to) | | Barry Burd |
Hi Barry, I'm wondering who the target audience for your book is? Are you assuming some programming experience, or is it for absolute beginners who have never programmed a thing in their life? At the company I work for we tend to take on some junior and graduate software engineers each year. They come in with some limited programming experience but not always Java. Would your book be suitable for those guys who are familiar with the basics of how to code but need to learn the Java specific syntax, constructs, and paradigm? Cheers Tim |
| [+] JDBC and Relational Databases » exception is occurred. Please help. (Go to) | | waqas imtiaz |
waqas imtiaz wrote:SELECT ? " + "FROM ? " + "WHERE ? = ? "; In a PreparedStatement you can only use ? as placeholders for data items in the "where" clause of your SQL statement. You cannot use ? as placeholders for column or table names. You'll need to include the column and table name directly in your statement, for example: |
| [+] Meaningless Drivel » How do you find time to keep yourself updated with things? (Go to) | | Tim Cooke |
| |
| [+] Agile and Other Processes » XP principles implementation (Go to) | | Tim Cooke |
Your question doesn't make much sense. A lot of the principles are not directly about coding so you cannot "implement them in Java". What is it exactly you are trying to achieve? |
| [+] Meaningless Drivel » How many monitors do you use? (Go to) | | Jim Venolia |
chris webster wrote:How many screens can one man use, before you call him a nerd? A nerd's optimal screen count is n+1 screens where n is the current number of screens. |
| [+] macOS » Applications of Fink on Mac OS. (Go to) | | Gregg Bolinger |
Fink appears to be a package manager for OS X in much the same way as aptitude is for Debian and YUM is for Fedora, for example. The idea is that once you have fink installed you just ask fink to install meld and it goes and retrieves all the required packages and installs them on your Mac. There are a number of systems like this available for Mac, my particular favourite being Homebrew. Another widely used one is MacPorts which I didn't like that much but I guarantee somebody will disagree with me. It's pretty popular too. |
| [+] Meaningless Drivel » How many monitors do you use? (Go to) | | Jim Venolia |
In my last workplace I had two 19" monitors which I liked. It was handy to have two things open full screen side by side such as the app and an IDE when debugging, or a tail on the logs. At my current workplace I have a 15" Laptop with a 27" external monitor. With a screen that big you really don't need two of them as it's plenty big enough to get two applications open side by side on it like I used to with the dual monitor setup. Having the laptop screen is just an added bonus but to be honest I don't make much use of it, just have my IM client and pomodoro timer on it. Recently at work we've been getting the option of having a single 27" monitor or dual 24" monitors. I like the single 27", the dual 24" is a whole lot of head turning. At home I just have one 27" monitor. Like I said, it's plenty big enough. |
| [+] Spring » Questions about Spring MVC (Go to) | | Jayesh A Lalwani |
Yes and No. Yes, I can answer these questions. No, I do not have time to do so. What you have essentially asked here is "Teach me Spring DI and Spring MVC" which is a very large task indeed. Given that I, like everybody here, volunteer my time I'm afraid this is just too large a task for me to bite off. To get the most out of this site I suggest that you find some tutorials to work through to learn how to use Spring for DI and MVC (I recommend DI first) and then ask more specific questions as you go along. You will get a great response on The Ranch if your questions are along the lines of "I'm trying to achieve specific thing X, I've tried with code Y, but I'm getting result Z. What gives?". Lastly, if you're at the mercy of your new gal's bequest then find out whether she's intending to use XML or Annotation based configuration for your Spring. No use learning the wrong thing. |
| [+] Spring » Questions about Spring MVC (Go to) | | Jayesh A Lalwani |
I believe the failure in this scenario is the decision to start using a new framework that not all team members are familiar with. Especially when you're expected to start using it for development within a week or so. Does your boss know that you do not know how to use Spring? I'm surprised that a manager would dictate the usage of any tool knowing that some team members are not familiar with it, especially without providing training first. Given that this new team member is the one insisting that you use Spring, when the rest of the team (you) are not familiar with it, then I would at least be asking her to provide some training on how to use Spring. In any case you need to talk to your boss. Being assigned development tasks that are at risk of not being completed in time, or at all, will be no help to anyone. Best be up front about it now rather than later. |
| [+] Lambdas and Streams » Java 8 is going to be released TODAY! (Go to) | | Jesper de Jong |
Now it's just a waiting game until the infrastructure guys will allow JRE 8 on the Production boxes so we can start developing with JDK 8. I can smell a couple of side projects coming on. |
| [+] Lambdas and Streams » When will Java 8 be the de facto current version? (Go to) | | Claude Moore |
I think when you say "De-facto" version you really mean "most common" version. And that really depends greatly on what industry and type of company you are looking at. For example, if I were standing in a shared office space with a bunch of start-ups then I would expect them to be all over java 8 (when released) if they've not already shunned it as "uncool" and moved on to the next new hipster language that comes with stickers for their Fixie bike. But in contrast, if I were at a bank I would expect the uptake of major new language versions to be significantly slower. Like years slower. |
| [+] Meaningless Drivel » WA #2 ..... word association (Go to) | | Tim Cooke |
| |
| [+] Meaningless Drivel » what is belief? (Go to) | | Martin Vashko |
That doesn't sound right to me either. I would see it more as: Belief = Hope or Fear - Evidence |
| [+] Agile and Other Processes » office "neighborhoods" (Go to) | | Jelle Klap |
This is not something I've heard of Jeanne. It sounds a little like an ad-hoc team room sort of setup. The only scenario I can think of that would benefit from this sort of thing would be if you have very dynamically changing teams and projects. In this case you'd be working with different teams on different projects quite regularly so it might be ok if you wanted to "set up camp" wherever you wanted. However, in all the places I have worked the projects are just not that dynamic. They're always long term projects, at least for a number of months. For these kinds of projects it's good to have a permanent base, like a team room, or at least just being sat next to each other. What prompted the question? |
| [+] Meaningless Drivel » What's your favorite TV Series? (Go to) | | J. Kevin Robbins |
Loved The Cat in Red Dwarf. Also loved the fact that Bodie and Doyle seemed incapable of driving their cars normally. Handbrake turning their MkII Escort into a parking space to get a pint of milk from the shop. |
| [+] Meaningless Drivel » What's the magic behind you? (Go to) | | pawan chopra |
Best not get those clones mixed up Jayesh. You'll get expelled from the ranch. |
| [+] Java in General » 100% Java operating system (Go to) | | Alexey Bezrodnov |
I've been thinking about this for a few days and I have something that I can't get my head around. It's to do with the claim that this OS solves the "legacy hardware" problem by writing it in the "platform independent" Java language. Here's my understanding of how a normal Java application is created and run. - Write Java code - Compile it into bytecode using a JDK - Run bytecode using a JRE that is running on my OS So for a 100% Java OS. Here's where I get stuck - Write 100% Java OS in Java - Compile it into bytecode using a JDK - Run bytecode how? The JRE is a platform specific piece of software who's task is to translate the bytecode into something that my OS running the JRE can understand. But if there's no underlying OS then what runs the Java OS? From reading your other thread over on osdev.org it sounds like you have written something yourself that will translate/compile that bytecode down to machine instructions? (Just for x86 it seems) If this is the case then have you solved the "legacy hardware" problem at all as we'll still have to go and write compilers/interpreters for all of those platforms anyway? |
| [+] Meaningless Drivel » Is Laptop required to Practise Programming (Go to) | | Heena Agarwal |
This thread is going a little off topic here but I'm going to run with it and join in with the nostalgia trip. My first computer was an Amstrad CPC 464 with a green monochrome screen that my dad bought me when I was about 8. I didn't realise it at the time of course but in hindsight I was very fortunate to have it as I'm sure it cost him a non-trivial sum of money to buy it. I dabbled a little with programming BASIC on there and copying out programs from the back of a magazine, although I don't remember ever getting any of them to work. Spent most of the time playing Grand Prix Simulator with my friend. |
| [+] Meaningless Drivel » Happy birthday web (Go to) | | Jeanne Boyarsky |
| |
| [+] Lambdas and Streams » Java SE 8 for the Really Impatient: Java 8 compared with other JVM languages (Go to) | | Cay Horstmann |
Hi Cay, The major new features, as I perceive them, coming in Java 8 are Lambdas and the Stream API. Given that I can leverage such features on the JVM using Scala or Groovy etc. etc. is there anything that might compel me to continue to use Java over these other languages? Thanks Tim |
| [+] Meaningless Drivel » How's the weather? (Go to) | | Jelle Klap |
Yesterday was very pleasant. Around 10C (which is mild for Northern Ireland). Some comments around the office such as "Spring has sprung!", and "what's that big yellow thing in the sky? That's new!". And then on my home last night I followed a gritter down the main road. Sure enough, this morning was freezin'. Did this on us last year too. Lured us all in with some lovely Spring like sunshine..... then boom... snow! |
| [+] Beginning Java » no argument constructors (Go to) | | Winston Gutkowski |
Read that article again. You'll see down near the bottom it says: Oracle Docs wrote:If a class does not explicitly declare any, the Java compiler automatically provides a no-argument constructor, called the default constructor |
| [+] Beginning Java » Referencing open source code (Go to) | | Dave McNamara |
I'm sure your college will be able to give you the definitive answer to your question. |
| [+] Meaningless Drivel » Corrupt a wish (Go to) | | Ahmed Bin S |
Granted. But now you cannot bend it. I wish I could get SyntaxHighlighter to play nice with Blogger |
| [+] Programmer Certification (OCPJP) » Advice Please (Go to) | | Nam Ha Minh |
I think it really depends on what part of the world you live in. Here in the UK it has been my experience that companies aren't that interested in whether you have an OC-whatever qualification and prefer to take you on experience and merit. I do not have any of these qualifications and I've yet to be asked about it. You should probably do some asking around locally to you to see what is generally preferred. OCxxx qualifications or experience. Most likely it'll be experience first, qualifications second. But you won't know that unless you ask. |
| [+] Meaningless Drivel » What's your favorite TV Series? (Go to) | | J. Kevin Robbins |
| |
| [+] EJB and other Jakarta/Java EE Technologies » I need general topic on ejb (Go to) | | melad ezzat |
Unless you are needing to learn EJB because your current project uses it, I wouldn't bother. It's quite an old technology and there are plenty of better alternatives available that will help you with Dependency Injection, Transaction Management, etc etc. Spring is but one example. |
| [+] Meaningless Drivel » Please correct these English sentences (Go to) | | Bobby Sharma |
Normally the two things are related when you use 'let alone' as has been discussed. But it can also be used with unrelated tasks usually in the context of making an insult. Such as: "He can barely tie his own shoelaces, let alone run a company" |
| [+] Meaningless Drivel » [Question]when You eat candies(English language) (Go to) | | Bobby Sharma |
If we're talking about British English then we don't say candy at all. We call them sweets. I might say that I'm savouring my favourite flavour sweet. |
| [+] Java in General » 100% Java operating system (Go to) | | Alexey Bezrodnov |
I am asking these questions because I am interested in what you have done here. Unfortunately I am not prepared to read a 25000 word essay in order to learn the fundamental reason for the projects existence and to learn what is particularly interesting about it. I was looking for the "elevator pitch" from you. You know what I mean by that, the 10 second statement you'd say to me if we met in an elevator and I asked you what it's all about. I needed something to inspire me to put the time in and read those docs. Like Paul, I did start to read the docs but after half an hour of difficult reading I realised I'd hardly made a dent in them, after which I lost all will to carry on. So I didn't. alex jembryos wrote:It is described in the documentation. If you have enough patience it is better to read the docs. I fear that this is a sign of things to come with this project as I've seen variations of this statement from you multiple times in this thread alone. Is this the level of support we are to expect if we get involved in the project? Are my "What about x?" questions (and there'll be a lot of them) going to be met with "Read the docs and you'll understand" every time? You have brought this project to the forum and this is your opportunity to stir up some genuine interest but the only way you're going to do that is to engage in some proper discussions about it. Answer the questions. Tell us all about it. Tell us your motivation. Tell us why you did it. Be excited about it. Tell us why we should be excited about it. At this point I don't have a good feeling about the project and am not feeling inspired to find out more (i.e. read the monstrous docs). Help us out. |
| [+] Java in General » 100% Java operating system (Go to) | | Alexey Bezrodnov |
I'm going to go out on a limb here and make the assumption that your OS is not orders of magnitude faster than any existing OS existing today. So my question to you is: What problem have you identified with existing OS's that you have solved with your OS? (I'm also assuming that You haven't poured countless hours into this project just for the craic) |
| [+] Java in General » 100% Java operating system (Go to) | | Alexey Bezrodnov |
The documentation reads like a University dissertation, which I'm afraid is not much of a compliment. (I managed to read/scan some of it before the website went AWOL) Unfortunately given that the documentation, especially the installation instructions, is quite poor I am not even sure exactly what I'm supposed to expect from this project. - Is it actually a full new OS from the ground up? - Is it just another layer of abstraction on top of a JRE running on some other OS? - What does it look like? - What should I expect to be able to do with it? - How do I use the OS? - Is it POSIX compliant? - Is it DOS compliant? - Is there a window manager? - Any sort of UI at all? - How does it compare to other OS's? - Pro's and Con's against existing OS solutions? And most importantly - Why should I care about it? (Also: Given the similarity between your name 'alex jembryos' and your project name I'm going to guess that you are not using your real name. We like real names here, so please do) |
| [+] Oracle/OAS » Can Joins be performed on views also. (Go to) | | chris webster |
You appear to have asked and answered your own question. |
| [+] Java in General » Java Compiling into class files (Go to) | | Winston Gutkowski |
Are you using the exact same compiler and decompiler on each machine? Are the two machines the same architecture? You will observe differences in the way things are implemented by different people for different platforms. Perhaps on one machine you're using the Oracle JDK and the other OpenJDK? Perhaps one machine is Linux and the other Windows? Identify the variants and you will have answered your own question. |
| [+] Java in General » G1 Garbage Collector - Parallel Compacting traces (Go to) | | ckt bowel |
In my experience it's not an exact science but it will show you how the GC views your objects and will allow you to see if you're getting lots of "stop the world" events going on. Best thing to do is to fire it up and have a play with it, see what you see. If you have any particular queries about what you're seeing in the tool then I'll try my best to explain what you're seeing. |