Eclipse, totally Disable "Smart Instert"

Monday, 9 November 2020 by julius, 1904 views

Unfortunately in Eclipse you can't simply disable the "Smart Insert" feature just like that. I know you can uncheck a bunch of things to disable a lot of those smart insert features but at the end it cannot be disabled globally! For e.g. you cannot ever disable how it adds tabs when you past content.

So this is my take on to totally disable Smart Insert feature in Eclipse:

  1. Open Eclipse and create a new java project (call it Test or org.eclipse.ui or whatever you want)
  2. Create the following directories/file within this project:
    src/org/eclipse/ui/texteditor/AbstractTextEditor.java
  3. Copy the content from the eclipse release you are using to this file, for e.g. this is version 4.17
    AbstractTextEditor.java
  4. Apply this patch to your new project:
    AbstractTextEditor.java.patch
  5. Right click your project, select Properties -> Java Build Path -> Libraries -> Add External JARs and select all jars files from your eclipse installation plugins/ directory (just use shift to select all of them at once)
  6. Select "Run -> Run As -> Java Application"
  7. Rename plugins/org.eclipse.ui.workbench.texteditor_XXXXX.jar in your eclipse installation directory (you version may change depending on release) to org.eclipse.ui.workbench.texteditor_XXXXX.jar.zip
  8. Replace the org/eclipse/ui/texteditor/AbstractTextEditor.class file within this zip file with the one from your own build located at bin/org/eclipse/ui/texteditor/AbstractTextEditor.class
  9. Rename org.eclipse.ui.workbench.texteditor_XXXXX.jar.zip back to it's original name for e.g. org.eclipse.ui.workbench.texteditor_XXXXX.jar
  10. Restart eclipse and now independent of your source editor kind (java, c, php, css, javascript) they all should be in normal insert mode.

IMPORTANT: this will prevent you from switching to Smart Insert as it simply disables that possibility because for some reason for e.g. PHP and CSS editors directly switch to Smart Insert mode even if default is not smart insert mode so had to totally disable it.

Comments (4)

Run Multiple Instances of Totem (or any other gnome application)

Saturday, 7 November 2020 by julius, 1491 views

Unfortunately all new gnome applications nowadays use the g_application_run and so they will only allow one instance at a time. For e.g. it's the case for 2 most popular used one like Totem and Nautilus which in multi monitor setup isn't that useful.

Of course you could simply rebuild your own version of Totem and add the --no-existing-session argument but that would still need you to make modification to desktop file and also rebuilding every application you would want multiinstance support isn't the best way in my opinion.

Checking out the g_application_run you can see there is an argument called application-id which is used to detect if application is already running and if it is it will simply focus instead of launching a new version.

Solution

To allow multi instances of the same application just replace the "application-id" in the binary file with whatever you wish (for e.g. application-ie" and there you go.

For e.g. here is a quick command to allow multi instances for totem:

sed -i 's/application-id/application-ie/' /usr/bin/totem

Now you can launch totem as many time as you wish which is pretty useful if you want to view one video on one tv, another one on your monitor and so on.

This method should work for any kind of gnome application, tried with Totem and Nautilus and for both of them it works perfectly so far, just remember if you application gets updated you will have to rerun the above command.

Comments (0)

Error BASE64Encoder on Eclipse 4.17 Andmore ADT

Thursday, 29 October 2020 by julius, 2423 views

Unfortunately it looks like the latest Eclipse 4.17 requires Java 11 and so Android application using Andmore ADT cannot be build. Simply switching the vm to old java isn't an option as Eclipse simply won't work.

Building an android application seems to brake around the signing part of the package with the error:
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'com.pijulius.tvguide'. sun/misc/BASE64Encoder



After some digging found out that this file (have no idea where it comes from but gets automatically created whenever you delete it so I imagine one of the plugins provides it but not sure which one or how):

/opt/eclipse/configuration/org.eclipse.osgi/126/0/.cp/libs/sdklib.jar

is the file that contains the SignedJarBuilder.java class and causes the
sun/misc/BASE64Encoder error.

Tried to look around for fixed version of this class but unfortunately Google dropped the tools all together instead of the command tools they use now and that's a total rewrite as far as I could see so using that wasn't an option.

Then found an old version of this tools build here:
https://mvnrepository.com/artifact/com.android.tools/sdklib/22.1.3

which uses BouncyCastle instead of sun's base64 implementation, you can see the source code here:
https://android.googlesource.com/platform/tools/build/+/e7556cf19d05123e3d8abdc56b718090d600fce3/builder/src/main/java/com/android/builder/signing/SignedJarBuilder.java

Now what I did is:

Step 1: simply replace this SignedJarBuilder class with the one from the old tools sdklib build (22.1.3) as follows:

com/android/sdklib/internal/build/SignedJarBuilder.class
com/android/sdklib/internal/build/SignedJarBuilder$CountOutputStream.class

Step 2: also added the class files for BouncyCastle builds from these two files:

bcpkix-jdk15on-166.jar
bcprov-ext-jdk15on-166.jar

They both were download from here:
https://www.bouncycastle.org/latest_releases.html

Finally: rebuild the sdklib.jar zip file and replaced the original one with the new one and finally it's working. Building and installing works too and should work with both new and old java too as far as I can tell.

The final sdklib.jar file (that I use, including the other jar files) can be found here:
http://pijulius.com/julius/eclipse/

ps: why not use Android Studio? well because I want to use one IDE for different projects instead of always switching app just to work on different things, that's the whole idea behind Eclipse and really hope android development possibility won't die on it's end.

Comments (0)

TouchFlo2d on VGA Windows Mobile devices

Friday, 3 October 2008 by julius, 2080 views

This is a new project I'm working on in my spear time, the great XDA Developers have extracted the so called TouchFlo2d from a HTC device and they ported it over other HTC and now even Non HTC devices so you can use the great interface on your windows mobile devices to impress people :) or for any other reason, anyway because the original interface is for QVGA devices I started to port it over to VGA devices too (as mine is VGA) and created a thread on the XDA forum for updates and fixes please go there and don't forget to thank the TouchFlo2d developers for bringing this to our devices.



This screen shot was taken on my X7510 device as you can see almost all of the images have been redone so the quality looks good (at least I hope so) there are still some bugs that need to be fixed but till now it work pretty well.

Check out this thread time to time to keep yourself updated:
ToucFlo2d on VGA Devices

Helps is always welcome as I do this in my free time (which isn't much) so if you think you can help me with something just drop me a letter or im.

Comments (0)

Pocket PC CEdit on Windows Mobile 6.1

Friday, 3 October 2008 by julius, 2083 views

CEdit is the best source editor for windows mobile devices available (correct me if I'm wrong) but unfortunately it is not compatible with the latest windows mobile 6.1 devices. It works just fine but even if you buy the license you won't be able to register it as the registration window won't show up so you are out of luck to use it for more than 15 days.



Now I had a talk with the developer "Tim Kingsbury" who is a very nice guy, he said that unfortunately he has a lot of work on other projects but will try to find a fix for this one too, unfortunately he wasn't able to work on this lately so he kindly refunded my registration fee (which as I told him wasn't necessary so he is a very correct man) but the sad part is that I still can't use the program as it simply won't let me after 15 days so I wrote a little crack that enables to use the program to be used without registration this way you can use it on your Windows Mobile 6.1 device BUT please DON'T ask me for the crack instead please go to the CEdit's page and buy the program so we can motivate "Logical Sky" to update the build for the latest devices and we support them too as it's really a must have program for those who have to do some little codings/fixings while on road, thats for sure!

PS: If you have a working license and you can't use it on your Windows Mobile 6.1 device let me know and if "Logical Sky" approves I may send you the exe file to have it working but lets hope they will fix the problem sooner :)

Comments (0)

No good news for my Rockbox themes/builds fans

Thursday, 11 September 2008 by julius, 2080 views

I know I know, I should have said this long before, so unfortunately I have to give up on the Rockbox modifications/builds/themes as I have other things to do and as one of my fans said even if it's not the time it's the interest and that's true, I'm not so interested in it anymore as for mp3 playback there are now phones with huge storage capacities so why take another "kutyuru" (thingy) if you have everything within one, so I almost never use my iPod lately and that's why I didn't care more about the look nor how it works.

I will keep the posts below for archive reasons but please don't use any builds as (I'm almost sure) they wont work at all, but I know there are a lot of discussions and other ports of my themes so here by I grant all usage privileges to anyone who wants it :) so please don't email me to set a copyright notice to the themes and get the rights from the image/picture/wallpaper owners so you can use it, I don't remember from where I got those backgrounds so as I wrote on my posts before if the owners mind they should contact me but they didn't so you are free to use them as I see.

I will now start to work on some other programs (as my free time allows it) for other portable players/phones, Windows Mobile, Android or why not even iPhone depending on what "kutyuru" I have but I'm not really a Mac fan so I wouldn't count on that :), anyways, I settled down a bit now so hopefully I will have some more time for this blog in the future and give some life back to it.

Comments (0)

jClix Rockbox Themes - iPod Video

Tuesday, 29 August 2006 by julius, 2061 views

Long time since I wrote here, so please don't be mad at me, I had a lot to do, but fortunately I got some free time between the big rush, and I managed to finish my new theme.

So this would it be:



It is a port of the original iRiver Clix theme, but it's not just a port it is more than that because I redid the whole design even the littlest pixel, but the idea is from the iRiver Clix that's true.

Again I created 11 themes with different backgrounds so if you bored with one you can choose a new one, and if you want your own background just download the psd file and make your own theme.

IMPORTAT: as you can see this theme needs some patches because it has multiple font faces on the wps and you can change the position of the menu and have different colors for the text on the wps and so on, so I will try to explain you which patch what does so you can implement them in your build. Note: these patches should support all other themes, so you should be able to use the original rockbox themes with these patches.

DOWNLOAD:
* jClix Theme Package
* Rockbox jBuild to use the themes

Patches:
* custom_display_width.patch
* custom_list_position.patch
* customline.patch
* multifont.patch
* multifont-userfonts.patch

Click on the patches for more info, they are now on the rockbox tracker and I hope they will be useful for your future themes.

Fonts: the fonts used in these themes are included in the theme package, so you shouldn't have problems using them.

NOTES:
* The album arts for the themes should be 85x85 sized, I know this is not a standard size, but the builds don't support album art anyway (for now), because I'm waiting for the new album art to come out wich should have scaling capabillities.

Copyright: again, some of the backgrounds may be copyrighted but I hope their creators won't be mad at me for using them, I really enjoy your backgrounds people and would like to thank you for making them, and if you see your background and would like to see your name here, please drop me a letter, I would be happy to have your name on my site :)

Enjoy as always!

Comments (0)

Rockbox Bootloader with fullscreenlogo and Statusbar

Friday, 30 June 2006 by julius, 2076 views

I had some free time, and this is what came out :)
I just finished to create a custom Rockbox bootloader for the iPod Video with a fullscreen logo (you know, the girl holding the iPod), and a custom status bar which I hope will look as good as the rest :)

The girl with the iPod now really holds a Black iPod video, so it's now your turn :)

Ok, this is how it looks, the bootloader splashscreen and the new fullscreen logo:


Download custom Bootloader
You can get the custom rockbox boot loader from
http://pijulius.com/julius/rockbox/ (look for: jbootloader-YYYYMMDD-$yourdevice$.bin)
Note: at the moment it's only available for iPod video (5g) but I hope I will have some time to make one for the iPod Color too.

To install the bootloader please follow the rockbox's instructions found here:
http://www.rockbox.org/twiki/bin/view/Main/IpodBoot

Download custom builds
As usually, the custom build can be downloaded from
http://pijulius.com/julius/rockbox/

The patches which are included in these builds can be downloaded too one by one from:
http://pijulius.com/julius/rockbox/patches/

Notes:
I would like to thank again to S3TUP for the great girl with the rocbox in her hand, and to Pete for the black iPod 5g suggestion, and to Ivo Burkart for his bootsplashscreen patch which was a great start to make my own.

OOoo and as always, Big Thanks to the Rockbox team, I'm so proud of this software, thanks guys/girls for the great work, and for giving us this possibility of freedom to make any changes anytime :)

That would be all for now, enjoy as always :)

Comments (0)

Green5g and jBlackGlass with Album Art

Saturday, 10 June 2006 by julius, 2061 views

At least :) a lot of people asked me to add Album Art support to my themes, so I did :) (cover image sizes: iPod video = 100x100, iPod Photo = 50x50) this is the result:



Please note the album art support has been added to the jBlackGlass ipodphoto too.

I fixed the OnScreen keyboard bug too, so now that should be displayed in the right place, and you can download a prebuild binary with the 64MB cache support for the iPod5g 60gb too.

Download Green5g, jBlackGlass and jBlackGlass iPod Photo from here, but please don't forget that you'll need my latest rockbox prebuild binnary! (look for rockbox-jbuild-YYYYMMDD-$yourdevice$.tar.gz)

Note for Prebuild binaries: IMPORTANT: you will need the latest rockbox daily build and after installing that on you iPod overwrite the files with the ones from my build.

If you wish to make your own build, you can find all the patches here.

Comments (0)

jBlackGlass for iPod Photo/Color

Thursday, 25 May 2006 by julius, 2074 views

Seth Jenkins kindly asked me to port the jBlackGlass iPod Video theme to the iPod photo, so I did :) but before I take all the credits :) I should say that I couldn't do it without his help, hi helped me a lot with testing and so on, so I would like to thank him for all his help and time with this! Thanks again Seth!

So here you go:



Downloads
* Download the whole package including all themes: jBlackGlass-$yourdevice$-YYYYMMDD.tar.gz
* Patches: Get the latest patches from here
* Rockbox prebuild binaries (with all the patches applied): rockbox-jbuild-YYYYMMDD-$yourdevice$.tar.gz (IMPORTANT: you will need the latest rockbox daily build and after installing that on you iPod overwrite the files with the ones from my build)
* Download PSD files from here

Copyright: I think I stay with the same note that I wrote at the video version of this theme.

NOTE: A lot of people asked me for the font (nedore-9.fnt) which is used by the theme, and because the fonts are provided by rockbox I didn't pack them into my themes, so VERY IMPORTANT download the latest font package from the rockbox server and you should have the right fonts.

Enjoy your iPod :)

Comments (0)
Page 1 of 2: