Tuesday, July 7, 2015

How to fix JAVA garbled/broken text rendering on buttons in swing (eclipse, netbeans)


As you start exploring the world of Swing, JFrames, JButtons etc, it's probable that you ran into a problem where the text on your buttons and frame are all garbled up, broken, ripped, whatever else you call it.

This happens when there's a conflict between swing's rendering and your graphics card, but fear not, below are a list of fixes and you may chose what works best for you!

Fix 1 - Use a dedicated GPU with java (Semi recommended)

Open up your dedicated graphics card's control panel (in my case, NVidia), then select or add a new program, browse the following folder : "C:\Program files\java\jre1.8.0_20\bin\javaw.exe" (jre1.8.0.20 is your java version, so it depends.) then select "dedicated gpu" as preferred graphics processor.

This will solve the problem in eclipse, but sometimes not in Netbeans, so let's move on to the next solution.

Fix 2 - Disable cleartype (Not recommended)


Another temporary fix to this problem is to disable cleartype, a visual text amelioration in Windows machines, you can find this by going to your start menu and typing "Cleartype", from there, you can edit or temporarily check/uncheck the "enable cleartype" option. This will fix your problem, but then you will be left with ugly font rendering while browsing the internet and using your computer.

Fix 3 - Update your graphics card driver (Best fix)


This method is the simplest but also what I consider the "norm" fix for this problem, as it solved mine without having to always use my dedicated graphics card or disable cleartype.

You just lookup your Graphics card model, go to google and search for drivers for that one card, remember to get your drivers from official websites if possible in my case "intel HD 4000 driver", after installation, you will need to reboot your computer and then you're good to go! no more ugly text rendering.

Let me know if this hasn't fixed the problem but I hope it worked for you too.

Friday, July 11, 2014

Realistic train interior in 3ds max & mental ray

(Click image to enlarge)
Here comes a train interior I've been working on for a few hours/days in the past few days to participate in a contest.

The contest is about architecture (interiors or exteriors are both accepted). I choosed interior and modeled a semi luxury train interior. Render engine used was mental ray and 3ds max 2013 for modeling and texturing.



The walls are made of planes,I extruded lines to come out with the window's shape, keeping everything smooth but low in polygons.

After the basic room setup is done, I moved on to setting up the lighting and finding the perfect parameters for the train's interior.
I started to apply the base materials upon satisfaction with the lighting, note that the room seemed darker because of the ambient occlusion material I used earlier causing all the shadows around.
Then I imported some seats that I modeled using boxes with chamfered edges.
 I then rearranged the seats, changed the material to a less "plasticky" one, applied some wood materials and lamps, further on I started to extrude the ceiling, again using simple forms to reduce render time.
I then proceeded to add a plane with a landscape texture outside the windows, using self illumination. and Voila, most of the things are done, minor decors were added afterwards for the final image (Seen at the top of post)

Wednesday, May 28, 2014

How to fix "Unfortunately, Trebuchet has stopped" for Android

If you are reading this article, it is most likely because you just tried out that flashy new ROM (mostly Cyanogen) for your android phone, and chances are that you ended up having your phone displaying "Unfortunately, trebuchet has stopped". You press the okay button, but it just keeps returning until you try to reboot the phone and the same goes over and over again.

Well fear not! I have a step by step solution that might just come in handy for you. So let's start!


 Lay your finger on the top right of the screen and swipe it down. This might be a bit of a challenge since the popup error might popup anytime you do it.
 Go to your settings by clicking on the settings icon.
 Scroll down and go to your app settings, as shown above.
 Slide to the far right tab and scroll down until you find trebuchet ,click on it.
 Press "force stop" to stop the application, then move down to the cache and storage settings.
Now press "Clear data" and "Clear cache" to free up your Cache and Data that Trebuchet uses.

There you go! I hope I've spoonfed you enough, after this you may reboot your phone or if it works just like that, you can just keep it.
------------------------------------------------------------------------------------------------------------------------
Si vous lisez cet article, il est probable que vous venez d'essayer une nouvelle ROM (surtout de cyanogen) pour votre téléphone Android, et les chances sont que votre telephone n'arrete pas d'afficher "Malheureusement, trébuchet s'est arreté". Vous appuyez sur le bouton ok, mais il ne cesse de revenir jusqu'à ce que vous essayez de redémarrer le téléphone et la même chose s'affiche encore et encore.

Eh bien n'ayez pas peur! Cette article vous demontre étape par étape la solution qui pourrait bien être utile pour vous. Commençons donc!


Posez votre doigt sur le coin supérieur droit de l'écran et faites glisser vers le bas. C'est peut-être un peu un défi puisque l'erreur contextuel peut apparaître quand vous le faites.
 Allez à vos paramètres en cliquant sur l'icône des paramètres.
Descendez et allez à vos paramètres d'applications, comme indiqué ci-dessus.
 Faites glisser jusqu'a l'onglet tout à droite et descendez jusqu'à ce que vous trouvez trébuchet, cliquez dessus.
Appuyez sur "Forcer l'arret" pour arrêter l'application, puis descendre vers les paramètres de cache et de stockage.
Maintenant, appuyez sur "Effacer les données" et "Effacer le cache" pour libérer la mémoire cache et données qu'utilise Trebuchet.

J'espère que cela vous a aidé, après cela, vous pouvez redémarrer votre téléphone ou si il fonctionne comme ça, vous pouvez simplement utiliser le telephone.

Friday, January 10, 2014

Fixing Kali linux errors. (startx not found, "oh no! something has gone wrong" etc)

After your fresh install of kali, you might run into some problems.
One of them consists of the login screen missing and returning:

"Oh no! Something has gone wrong.
A problem has occured and the system can't recover. Please contact a system administrator"
To fix this issue (a temporary fix), press CTRL+ALT+F1, it will take you to the terminal. From there, check if you can use the command "startx"

If you get the following error:

root@kali:~#startx
-bash: startx: command not found
The problem would be that you don't have the x window system functioning yet, install it by using the command:
  apt-get install x-window-system
Let it install and from there, you should be able to access your graphical user interface using "startx"

Don't forget to make sure that all your packages are up to date.
Please leave a link if you copy this tutorial.


Apres une installation de kali linux, vous avez peut etre rencontrée la probleme suivante:


"Oh Mince, quelque chose s'est mal passé
Oh mince! Quelque chose s'est mal passé. Un problème est survenu et le système ne peut pas se récupérer. Déconnectez-vous et essayez à nouveau.
"
Pour resoudre cette probleme (resolution temporaire), appuiyez sur CTRL+ALT+F1, pour ouvrir le  terminal.Dans le terminal, voyez si vous pouvez executer la commande "startx"

Si il retourne l'erreur suivante:

root@kali:~#startx
-bash: startx: command not found
Il est possible que vous n'avez pas encore la systeme de fenetre X (x window system) installée, ulilisez cette commande pout l'installer:
  apt-get install x-window-system
Laisse installer, Apres installation, vous pouvez maintenant acceder a l'interface graphique avec la commande "startx"

Verifiez que tous vos paquets sont mis a jour.
Veuillez laisser un indice si vous copiez ce guide.

Saturday, November 16, 2013

Arch linux in virtualbox, with virtualbox guest additions.

Just done fresh installing Arch linux with XFCE on my i7, still haven't installed graphic drivers for my NVIDIA card, everything seems to work fine so far,this looks promising so far :)

Teste de Arch linux avec xfce4, l'installation s'est terminé avec success et tout marche bien jusqu'ici.
C'est promettant :).

XFCEたLinuxのインストールが行われますVirtualBoxのguestadditions.isoため、https://wiki.archlinux.org/index.php/VirtualBoxを訪問



Here goes a screenshot

Sunday, October 27, 2013

Custom Call of duty 4 menu screen & textures mod.

Hello there all, It's been some while again since my last blog post. Been busy with things as usual.

I've been working on a small Call of duty 4 splash screen and menu modification.

This one mod is still work in progress so it's not yet officially "selectible" but more of a bunch of files to copy and replace. Featuring:

-Custom splash screen
-Custom menu,background, moving and overlay objects.
-Custom model textures and environement (same map, different graffiti on walls etc etc)
-Black ops multiplayer voices, textured ported to COD4

Here goes some screenshots (more to come)

:)

Salut à tous, Cela fait quelque temps encore depuis ma dernière article.
J'etait très occupé avec mes examens universitaires et tout, le mois dernier, mais au moins je suis finalement libre.J'avais rien de special a faire alors je decida de bosser sur un petit modification de call of duty 4, et modification des menus. Cette-mod est encore en development et n'est pas encore officiellement "lancée" un tas de fichiers à copier et remplacer.

Dans cette mod:
-écran de démarrage Menu personnalisé, fond, le déplacement et objets de superposition
-textures personalisé du modèle et environement (même carte, graffiti différent sur ​​les murs, etc etc)
-Voix off de Black ops sur COD4 Voilà quelques screensots (plus à venir)


こんにちは。 これはCOD4のパーソナライズメニューです ここでいくつかの写真があります





Thursday, June 6, 2013

Pentax K-50 DSLR camera - leaked review from a french website.

French website Digit-Photo.com has posted a review on what appears to be a new Pentax DSLR, which goes by the reference, Pentax K-50 (pentax k50), which seems like an updated body version of the pentax k-30.

The full review was found here:
http://digit-photo.com/Appareils_photo_reflex_numeriques-aFA0047/PENTAX_K_50_DAL_18_55mm_WR_Noir-rPENTAX10893.html



Unfortunately for you, the website was in french and it's no longer available, plus, google translate didn't quite do the job. So here's a better manual translation of the specs:

PENTAX K-50

Weather sealed housing


Weather sealed housing with 81 seals for a complete device protection against splashing water, snow, dust and sand.

Outstanding image quality and video

CMOS APS-C 16 MP sensor for fully detailed images
regardless of which lens are used.
Image stabilisation.
Full HD video (H.264) for very high quality videos.
ISO sensitivity up to 51,200 with outstanding noise reduction from the CMOS sensor

Speed ​​and accuracy


Burst mode up to 6 frames / sec. 
Shutter speed up to 1/6000  to enjoy
fully moving subjects.
New SAFOX IXi + AF for fast and accurate AF.

User comfort and ergonomics.


3'' LCD with 920,000 dots vision extra-wide 170 °
100% pentaprism viewfinder coverage.
Double wheel for quick access to various settings.
Dual power Lithium-ion or AA batteries.

> Type
DSLR autofocus interchangeable lens
Stainless steel chassis and magnesium alloy structure
Housing splatter with 81 seals
Lens Bayonet KAF2
Lenses compatible bayonet KAF3, KAF2, KAF, and motorized zoom KAF2

> Image Sensor
Type and size of the CMOS sensor 23.7 x 15.7 mm sensor with primary color filter
PRIME image processor M
Number of pixels Approx. 16.28 Megapixel - effective, 16.49 total megapixels
System stabilization by moving the sensor (gain 4 speed / shooting freehand)
Anti-dust cleaning system vibration (Dust Removal II)
Super-Protect processing (SP) sensor
Sensitivity range ISO auto, manual. (100 to 51,200)

> Registration
RAW image formats (DNG), JPEG (Exif 2.3), DCF 2.0
RAW and JPEG (simultaneous available)
Setting the JPEG: 16M (4928 x 3264), 12M (4224 x 2816), 8M (3456 x 2304), 5M (2688 x 1792 pixels)
Levels of quality RAW (12 bit): DNG, JPEG: 4 levels of quality (good, very good, excellent, Premium), RAW: 16M (4928 x 3264)
Color Space sRGB, Adobe RGB
Support Compatible with SD, SDHC and SDXC, Eye-Fi cards
> LCD
Type 3 inch Color LCD (7.6 cm diagonal), 921 000 points
Low color temperature polysilicon TFT,
Screen calibration
Field of view 100%
Angle Vision Extra-wide 170 ° horizontal and vertical
Live View AF contrast detection + Face detection, tracking, selection spot. Angle: approx. 100%, Magnification (2x, 4x, 6x), graph display (4x4, framed, graduated), warning areas over / under exposed histogram.

> Viewfinder
Type: pentaprism
Focusing Screen Interchangeable Natural Bright Matte III
Approximately 100% coverage
Approximately 0.92 X magnification (with FA 50mm f / 1.4)
About Eye Relief 21.7 mm from the lens center
Approximately 1.5 Diopter -2.5 m-1
Electronic level display horizontal
Viewfinder Information Benchmarks beach development, Spot AFAF

> Focus
Type SAFOX IXi + TTL phase-detection
AF Points 11 points individually selectable, automatically or
center point
Brightness range 1 to 18 EV (ISO 100)
Auto AF modes (single, continuous), manual
Support AF assist LED in low light (built-in flash)

> Exposure Control
Metering Modes TTL 77 segments
Multi-choice central measures, weighted or spot
Measuring range from 0 to 22 EV (at ISO 100 with a 50mm f/1.4 lens)
Exposure modes Program (P), Shutter Priority (Tv), Aperture Priority (Av), Sensitivity Priority AE (Sv), Shutter Priority & opening
Auto Exposure (TAv), Manual (M), Bulb
Auto Picture mode: self-selection. from Standard, Portrait, Landscape, Macro, Sports mode, Night Portrait, Noc turne Sky Blue Forest
Scene Modes: Portrait, Landscape, Macro, Sports, Night Portrait, Sunset, Blue Sky, Forest, Night Scene, Night Scene HDR *, Night Snap, Food, Pet favorite children, Surf & Snow, Silhouette, Candlelight, Concert, Museum
Exposure Compensation ± 5 EV (1/2 or 1/3 EV)
Memo. the Exposure Lock Detected exposure value by pressing the AE-L button
Shutter Type Electronically-controlled focal-plane
Auto and manual shutter speed from 30 seconds to 1/6000e
(In increments of 1/3 or 1/2EV), Bulb (in M mode)

> Flash
Built-in flash guide number of approximately 12 (ISO 100 / m)
Retractable integrated serial control measurement system P-TTL auto flash
Flash Coverage Wide-angle lens (28mm equivalent in 35mm)
Flash Modes P-TTL, manual (on / off), red eye reduction, slow sync, 2nd curtain sync, high-speed sync,
and wireless sync with PENTAX-compatible external flash
Flash synchronization at 1/180 sec, high speed, P-TTL wireless
Exposure Correction + / - 2EV or + / - 1 EV (in increments of 1/2 EV)
> Power Supplies
Batt battery. Rechargeable Lithium-ion battery D-LI109,
* With Battery D-LI109 Battery: approx. 410 pictures (50% flash), 480 im.
no flash, 270 min. in playback mode
With AA batteries: approx. 710 pictures (50% flash), 1250 im. without flash
560 min. in playback mode
Other Tray 4 AA batteries (for 4 batt. AA lithium, Ni-MH rechargeable or alkaline gible) and adapted. K-sector AC128E optional

> Interfaces
USB 2.0 (high speed compatible) USB connection MSC / PTP
Video output NTSC / PAL

> Settings shooting
Modes Single, Continuous (Hi, Lo), Self-timer (12sec., 2sec.), Remote control of (0 sec., 3 sec.), Auto Bracketing (3 views)
Fast burst speed: approx. 6 fps JPEG, slow cadence: ca.3 fps JPEG
Balance Pre-recorded white (light, Shade, Cloudy, Fluorescent [D: daylight, N: white daytime, W: white light L: warm white], Tungsten, Flash, CTE, Manual, Color Adjustment. end (± 7 steps on AB axis or GM), auto (CMOS sensor and light source detection sensor combination), Manual (configuration using the screen up to 3 settings), color temperature, Copy balance of white a registered. picture
Customization functions 22
Memory Mode 12 modes
Custom Image Bright, Natural, Portrait, Landscape, Vivid, Coul. Vibrant, Muted, Bleach Bypass, Slide, Monochrome, Trait.croisé
Noise reduction Shutter speed slow, high ISO
Pl settings. Dynamic Levels corrected areas under or over-exposed
Correction Lens Correction distortion, chromatic aberration adjustment
Digital filters Extract Color, creative photos, Retro, High Contrast, Shadow, reverse color, color. Auto Adjust.
Shooting Auto HDRHDR 1, 2 HDRHDR 3, patch composition, bracketing value
ting expo. + / -1 To 3 EV
Multi-exposure Number of shots: 2-9, adj. Auto Exposure.
Interval Interval: 3 sec to 24 hr, Shots: up to 999 start: immediate,
from the zone set
Fixed Horizon SR On: Correction to 1 degree, SR Off: Fixed rows to 1.5 degrees

> Video
File Format MPEG-4 AVC/H.264, up to 25 minutes **
Recording Pixels: Full HD (1920 x 1080p, 16:9, 30/25/24 fps), HD (1280 x 720p, 16:9, 60/50/30/25/24, VGA (640x480p, 4:3 , 30/25/24 fps)
Quality levels Good, Very Good, Excellent
Its stereo microphone, volume control of the reg.
Video processing Custom Image "Custom Image" (Bright, Natural, Portrait, Landscape, Vivid, faded, slide, monochrome), cross processing, digital filters (retro, creative photos, high contrast, color extraction, color)
Video Interval Interval: 3, 5, 10 or 30 sec, 1, 5, 10 or 30 min or 1 hr recording time:. 4 sec to 99 hr, starting interval: immediate, set schedule * The format of file is Motion JPEG (AVI).
Video Editing Divide or delete video, JPEG image extraction

> More info
World Time 75 cities, 28 time zones
Languages ​​English, French, German, Portuguese, Spanish, Italian, Dutch, Danish, Swedish, Finnish, Polish, Czech, Hungarian, Turkish, Greek, Russian,
Korean, Chinese (simplified and trans.), Japanese
User Mode Up to 2 trimmings recorded.
Personal. button / dial button RAW / Fx (point file format Bracketing expo., PREVIEW. optical PREVIEW. Digital, adj. Compos., AF point selection), AF / AE-L (activate AF1, AF2, deact. AF button Lock expo.AE)
Playback Display 1 image, multiple (4/9/16/36 or 81), Grossiss. (Jq'à 16x faster zoom), Rotate, Histogram Indicator areas over / exp., Copyright, Calendar, file playback, slideshow, eye-fi transfer
A picture Delete all, selection, file
Digital filters. (Read) Monochrome, extract color, creative photos, Retro, High Contrast, Shadow, invert color, color, amplification tones, sketch filter
watercolor, pastel, posterization, Miniature, Soft, Sparkle, fish-eye filter stretching adjusted. Basic Settings
Level electronic viewfinder display (horizontal uniqu.) LCD screen (horizontal and vertical)
Processing RAW file format (JPEG) image capture settings, Lens Correction (distortion, chromatic aberration), Custom Image, White Balance, Sensibili tee, Reduc High-ISO NR, Compensation shadows
Other resizing, cropping, index, edit video, JPEG extraction from a video, RAW Development, copyright.

> System Requirements
PC OS: Windows XP SP2, VistaTM and 7, 8
Mac OS X 10.5 or later
Software supplied SILKYPIX Developer Studio 3.0

> Dimensions and weight
Dimensions 129.0 mm × 96.5 mm × 70.0 mm (WxHxD)
Weight 590 g Body Only
650 g loaded and ready with Li-ion battery and SD card.