Tuesday, May 28, 2013

mysql notes

start mysql : $ sudo service mysql start

reconfig password
sudo dpkg-reconfigure mysql-server-5.5

replacing missing configuration files after removing a package

sudo apt-get remove --purge  [apache2 apache2-utils] 
 
sudo apt-get install [apache2]
 
 

Sunday, May 26, 2013

BUG LOCALHOST

apt-get purge libapache2-mod-php5 php5 && \
    apt-get install libapache2-mod-php5 php5
 
I justed removed the file again using 'rm -f 
conf.d'. It was gone. Then run  sudo apt-get autoremove 
libapache2-mod-php5 php5 /  sudo apt-get install libapache2-mod-php5 
php5. 
Same situation: conf.d is a broken symlink, php.ini is missing. Apache 
is running, but php is not working at all (downloading php-files) 
 
 
sudo service apache2 restart|stop|start  

Thursday, May 16, 2013

Type rendering

Type rendering: review, and fonts that render well

December 17, 2010

This is our seventh and final post in an ongoing series about type rendering on the web. Read the first, second, third, fourth, fifth, and sixth posts.
We’ve done a lot of research on type rendering, all of which has helped us understand why text looks the way it does on the web, and we hope you’ve enjoyed learning with us. Let’s review everything so far, and then look at a selection of fonts we trust to render well.
Type rendering is the product of many layers of technology. Operating systems, web browsers, font smoothing preferences, font files and outlines, hinting, and type design philosophy: All of these play a role in translating the beautifully drawn shapes of our favorite typefaces into pixellated screen text. So the next time you see a web font that looks excellent (or awful), consider the mix of responsible technologies at play.
No one way of rendering is “correct.” Users, as well as designers, have preferences and comfort zones when it comes to reading on screen. Some people believe this is a matter of familiarity — that we read best what we read most — and there’s no denying that the introduction of an unfamiliar rendering style can be met with resistance, even if that style is popular elsewhere.
Consider the debut of Safari for Windows — a marginal case we didn’t mention in the post about web browsers, but an intriguing bit of history. In that early version of the browser, Apple circumvented Windows OS text rendering engines by including its own OS X-style rendering directly within Safari. But Windows users didn’t like it: to their eyes, it looked thick, blurry, and unlike any other text on their operating system. While it remains an option, it’s now disabled by default.
A font’s rendering is mostly about its design intentions. The way a font looks on screen has as much — or more — to do with how it was designed to be used as it has to do with a technical preparation like hinting. Low contrast, open counters, and simple outline geometry are critical to a web font’s performance at low resolution — say, for paragraph text. But these same features make for odd-looking headline type.
Hinting is arduous, expensive, and only matters for a dwindling population of web users. Hinting, as you may recall, helps a font’s vector outlines conform to the pixel grid, and can involve anything from minor adjustments to size-specific, pixel precise instructions.
As Windows browsers begin to adopt Directwrite — which relies on TrueType instructions much less than previous Windows rendering engines — and screen resolution increases, the need for hinting is waning. Although the fruit of these advancements is a long way off, we can expect font rendering at all sizes to naturally improve. Meanwhile, we should heap praise on foundries who invest in hinting despite its shelf life.

Fonts that render well

Typekit users know that we regularly update the fonts in our library whenever our foundry partners release improvements. Today, we’ve also updated our lists of Paragraph and Headline fonts based on everything that we’ve learned and discussed in this series of blog posts.
From left to right: Minion Pro, Myriad Pro, DejaRip, FF Meta Serif Web Pro, and FF Dagny Web Pro
All of the fonts tagged Paragraph have been manually hinted to look great on screen at text sizes in every major browser/OS mix. Use these recommendations to make informed decisions about how well a font will render, knowing that they are backed up by Typekit’s font diagnostic tools.
Type rendering on the web is the result of many factors, and understanding these factors is the first step toward improving the way our web projects look, and read, on screen. While this series is concluding, we will continue to research new developments in type rendering, and share what we learn along the way. And as we look to expand Typekit’s library, we are paying careful attention to rendering quality and working closely with our foundry partners to ensure that their fonts meet our — and your — high standards.



Tuesday, May 14, 2013

-webkit-font-smoothing



In addition to the CSS3 text-rendering property AMK mentioned, there is also a Webkit (Chrome) specific hack for antialiasing: -webkit-font-smoothing: antialiased; (I believe the default value is subpixel-antialiased) which is nice to use since Webkit webfont rendering can be less than ideal on Windows machines in particular. A bit more info can be found here.

Wednesday, May 8, 2013

html5shiv

<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
 
http://code.google.com/p/html5shiv/ 

Monday, May 6, 2013

css reset

 
 /*micro-clearfix by Nicolas Gallagher http://nicolasgallagher.com/micro-clearfix-hack/*/
/* For modern browsers */
.cf:before, .cf:after {  content:"";    display:table; }
.cf:after {  clear:both;  }
/* For IE 6/7 (trigger hasLayout) */  .cf {  zoom:1;  }
 
 
 
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
 margin: 0;
 padding: 0;
 border: 0;
 font-size: 100%;
 font: inherit;
 vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
 display: block;
}
body {
 line-height: 1;
}
ol, ul {
 list-style: none;
}
blockquote, q {
 quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
 content: '';
 content: none;
}
table {
 border-collapse: collapse;
 border-spacing: 0;
}

Wednesday, May 1, 2013

instaling photoshop cs6


Hello,

I've been trying to install CS6 on Ubuntu 10.04 using wine 1.5 (apparently wine 1.5 is only available for more recent os).
I ended up adding odbc32.dll and odbcint.dll using dll- fixer http://www.dll-files.com/dllindex/dll-files.shtml?odbcint  to correct the glitches

#wine setup
sudo add-apt-repository ppa:ubuntu-wine/ppa
sudo apt-get update
sudo apt-get install wine1.5

#change wine prefix
rm -rf .wine
WINEARCH=win32 WINEPREFIX=~/.wine winecfg

#get winetricks script
wget http://kegel.com/wine/winetricks

#setup dependencies
sh winetricks -q atmlib gdiplus ie6 vcrun2005sp1 vcrun2008 fontsmooth-rgb corefonts msxml3 msxml6 vcrun2010

# Configure wine install prefix and architecture
export WINEPREFIX=$PREFIX
export WINEARCH=win32
#
# Install dll files
winetricks atmlib
# Message from previous gdiplus install tryout:
# Please download NDP1.0sp2-KB830348-X86-Enu.exe from download.cnet.com/NET-Framework-1-0-GDIPLUS-DLL-Security-Update/3000-10250_4-10732223.html and place it in $HOME/.cache/winetricks/gdiplus, then re-run this script.
cp $DIRECTORY/CS6/DLL\ FILE/NDP1.0sp2-KB830348-X86-Enu.exe $HOME/.cache/winetricks/gdiplus/.
winetricks gdiplus
winetricks msxml3
winetricks msxml6
winetricks dotnet20
# dotnet20 install completed, but installed file $PREFIX/dosdevices/c:/windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll not found
cp $DIRECTORY/CS6/DLL\ FILE/mscorlib.dll $PREFIX/dosdevices/c:/windows/Microsoft.NET/Framework/v2.0.50727/.
winetricks vcrun2005sp1
winetricks vcrun2008
# vcrun2008 install completed, but installed file $PREFIX/dosdevices/c:/Program Files/Common Files/Microsoft Shared/VC/msdia90.dll not found
cp $DIRECTORY/CS6/DLL\ FILE/msdia90.dll $PREFIX/dosdevices/c:/Program Files/Common Files/Microsoft Shared/VC/.
winetricks vcrun2010 


open setup. exe using wine