forked from andreagrandi/andreagrandi.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex48.html
More file actions
212 lines (195 loc) · 12.3 KB
/
index48.html
File metadata and controls
212 lines (195 loc) · 12.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Andrea Grandi</title>
<link rel="stylesheet" href="https://www.andreagrandi.it/theme/css/main.css" />
<link rel="stylesheet" href="https://www.andreagrandi.it/theme/tipuesearch/css/tipuesearch.css">
<link href="https://www.andreagrandi.it/feeds/all.rss.xml" type="application/rss+xml" rel="alternate" title="Andrea Grandi RSS Feed" />
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
</head>
<body id="index" class="home">
<header id="banner" class="body">
<h1><a href="https://www.andreagrandi.it/">Andrea Grandi </a></h1>
<nav><ul>
<li><a href="https://www.andreagrandi.it/about/">About</a></li>
<li><a href="https://www.andreagrandi.it/curriculum/">Curriculum</a></li>
<li><a href="https://www.andreagrandi.it/pgp-key/">PGP Key</a></li>
</ul>
<form id="search" action="https://www.andreagrandi.it/search.html" onsubmit="return validateForm(this.elements['q'].value);">
<input type="text" class="search-query" placeholder="" name="q" id="tipue_search_input">
</form>
</nav>
</header><!-- /#banner -->
<section id="content" class="body">
<ol id="posts-list" class="hfeed" start="3">
<li><article class="hentry">
<header>
<h1><a href="https://www.andreagrandi.it/2008/01/30/il-crivello-di-eratostene/" rel="bookmark"
title="Permalink to Il crivello di Eratostene">Il crivello di Eratostene</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<span>Wed 30 January 2008</span>
<span>| in <a href="https://www.andreagrandi.it/category/python.html">Python</a></span>
<span>| tags: <a href="https://www.andreagrandi.it/tag/crivello.html">crivello</a><a href="https://www.andreagrandi.it/tag/eratostene.html">eratostene</a><a href="https://www.andreagrandi.it/tag/numeri-primi.html">numeri primi</a><a href="https://www.andreagrandi.it/tag/python.html">Python</a></span>
</footer><!-- /.post-info --> <p>Questo codice Python di esempio, genera una lista di numeri primi che
vanno da 2 fino al numero passato come parametro.</p>
<p>[sourcecode language='python']<br>
def eratostene(x):<br>
primi = range(3, x + 1, 2)<br>
for i in primi:<br>
if(pow(i, 2) > x):<br>
break<br>
for j in primi:<br>
if(i != j) and (j % i == 0):<br>
primi.remove(j)<br>
primi.insert(0, 2)<br>
return primi<br>
[/sourcecode]</p>
<a class="readmore" href="https://www.andreagrandi.it/2008/01/30/il-crivello-di-eratostene/">read more</a>
<p><a href="https://www.andreagrandi.it/2008/01/30/il-crivello-di-eratostene/#disqus_thread">comments</a></p> </div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="https://www.andreagrandi.it/2008/01/30/wordpress-e-le-localizzazioni-in-altre-lingue/" rel="bookmark"
title="Permalink to Wordpress e le localizzazioni in altre lingue">Wordpress e le localizzazioni in altre lingue</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<span>Wed 30 January 2008</span>
<span>| in <a href="https://www.andreagrandi.it/category/wordpress.html">WordPress</a></span>
</footer><!-- /.post-info --> <p>Pensando di fare una cosa gradita ai futuri lettori di questo blog, uno
dei primi problemi di cui mi sono occupato dopo aver installato
Wordpress è stato quello della localizzazione in lingua italiana.</p>
<p>Sono bastate pochissime letture della documentazione ufficiale per
approdare finalmente a <a href="http://www.wordpress-it.it/wiki/Main/WordPressInItaliano">questa
pagina</a> che,
con chiarissime istruzioni, spiegava quali erano i semplici passi da
compiere.</p>
<p>Purtroppo le semplici istruzioni non hanno funzionato al primo colpo, in
quanto il blog continuava ad essere completamente in inglese. Tramite
una breve ricerca nel forum di supporto, ho scoperto che si tratta di
una <a href="http://www.wordpress-it.it/2008/01/07/wordpress-in-italiano-su-server-a-64bit/">fastidiosa
incompatibilità</a>
con i server a <strong>64 bit</strong> che pare verrà corretta nella prossima
release. La patch sembra funzionare molto bene. Una volta applicata
(almeno per quanto riguarda la mia installazione di Wordpress, ospitata
su un hosting di Bluehost) sembra funzionare tutto correttamente.</p>
<p>Come mai il blog si trova ancora in lingua inglese? Beh... qui non si
tratta di un bug, ma di una proverbiale incapacità di chi ha curato la
traduzione in italiano. Installare la localizzazione e poi leggere una
frase del genere "Grazie per creare utilizando WordPress" mi ha lasciato
senza speranze ;)</p>
<p>Quando la qualità della localizzazione avrà raggiunto un livello
accettabile, forse tornerò a farci un pensierino... per adesso rimane in
inglese!</p>
<a class="readmore" href="https://www.andreagrandi.it/2008/01/30/wordpress-e-le-localizzazioni-in-altre-lingue/">read more</a>
<p><a href="https://www.andreagrandi.it/2008/01/30/wordpress-e-le-localizzazioni-in-altre-lingue/#disqus_thread">comments</a></p> </div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="https://www.andreagrandi.it/2007/12/17/wxgtk-working-on-maemo/" rel="bookmark"
title="Permalink to wxGTK working on Maemo">wxGTK working on Maemo</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<span>Mon 17 December 2007</span>
<span>| in <a href="https://www.andreagrandi.it/category/howto-linux-maemo-en-programmazione.html">HowTo, Linux, Maemo (EN), Programmazione</a></span>
<span>| tags: <a href="https://www.andreagrandi.it/tag/maemo.html">maemo</a><a href="https://www.andreagrandi.it/tag/sdk.html">SDK</a><a href="https://www.andreagrandi.it/tag/tablet.html">tablet</a><a href="https://www.andreagrandi.it/tag/wx.html">wx</a></span>
</footer><!-- /.post-info --> <p>Reading the <a href="http://wxwidgets.blogspot.com/2007/11/hildonizing-wxgtk.html">official WxWidget
blog</a>, I
discovered that one of their developer was working to hildonize
[WxWidgets]{style="font-weight: bold;"}. I wanted to know if that was
just a test or if this library could work in Maemo, so I followed his
suggestion and I grabbed the latest SVN sources:</p>
<p><code>svn checkout http://svn.wxwidgets.org/svn/wx/wxWidgets/trunk wxWidgets</code></p>
<p>and I compiled it in this way:</p>
<p><code>cd wxWidgets ./configure --with-hildon make make install</code></p>
<p>then I grabbed a simple "HelloWorld" from the official documentation.
You can find the complete source code
<a href="http://www.wxwidgets.org/docs/tutorials/hworld.txt">here</a>.</p>
<p>I compiled the source code in this way:</p>
<p><code>g++ hworld.cpp `wx-config --libs` `wx-config --cxxflags` -o hworld</code></p>
<p>then I ran it in the usual way:</p>
<p><code>run-standalone.sh ./hworld</code></p>
<p>The result? I think that a screenshoot is better than thousand words :)</p>
<p><a href="http://bp0.blogger.com/_eBt7-uNFVjs/R2QhZl8EwLI/AAAAAAAAAJ0/rdNTRYsp_n8/s1600-h/wxWindowsHildon.jpg"><img alt="" id="BLOGGER_PHOTO_ID_5144273397928476850" src="http://bp0.blogger.com/_eBt7-uNFVjs/R2QhZl8EwLI/AAAAAAAAAJ0/rdNTRYsp_n8/s400/wxWindowsHildon.jpg"></a><br>
[N.b:]{style="font-weight: bold;"} I tested this inside Scratchbox,
using [CHINOOK_x86]{style="font-weight: bold;"} target, so I think it
will work fine on Os2008. This could be a good thing to help other
developers porting some interesting applications (uhm... aMule for
example ;) ) to Maemo.</p>
<a class="readmore" href="https://www.andreagrandi.it/2007/12/17/wxgtk-working-on-maemo/">read more</a>
<p><a href="https://www.andreagrandi.it/2007/12/17/wxgtk-working-on-maemo/#disqus_thread">comments</a></p> </div><!-- /.entry-content -->
</article></li>
<li><article class="hentry">
<header>
<h1><a href="https://www.andreagrandi.it/2007/12/14/nokia-n810-available-in-italy/" rel="bookmark"
title="Permalink to Nokia N810 available in Italy!">Nokia N810 available in Italy!</a></h1>
</header>
<div class="entry-content">
<footer class="post-info">
<span>Fri 14 December 2007</span>
<span>| in <a href="https://www.andreagrandi.it/category/linux-maemo-en.html">Linux, Maemo (EN)</a></span>
<span>| tags: <a href="https://www.andreagrandi.it/tag/n810.html">n810</a><a href="https://www.andreagrandi.it/tag/nokia.html">nokia</a><a href="https://www.andreagrandi.it/tag/tablet.html">tablet</a></span>
</footer><!-- /.post-info --> <p><img alt="" src="http://www.andreagrandi.it/wp-content/uploads/2008/08/n810_01_low.jpg" title="n810_01_low">{.alignright
.size-full .wp-image-96 width="250" height="156"}For the joy of all
italian people, the internet tablet Nokia N810 is available in the
italian Nokia shop.</p>
<p>You can find it here. The price is <strong>459 €</strong>.</p>
<p><strong>N.B:</strong> the discount code doesn't work yet.</p>
<a class="readmore" href="https://www.andreagrandi.it/2007/12/14/nokia-n810-available-in-italy/">read more</a>
<p><a href="https://www.andreagrandi.it/2007/12/14/nokia-n810-available-in-italy/#disqus_thread">comments</a></p> </div><!-- /.entry-content -->
</article></li>
</ol><!-- /#posts-list -->
<p class="paginator">
<a href="https://www.andreagrandi.it/index47.html">«</a>
Page 48 / 50
<a href="https://www.andreagrandi.it/index49.html">»</a>
</p>
</section><!-- /#content -->
<section id="extras" class="body">
<div class="social">
<h2>social</h2>
<ul>
<li><a href="https://www.andreagrandi.it/feeds/all.rss.xml" type="application/rss+xml" rel="alternate">rss feed</a></li>
<li><a href="https://twitter.com/andreagrandi">twitter</a></li>
<li><a href="https://github.com/andreagrandi">github</a></li>
</ul>
</div><!-- /.social -->
</section><!-- /#extras -->
<footer id="contentinfo" class="body">
<p>
Powered by <a href="http://getpelican.com/">Pelican</a> and Python -
Source code available on <a href="https://github.com/andreagrandi/andreagrandi.it">GitHub</a>
<a rel="license" href="http://creativecommons.org/licenses/by-nc/4.0/">
<img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc/4.0/80x15.png" />
</a>
</p>
</footer><!-- /#contentinfo -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-2140684-3']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<script type="text/javascript">
var disqus_shortname = 'andrea-grandi-it';
(function () {
var s = document.createElement('script'); s.async = true;
s.type = 'text/javascript';
s.src = '//' + disqus_shortname + '.disqus.com/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>