tag:blogger.com,1999:blog-1191282217575324523.comments2018-07-02T11:25:49.356+03:00I came, I coded, I debugged.Stas Levinhttp://www.blogger.com/profile/10303274460487282446noreply@blogger.comBlogger37125tag:blogger.com,1999:blog-1191282217575324523.post-39643566372034293502018-07-02T11:25:49.356+03:002018-07-02T11:25:49.356+03:00One thing that annoys me with IDEA is that it does...One thing that annoys me with IDEA is that it doesn't use common shortcuts (eg. Ctrl-N and Ctrl-O) as all other apps do.Aivarhttps://www.blogger.com/profile/17853578150177980026noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-75482454017295571942018-02-15T17:18:59.983+02:002018-02-15T17:18:59.983+02:00Thank you for updating your post, but you missed &...Thank you for updating your post, but you missed "*tree" instead of "*Tree*".<br /><br />Depending on your programming style, you have different expectations of what should be proposed. For example, if you do test-driven development, you do not start writing a private method but generate it via "Extract Method" (Alt+Shift+M). Also if you can write quickly (e. g. by using touch typing), you won't want the code completion to propose keywords to you. At "p", the proposal to overwrite the "hashCode" method does not meet my expectations, to say the least (I would rather type "hash" for that). In your example, none of IntelliJ's proposals make sense to me. Let me explain it with another example: in Eclipse you type "main" to generate the main method via code completion, whereas in IntelliJ you have to type "psvm" as shortcut for "public static void main". If I can remember "psvm", I can type it myself. Also at "Navigating by name"/"Open Type/Resource" we seem to have different preferences.<br /><br />Yes, javac is the default compiler in IntelliJ. Several javac bugs have been found and fixed with the help of the Eclipse compiler. So even not using the Eclipse compiler you will benefit from it. Probably you also have used JGit in other applications without knowing it. I wouldn't be surprised if IntelliJ would also use JGit in the future, just like NetBeans already does today.Anonymoushttps://www.blogger.com/profile/12035752873702041579noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-54802517582310339082018-02-15T09:52:13.669+02:002018-02-15T09:52:13.669+02:00Thanks for the comment.
I have updated the post w...Thanks for the comment. <br />I have updated the post with a screenshot of IntelliJ's stance on code completion in our particular case. I even raised the stakes and only typed "p", so now it saves 6 characters, which is a 300% increase :)<br /><br />My main argument here was that Eclipse did not really get what was going on. The context of where the caret was provided enough information to conclude that I was probably going to change the access modifier rather than generate a new method conveniently named "priva".<br /><br />As far as looking for a type goes, I think that looking for a type you don't remember the name of is a kind of distress, and an IDE should help you out of this distress by being as flexible (and supporting) as it can, at least IMHO. <br />Also, based on some experiments I did, it seems that when you type a string in the search-for-type dialog in IntelliJ, it ranks types that begin with that string higher than the ones containing it so you don't have to worry about "^Tree".<br /><br />Cool, I wasn't aware that the Eclipse compiler was included in the out-of-the box version of IntelliJ :)<br />(I think that javac is till the default though)Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-34461945294864708562018-02-15T09:05:33.590+02:002018-02-15T09:05:33.590+02:00My last bug report to eclipse took place in 2011 (...My last bug report to eclipse took place in 2011 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=361279) still waiting for it to be resolved... :)<br />(not really)<br /><br />Anyhow, here it is - https://bugs.eclipse.org/bugs/show_bug.cgi?id=531186, hope it helps!Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-25088649453875023862018-02-14T17:39:55.271+02:002018-02-14T17:39:55.271+02:00Thanks for naming the things that bother you in th...Thanks for naming the things that bother you in the Eclipse Java IDE.<br /><br />I agree with you on some points, e. g. it should be possible to switch between the Open Resource and the Open Type dialog without hitting ESC. In the mentioned case of code completion, I disagree that "te" should be typed and suitable templates should be hold back. To use code completion for typing two characters doesn't sound like a time saver to me. In the Open Type dialog "*" is not needed at the end and it's a matter of taste whether you want to have subword matching with the disadvantage that you need something like "^Tree" for "starts with 'Tree'". No wildcards are required for example in "j.l.SB" to find "StringBuilder" and "StringBuffer" in the "java.lang" package.<br /><br />Eclipse can also be used as platform for desktop application. Parts of the Eclipse IDE can also be found in other applications: the Eclipse Java compiler, JGit, the OSGi framework Equinox or the help system, just to name a few examples. Even if you hate and don't use the Eclipse IDE, you will benefit from it. By the way, IntelliJ is shipped with the Eclipse compiler. ;-)Anonymoushttps://www.blogger.com/profile/12035752873702041579noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-62435809422612187302018-02-14T17:19:07.319+02:002018-02-14T17:19:07.319+02:00Thanks for this investigation Stas, that's qui...Thanks for this investigation Stas, that's quite helpful!<br />May I try to convince you to report it on https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT for more investigation ;) ? As an experimental workaround, I suggest you try disabling the google formatter and see whether things are better; but it could be a bug in Eclipse JDT dropping breakpoints when too many lines change at once (and that would qualify as a bug)Mickael Istriahttps://www.blogger.com/profile/12563747863738375811noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-9258120452751532232018-02-14T13:11:59.472+02:002018-02-14T13:11:59.472+02:00Btw, thanks for trying to reproduce some of the st...Btw, thanks for trying to reproduce some of the stuff I mentioned.<br /><br />While I'm not sure how to pinpoint the other UI quirks (inspect popup), I did manage to correlate the disappearance of the breakpoint(s) with having the google code formatter on and configured to kick in when saving files. <br /><br />In fact every time I hit CTRL+S the following happens:<br />1. The code gets formatted.<br />2. All breakpoints, conditional or not, are removed.<br /><br />I'm not sure who's at fault here (Eclipse, google formatter, or both) but perhaps this info could be helpful.Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-32187121372715460522018-02-14T12:49:13.819+02:002018-02-14T12:49:13.819+02:00I did not see that one coming :)
Thanks for the ti...I did not see that one coming :)<br />Thanks for the tip! <br />(Updated the post to help spread the word)Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-90114648207721502502018-02-14T12:35:33.094+02:002018-02-14T12:35:33.094+02:00Thanks for the tip regarding the camel case notati...Thanks for the tip regarding the camel case notation in the go to type dialog! <br />I've updated the post accordingly. <br />(I'm ashamed to admit it didn't even occur to me to give it a try)Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-82288348423616513572018-02-14T12:30:52.320+02:002018-02-14T12:30:52.320+02:00Regarding your "Go to File" example of &...Regarding your "Go to File" example of "ResourceUtils.java:43": In Eclipse, you don't even need to open the "open file" or "open resource" search boxes first. You can directly paste "ResourceUtils.java:43" in Eclipse using Ctrl+Shift+V (Cmd+Shift+V in macOS) to invoke the "Open from Clipboard" command which will actually bring you to the specified file and line number. ;-)Noopur Guptahttps://www.blogger.com/profile/10825084609059934699noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-88626424349170788822018-02-14T11:30:51.689+02:002018-02-14T11:30:51.689+02:00Also, Camel Case is allowed and works in Eclipse I...Also, Camel Case is allowed and works in Eclipse IDE "Open Type" and "Open Resources" dialogs.Mickael Istriahttps://www.blogger.com/profile/12563747863738375811noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-8504336270091626962018-02-14T11:23:35.234+02:002018-02-14T11:23:35.234+02:00While those are all valid points which could be re...While those are all valid points which could be reported as bugs or enhancement request to https://bugs.eclipse.org/bugs/enter_bug.cgi?product=JDT , there are a few things that are misunderstood or misleading:<br />* The shortcut you see isn't the combination of 4 keys, but a combination of 3 keys and then 1 key. It makes things easier<br />* I cannot reproduce the issue you see about Inspect popup failing, it works for me (I'm not on a mac though), but it really is a bug and should be reported as such<br />* The issue you see with conditional breakpoints disappearing is a major bug, which should be reported as such. Again, I didn't manage to reproduce this one.Mickael Istriahttps://www.blogger.com/profile/12563747863738375811noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-44395695319322012852015-10-04T23:31:03.590+03:002015-10-04T23:31:03.590+03:00Hi anonymous,
Thanks for the comment.
1) While n...Hi anonymous,<br /><br />Thanks for the comment.<br /><br />1) While not a unique constraint, at this point int time I believe Kafka is pretty much the de-facto standard for scalable real-time data feeds, and its API is by far the more common and mature one, when compared to Gobblin's API, which is definitely a point in favor of Kafka as I see it.<br /><br />2) That's a valid point, once you already have the aggregated data and you "just" need to have it in Hadoop, Gobblin is indeed a nice solution.<br /><br />3) Interesting, I was not aware of this (is this work being done by LinkedIn?). Currently Gobblin's mission statement on GitHub says "Gobblin is a universal ... and loading large volume of data from a variety of data sources onto Hadoop". It would be quite exciting to see it evolve into an even more generic tool. From what I've seen the fact Hadoop is the target storage is a pretty fundamental assumption in Gobblin's design, used to provide strong delivery guarantees (similarly to what Camus did). It will be interesting to see it circumvented.<br /><br />No doubt Gobblin is an impressive piece of engineering, I just wonder how it fits best in the overall picture, which also has a great impact on its adoption. The beauty of Kafka is that it has become very common, and keeps getting more and more traction and features. Gobblin, on the other hand, plays in a very similar (if not the same) arena but needs plenty of stuff (e.g. "extractors" and "publishers") to be implemented in Goblinish, a brand new, non trivial model and API that needs to accommodate quite a few things before it becomes as universal as we'd like it to be.<br /><br />Have you adopted Gobblin in your production (or any other) environment? <br />If so, I'd love to hear about your experience with it.Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-87251079449701207842015-10-04T22:17:44.736+03:002015-10-04T22:17:44.736+03:00hi Stas,
Not sure if I agree with a couple of t...hi Stas, <br /> Not sure if I agree with a couple of things on your blogpost<br />1) You say "That is, upon adding a new source, it must be accommodated in Gobblin by implementing the logic that dictates how data is to be extracted from that particular source in terms of the Gobblin API, so it can be ingested into Hadoop." - but this is not unique to Gobblin. In the Kafka-centric picture you still have to get the data from the source to Kafka so all this work needs to be done there too - just in terms of the Kafka API<br />2) There are sources that dont really fit into the log paradigm. For e.g. it is common to get a daily dump into a ftp site. These are usually copied directly into the object store (HDFS/S3 ) without going through Kafka. <br />3) Gobblin doesnt have to write to HDFS (or S3/GCS/..)- there is work happening to let it write to Kafka too . It will also write to (and read from) Kinesis, Azure Service Bus etc . So Gobblin can fit into your first picture both as the replacement for Camus and as a way of getting data into Kafka<br /><br />I think where Gobblin shines is that it moves a small set of things (extract, simple transform, and load) into a single product that is source and destination agnostic. If you wanted to move your log transport from Kinesis to Kafka (or vice versa) or from HDFS to S3 you should be able to do it relatively cheaply<br />anonymoushttps://www.blogger.com/profile/06656650059286153479noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-15497988768341363362013-11-21T11:50:41.219+02:002013-11-21T11:50:41.219+02:00Status update: It works! :) I am not sure which st...Status update: It works! :) I am not sure which step helped, though...<br />I disabled Virtualization in BIOS. I purged NVIDIA again + I removed ~/.nv, ~/.nvidia-settings-rc and /etc/X11/xorg.conf. I also updated initframes by with update-initramfs -u. And I blacklisted nouveau in /etc/default/grub.<br />Finally I installed drivers not by apt-get but directly from http://us.download.nvidia.com/XFree86/Linux-x86_64/331.20/NVIDIA-Linux-x86_64-331.20.run<br />Now I could boot Ubuntu with Graphics in Discrete mode having nox2apic flag. Second monitor worked out of the box! :D Thanks for your help!NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-90035948225864505872013-11-15T11:30:07.281+02:002013-11-15T11:30:07.281+02:00Well, curiouser and curiouser ;)
The driver was a...Well, curiouser and curiouser ;)<br /><br />The driver was activated at some point, but I've repeated your steps like 10 times yesterday to double-check and in one moment I switched to Integrated Graphics in BIOS which was kind of desperate and utterly stupid. But this is why NVIDIA couldn't get activated. So now with NVIDIA Optimus activated in BIOS and driver "activated but not used" there is:<br /><br />00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)<br />01:00.0 VGA compatible controller: NVIDIA Corporation GK107GLM [Quadro K2000M] (rev a1)<br /><br />+ It turns out that <a href="http://i.imgur.com/rMzPZHS.png" rel="nofollow">nvidia-experimental-310 latest version is 319</a>...<br /><br />And I still cannot boot after switching to Discrete (having nox2acpi flag) :(NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-76670410926262479052013-11-14T18:21:00.807+02:002013-11-14T18:21:00.807+02:00yeah, that's no good, it should say nvidia.
J...yeah, that's no good, it should say nvidia.<br /><br />Just to make sure, mind repeating the whole procedure from scratch, purging it all (including the experimental-319), and re-installing step by step? <br /><br />I'm kinda puzzled by the fact it (a) got you experimental-319 instead of 310 and (b) didn't actually activate it as evident by your output. Something feels wrong about it.Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-72835538911921470342013-11-14T17:53:54.162+02:002013-11-14T17:53:54.162+02:00It says:
00:02.0 VGA compatible controller: Intel ...It says:<br />00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-52128503089739021042013-11-14T17:47:19.966+02:002013-11-14T17:47:19.966+02:00This comment has been removed by the author.NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-47722205849241084602013-11-14T17:39:15.313+02:002013-11-14T17:39:15.313+02:00How about you take a look at "lspci | grep -i...How about you take a look at "lspci | grep -i vga"? What does it say?Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-69288245146529561842013-11-14T17:07:23.483+02:002013-11-14T17:07:23.483+02:00And there is a nox2apic argument when I press &quo...And there is a nox2apic argument when I press "e" having selected Ubuntu in Grub menu.NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-71254540177723959282013-11-14T17:04:18.296+02:002013-11-14T17:04:18.296+02:00Sure. I don't understand much of grub.cfg, but...Sure. I don't understand much of grub.cfg, but there is a few of "nox2apic" alongside "quiet splash" there...NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-69324933864062272912013-11-14T16:56:42.705+02:002013-11-14T16:56:42.705+02:00Ah, interesting
Sorry for the dumb question, but...<a href="http://www.curiositiesbydickens.com/never-say-oops-always-say-ah-interesting/" rel="nofollow">Ah, interesting</a> <br /><br />Sorry for the dumb question, but you've also updated the grub ("sudo update-grub"), right?Stas Levinhttps://www.blogger.com/profile/10303274460487282446noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-89887221728457217932013-11-14T16:35:32.894+02:002013-11-14T16:35:32.894+02:00Hi, I run:
sudo apt-get install nvidia-experimenta...Hi, I run:<br />sudo apt-get install nvidia-experimental-310<br />yet somehow version 319 got installed and in Additional Drivers there is nvidia_319_updates with this nice message "This driver is activated but not currently in use"<br />I set up "Discrete" in BIOS and added the "nox2apic" flag in grub (tried in GRUB_CMDLINE_LINUX_DEFAULT and in GRUB_CMDLINE_LINUX) and when I pick Ubuntu from Grub screen on reboot I get blank screen :( I could only use my Ubuntu after switching back to "NVIDIA Optimus" in BIOS, but then I got <a href="http://i54.tinypic.com/azflw2.jpg" rel="nofollow">my "favourite" message</a> that stays the same even after running nvidia-xconfig thus generating xorg.conf file (the screen is then 600x340 or something, but I still get <a href="http://i54.tinypic.com/azflw2.jpg" rel="nofollow">the same warning</a>).<br />Has any of you had a problem with starting Ubuntu even after setting this in grub:<br />GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nox2apic"? I don't even try with second screen yet (though this is my final goal).<br />Thank you for your help so far!NNhttps://www.blogger.com/profile/00104985598572412968noreply@blogger.comtag:blogger.com,1999:blog-1191282217575324523.post-21638819219688934852013-09-23T12:32:27.312+03:002013-09-23T12:32:27.312+03:00Thanks, this worked nicely for my W520, I'll d...Thanks, this worked nicely for my W520, I'll definitely try it on my w530 next weekend :)<br /><br />Btw, if you have problems adjusting brightness checkout:<br />http://www.thinkwiki.org/wiki/LCD_Brightness#Nvidia_driverJonas Finnemann Jensenhttps://www.blogger.com/profile/10864775681822449392noreply@blogger.com