urss 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,395 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
3
+ <channel>
4
+ <title>Ruby News</title>
5
+ <link>http://www.ruby-lang.org/en/feeds/news.rss/</link>
6
+ <language>en-us</language>
7
+ <ttl>40</ttl>
8
+ <description>The latest news from Ruby-Lang.org.</description>
9
+
10
+
11
+ <item>
12
+ <title>Ruby 1.9.3-p194 is released</title>
13
+ <description>&lt;p&gt;Ruby 1.9.3-p194 is released.&lt;/p&gt;&lt;p&gt;This release include Security Fix for RubyGems: SSL server verification failure for remote repository.
14
+ And many bugs are fixed in this release.&lt;/p&gt; &lt;h2&gt;&lt;a name=&quot;label-0&quot; id=&quot;label-0&quot;&gt;Security Fix for RubyGems: SSL server verification failure for remote repository&lt;/a&gt;&lt;/h2&gt;&lt;!-- RDLabel: &quot;Security Fix for RubyGems: SSL server verification failure for remote repository&quot; --&gt;&lt;p&gt;This release includes two security fixes in RubyGems.&lt;/p&gt;&lt;ul&gt;
15
+ &lt;li&gt;Turn on verification of server SSL certs&lt;/li&gt;
16
+ &lt;li&gt;Disallow redirects from https to http&lt;/li&gt;
17
+ &lt;/ul&gt;&lt;p&gt;Users who uses https source in .gemrc or /etc/gemrc are encouraged to
18
+ upgrade to 1.9.3-p194.&lt;/p&gt;&lt;p&gt;Following is excerpted from RubyGems 1.8.23 release note [1].&lt;/p&gt;&lt;p&gt;&quot;This release increases the security used when RubyGems is talking to
19
+ an https server. If you use a custom RubyGems server over SSL, this
20
+ release will cause RubyGems to no longer connect unless your SSL cert
21
+ is globally valid.&lt;/p&gt;&lt;p&gt;You can configure SSL certificate usage in RubyGems through the :ssl_ca_cert and :ssl_verify_mode options in ~/.gemrc and /etc/gemrc.
22
+ The recommended way is to set :ssl_ca_cert to the CA certificate for
23
+ your server or a certificate bundle containing your CA certification.&lt;/p&gt;&lt;p&gt;You may also set :ssl_verify_mode to 0 to completely disable SSL
24
+ certificate checks, but this is not recommended.&quot;&lt;/p&gt;&lt;p&gt;Credit to John Firebaugh for reporting this issue.&lt;/p&gt;&lt;p&gt;[1] &lt;a href=&quot;https://github.com/rubygems/rubygems/blob/1.8/History.txt&quot;&gt;&amp;lt;URL:https://github.com/rubygems/rubygems/blob/1.8/History.txt&amp;gt;&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;&lt;a name=&quot;label-1&quot; id=&quot;label-1&quot;&gt;Fixes&lt;/a&gt;&lt;/h2&gt;&lt;!-- RDLabel: &quot;Fixes&quot; --&gt;&lt;ul&gt;
25
+ &lt;li&gt;Security Fix for RubyGems: SSL server verification failure for remote repository&lt;/li&gt;
26
+ &lt;li&gt;other bug fixes&lt;/li&gt;
27
+ &lt;/ul&gt;&lt;p&gt;See &lt;a href=&quot;https://bugs.ruby-lang.org/projects/ruby-193/issues?set_filter=1&amp;amp;status_id=5&quot;&gt;tickets&lt;/a&gt; and &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_194/ChangeLog&quot;&gt;ChangeLog&lt;/a&gt; for details.&lt;/p&gt;&lt;h2&gt;&lt;a name=&quot;label-2&quot; id=&quot;label-2&quot;&gt;Downloads&lt;/a&gt;&lt;/h2&gt;&lt;!-- RDLabel: &quot;Downloads&quot; --&gt;&lt;ul&gt;
28
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.bz2&amp;gt;&lt;/a&gt;
29
+ &lt;ul&gt;
30
+ &lt;li&gt;SIZE: 9841223 bytes&lt;/li&gt;
31
+ &lt;li&gt;MD5: 2278eff4cfed3cbc0653bc73085caa34&lt;/li&gt;
32
+ &lt;li&gt;SHA256: a9d1ea9eaea075c60048369a63b35b3b5a06a30aa214a3d990e0bb71212db8fa&lt;/li&gt;
33
+ &lt;/ul&gt;&lt;/li&gt;
34
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.tar.gz&amp;gt;&lt;/a&gt;
35
+ &lt;ul&gt;
36
+ &lt;li&gt;SIZE: 12432239 bytes&lt;/li&gt;
37
+ &lt;li&gt;MD5: bc0c715c69da4d1d8bd57069c19f6c0e&lt;/li&gt;
38
+ &lt;li&gt;SHA256: 46e2fa80be7efed51bd9cdc529d1fe22ebc7567ee0f91db4ab855438cf4bd8bb&lt;/li&gt;
39
+ &lt;/ul&gt;&lt;/li&gt;
40
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.zip&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p194.zip&amp;gt;&lt;/a&gt;
41
+ &lt;ul&gt;
42
+ &lt;li&gt;SIZE: 13898712 bytes&lt;/li&gt;
43
+ &lt;li&gt;MD5: 77e67b15234e442d4a3dcc450bc70fea&lt;/li&gt;
44
+ &lt;li&gt;SHA256: 77474cfb92385b3a0b4c346553048bc65bfe68d4f220128329671a0234cb124d&lt;/li&gt;
45
+ &lt;/ul&gt;&lt;/li&gt;
46
+ &lt;/ul&gt;</description>
47
+ <pubDate>Fri, 20 Apr 2012 03:19:04 GMT</pubDate>
48
+ <guid>http://www.ruby-lang.org/en/news/2012/04/20/ruby-1-9-3-p194-is-released/</guid>
49
+ <link>http://www.ruby-lang.org/en/news/2012/04/20/ruby-1-9-3-p194-is-released/</link>
50
+ </item>
51
+
52
+ <item>
53
+ <title>RubyTeach 2012</title>
54
+ <description>&lt;p&gt;Vancouver, BC&lt;/p&gt;
55
+
56
+ &lt;p&gt;May 29th to 31st, 2012&lt;/p&gt;
57
+
58
+ &lt;p&gt;RubyTeach is part of DevTeach and it offer 3 days of training between May 29th and May 31st. A total of 11 sessions on Ruby and over 30 sessions on Web Development (jQuery, HTML5, CSS) and Agile. The best experts in the industry are presenting their knowledge and expertise. This is your chance to learn and network with the experts.&lt;/p&gt;
59
+
60
+ &lt;p&gt;&lt;a href=&quot;http://devteach.com/RubyTeach/&quot;&gt;Learn more…&lt;/a&gt;&lt;/p&gt; </description>
61
+ <pubDate>Tue, 10 Apr 2012 18:53:05 GMT</pubDate>
62
+ <guid>http://www.ruby-lang.org/en/news/2012/04/10/rubyteach-2012/</guid>
63
+ <link>http://www.ruby-lang.org/en/news/2012/04/10/rubyteach-2012/</link>
64
+ </item>
65
+
66
+ <item>
67
+ <title>Matz Earns the FSF's 2011 Free Software Award</title>
68
+ <description>&lt;p&gt;The Award for the Advancement of Free Software is given annually to an individual who has made a great contribution to the progress and development of free software, through activities that accord with the spirit of free software.&lt;/p&gt;
69
+
70
+ &lt;p&gt;This year, it was given to Yukihiro Matsumoto (aka Matz), the creator of the Ruby programming language. Matz has worked on GNU, Ruby, and other free software for over 20 years…&lt;/p&gt;
71
+
72
+ &lt;p&gt;&lt;a href=&quot;https://www.fsf.org/news/2011-free-software-awards-announced&quot;&gt;Read the full article.&lt;/a&gt;&lt;/p&gt; </description>
73
+ <pubDate>Thu, 29 Mar 2012 13:55:25 GMT</pubDate>
74
+ <guid>http://www.ruby-lang.org/en/news/2012/03/29/matz-earns-the-fsfs-2011-free-software-award/</guid>
75
+ <link>http://www.ruby-lang.org/en/news/2012/03/29/matz-earns-the-fsfs-2011-free-software-award/</link>
76
+ </item>
77
+
78
+ <item>
79
+ <title>Ruby 1.9.3-p125 is released</title>
80
+ <description>&lt;p&gt;Ruby 1.9.3-p125 is released.&lt;/p&gt;
81
+
82
+ &lt;p&gt;This release include &lt;a href=&quot;http://www.ruby-lang.org/en/news/2012/02/16/security-fix-for-ruby-openssl-module-allow-0n-splitting-as-a-prevention-for-the-tls-beast-attack-/&quot;&gt;a security fixes of the Ruby OpenSSL extension&lt;/a&gt;.
83
+ And many bugs are fixed in this release.&lt;/p&gt; &lt;p&gt;== Fixes&lt;/p&gt;
84
+
85
+ &lt;ul&gt;
86
+ &lt;li&gt;&lt;a href=&quot;http://www.ruby-lang.org/en/news/2012/02/16/security-fix-for-ruby-openssl-module-allow-0n-splitting-as-a-prevention-for-the-tls-beast-attack-/&quot;&gt;Fix for Ruby OpenSSL module: Allow &quot;0/n splitting&quot; as a prevention for the TLS BEAST attack&lt;/a&gt;&lt;/li&gt;
87
+ &lt;li&gt;Fixed: LLVM/clang support &lt;a href=&quot;https://bugs.ruby-lang.org/issues/show/5076&quot;&gt;[Bug #5076]&lt;/a&gt;&lt;/li&gt;
88
+ &lt;li&gt;Fixed: GCC 4.7 support &lt;a href=&quot;https://bugs.ruby-lang.org/issues/show/5851&quot;&gt;[Bug #5851]&lt;/a&gt;&lt;/li&gt;
89
+ &lt;li&gt;other bug fixes&lt;/li&gt;
90
+ &lt;/ul&gt;
91
+
92
+ &lt;p&gt;See &lt;a href=&quot;https://bugs.ruby-lang.org/projects/ruby-193/issues?set_filter=1&amp;amp;status_id=5&quot;&gt;tickets&lt;/a&gt; and &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_125/ChangeLog&quot;&gt;ChangeLog&lt;/a&gt; for details.&lt;/p&gt;
93
+
94
+ &lt;p&gt;== Downloads&lt;/p&gt;
95
+
96
+ &lt;p&gt;NOTE: Repackaged on 2012-02-17 02:04:00 UTC to fix &lt;a href=&quot;https://bugs.ruby-lang.org/issues/6040&quot;&gt;[Bug #6040]&lt;/a&gt;.&lt;/p&gt;
97
+
98
+ &lt;ul&gt;
99
+ &lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.bz2&quot;&gt;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.bz2&lt;/a&gt;&lt;/p&gt;
100
+
101
+ &lt;ul&gt;
102
+ &lt;li&gt;SIZE: 9733962 bytes&lt;/li&gt;
103
+ &lt;li&gt;MD5: 702529a7f8417ed79f628b77d8061aa5&lt;/li&gt;
104
+ &lt;li&gt;SHA256: c67a59443052b5a9219eb4cee3892bdfbc6f250f0c8e214e02256a4cc7ef5526&lt;/li&gt;
105
+ &lt;/ul&gt;&lt;/li&gt;
106
+ &lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz&quot;&gt;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz&lt;/a&gt;&lt;/p&gt;
107
+
108
+ &lt;ul&gt;
109
+ &lt;li&gt;SIZE: 12278584 bytes&lt;/li&gt;
110
+ &lt;li&gt;MD5: e3ea86b9d3fc2d3ec867f66969ae3b92&lt;/li&gt;
111
+ &lt;li&gt;SHA256: 8b3c035cf4f0ad6420f447d6a48e8817e5384d0504514939aeb156e251d44cce&lt;/li&gt;
112
+ &lt;/ul&gt;&lt;/li&gt;
113
+ &lt;li&gt;&lt;p&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.zip&quot;&gt;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.zip&lt;/a&gt;&lt;/p&gt;
114
+
115
+ &lt;ul&gt;
116
+ &lt;li&gt;SIZE: 13742164 bytes&lt;/li&gt;
117
+ &lt;li&gt;MD5: 2cff031a8801d91a0a0ca8e9a83e2ec8&lt;/li&gt;
118
+ &lt;li&gt;SHA256: c16423182227c765398723da2419e4e962076778ec5e39417fad564e413fde1d&lt;/li&gt;
119
+ &lt;/ul&gt;&lt;/li&gt;
120
+ &lt;/ul&gt;</description>
121
+ <pubDate>Thu, 16 Feb 2012 12:03:49 GMT</pubDate>
122
+ <guid>http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/</guid>
123
+ <link>http://www.ruby-lang.org/en/news/2012/02/16/ruby-1-9-3-p125-is-released/</link>
124
+ </item>
125
+
126
+ <item>
127
+ <title>Security Fix for Ruby OpenSSL module: Allow "0/n splitting" as a prevention for the TLS BEAST attack.</title>
128
+ <description>&lt;p&gt;In OpenSSL, &lt;code&gt;SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS&lt;/code&gt; option for SSL connection
129
+ is used to prevent TLS-CBC-IV vulnerability described at &lt;a href=&quot;http://www.openssl.org/~bodo/tls-cbc.txt&quot;&gt;[1]&lt;/a&gt;. It's
130
+ known issue of TLSv1/SSLv3 but it attracts lots of attention these days
131
+ as BEAST attack &lt;a href=&quot;http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2011-3389&quot;&gt;[2]&lt;/a&gt; (CVE-2011-3389). Ruby related topics are at our
132
+ issue tracker &lt;a href=&quot;https://bugs.ruby-lang.org/5353&quot;&gt;[3]&lt;/a&gt;.&lt;/p&gt;
133
+
134
+ &lt;p&gt;Until now Ruby OpenSSL extension uses &lt;code&gt;SSL_OP_ALL&lt;/code&gt; option, the combined
135
+ option of OpenSSL for various bug workarounds that should be rather
136
+ harmless, for all SSL connection by default. And it only allows users
137
+ to add other options so you could not remove the feature that is
138
+ included in &lt;code&gt;SSL_OP_ALL&lt;/code&gt; option, like &lt;code&gt;SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS&lt;/code&gt;.
139
+ It was intentional as it didn't expose constants like
140
+ &lt;code&gt;SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS&lt;/code&gt;, but we should allow to unset the
141
+ option so that Ruby OpenSSL extension inserts empty fragments at the
142
+ beginning of SSL connections (named &quot;0/n splitting&quot;) to prevent the TLS
143
+ BEAST attack.&lt;/p&gt;
144
+
145
+ &lt;p&gt;&lt;a href=&quot;http://mla.n-z.jp/?ruby-talk=393484&quot;&gt;This release&lt;/a&gt; defines additional constants and allows users to unset
146
+ options in &lt;code&gt;SSL_OP_ALL&lt;/code&gt;. Default option is still &lt;code&gt;SSL_OP_ALL&lt;/code&gt; but you can
147
+ setup the SSLSocket with doing &quot;0/n splitting&quot; for BEAST prevention like
148
+ this.&lt;/p&gt;
149
+
150
+ &lt;pre&gt;&lt;code&gt;ctx = SSLContext.new
151
+ ctx.options = OP_ALL &amp;amp; ~OP_DONT_INSERT_EMPTY_FRAGMENTS
152
+ ctx.verify_mode = OpenSSL::SSL::VERIFY_PEER
153
+ SSLSocket.new(socket, ctx)
154
+ &lt;/code&gt;&lt;/pre&gt;
155
+
156
+ &lt;p&gt;Credit to Apple for reporting this issue.&lt;/p&gt;
157
+
158
+ &lt;p&gt;NOTE: Some SSL endpoints are known to have a bug that cannot handle &quot;0/n
159
+ splitting&quot; correctly so we (and OpenSSL) do not set this as a default
160
+ option. Please test SSL connectivity before enabling this in production
161
+ environment. If the other endpoint you're connecting cannot handle &quot;0/n
162
+ splitting&quot;, you must use another workaround for preventing the TLS BEAST
163
+ attack, like enforcing ciphersuite to use RC4. For details, please find
164
+ discussions and resources around CVE-2011-3389.&lt;/p&gt; </description>
165
+ <pubDate>Thu, 16 Feb 2012 11:20:41 GMT</pubDate>
166
+ <guid>http://www.ruby-lang.org/en/news/2012/02/16/security-fix-for-ruby-openssl-module-allow-0n-splitting-as-a-prevention-for-the-tls-beast-attack-/</guid>
167
+ <link>http://www.ruby-lang.org/en/news/2012/02/16/security-fix-for-ruby-openssl-module-allow-0n-splitting-as-a-prevention-for-the-tls-beast-attack-/</link>
168
+ </item>
169
+
170
+ <item>
171
+ <title>Denial of service attack was found for Ruby's Hash algorithm (CVE-2011-4815)</title>
172
+ <description>&lt;h4&gt;Impact&lt;/h4&gt;
173
+
174
+ &lt;p&gt;This is something related to computational complexity. Specially
175
+ crafted series of strings that intentionally collide their hash values
176
+ each other was found. With such sequences an attacker can issue a
177
+ denial of service attack by, for instance, giving them as POST
178
+ parameters of HTTP requests for your Rails application.&lt;/p&gt; &lt;h4&gt;Detailed description&lt;/h4&gt;
179
+
180
+ &lt;p&gt;The situation is similar to the one found for Perl in 2003. In 1.8
181
+ series of Ruby, we use a deterministic hash function to hash a string.
182
+ Here the &quot;deterministic&quot; means no other bits of information than the
183
+ input string itself is involved to generate a hash value. So you can
184
+ precalculate a string's hash value beforehand. By collecting a series
185
+ of strings that have the identical hash value, an attacker can let
186
+ ruby process collide bins of hash tables (including &lt;code&gt;Hash&lt;/code&gt; class
187
+ instances). Hash tables' amortized O(1) attribute depends on
188
+ uniformity of distribution of hash values. By giving such crafted
189
+ input, an attacker can let hash tables work much slower than expected
190
+ (namely O(n&lt;sup&gt;2&lt;/sup&gt;) to construct a n-elements table this case).&lt;/p&gt;
191
+
192
+ &lt;h4&gt;Affected versions&lt;/h4&gt;
193
+
194
+ &lt;ul&gt;
195
+ &lt;li&gt;Ruby 1.8.7-p352 and all prior versions.&lt;/li&gt;
196
+ &lt;/ul&gt;
197
+
198
+ &lt;p&gt;All Ruby 1.9 series are not affected by this kind of attack. They do
199
+ not share hash implementations with Ruby 1.8 series.&lt;/p&gt;
200
+
201
+ &lt;h4&gt;Solution&lt;/h4&gt;
202
+
203
+ &lt;p&gt;Our solution is to scramble the string hash function by some
204
+ PRNG-generated random bits. By doing so a string's hashed value is no
205
+ longer deterministic. That is, a &lt;code&gt;String#hash&lt;/code&gt; result is consistent
206
+ only for current process lifetime and will generate a different number
207
+ for the next boot. To break this situation an attacker must create a
208
+ set of strings which are robust to this kind of scrambling. This is
209
+ believed to be quite difficult.&lt;/p&gt;
210
+
211
+ &lt;p&gt;Please upgrade to &lt;a href=&quot;http://mla.n-z.jp/?ruby-talk=391606&quot;&gt;ruby 1.8.7-p357&lt;/a&gt;.&lt;/p&gt;
212
+
213
+ &lt;h4&gt;Notes&lt;/h4&gt;
214
+
215
+ &lt;ul&gt;
216
+ &lt;li&gt;&lt;p&gt;Bear in mind that the solution &lt;em&gt;does&lt;/em&gt; &lt;em&gt;not&lt;/em&gt; &lt;em&gt;mean&lt;/em&gt; our hash
217
+ algorithm is cryptographically secure. To put it simple, we fixed
218
+ the hash table but we didn't fix &lt;code&gt;String#hash&lt;/code&gt; weakness. An
219
+ attacker could still exploit it once he / she got a pair of a string
220
+ and its hash value returned from &lt;code&gt;String#hash&lt;/code&gt;. You &lt;em&gt;must&lt;/em&gt; &lt;em&gt;not&lt;/em&gt;
221
+ disclose &lt;code&gt;String#hash&lt;/code&gt; outputs. If you need to do such things,
222
+ consider using secure hash algorithms instead. Some of them (such
223
+ as SHA256) are provided in Ruby's standard library.&lt;/p&gt;&lt;/li&gt;
224
+ &lt;li&gt;&lt;p&gt;For those who knows alternative hash algorithms inside our code
225
+ base: we do not support them (they are disabled by default). By
226
+ choosing them we consider you can read C, and you can understand
227
+ what was wrong with the default one. Make sure that your choice is
228
+ safe at your own risk.&lt;/p&gt;&lt;/li&gt;
229
+ &lt;/ul&gt;
230
+
231
+ &lt;h4&gt;Credit&lt;/h4&gt;
232
+
233
+ &lt;p&gt;Credit to Alexander Klink &lt;a href=&quot;&amp;#x6D;&amp;#x61;&amp;#105;&amp;#108;&amp;#x74;&amp;#111;:&amp;#097;&amp;#108;&amp;#101;&amp;#120;&amp;#x61;&amp;#110;d&amp;#x65;&amp;#x72;&amp;#x2E;&amp;#107;&amp;#x6C;&amp;#105;&amp;#x6E;&amp;#107;&amp;#064;&amp;#x6E;&amp;#x72;&amp;#117;&amp;#110;&amp;#x73;&amp;#046;&amp;#x63;&amp;#x6F;m&quot;&gt;&amp;#097;&amp;#108;&amp;#101;&amp;#120;&amp;#x61;&amp;#110;d&amp;#x65;&amp;#x72;&amp;#x2E;&amp;#107;&amp;#x6C;&amp;#105;&amp;#x6E;&amp;#107;&amp;#064;&amp;#x6E;&amp;#x72;&amp;#117;&amp;#110;&amp;#x73;&amp;#046;&amp;#x63;&amp;#x6F;m&lt;/a&gt; and Julian
234
+ Waelde &lt;a href=&quot;&amp;#x6D;&amp;#097;&amp;#x69;&amp;#108;&amp;#x74;&amp;#111;:&amp;#x6A;&amp;#x77;&amp;#x61;&amp;#x65;&amp;#108;&amp;#100;e&amp;#064;&amp;#x63;d&amp;#099;&amp;#x2E;&amp;#x69;&amp;#110;&amp;#x66;&amp;#x6F;&amp;#114;&amp;#109;&amp;#097;&amp;#116;&amp;#105;&amp;#x6B;&amp;#x2E;&amp;#x74;&amp;#117;-&amp;#100;&amp;#097;&amp;#x72;m&amp;#x73;&amp;#x74;&amp;#097;&amp;#x64;&amp;#x74;.&amp;#100;&amp;#101;&quot;&gt;&amp;#x6A;&amp;#x77;&amp;#x61;&amp;#x65;&amp;#108;&amp;#100;e&amp;#064;&amp;#x63;d&amp;#099;&amp;#x2E;&amp;#x69;&amp;#110;&amp;#x66;&amp;#x6F;&amp;#114;&amp;#109;&amp;#097;&amp;#116;&amp;#105;&amp;#x6B;&amp;#x2E;&amp;#x74;&amp;#117;-&amp;#100;&amp;#097;&amp;#x72;m&amp;#x73;&amp;#x74;&amp;#097;&amp;#x64;&amp;#x74;.&amp;#100;&amp;#101;&lt;/a&gt; for reporting this
235
+ issue.&lt;/p&gt;
236
+
237
+ &lt;p&gt;&lt;strong&gt;EDIT&lt;/strong&gt; some related links:&lt;/p&gt;
238
+
239
+ &lt;ul&gt;
240
+ &lt;li&gt;&lt;a href=&quot;http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4815&quot;&gt;CVE-2011-4815&lt;/a&gt; is assigned to this issue.&lt;/li&gt;
241
+ &lt;li&gt;oCERT.org published &lt;a href=&quot;http://www.ocert.org/advisories/ocert-2011-003.html&quot;&gt;an advisory&lt;/a&gt; about it.&lt;/li&gt;
242
+ &lt;li&gt;JRuby released &lt;a href=&quot;http://jruby.org/2011/12/27/jruby-1-6-5-1&quot;&gt;version 1.6.5.1&lt;/a&gt; to fix the identical issue. Other ruby alternatives might also suffer.&lt;/li&gt;
243
+ &lt;li&gt;Twitter account &lt;a href=&quot;https://twitter.com/#!/hashDoS&quot;&gt;@hashDoS&lt;/a&gt; collects informations about hash colliision attacks.&lt;/li&gt;
244
+ &lt;/ul&gt;</description>
245
+ <pubDate>Wed, 28 Dec 2011 13:25:41 GMT</pubDate>
246
+ <guid>http://www.ruby-lang.org/en/news/2011/12/28/denial-of-service-attack-was-found-for-rubys-hash-algorithm-cve-2011-4815/</guid>
247
+ <link>http://www.ruby-lang.org/en/news/2011/12/28/denial-of-service-attack-was-found-for-rubys-hash-algorithm-cve-2011-4815/</link>
248
+ </item>
249
+
250
+ <item>
251
+ <title>Ruby 1.9.3 p0 is released</title>
252
+ <description>&lt;p&gt;Ruby 1.9.3 p0 is released. This is the latest stable version of 1.9 series.&lt;/p&gt;&lt;p&gt;See &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/ChangeLog&quot;&gt;ChangeLogs&lt;/a&gt; and &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_0/NEWS&quot;&gt;NEWS&lt;/a&gt; for the descriptions.&lt;/p&gt; &lt;h2&gt;&lt;a name=&quot;label-0&quot; id=&quot;label-0&quot;&gt;Locations&lt;/a&gt;&lt;/h2&gt;&lt;!-- RDLabel: &quot;Locations&quot; --&gt;&lt;ul&gt;
253
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.bz2&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.bz2&amp;gt;&lt;/a&gt;
254
+ &lt;dl&gt;
255
+ &lt;dt&gt;&lt;a name=&quot;label-1&quot; id=&quot;label-1&quot;&gt;SIZE: 9554576 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 9554576 bytes&quot; --&gt;
256
+ &lt;dt&gt;&lt;a name=&quot;label-2&quot; id=&quot;label-2&quot;&gt;MD5: 65401fb3194cdccd6c1175ab29b8fdb8&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 65401fb3194cdccd6c1175ab29b8fdb8&quot; --&gt;
257
+ &lt;dt&gt;&lt;a name=&quot;label-3&quot; id=&quot;label-3&quot;&gt;SHA256: ca8ba4e564fc5f98b210a5784e43dfffef9471222849e46f8e848b37e9f38acf&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: ca8ba4e564fc5f98b210a5784e43dfffef9471222849e46f8e848b37e9f38acf&quot; --&gt;
258
+ &lt;/dl&gt;&lt;/li&gt;
259
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz&amp;gt;&lt;/a&gt;
260
+ &lt;dl&gt;
261
+ &lt;dt&gt;&lt;a name=&quot;label-4&quot; id=&quot;label-4&quot;&gt;SIZE: 12223217 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 12223217 bytes&quot; --&gt;
262
+ &lt;dt&gt;&lt;a name=&quot;label-5&quot; id=&quot;label-5&quot;&gt;MD5: 8e2fef56185cfbaf29d0c8329fc77c05&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 8e2fef56185cfbaf29d0c8329fc77c05&quot; --&gt;
263
+ &lt;dt&gt;&lt;a name=&quot;label-6&quot; id=&quot;label-6&quot;&gt;SHA256: 3b910042e3561f4296fd95d96bf30322e53eecf083992e5042a7680698cfa34e&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: 3b910042e3561f4296fd95d96bf30322e53eecf083992e5042a7680698cfa34e&quot; --&gt;
264
+ &lt;/dl&gt;&lt;/li&gt;
265
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.zip&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.zip&amp;gt;&lt;/a&gt;
266
+ &lt;dl&gt;
267
+ &lt;dt&gt;&lt;a name=&quot;label-7&quot; id=&quot;label-7&quot;&gt;SIZE: 13691314 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 13691314 bytes&quot; --&gt;
268
+ &lt;dt&gt;&lt;a name=&quot;label-8&quot; id=&quot;label-8&quot;&gt;MD5: 437ac529a7872c8dcc956eab8e7e6f76&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 437ac529a7872c8dcc956eab8e7e6f76&quot; --&gt;
269
+ &lt;dt&gt;&lt;a name=&quot;label-9&quot; id=&quot;label-9&quot;&gt;SHA256: 1be16d0172e9cf9e5078a7bee2465a9f3af431920e1e3d9417a4fc2ee074bca4&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: 1be16d0172e9cf9e5078a7bee2465a9f3af431920e1e3d9417a4fc2ee074bca4&quot; --&gt;
270
+ &lt;/dl&gt;&lt;/li&gt;
271
+ &lt;/ul&gt;</description>
272
+ <pubDate>Mon, 31 Oct 2011 03:27:41 GMT</pubDate>
273
+ <guid>http://www.ruby-lang.org/en/news/2011/10/31/ruby-1-9-3-p0-is-released/</guid>
274
+ <link>http://www.ruby-lang.org/en/news/2011/10/31/ruby-1-9-3-p0-is-released/</link>
275
+ </item>
276
+
277
+ <item>
278
+ <title>Upcoming Ruby Programming Competitions with Matz - Grand Prize - 1,000,000 JPY!</title>
279
+ <description>&lt;p&gt;Dear Ruby Enthusiasts:&lt;/p&gt;
280
+
281
+ &lt;p&gt;The Government of Fukuoka, Japan together with &quot;Matz&quot; Matsumoto would
282
+ like to invite you to enter the following Ruby competitions. If you
283
+ have developed an interesting Ruby program, please be encouraged to
284
+ apply.&lt;/p&gt;
285
+
286
+ &lt;ul&gt;
287
+ &lt;li&gt;Silicon Valley Competition (November 3, 2011 in Silicon Valley),
288
+ Entry Deadline: October 17, 2011&lt;/li&gt;
289
+ &lt;/ul&gt;
290
+
291
+ &lt;p&gt;Selected finalists will present their Ruby programs in front of Matz
292
+ on November 3, 2011 in Silicon Valley (exact location to be announced
293
+ later). Matz, together with a panel of judges, will select the winner.
294
+ The winner will be invited to Fukuoka, Japan for an award ceremony to
295
+ be held in March 2012 (hotel and airfare paid). If you enter the
296
+ Silicon Valley competition, you will also be automatically entered in
297
+ the Fukuoka competition described below.&lt;/p&gt;
298
+
299
+ &lt;ul&gt;
300
+ &lt;li&gt;Fukuoka Competition - Grand Prize - 1 Million Yen! (March 2012 in
301
+ Fukuoka, Japan), Entry Deadline: November 15, 2011&lt;/li&gt;
302
+ &lt;/ul&gt;
303
+
304
+ &lt;p&gt;You can enter the Fukuoka competition exclusively, or enter the above
305
+ Silicon Valley Competition and be automatically entered in the Fukuoka
306
+ Competition. Matz and a group of panelists will select the winners of
307
+ the Fukuoka Competition. The grand prize winner will be invited to
308
+ attend the award ceremony in Fukuoka, Japan in March 2012 (hotel and
309
+ airfare paid). The grand prize for the Fukuoka Competition is 1
310
+ million yen(approximately $13,000!). Past grand prize winners include
311
+ Rhomobile (USA) and APEC Climate Center (Korea).&lt;/p&gt;
312
+
313
+ &lt;p&gt;Programs entered in these competitions do not have to be written
314
+ entirely in Ruby but should take advantage of the unique
315
+ characteristics of Ruby. Projects must have been developed or
316
+ completed within the past 12 months to be eligible.&lt;/p&gt;
317
+
318
+ &lt;p&gt;Please visit the following Fukuoka website for additional details or to enter:&lt;/p&gt;
319
+
320
+ &lt;p&gt;&lt;a href=&quot;http://www.myfukuoka.com/events/2012-fukuoka-ruby-award-competition&quot;&gt;http://www.myfukuoka.com/events/2012-fukuoka-ruby-award-competition&lt;/a&gt;&lt;/p&gt;
321
+
322
+ &lt;p&gt;Cheers.&lt;/p&gt; </description>
323
+ <pubDate>Wed, 12 Oct 2011 14:42:22 GMT</pubDate>
324
+ <guid>http://www.ruby-lang.org/en/news/2011/10/12/upcoming-ruby-programming-competitions-with-matz---grand-prize---1000000-jpy/</guid>
325
+ <link>http://www.ruby-lang.org/en/news/2011/10/12/upcoming-ruby-programming-competitions-with-matz---grand-prize---1000000-jpy/</link>
326
+ </item>
327
+
328
+ <item>
329
+ <title>Plans for 1.8.7</title>
330
+ <description>&lt;p&gt;Hello, and thank you for your getting into our community.&lt;/p&gt;
331
+
332
+ &lt;p&gt;I know most of you more or less use version 1.8.7 of Ruby today. It
333
+ was released in 2008 and was a state-of-art Ruby release back then.
334
+ -- I am proud to say it is no longer. Ruby's core developers have
335
+ been actively working on their new version, 1.9, and they are about
336
+ to release new 1.9.3. I have been using 1.9 for years and now I
337
+ cannot go back to the days without it. Rich features. Faster
338
+ execution. Rubygems integrated. Rails works perfectly. I cannot but
339
+ say it is totally wonderful. Everyone please, use 1.9.&lt;/p&gt;
340
+
341
+ &lt;p&gt;But at the same time I know you cannot switch to 1.9 right now for
342
+ various reasons. Maybe you have already deployed your
343
+ application with 1.8.7. Maybe you use a 3rd party library and that is
344
+ for 1.8.7 only. Or maybe your Linux distribution only supports 1.8.7.
345
+ So I hereby announce you how long you can stick to it. It is OK if you
346
+ are using 1.8.7 today but after a while, it will be shut down.&lt;/p&gt;
347
+
348
+ &lt;p&gt;Please be ready.&lt;/p&gt;
349
+
350
+ &lt;p&gt;Schedule:&lt;/p&gt;
351
+
352
+ &lt;ul&gt;
353
+ &lt;li&gt;&lt;p&gt;We continue to provide normal maintenance for 1.8.7 as usual, until
354
+ June 2012. You can safely assume we provide bugfixes and no
355
+ incompatibility shall be introduced.&lt;/p&gt;&lt;/li&gt;
356
+ &lt;li&gt;&lt;p&gt;After that we stop bugfixes. We still provide security fixes until
357
+ June 2013, in case you are still using 1.8.7.&lt;/p&gt;&lt;/li&gt;
358
+ &lt;li&gt;&lt;p&gt;We will no longer support 1.8.7 in all senses after June 2013.&lt;/p&gt;&lt;/li&gt;
359
+ &lt;/ul&gt; </description>
360
+ <pubDate>Thu, 06 Oct 2011 07:48:38 GMT</pubDate>
361
+ <guid>http://www.ruby-lang.org/en/news/2011/10/06/plans-for-1-8-7/</guid>
362
+ <link>http://www.ruby-lang.org/en/news/2011/10/06/plans-for-1-8-7/</link>
363
+ </item>
364
+
365
+ <item>
366
+ <title>Ruby 1.9.3 rc1 has been released</title>
367
+ <description>&lt;p&gt;Ruby 1.9.3 rc1 has been released. This is a second preview of next version and there're still minor known issues.
368
+ But it will be fixed in next release, ruby 1.9.3-p0.&lt;/p&gt;&lt;p&gt;See &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_rc1/ChangeLog&quot;&gt;ChangeLogs&lt;/a&gt; and &lt;a href=&quot;http://svn.ruby-lang.org/repos/ruby/tags/v1_9_3_rc1/NEWS&quot;&gt;NEWS&lt;/a&gt; for the descriptions.&lt;/p&gt; &lt;h2&gt;&lt;a name=&quot;label-0&quot; id=&quot;label-0&quot;&gt;Locations&lt;/a&gt;&lt;/h2&gt;&lt;!-- RDLabel: &quot;Locations&quot; --&gt;&lt;ul&gt;
369
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.bz2&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.bz2&amp;gt;&lt;/a&gt;
370
+ &lt;dl&gt;
371
+ &lt;dt&gt;&lt;a name=&quot;label-1&quot; id=&quot;label-1&quot;&gt;SIZE: 9552727 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 9552727 bytes&quot; --&gt;
372
+ &lt;dt&gt;&lt;a name=&quot;label-2&quot; id=&quot;label-2&quot;&gt;MD5: 26f0dc51ad981e12c58b48380112fa4d&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 26f0dc51ad981e12c58b48380112fa4d&quot; --&gt;
373
+ &lt;dt&gt;&lt;a name=&quot;label-3&quot; id=&quot;label-3&quot;&gt;SHA256: 951a8810086abca0e200f81767a518ee2730d6dc9b0cc2c7e3587dcfc3bf5fc8&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: 951a8810086abca0e200f81767a518ee2730d6dc9b0cc2c7e3587dcfc3bf5fc8&quot; --&gt;
374
+ &lt;/dl&gt;&lt;/li&gt;
375
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.gz&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.tar.gz&amp;gt;&lt;/a&gt;
376
+ &lt;dl&gt;
377
+ &lt;dt&gt;&lt;a name=&quot;label-4&quot; id=&quot;label-4&quot;&gt;SIZE: 12224459 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 12224459 bytes&quot; --&gt;
378
+ &lt;dt&gt;&lt;a name=&quot;label-5&quot; id=&quot;label-5&quot;&gt;MD5: 46a2a481536ca0ca0b80ad2b091df68e&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 46a2a481536ca0ca0b80ad2b091df68e&quot; --&gt;
379
+ &lt;dt&gt;&lt;a name=&quot;label-6&quot; id=&quot;label-6&quot;&gt;SHA256: bb1ae474d30e8681df89599520e766270c8e16450efdc01e099810f5e401eb94&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: bb1ae474d30e8681df89599520e766270c8e16450efdc01e099810f5e401eb94&quot; --&gt;
380
+ &lt;/dl&gt;&lt;/li&gt;
381
+ &lt;li&gt;&lt;a href=&quot;http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.zip&quot;&gt;&amp;lt;URL:http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-rc1.zip&amp;gt;&lt;/a&gt;
382
+ &lt;dl&gt;
383
+ &lt;dt&gt;&lt;a name=&quot;label-7&quot; id=&quot;label-7&quot;&gt;SIZE: 13696517 bytes&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SIZE: 13696517 bytes&quot; --&gt;
384
+ &lt;dt&gt;&lt;a name=&quot;label-8&quot; id=&quot;label-8&quot;&gt;MD5: 9c787f5e4963e54d1a11985a73467342&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;MD5: 9c787f5e4963e54d1a11985a73467342&quot; --&gt;
385
+ &lt;dt&gt;&lt;a name=&quot;label-9&quot; id=&quot;label-9&quot;&gt;SHA256: 8e9219b7e6f78a9e171740cbbb3787047383c281c290504dd0e4d8318607a74b&lt;/a&gt;&lt;/dt&gt;&lt;!-- RDLabel: &quot;SHA256: 8e9219b7e6f78a9e171740cbbb3787047383c281c290504dd0e4d8318607a74b&quot; --&gt;
386
+ &lt;/dl&gt;&lt;/li&gt;
387
+ &lt;/ul&gt;</description>
388
+ <pubDate>Sat, 24 Sep 2011 23:23:42 GMT</pubDate>
389
+ <guid>http://www.ruby-lang.org/en/news/2011/09/24/ruby-1-9-3-rc1-has-been-released/</guid>
390
+ <link>http://www.ruby-lang.org/en/news/2011/09/24/ruby-1-9-3-rc1-has-been-released/</link>
391
+ </item>
392
+
393
+
394
+ </channel>
395
+ </rss>
@@ -0,0 +1,1344 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <feed xmlns="http://www.w3.org/2005/Atom" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:re="http://purl.org/atompub/rank/1.0">
3
+ <title type="text">Recent Questions - Stack Overflow</title>
4
+ <link rel="self" href="http://stackoverflow.com/feeds" type="application/atom+xml" />
5
+ <link rel="alternate" href="http://stackoverflow.com/questions" type="text/html" />
6
+ <subtitle>most recent 30 from stackoverflow.com</subtitle>
7
+ <updated>2012-04-22T08:52:09Z</updated>
8
+ <id>http://stackoverflow.com/feeds</id>
9
+ <creativeCommons:license>http://www.creativecommons.org/licenses/by-sa/3.0/rdf</creativeCommons:license>
10
+ <entry>
11
+ <id>http://stackoverflow.com/q/10264840</id>
12
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
13
+ <title type="text">How can I change the login form&#39;s look in wordpress</title>
14
+ <category scheme="http://stackoverflow.com/feeds/tags" term="wordpress"/>
15
+ <author>
16
+ <name>user1349047</name>
17
+ <uri>http://stackoverflow.com/users/1349047</uri>
18
+ </author>
19
+ <link rel="alternate" href="http://stackoverflow.com/questions/10264840/how-can-i-change-the-login-forms-look-in-wordpress" />
20
+ <published>2012-04-22T02:56:37Z</published>
21
+ <updated>2012-04-22T08:51:34Z</updated>
22
+ <summary type="html">
23
+ &lt;p&gt;I am building a wordpress site for a client but my client wants to have a different look of login screen, so my question is how can i change the look of default wordpress login form&#39;s look. I don&#39;t want to change any core files, is there any way to change the look of the login form without changing the core files.
24
+ Any kind of help will be highly appreciated, thanks!&lt;/p&gt;
25
+
26
+ </summary>
27
+ </entry>
28
+ <entry>
29
+ <id>http://stackoverflow.com/q/10259316</id>
30
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
31
+ <title type="text">horizontal Text on a circle</title>
32
+ <category scheme="http://stackoverflow.com/feeds/tags" term="android"/>
33
+ <author>
34
+ <name>user1318171</name>
35
+ <uri>http://stackoverflow.com/users/1318171</uri>
36
+ </author>
37
+ <link rel="alternate" href="http://stackoverflow.com/questions/10259316/horizontal-text-on-a-circle" />
38
+ <published>2012-04-21T13:26:14Z</published>
39
+ <updated>2012-04-22T08:51:33Z</updated>
40
+ <summary type="html">
41
+ &lt;p&gt;Hello i want to place several Text around a circle, but dont want to rotate it, the Text should be horizontal, like a speedometer. Rotate canvas or TextOnPath rotate the text, so its not horizontal.&lt;/p&gt;
42
+
43
+ &lt;p&gt;How can i do this in Android?&lt;/p&gt;
44
+
45
+ &lt;pre&gt;&lt;code&gt; for (int i = minValue; i &amp;lt;= maxValue; ++i) {
46
+ float y1 = scaleRect.top;
47
+ float y2 = y1 - 0.020f;
48
+
49
+ canvas.drawLine(0.5f, y1, 0.5f, y2, scalePaint);
50
+
51
+ if (i%2==0) {
52
+ String valueString = Integer.toString(i);
53
+ canvas.drawText(valueString, 0.5f, y2 - 0.015f, scalePaint);
54
+ }
55
+
56
+ canvas.rotate(degreesPerNick, 0.5f, 0.5f);
57
+ }
58
+ &lt;/code&gt;&lt;/pre&gt;
59
+
60
+ </summary>
61
+ </entry>
62
+ <entry>
63
+ <id>http://stackoverflow.com/q/10266019</id>
64
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
65
+ <title type="text">Remove duplicate node with attribute in XML using XSLT</title>
66
+ <category scheme="http://stackoverflow.com/feeds/tags" term="xml"/><category scheme="http://stackoverflow.com/feeds/tags" term="xslt"/>
67
+ <author>
68
+ <name>John</name>
69
+ <uri>http://stackoverflow.com/users/1336019</uri>
70
+ </author>
71
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266019/remove-duplicate-node-with-attribute-in-xml-using-xslt" />
72
+ <published>2012-04-22T07:22:48Z</published>
73
+ <updated>2012-04-22T08:51:16Z</updated>
74
+ <summary type="html">
75
+ &lt;p&gt;I have this input XML which needs to be transformed with an xslt &lt;/p&gt;
76
+
77
+ &lt;pre&gt;&lt;code&gt;&amp;lt;root&amp;gt;
78
+ &amp;lt;node id=&quot;a&quot;&amp;gt;
79
+ &amp;lt;section id=&quot;a_1&quot;&amp;gt;
80
+ &amp;lt;item id=&quot;0&quot;&amp;gt;
81
+ &amp;lt;attribute&amp;gt;
82
+ &amp;lt;color&amp;gt;Red&amp;lt;/color&amp;gt;
83
+ &amp;lt;/attribute&amp;gt;
84
+ &amp;lt;/item&amp;gt;
85
+ &amp;lt;/section&amp;gt;
86
+ &amp;lt;section id=&quot;a_2&quot;&amp;gt;
87
+ &amp;lt;item id=&quot;0&quot;&amp;gt;
88
+ &amp;lt;attribute&amp;gt;
89
+ &amp;lt;color&amp;gt;Red&amp;lt;/color&amp;gt;
90
+ &amp;lt;/attribute&amp;gt;
91
+ &amp;lt;/item&amp;gt;
92
+ &amp;lt;/section&amp;gt;
93
+ &amp;lt;/node&amp;gt;
94
+ &amp;lt;node id=&quot;b&quot;&amp;gt;
95
+ &amp;lt;section id=&quot;b_1&quot; method=&quot;create&quot;&amp;gt;
96
+ &amp;lt;user id=&quot;b_1a&quot;&amp;gt;
97
+ &amp;lt;attribute&amp;gt;
98
+ &amp;lt;name&amp;gt;John&amp;lt;/name&amp;gt;
99
+ &amp;lt;/attribute&amp;gt;
100
+ &amp;lt;/user&amp;gt;
101
+ &amp;lt;user id=&quot;b_1b&quot;&amp;gt;
102
+ &amp;lt;attribute&amp;gt;a&amp;lt;/attribute&amp;gt;
103
+ &amp;lt;/user&amp;gt;
104
+ &amp;lt;/section&amp;gt;
105
+ &amp;lt;section id=&quot;b_1&quot; method=&quot;create&quot;&amp;gt;
106
+ &amp;lt;user id=&quot;b_1c&quot;&amp;gt;
107
+ &amp;lt;attribute&amp;gt;a&amp;lt;/attribute&amp;gt;
108
+ &amp;lt;/user&amp;gt;
109
+ &amp;lt;/section&amp;gt;
110
+ &amp;lt;section id=&quot;b_2&quot;&amp;gt;
111
+ &amp;lt;user id=&quot;b_1a&quot;&amp;gt;
112
+ &amp;lt;attribute&amp;gt;
113
+ &amp;lt;name&amp;gt;John&amp;lt;/name&amp;gt;
114
+ &amp;lt;/attribute&amp;gt;
115
+ &amp;lt;/user&amp;gt;
116
+ &amp;lt;/section&amp;gt;
117
+ &amp;lt;/node&amp;gt;
118
+ &amp;lt;/root&amp;gt;
119
+ &lt;/code&gt;&lt;/pre&gt;
120
+
121
+ &lt;p&gt;Expected output:&lt;/p&gt;
122
+
123
+ &lt;pre&gt;&lt;code&gt;&amp;lt;root&amp;gt;
124
+ &amp;lt;node id=&quot;a&quot;&amp;gt;
125
+ &amp;lt;section id=&quot;a_1&quot;&amp;gt;
126
+ &amp;lt;item id=&quot;0&quot;&amp;gt;
127
+ &amp;lt;attribute&amp;gt;
128
+ &amp;lt;color&amp;gt;Red&amp;lt;/color&amp;gt;
129
+ &amp;lt;/attribute&amp;gt;
130
+ &amp;lt;/item&amp;gt;
131
+ &amp;lt;/section&amp;gt;
132
+ &amp;lt;section id=&quot;a_2&quot;&amp;gt;
133
+ &amp;lt;item id=&quot;0&quot;&amp;gt;
134
+ &amp;lt;attribute&amp;gt;
135
+ &amp;lt;color&amp;gt;Red&amp;lt;/color&amp;gt;
136
+ &amp;lt;/attribute&amp;gt;
137
+ &amp;lt;/item&amp;gt;
138
+ &amp;lt;/section&amp;gt;
139
+ &amp;lt;/node&amp;gt;
140
+ &amp;lt;node id=&quot;b&quot;&amp;gt;
141
+ &amp;lt;section id=&quot;b_1&quot; method=&quot;create&quot;&amp;gt;
142
+ &amp;lt;user id=&quot;b_1a&quot;&amp;gt;
143
+ &amp;lt;attribute&amp;gt;
144
+ &amp;lt;name&amp;gt;John&amp;lt;/name&amp;gt;
145
+ &amp;lt;/attribute&amp;gt;
146
+ &amp;lt;/user&amp;gt;
147
+ &amp;lt;user id=&quot;b_1b&quot;&amp;gt;
148
+ &amp;lt;attribute&amp;gt;a&amp;lt;/attribute&amp;gt;
149
+ &amp;lt;/user&amp;gt;
150
+ &amp;lt;/section&amp;gt;
151
+
152
+ &amp;lt;section id=&quot;b_2&quot;&amp;gt;
153
+ &amp;lt;user id=&quot;b_1a&quot;&amp;gt;
154
+ &amp;lt;attribute&amp;gt;
155
+ &amp;lt;name&amp;gt;John&amp;lt;/name&amp;gt;
156
+ &amp;lt;/attribute&amp;gt;
157
+ &amp;lt;/user&amp;gt;
158
+ &amp;lt;/section&amp;gt;
159
+ &amp;lt;/node&amp;gt;
160
+ &amp;lt;/root&amp;gt;
161
+ &lt;/code&gt;&lt;/pre&gt;
162
+
163
+ &lt;p&gt;It does not matter which node will be eliminated, as long as it has the same element name, id and method, one of them will be removed.
164
+ Any idea what the xsl looks like ? Thanks very much. &lt;/p&gt;
165
+
166
+ &lt;p&gt;cheers,
167
+ John&lt;/p&gt;
168
+
169
+ </summary>
170
+ </entry>
171
+ <entry>
172
+ <id>http://stackoverflow.com/q/10266540</id>
173
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
174
+ <title type="text">LOAD DATA not available; fgetcsv times out; alternatives?</title>
175
+ <category scheme="http://stackoverflow.com/feeds/tags" term="data"/><category scheme="http://stackoverflow.com/feeds/tags" term="load"/><category scheme="http://stackoverflow.com/feeds/tags" term="timeout"/><category scheme="http://stackoverflow.com/feeds/tags" term="fgetcsv"/>
176
+ <author>
177
+ <name>Austen Osborne</name>
178
+ <uri>http://stackoverflow.com/users/1103518</uri>
179
+ </author>
180
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266540/load-data-not-available-fgetcsv-times-out-alternatives" />
181
+ <published>2012-04-22T08:50:53Z</published>
182
+ <updated>2012-04-22T08:50:53Z</updated>
183
+ <summary type="html">
184
+ &lt;p&gt;I have a site where a csv of racehorse data is to be uploaded once a week. The CSV contains the details of about 19,000 racehorses currently registered in the UK and is about 1.3MB in size, on average. I have a script that processes that csv and either updates the horse if it exists and the ratings data has changed, or adds it if it doesn&#39;t exist. If a horse is unchanged, it skips to the next one. The script works, as it was running on the host I use as a test. It took 5 or 6 minutes to run (less than ideal, I know), but it worked.&lt;/p&gt;
185
+
186
+ &lt;p&gt;However, we&#39;re now testing on the staging version of the client&#39;s host, and it&#39;s running for 15 minutes and then returning a 504 timeout. We&#39;ve tweaked htaccess and php.ini settings as much as we&#39;re able ... no joy.&lt;/p&gt;
187
+
188
+ &lt;p&gt;The host is in a shared environment, so they tell me that MySQL&#39;s LOAD DATA is unavailable to us.&lt;/p&gt;
189
+
190
+ &lt;p&gt;What other alternative approaches would you try? Or is there a way of splitting the csv into chunks and running a process on each one in turn, for example?&lt;/p&gt;
191
+
192
+ &lt;p&gt;Thanks!&lt;/p&gt;
193
+
194
+ &lt;p&gt;Austen&lt;/p&gt;
195
+
196
+ </summary>
197
+ </entry>
198
+ <entry>
199
+ <id>http://stackoverflow.com/q/10266539</id>
200
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
201
+ <title type="text">superfish not working with Roundabout slider</title>
202
+ <category scheme="http://stackoverflow.com/feeds/tags" term="jquery"/><category scheme="http://stackoverflow.com/feeds/tags" term="css"/><category scheme="http://stackoverflow.com/feeds/tags" term="wordpress"/><category scheme="http://stackoverflow.com/feeds/tags" term="superfish"/>
203
+ <author>
204
+ <name>Muhammad Ahsan</name>
205
+ <uri>http://stackoverflow.com/users/197936</uri>
206
+ </author>
207
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266539/superfish-not-working-with-roundabout-slider" />
208
+ <published>2012-04-22T08:50:48Z</published>
209
+ <updated>2012-04-22T08:50:48Z</updated>
210
+ <summary type="html">
211
+ &lt;p&gt;As soon as i have added and changed the css for roundabout, my superfish menu is not displaying any dropdown, here is the css for superfish and roundabout&lt;/p&gt;
212
+
213
+ &lt;pre&gt;&lt;code&gt;.sf-menu, .sf-menu * {list-style:none; margin:0; padding:0;}
214
+
215
+ .sf-menu {line-height:1; z-index:99999;}
216
+
217
+ .sf-menu ul {position:absolute; top:-999em; width:166px; z-index:800; border:1px solid #000; -webkit-border-radius: 0 0 6px 6px;
218
+
219
+ -moz-border-radius: 0 0 6px 6px;
220
+
221
+ border-radius: 0 0 6px 6px;
222
+
223
+ behavior: url(wp-content/themes/theme1246/PIE.htc);}
224
+
225
+ .sf-menu li li ul{overflow:hidden; -webkit-border-radius:6px;
226
+
227
+ -moz-border-radius:6px;
228
+
229
+ border-radius:6px;
230
+
231
+ behavior: url(wp-content/themes/theme1246/PIE.htc);}
232
+
233
+ .sf-menu ul li {width: 166px;}
234
+
235
+ .sf-menu li:hover {visibility:inherit;}
236
+
237
+ .sf-menu li {float:left; position:relative;}
238
+
239
+ .sf-menu a {display:block; position:relative;}
240
+
241
+ .sf-menu li:hover ul, .sf-menu li.sfHover ul {left:0; top:59px;}
242
+
243
+
244
+
245
+ ul.sf-menu li:hover li ul, ul.sf-menu li.sfHover li ul {top: -999em;}
246
+
247
+ ul.sf-menu li li:hover ul, ul.sf-menu li li.sfHover ul {left: 167px; top: -2px;}
248
+
249
+ ul.sf-menu li li:hover li ul, ul.sf-menu li li.sfHover li ul { top: -999em;}
250
+
251
+ ul.sf-menu li li li:hover ul, ul.sf-menu li li li.sfHover ul {left: 10em; top: 0;}
252
+
253
+
254
+
255
+ .sf-menu {float: right; font-family: &#39;Ropa Sans&#39;, sans-serif; border: 1px solid #000; border-left:none; position:relative;
256
+
257
+ -webkit-border-radius: 0 0 6px 6px;
258
+
259
+ -moz-border-radius: 0 0 6px 6px;
260
+
261
+ border-radius: 0 0 6px 6px;
262
+
263
+ /*behavior: url(wp-content/themes/theme1246/PIE.htc);*/}
264
+
265
+ .sf-menu a {color: #FFFFFF; font-size:17px; padding: 19px 30px 22px 28px; text-align: center; text-decoration: none; /*letter-spacing:-1px;*/ background:url(images/bg10.png) repeat-x center top;}
266
+
267
+ .sf-menu a, .sf-menu a:visited {color: #FFFFFF;}
268
+
269
+ .sf-menu li {background:url(images/line2.png) no-repeat left top; padding:0 0 0 2px;}
270
+
271
+ .sf-menu li li, .sf-menu li li li { height:39px; width:164px; margin: 0; background:url(images/menu_li_bg.png) repeat center top; border-top:1px solid #353131; border-bottom:1px solid #211d1d;}
272
+
273
+ .sf-menu li li:hover, .sf-menu li li li:hover{ background:url(images/menu_li_bg2.png) repeat center top;}
274
+
275
+ .sf-menu li li a, .sf-menu li li li a {font-size: 17px; line-height: 39px; min-width: 0; padding: 0; text-align: left; padding-left:15px;}
276
+
277
+
278
+
279
+ .sf-menu a:hover, .sf-menu .current-menu-item &amp;gt; a { background:url(images/bg6.png) repeat-x center top;}
280
+
281
+ .sf-menu li li.current-menu-item &amp;gt; a, .sf-menu li li li.current-menu-item &amp;gt; a{background:none;}
282
+
283
+ .sf-menu li li a:hover, .sf-menu li li.sfHover a { background:none;}
284
+
285
+ .sf-menu li li li a:hover, .sf-menu li li li.sfHover a {background:none;}
286
+
287
+ .sf-menu a.sf-with-ul {min-width: 1px; padding-right: 2.25em;}
288
+
289
+ .sf-sub-indicator {
290
+ position: absolute;
291
+ display: block;
292
+ right: .75em;
293
+ top: 1.05em; /* IE6 only */
294
+ width: 10px;
295
+ height: 10px;
296
+ text-indent: -999em;
297
+ overflow: hidden;
298
+ background: url(&#39;images/arrows.png&#39;) no-repeat -10px -100px; /* 8-bit indexed alpha png. IE6 gets solid image only */
299
+ }
300
+
301
+ a &amp;gt; .sf-sub-indicator { background-position: 0 -100px; top: 0.8em;}
302
+
303
+ a:focus &amp;gt; .sf-sub-indicator, a:hover &amp;gt; .sf-sub-indicator, a:active &amp;gt; .sf-sub-indicator, li:hover &amp;gt; a &amp;gt; .sf-sub-indicator, li.sfHover &amp;gt; a &amp;gt; .sf-sub-indicator {background-position: -10px -100px;}
304
+
305
+ .sf-menu ul .sf-sub-indicator {background-position: -10px 0;}
306
+
307
+ .sf-menu ul a &amp;gt; .sf-sub-indicator {background-position: 0 0;}
308
+
309
+ .sf-menu ul a:focus &amp;gt; .sf-sub-indicator, .sf-menu ul a:hover &amp;gt; .sf-sub-indicator, .sf-menu ul a:active &amp;gt; .sf-sub-indicator, .sf-menu ul li:hover &amp;gt; a &amp;gt; .sf-sub-indicator, .sf-menu ul li.sfHover &amp;gt; a &amp;gt; .sf-sub-indicator { background-position: -10px 0;}
310
+
311
+
312
+
313
+ .sf-shadow ul { -moz-border-radius-bottomleft: 17px; -moz-border-radius-topright: 17px; background: url(&quot;images/shadow.png&quot;) no-repeat scroll right bottom transparent; padding: 0 8px 9px 0;}
314
+
315
+ .sf-shadow ul.sf-shadow-off {background: none repeat scroll 0 0 transparent;}
316
+ &lt;/code&gt;&lt;/pre&gt;
317
+
318
+ &lt;p&gt;and the css for roundabout is&lt;/p&gt;
319
+
320
+ &lt;pre&gt;&lt;code&gt; #myRoundabout { visibility: hidden; z-index:100; }
321
+ .roundabout-holder { padding-top: 0pt; padding-right: 0pt; padding-left: 0pt; width: 600px; margin: 0pt auto; height: 390px; padding-bottom: 10px ! important; list-style: none outside none; overflow:visible;
322
+
323
+ }
324
+ .roundabout-moveable-item { height: 300px; width: 590px; padding: 10px; overflow: hidden; cursor: pointer; position: relative; border-radius: 5px 5px 5px 5px; }
325
+ .roundabout-moveable-item img { height: 100%; width: 100%; overflow: hidden; }
326
+ .roundabout-moveable-item a { outline: medium none; }
327
+
328
+ .roundabout-moveable-item { border: 1px solid rgb(255, 255, 255); background: none repeat scroll 0% 0% rgb(224, 224, 224); box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5); }
329
+ &lt;/code&gt;&lt;/pre&gt;
330
+
331
+ &lt;p&gt;and the jquery code for both of them is&lt;/p&gt;
332
+
333
+ &lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
334
+ $ahsan = jQuery.noConflict();
335
+
336
+
337
+ $ahsan(document).ready(function(){
338
+ $ahsan(&#39;#autoplay&#39;).css(&quot;color&quot;,&quot;#95daf1&quot;);
339
+ //ROUND TABLE
340
+ //var interval;
341
+ $ahsan(&#39;ul#myRoundabout&#39;).css(&quot;visibility&quot;,&quot;visible&quot;).roundabout({
342
+ minOpacity: 1,
343
+ minScale: 0.4,
344
+ maxScale:1.0,
345
+ responsive:true,
346
+ easing: &#39;swing&#39;,
347
+ duration: 500,
348
+ reflect: false,
349
+ startingChild: 0,
350
+ btnNext: &#39;#bt-next&#39;,
351
+ btnPrev: &#39;#bt-previous&#39;,
352
+ btnStartAutoplay:&#39;#autoplay&#39;,
353
+ btnStopAutoplay:&#39;#pause&#39;,
354
+ autoplay: true,
355
+ autoplayDuration: 3000,
356
+ //autoplayInitialDelay: 500,
357
+ autoplayPauseOnHover: true
358
+ //NEW --&amp;gt;
359
+ })
360
+
361
+ $ahsan(&quot;#bt-next,#bt-previous&quot;).click(function() {
362
+
363
+ $ahsan(&#39;#myRoundabout&#39;).roundabout(&quot;toggleAutoplay&quot;);
364
+ $ahsan(&#39;#autoplay&#39;).css(&quot;color&quot;,&quot;#fff&quot;);
365
+ $ahsan(&#39;#pause&#39;).css(&quot;color&quot;,&quot;#77CFED&quot;);
366
+
367
+ });
368
+
369
+
370
+
371
+ $ahsan(&quot;#autoplay&quot;).click(function() {
372
+ $ahsan(&#39;#pause&#39;).css(&quot;color&quot;,&quot;#fff&quot;);
373
+ $ahsan(&#39;#autoplay&#39;).css(&quot;color&quot;,&quot;#77CFED&quot;);
374
+
375
+
376
+ });
377
+
378
+ $ahsan(&quot;#pause&quot;).click(function() {
379
+
380
+ $ahsan(&#39;#autoplay&#39;).css(&quot;color&quot;,&quot;#fff&quot;);
381
+ $ahsan(&#39;#pause&#39;).css(&quot;color&quot;,&quot;#77CFED&quot;);
382
+
383
+
384
+ });
385
+
386
+
387
+
388
+ });
389
+
390
+
391
+ &amp;lt;/script&amp;gt;
392
+ &lt;/code&gt;&lt;/pre&gt;
393
+
394
+ &lt;p&gt;and for superfish it is&lt;/p&gt;
395
+
396
+ &lt;pre&gt;&lt;code&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
397
+ $k = jQuery.noConflict();
398
+ $k(document).ready(function(){
399
+
400
+ $k(&#39;ul.sf-menu&#39;).superfish({
401
+ animation: {opacity:&#39;show&#39;, height:&#39;show&#39;},
402
+ speed: &#39;fast&#39;, // faster animation speed
403
+ autoArrows: false, // disable generation of arrow mark-up
404
+ dropShadows: false // disable drop shadows
405
+ });
406
+ });
407
+ &amp;lt;/script&amp;gt;
408
+ &lt;/code&gt;&lt;/pre&gt;
409
+
410
+ </summary>
411
+ </entry>
412
+ <entry>
413
+ <id>http://stackoverflow.com/q/10266538</id>
414
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
415
+ <title type="text">Magento Shipping Disable when payment is pending</title>
416
+ <category scheme="http://stackoverflow.com/feeds/tags" term="magento"/><category scheme="http://stackoverflow.com/feeds/tags" term="e-commerce"/><category scheme="http://stackoverflow.com/feeds/tags" term="shipping"/>
417
+ <author>
418
+ <name>Mccoy Robles</name>
419
+ <uri>http://stackoverflow.com/users/1036149</uri>
420
+ </author>
421
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266538/magento-shipping-disable-when-payment-is-pending" />
422
+ <published>2012-04-22T08:50:44Z</published>
423
+ <updated>2012-04-22T08:50:44Z</updated>
424
+ <summary type="html">
425
+ &lt;p&gt;I&#39;m trying to disable shipping in magento while the payment is pending.&lt;/p&gt;
426
+
427
+ &lt;p&gt;Anyone did this? please help me. &lt;/p&gt;
428
+
429
+ &lt;p&gt;Cheers&lt;/p&gt;
430
+
431
+ </summary>
432
+ </entry>
433
+ <entry>
434
+ <id>http://stackoverflow.com/q/10174448</id>
435
+ <re:rank scheme="http://stackoverflow.com">-1</re:rank>
436
+ <title type="text">A server or scripting issue</title>
437
+ <category scheme="http://stackoverflow.com/feeds/tags" term="apache"/><category scheme="http://stackoverflow.com/feeds/tags" term="tomcat"/><category scheme="http://stackoverflow.com/feeds/tags" term="cas"/>
438
+ <author>
439
+ <name>Nabe</name>
440
+ <uri>http://stackoverflow.com/users/1297590</uri>
441
+ </author>
442
+ <link rel="alternate" href="http://stackoverflow.com/questions/10174448/a-server-or-scripting-issue" />
443
+ <published>2012-04-16T12:53:01Z</published>
444
+ <updated>2012-04-22T08:50:29Z</updated>
445
+ <summary type="html">
446
+ &lt;p&gt;I am recieving an error in https&lt;/p&gt;
447
+
448
+ &lt;pre&gt;&lt;code&gt; HTTP Status 404 - /cas/login
449
+
450
+ type Status report
451
+
452
+ message /cas/login
453
+
454
+ description The requested resource (/cas/login) is not available.
455
+ Apache Tomcat/7.0.23
456
+ &lt;/code&gt;&lt;/pre&gt;
457
+
458
+ &lt;p&gt;when i open the same link in http it gives an output (an unknown language)&lt;/p&gt;
459
+
460
+ &lt;pre&gt;&lt;code&gt; &amp;lt;html&amp;gt;
461
+ &amp;lt;head&amp;gt;&amp;lt;/head&amp;gt;
462
+ &amp;lt;body&amp;gt;
463
+ &amp;lt;pre&amp;gt;???�?? &amp;lt;/pre&amp;gt;
464
+ &amp;lt;/body&amp;gt;
465
+ &amp;lt;/html&amp;gt;
466
+ &lt;/code&gt;&lt;/pre&gt;
467
+
468
+ &lt;p&gt;Why is it so...? Is this an server issue or script issue? I feel it as a Server issue?? If so please share a remedy for it...&lt;/p&gt;
469
+
470
+ </summary>
471
+ </entry>
472
+ <entry>
473
+ <id>http://stackoverflow.com/q/10265941</id>
474
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
475
+ <title type="text">Crystal Reports: Showing only first record in each group</title>
476
+ <category scheme="http://stackoverflow.com/feeds/tags" term="crystal-reports"/><category scheme="http://stackoverflow.com/feeds/tags" term="formula"/>
477
+ <author>
478
+ <name>Sensa</name>
479
+ <uri>http://stackoverflow.com/users/1289409</uri>
480
+ </author>
481
+ <link rel="alternate" href="http://stackoverflow.com/questions/10265941/crystal-reports-showing-only-first-record-in-each-group" />
482
+ <published>2012-04-22T07:09:09Z</published>
483
+ <updated>2012-04-22T08:50:05Z</updated>
484
+ <summary type="html">
485
+ &lt;p&gt;I searched to get the required answer but not found exactly what iam looking for - please help me.&lt;/p&gt;
486
+
487
+ &lt;p&gt;Please follow the steps i made in crystal report: &lt;/p&gt;
488
+
489
+ &lt;p&gt;Using crystal report command (i created a query to get the required business number)
490
+ --&gt; which gets 5 Business numbers &lt;/p&gt;
491
+
492
+ &lt;p&gt;Note: Every business is having many receipt numbers (1st installment receipt, 2nd installment receipts... like that....) - these receipt details are stored in table_receipts.&lt;/p&gt;
493
+
494
+ &lt;p&gt;In table_business - i have all details about business number, customer, product details...&lt;/p&gt;
495
+
496
+ &lt;p&gt;Please understand the links: &lt;/p&gt;
497
+
498
+ &lt;p&gt;table_business - table_customer - table_product - table_receipts &lt;/p&gt;
499
+
500
+ &lt;p&gt;Relationship between tables are:&lt;/p&gt;
501
+
502
+ &lt;ul&gt;
503
+ &lt;li&gt;table_business.Bno=table_receipts.Bno&lt;/li&gt;
504
+ &lt;li&gt;table_customer.Cno=table_customer.Cno&lt;/li&gt;
505
+ &lt;li&gt;table_product.Pno=table_product.Pno&lt;/li&gt;
506
+ &lt;/ul&gt;
507
+
508
+ &lt;p&gt;After creating the crystal report command; i just drag the required table in crystal report (table_business, table_customer,table_product,table_receipts)&lt;/p&gt;
509
+
510
+ &lt;p&gt;Now i created a group for Business Number &quot;BNo&quot;&lt;/p&gt;
511
+
512
+ &lt;p&gt;I need to display all the required details about that selected Business Number using parameter - its coming fine except receipts.&lt;/p&gt;
513
+
514
+ &lt;p&gt;I mean its showing all receipts (all installment receipts). I need to display only the first receipt only (i.e: receipt number starst with letter &quot;F&quot; )&lt;/p&gt;
515
+
516
+ &lt;p&gt;Hope you understand my requirement - Please help me in this regard.&lt;/p&gt;
517
+
518
+ &lt;p&gt;Expecting your valuable reply.
519
+ Regards,
520
+ Sensa.&lt;/p&gt;
521
+
522
+ </summary>
523
+ </entry>
524
+ <entry>
525
+ <id>http://stackoverflow.com/q/10255013</id>
526
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
527
+ <title type="text">How to use OpenCV to remove non text areas from a business card?</title>
528
+ <category scheme="http://stackoverflow.com/feeds/tags" term="c++"/><category scheme="http://stackoverflow.com/feeds/tags" term="image-processing"/><category scheme="http://stackoverflow.com/feeds/tags" term="opencv"/><category scheme="http://stackoverflow.com/feeds/tags" term="ocr"/><category scheme="http://stackoverflow.com/feeds/tags" term="segmentation"/>
529
+ <author>
530
+ <name>Patrick Jones</name>
531
+ <uri>http://stackoverflow.com/users/1334344</uri>
532
+ </author>
533
+ <link rel="alternate" href="http://stackoverflow.com/questions/10255013/how-to-use-opencv-to-remove-non-text-areas-from-a-business-card" />
534
+ <published>2012-04-21T00:07:54Z</published>
535
+ <updated>2012-04-22T08:50:01Z</updated>
536
+ <summary type="html">
537
+ &lt;p&gt;my target is to remove any non text area from a scanned business card image but i don&#39;t know the steps to perform that using OpenCV , i have followed this steps but don&#39;t know this is the right one or not also i don&#39;t notice any change in the image (non text areas remains) any idea will be very helpful,thanks.&lt;/p&gt;
538
+
539
+ &lt;p&gt;1) convert the image to grayscale&lt;/p&gt;
540
+
541
+ &lt;p&gt;2) binaries the image&lt;/p&gt;
542
+
543
+ &lt;p&gt;3) invert the colors (cv::bitwise_not) in order to have a white pixels text&lt;/p&gt;
544
+
545
+ &lt;p&gt;4) Erode the image(cv::erode)&lt;/p&gt;
546
+
547
+ &lt;p&gt;5) detect edges using canny&lt;/p&gt;
548
+
549
+ &lt;p&gt;6) detect text lines using hough transform (not yet)&lt;/p&gt;
550
+
551
+ &lt;p&gt;code:&lt;/p&gt;
552
+
553
+ &lt;pre&gt;&lt;code&gt;cv::Mat greyMat = [self.imageView.image CVGrayscaleMat];
554
+ cv::Mat bwMat;
555
+ cv::threshold(greyMat, bwMat, 128, 255, CV_THRESH_BINARY);
556
+ cv::bitwise_not(bwMat, bwMat);
557
+ cv::Mat element = cv::getStructuringElement(cv::MORPH_RECT, cv::Size(2, 1));
558
+ cv::erode(bwMat, bwMat, element);
559
+ std::vector&amp;lt;cv::Point&amp;gt;points;
560
+ cv::Mat_&amp;lt;uchar&amp;gt;::iterator it=bwMat.begin&amp;lt;uchar&amp;gt;();
561
+ cv::Mat_&amp;lt;uchar&amp;gt;::iterator end=bwMat.end&amp;lt;uchar&amp;gt;();
562
+ for (; it!=end; ++it)
563
+ if (*it)
564
+ points.push_back(it.pos());
565
+ cv::RotatedRect box=cv::minAreaRect(cv::Mat(points));
566
+ plImage* smothedImage=new IplImage(bwMat);
567
+ cvSmooth(smothedImage, smothedImage);
568
+ cvCanny(smothedImage, smothedImage, 10, 100);
569
+ &lt;/code&gt;&lt;/pre&gt;
570
+
571
+ </summary>
572
+ </entry>
573
+ <entry>
574
+ <id>http://stackoverflow.com/q/10266334</id>
575
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
576
+ <title type="text">Add-on to copy a page element with styles</title>
577
+ <category scheme="http://stackoverflow.com/feeds/tags" term="html"/><category scheme="http://stackoverflow.com/feeds/tags" term="css"/><category scheme="http://stackoverflow.com/feeds/tags" term="firefox-addon"/><category scheme="http://stackoverflow.com/feeds/tags" term="greasemonkey"/><category scheme="http://stackoverflow.com/feeds/tags" term="browser-extension"/>
578
+ <author>
579
+ <name>Bardt</name>
580
+ <uri>http://stackoverflow.com/users/782512</uri>
581
+ </author>
582
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266334/add-on-to-copy-a-page-element-with-styles" />
583
+ <published>2012-04-22T08:17:54Z</published>
584
+ <updated>2012-04-22T08:50:00Z</updated>
585
+ <summary type="html">
586
+ &lt;p&gt;I&#39;m looking for an add-on for any browser that could copy any particular web page element with all it&#39;s styles to clipboard to be paste-in and show someone.&lt;/p&gt;
587
+
588
+ &lt;p&gt;The aim is to have an opportunity to quickly share a small part of my big project or to assist in writing an article about this HTML and CSS tricks or to inspect a part of someone&#39;s else work. &lt;/p&gt;
589
+
590
+ &lt;p&gt;Any ideas? If no such plugin exist, I&#39;ll try to write is by myself. &lt;/p&gt;
591
+
592
+ </summary>
593
+ </entry>
594
+ <entry>
595
+ <id>http://stackoverflow.com/q/10241950</id>
596
+ <re:rank scheme="http://stackoverflow.com">3</re:rank>
597
+ <title type="text">Store file for duration of time on webpage</title>
598
+ <category scheme="http://stackoverflow.com/feeds/tags" term="php"/><category scheme="http://stackoverflow.com/feeds/tags" term="python"/><category scheme="http://stackoverflow.com/feeds/tags" term="web-development"/><category scheme="http://stackoverflow.com/feeds/tags" term="temporary-files"/>
599
+ <author>
600
+ <name>Walkerneo</name>
601
+ <uri>http://stackoverflow.com/users/828584</uri>
602
+ </author>
603
+ <link rel="alternate" href="http://stackoverflow.com/questions/10241950/store-file-for-duration-of-time-on-webpage" />
604
+ <published>2012-04-20T07:23:59Z</published>
605
+ <updated>2012-04-22T08:49:59Z</updated>
606
+ <summary type="html">
607
+ &lt;p&gt;I need to set up a page that will let the user upload a file, modify the file with a script, and then serve the file back to the user.&lt;/p&gt;
608
+
609
+ &lt;p&gt;I have the uploading and modifying parts down, but I don&#39;t know where to put the file. They are going to be in the area of 1 or 2mb, and I have very little space on my webhosting plan, so I want to get rid of the files as soon as possible. There&#39;s no reason for the files to exist any longer than after the users are given the option to download by their browser upon being redirected. &lt;/p&gt;
610
+
611
+ &lt;p&gt;Is the only way to this with a cron job that checks the creation time of the files and deletes them if they&#39;re a certain age?&lt;/p&gt;
612
+
613
+ &lt;p&gt;I&#39;m working with python and PHP.&lt;/p&gt;
614
+
615
+ &lt;p&gt;edit:&lt;/p&gt;
616
+
617
+ &lt;p&gt;First the file is uploaded. Then the location of the file is sent back to the user. The javascript on the page redirects to the path of the file. The browser opens save file dialog, and they choose to save the file or cancel. If they cancel, I want to delete the file immediately. If they choose to save the file, I want to delete the file once their download has completed.&lt;/p&gt;
618
+
619
+ </summary>
620
+ </entry>
621
+ <entry>
622
+ <id>http://stackoverflow.com/q/1521257</id>
623
+ <re:rank scheme="http://stackoverflow.com">12</re:rank>
624
+ <title type="text">Help getting JSTL to run within tomcat and eclipse</title>
625
+ <category scheme="http://stackoverflow.com/feeds/tags" term="eclipse"/><category scheme="http://stackoverflow.com/feeds/tags" term="tomcat"/><category scheme="http://stackoverflow.com/feeds/tags" term="glassfish"/><category scheme="http://stackoverflow.com/feeds/tags" term="jstl"/>
626
+ <author>
627
+ <name>Alex004</name>
628
+ <uri>http://stackoverflow.com/users/184496</uri>
629
+ </author>
630
+ <link rel="alternate" href="http://stackoverflow.com/questions/1521257/help-getting-jstl-to-run-within-tomcat-and-eclipse" />
631
+ <published>2009-10-05T17:05:21Z</published>
632
+ <updated>2012-04-22T08:49:45Z</updated>
633
+ <summary type="html">
634
+ &lt;p&gt;I&#39;ve been trying to get this to run, but I can&#39;t. I&#39;m using Eclipse Galileo, Tomcat 5.5.23 and have several JSTLs around. My latest try was to use the glassfish jar file &quot;jstl-impl-1.2.jar&quot;. I placed it in tomcat&#39;s shared lib, added it as external jar into my eclipe project and exported it.&lt;/p&gt;
635
+
636
+ &lt;p&gt;Could anybody tell me, which jars to load in which folder and how to tell it to load in eclipse?&lt;/p&gt;
637
+
638
+ </summary>
639
+ </entry>
640
+ <entry>
641
+ <id>http://stackoverflow.com/q/10266534</id>
642
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
643
+ <title type="text">Eclipse Theme Issue</title>
644
+ <category scheme="http://stackoverflow.com/feeds/tags" term="eclipse"/><category scheme="http://stackoverflow.com/feeds/tags" term="eclipse-plugin"/>
645
+ <author>
646
+ <name>Deamon</name>
647
+ <uri>http://stackoverflow.com/users/1349226</uri>
648
+ </author>
649
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266534/eclipse-theme-issue" />
650
+ <published>2012-04-22T08:49:42Z</published>
651
+ <updated>2012-04-22T08:49:42Z</updated>
652
+ <summary type="html">
653
+ &lt;p&gt;The Eclipse theme only seams to apply on the editor’s window and set area like &lt;strong&gt;&lt;em&gt;Project Browser , Outline, Task windows etc seems unchanged.&lt;/em&gt;&lt;/strong&gt; I have downloaded the themes form the Eclipse Market place but it has no effect. Is that the way it suppose to work or something is wrong with my Eclipse on installation.&lt;/p&gt;
654
+
655
+ &lt;p&gt;I have manage to change the Java doc and Declaration Windows manually form the
656
+ Windows -&gt;Presences -&gt; Color and Fonts&lt;/p&gt;
657
+
658
+ &lt;p&gt;Plus I have tried putting pref files in the workspace as suggested by Eric in his blog :- &lt;/p&gt;
659
+
660
+ &lt;p&gt;&lt;a href=&quot;http://blog.edwards-research.com/2009/10/color-schemes-for-eclipse-cdt/&quot; rel=&quot;nofollow&quot;&gt;http://blog.edwards-research.com/2009/10/color-schemes-for-eclipse-cdt/&lt;/a&gt;
661
+ and Theme generator
662
+ &quot;blog.edwards-research.com/files/eclipse-gen/#&quot;&lt;/p&gt;
663
+
664
+ &lt;p&gt;My present Eclipse looks like :- &lt;a href=&quot;http://www.flickr.com/photos/deamonm/7101439563/&quot; rel=&quot;nofollow&quot;&gt;http://www.flickr.com/photos/deamonm/7101439563/&lt;/a&gt;&lt;/p&gt;
665
+
666
+ &lt;p&gt;I wonder how did Aptana studio manage to change in the Eclipse plugin&lt;/p&gt;
667
+
668
+ </summary>
669
+ </entry>
670
+ <entry>
671
+ <id>http://stackoverflow.com/q/10265820</id>
672
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
673
+ <title type="text">replacing values in a nested tuple with the whole tuple</title>
674
+ <category scheme="http://stackoverflow.com/feeds/tags" term="python"/><category scheme="http://stackoverflow.com/feeds/tags" term="tuples"/><category scheme="http://stackoverflow.com/feeds/tags" term="linguistics"/>
675
+ <author>
676
+ <name>NHDaly</name>
677
+ <uri>http://stackoverflow.com/users/751061</uri>
678
+ </author>
679
+ <link rel="alternate" href="http://stackoverflow.com/questions/10265820/replacing-values-in-a-nested-tuple-with-the-whole-tuple" />
680
+ <published>2012-04-22T06:44:18Z</published>
681
+ <updated>2012-04-22T08:49:22Z</updated>
682
+ <summary type="html">
683
+ &lt;p&gt;Okay,&lt;/p&gt;
684
+
685
+ &lt;p&gt;I am working on a linguistic prover, and I have series of tuples that represent statements or expressions.
686
+ Sometimes, I end up with an embedded &quot;and&quot; statement, and I am trying to &quot;bubble&quot; it up to the surface.
687
+ I want to take a tuple that looks like this:&lt;/p&gt;
688
+
689
+ &lt;pre&gt;&lt;code&gt;(&#39;pred&#39;, (&#39;and&#39;, &#39;a&#39;, &#39;b&#39;), &#39;x&#39;)
690
+ &lt;/code&gt;&lt;/pre&gt;
691
+
692
+ &lt;p&gt;or, for a more simple example:&lt;/p&gt;
693
+
694
+ &lt;pre&gt;&lt;code&gt;( (&#39;and&#39;, &#39;a&#39;, &#39;b&#39;), &#39;x&#39;)
695
+ &lt;/code&gt;&lt;/pre&gt;
696
+
697
+ &lt;p&gt;and I want to separate out the ands into two statements such that the top one results in:&lt;/p&gt;
698
+
699
+ &lt;pre&gt;&lt;code&gt;(&#39;and&#39;, (&#39;pred&#39;, &#39;a&#39;, &#39;x&#39;,), (&#39;pred&#39;, &#39;b&#39;, &#39;x&#39;) )
700
+ &lt;/code&gt;&lt;/pre&gt;
701
+
702
+ &lt;p&gt;and the bottom one in:&lt;/p&gt;
703
+
704
+ &lt;pre&gt;&lt;code&gt;(&#39;and&#39;, (&#39;a&#39;, &#39;x&#39;), (&#39;b&#39;, &#39;x&#39;) )
705
+ &lt;/code&gt;&lt;/pre&gt;
706
+
707
+ &lt;p&gt;I&#39;ve tried a lot of things, but it always turns out to be quite ugly code. And I am having problems if there are more nested tuples such as:&lt;/p&gt;
708
+
709
+ &lt;pre&gt;&lt;code&gt;(&#39;not&#39;, (&#39;p&#39;, (&#39;and&#39;, &#39;a&#39;, &#39;b&#39;), &#39;x&#39;) )
710
+ &lt;/code&gt;&lt;/pre&gt;
711
+
712
+ &lt;p&gt;which I want to result in &lt;/p&gt;
713
+
714
+ &lt;pre&gt;&lt;code&gt;(&#39;not&#39;, (&#39;and&#39;, (&#39;p&#39;, &#39;a&#39;, &#39;x&#39;,), (&#39;p&#39;, &#39;b&#39;, &#39;x&#39;) ) )
715
+ &lt;/code&gt;&lt;/pre&gt;
716
+
717
+ &lt;p&gt;So basically, the problem is trying to replace a nested tuple with the value of the entire tuple, but the nested one modified. It&#39;s very ugly. :(&lt;/p&gt;
718
+
719
+ &lt;p&gt;I&#39;m not super duper python fluent so it gets very convoluted with lots of for loops that I know shouldn&#39;t be there. :(
720
+ Any help is much appreciated!&lt;/p&gt;
721
+
722
+ </summary>
723
+ </entry>
724
+ <entry>
725
+ <id>http://stackoverflow.com/q/10266197</id>
726
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
727
+ <title type="text">Show Node with MvcSiteMapProvider if its action is marked with [Authorize(Roles = &quot;Administrator&quot;)]</title>
728
+ <category scheme="http://stackoverflow.com/feeds/tags" term="asp.net-mvc"/><category scheme="http://stackoverflow.com/feeds/tags" term="show"/><category scheme="http://stackoverflow.com/feeds/tags" term="nodes"/><category scheme="http://stackoverflow.com/feeds/tags" term="authorize-attribute"/><category scheme="http://stackoverflow.com/feeds/tags" term="mvcsitemapprovider"/>
729
+ <author>
730
+ <name>Leniel Macaferi</name>
731
+ <uri>http://stackoverflow.com/users/114029</uri>
732
+ </author>
733
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266197/show-node-with-mvcsitemapprovider-if-its-action-is-marked-with-authorizeroles" />
734
+ <published>2012-04-22T07:54:23Z</published>
735
+ <updated>2012-04-22T08:49:14Z</updated>
736
+ <summary type="html">
737
+ &lt;p&gt;Currently, I have a &lt;code&gt;Controller&lt;/code&gt; with an &lt;code&gt;Index()&lt;/code&gt; action method that needs authorization:&lt;/p&gt;
738
+
739
+ &lt;pre&gt;&lt;code&gt;public partial class CustomerController : BaseDocumentStoreController
740
+ {
741
+ [Authorize(Roles = AccountController.Administrator)]
742
+ public virtual ViewResult Index()
743
+ {
744
+ ...
745
+ }
746
+
747
+ ...
748
+ }
749
+ &lt;/code&gt;&lt;/pre&gt;
750
+
751
+ &lt;p&gt;With this in place, the respective node in the &lt;code&gt;Mvc.sitemap&lt;/code&gt; won&#39;t show in the breadcrumbs:&lt;/p&gt;
752
+
753
+ &lt;pre&gt;&lt;code&gt;&amp;lt;mvcSiteMapNode title=&quot;Customer&quot; controller=&quot;Customer&quot; action=&quot;Index&quot;
754
+ resourceKey=&quot;Customers&quot; clickable=&quot;true&quot; &amp;gt;
755
+
756
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Add&quot; controller=&quot;Customer&quot; action=&quot;Add&quot;
757
+ resourceKey=&quot;Add&quot; /&amp;gt;
758
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Create&quot; controller=&quot;Customer&quot; action=&quot;Create&quot;
759
+ resourceKey=&quot;Add&quot; /&amp;gt;
760
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Edit&quot; controller=&quot;Customer&quot; action=&quot;Edit&quot;
761
+ resourceKey=&quot;Edit&quot; /&amp;gt;
762
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Update&quot; controller=&quot;Customer&quot; action=&quot;Update&quot;
763
+ resourceKey=&quot;Edit&quot; /&amp;gt;
764
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Delete&quot; controller=&quot;Customer&quot; action=&quot;Delete&quot;
765
+ resourceKey=&quot;Delete&quot; /&amp;gt;
766
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Details&quot; controller=&quot;Customer&quot; action=&quot;Details&quot;
767
+ resourceKey=&quot;Details&quot; /&amp;gt;
768
+ &amp;lt;mvcSiteMapNode title=&quot;Customer Search&quot; controller=&quot;Customer&quot; action=&quot;Search&quot;
769
+ resourceKey=&quot;Search&quot; /&amp;gt;
770
+
771
+ &amp;lt;/mvcSiteMapNode&amp;gt;
772
+ &lt;/code&gt;&lt;/pre&gt;
773
+
774
+ &lt;p&gt;What I want is to show this node anyway...&lt;/p&gt;
775
+
776
+ &lt;p&gt;Let&#39;s say the user is not authenticated. So I want the breadcrumbs to show this:&lt;/p&gt;
777
+
778
+ &lt;pre&gt;&lt;code&gt;Home &amp;gt; Customers &amp;gt; Add
779
+ &lt;/code&gt;&lt;/pre&gt;
780
+
781
+ &lt;p&gt;Currently it only shows:&lt;/p&gt;
782
+
783
+ &lt;pre&gt;&lt;code&gt;Add
784
+ &lt;/code&gt;&lt;/pre&gt;
785
+
786
+ &lt;p&gt;If the user clicks the &lt;strong&gt;Customers&lt;/strong&gt; node he&#39;ll be redirected to the login view... OK, that&#39;s fine!&lt;/p&gt;
787
+
788
+ &lt;p&gt;I tried to implement my own &lt;code&gt;SiteMapVisibilityProvider&lt;/code&gt; following &lt;a href=&quot;https://github.com/maartenba/MvcSiteMapProvider/wiki/Advanced-Node-Visibility&quot; rel=&quot;nofollow&quot;&gt;these steps&lt;/a&gt;:&lt;/p&gt;
789
+
790
+ &lt;pre&gt;&lt;code&gt;public class SiteMapVisibilityProvider : ISiteMapNodeVisibilityProvider
791
+ {
792
+ ...
793
+ }
794
+ &lt;/code&gt;&lt;/pre&gt;
795
+
796
+ &lt;p&gt;While debugging I could only see the nodes bellow the Index node, that is, in my current case, only the Add node showed up. The node that represents the Index action method didn&#39;t show up in the debugging session.&lt;/p&gt;
797
+
798
+ &lt;p&gt;Is there any way of achieving what I want?&lt;/p&gt;
799
+
800
+ </summary>
801
+ </entry>
802
+ <entry>
803
+ <id>http://stackoverflow.com/q/10266533</id>
804
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
805
+ <title type="text">how to test datetime select input on cucumber</title>
806
+ <category scheme="http://stackoverflow.com/feeds/tags" term="ruby-on-rails"/><category scheme="http://stackoverflow.com/feeds/tags" term="cucumber"/>
807
+ <author>
808
+ <name>user1349301</name>
809
+ <uri>http://stackoverflow.com/users/1349301</uri>
810
+ </author>
811
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266533/how-to-test-datetime-select-input-on-cucumber" />
812
+ <published>2012-04-22T08:49:13Z</published>
813
+ <updated>2012-04-22T08:49:13Z</updated>
814
+ <summary type="html">
815
+ &lt;p&gt;I need to write a cucumber test to test datetime select behavior.&lt;/p&gt;
816
+
817
+ &lt;p&gt;here is my sentence:
818
+ When I select &quot;2012-4-30 15:00&quot; as the &quot;start_time&quot;&lt;/p&gt;
819
+
820
+ &lt;p&gt;here is my html view:
821
+ = form_tag time_off_requests_path do&lt;/p&gt;
822
+
823
+ &lt;p&gt;= label :time_off_request, :start_time, &#39;Start Time&#39;
824
+ = datetime_select :time_off_request, :start_time , :start_year =&gt; Time.current.year, :use_short_month =&gt; true&lt;/p&gt;
825
+
826
+ &lt;p&gt;= submit_tag &#39;Save Changes&#39;&lt;/p&gt;
827
+
828
+ &lt;p&gt;I tried something like
829
+ When /^I select &quot;([^&quot;]&lt;em&gt;)&quot; as the &quot;([^&quot;]&lt;/em&gt;)&quot;$/ do |date_time, label|
830
+ select(date_time, from =&gt; label)
831
+ end
832
+ but it doesn&#39;t work. get can not find id, name for &quot;select box&quot;
833
+ really need help!&lt;/p&gt;
834
+
835
+ </summary>
836
+ </entry>
837
+ <entry>
838
+ <id>http://stackoverflow.com/q/10266532</id>
839
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
840
+ <title type="text">append div to td in table dynamically</title>
841
+ <category scheme="http://stackoverflow.com/feeds/tags" term="jquery"/>
842
+ <author>
843
+ <name>prerna</name>
844
+ <uri>http://stackoverflow.com/users/797368</uri>
845
+ </author>
846
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266532/append-div-to-td-in-table-dynamically" />
847
+ <published>2012-04-22T08:49:03Z</published>
848
+ <updated>2012-04-22T08:49:03Z</updated>
849
+ <summary type="html">
850
+ &lt;pre&gt;&lt;code&gt; var $table = $(&#39;&amp;lt;table/&amp;gt;&#39;).addClass(&#39;commentbox&#39;);
851
+
852
+ $table.append(&#39;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&#39; + &#39;Comment Id:&#39;+ &#39;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&#39;);
853
+
854
+ var $wrap = $(&#39;&amp;lt;div/&amp;gt;&#39;).attr(&#39;id&#39;, &#39;container&#39;);
855
+
856
+ var $in = $(&#39;&amp;lt;input type=&quot;button&quot; value=&quot;Reply&quot;/&amp;gt;&#39;).attr(&#39;id&#39;, &#39;reply&#39;);
857
+ $wrap.append($in);
858
+ $table.append(
859
+ $(&#39;&amp;lt;tr&amp;gt;&#39;)
860
+ .append($(&#39;&amp;lt;td&amp;gt;&#39;),
861
+ $(&#39;&amp;lt;td&amp;gt;&#39;))
862
+ );
863
+ $table.append($wrap);
864
+ &lt;/code&gt;&lt;/pre&gt;
865
+
866
+ &lt;p&gt;I want the div id container to be added inside td
867
+ but I am getting html&lt;/p&gt;
868
+
869
+ &lt;pre&gt;&lt;code&gt; &amp;lt;table&amp;gt;
870
+ &amp;lt;tbody&amp;gt;
871
+ &amp;lt;tr&amp;gt;
872
+ &amp;lt;td&amp;gt;Comment&amp;lt;/td&amp;gt;
873
+ &amp;lt;/tr&amp;gt;
874
+ &amp;lt;tr&amp;gt;
875
+ &amp;lt;td&amp;gt;
876
+ &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;
877
+ &amp;lt;/tr&amp;gt;
878
+ &amp;lt;tbody&amp;gt;
879
+ &amp;lt;div id=&quot;container&quot;&amp;gt;
880
+ &amp;lt;input type=&quot;button&quot; value=&quot;Reply&quot; id=&quot;reply&quot;&amp;gt;
881
+ &amp;lt;/div&amp;gt;
882
+ &amp;lt;/table&amp;gt;
883
+ &lt;/code&gt;&lt;/pre&gt;
884
+
885
+ </summary>
886
+ </entry>
887
+ <entry>
888
+ <id>http://stackoverflow.com/q/10266088</id>
889
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
890
+ <title type="text">Looking for a GPS device that has high sampling rate</title>
891
+ <category scheme="http://stackoverflow.com/feeds/tags" term="gps"/>
892
+ <author>
893
+ <name>kakush</name>
894
+ <uri>http://stackoverflow.com/users/1087995</uri>
895
+ </author>
896
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266088/looking-for-a-gps-device-that-has-high-sampling-rate" />
897
+ <published>2012-04-22T07:34:29Z</published>
898
+ <updated>2012-04-22T08:48:57Z</updated>
899
+ <summary type="html">
900
+ &lt;p&gt;I tried to look for some kind of a document that compares GPS deviced , also according to their sampling rate.&lt;/p&gt;
901
+
902
+ &lt;p&gt;I also didn&#39;t find information about the sampling rate in any device.&lt;/p&gt;
903
+
904
+ &lt;p&gt;Maybe I don&#39;t use the term &quot;sampling rate&quot; correctly.&lt;/p&gt;
905
+
906
+ &lt;p&gt;Can anyone help please?&lt;/p&gt;
907
+
908
+ </summary>
909
+ </entry>
910
+ <entry>
911
+ <id>http://stackoverflow.com/q/10266531</id>
912
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
913
+ <title type="text">Distriubuted programming in Python</title>
914
+ <category scheme="http://stackoverflow.com/feeds/tags" term="python"/><category scheme="http://stackoverflow.com/feeds/tags" term="distributed"/>
915
+ <author>
916
+ <name>Gerenuk</name>
917
+ <uri>http://stackoverflow.com/users/815443</uri>
918
+ </author>
919
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266531/distriubuted-programming-in-python" />
920
+ <published>2012-04-22T08:48:43Z</published>
921
+ <updated>2012-04-22T08:48:43Z</updated>
922
+ <summary type="html">
923
+ &lt;p&gt;I plan do program a simple data flow framework, which basically consists of lazy method calls of objects. If I ever consider distributed programming, what is the easiest way to enable that in Python? Any transparent solution without me doing network programming?&lt;/p&gt;
924
+
925
+ &lt;p&gt;Or for a start, how can I make use of multi-core processors in Python?&lt;/p&gt;
926
+
927
+ </summary>
928
+ </entry>
929
+ <entry>
930
+ <id>http://stackoverflow.com/q/10264796</id>
931
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
932
+ <title type="text">weird issue when subtracting two images</title>
933
+ <category scheme="http://stackoverflow.com/feeds/tags" term="image-processing"/><category scheme="http://stackoverflow.com/feeds/tags" term="opencv"/>
934
+ <author>
935
+ <name>Patrick Jones</name>
936
+ <uri>http://stackoverflow.com/users/1334344</uri>
937
+ </author>
938
+ <link rel="alternate" href="http://stackoverflow.com/questions/10264796/weird-issue-when-subtracting-two-images" />
939
+ <published>2012-04-22T02:48:14Z</published>
940
+ <updated>2012-04-22T08:48:32Z</updated>
941
+ <summary type="html">
942
+ &lt;p&gt;these question is a follow to &lt;a href=&quot;http://stackoverflow.com/questions/10255013/how-to-use-opencv-to-remove-non-text-areas-from-a-business-card&quot;&gt;this one&lt;/a&gt;, i have an image which i want to remove logo from it, i have eroded the image until all the small text are gone away and only the logo is the remaining , now i have two images , the original image and the one with only the logo , now when i attempt to subtract the two images in order to form a third one contains only the text,a weird thing happens, the logo doesn&#39;t removed but it&#39;s outlined as demonstrated below
943
+ --&gt; why the logo remains, i expect it to be removed?&lt;/p&gt;
944
+
945
+ &lt;p&gt;original image:
946
+ &lt;img src=&quot;http://i.stack.imgur.com/z945Y.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
947
+
948
+ &lt;p&gt;eroded image:
949
+ &lt;img src=&quot;http://i.stack.imgur.com/fZ8TJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
950
+
951
+ &lt;p&gt;Final Image(original-eroded):
952
+ &lt;img src=&quot;http://i.stack.imgur.com/vBWeJ.png&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;
953
+
954
+ &lt;p&gt;code:&lt;/p&gt;
955
+
956
+ &lt;pre&gt;&lt;code&gt;cv::Mat final;
957
+ cv::Mat greyMat = [self.imageView.image CVGrayscaleMat];
958
+ cv::Mat bwMat,erodedMat;
959
+ cv::threshold(greyMat, bwMat, 128, 255, CV_THRESH_BINARY);
960
+ cv::bitwise_not(bwMat, bwMat);
961
+ cv::Mat element = cv::getStructuringElement(cv::MORPH_RECT, cv::Size(20, 12));
962
+ cv::erode(bwMat, erodedMat, element);
963
+ std::vector&amp;lt;cv::Point&amp;gt;points;
964
+ cv::Mat_&amp;lt;uchar&amp;gt;::iterator it=bwMat.begin&amp;lt;uchar&amp;gt;();
965
+ cv::Mat_&amp;lt;uchar&amp;gt;::iterator end=bwMat.end&amp;lt;uchar&amp;gt;();
966
+ for (; it!=end; ++it)
967
+ if (*it)
968
+ points.push_back(it.pos());
969
+ final=bwMat-erodedMat;
970
+ &lt;/code&gt;&lt;/pre&gt;
971
+
972
+ </summary>
973
+ </entry>
974
+ <entry>
975
+ <id>http://stackoverflow.com/q/10266414</id>
976
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
977
+ <title type="text">Objective-C Array of Objects</title>
978
+ <category scheme="http://stackoverflow.com/feeds/tags" term="objective-c"/><category scheme="http://stackoverflow.com/feeds/tags" term="arrays"/><category scheme="http://stackoverflow.com/feeds/tags" term="exc-bad-access"/>
979
+ <author>
980
+ <name>itsame69</name>
981
+ <uri>http://stackoverflow.com/users/511114</uri>
982
+ </author>
983
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266414/objective-c-array-of-objects" />
984
+ <published>2012-04-22T08:30:52Z</published>
985
+ <updated>2012-04-22T08:48:23Z</updated>
986
+ <summary type="html">
987
+ &lt;p&gt;Although experienced with OOP, I am an absolute newbie with Objective-C. I have the following code:&lt;/p&gt;
988
+
989
+ &lt;pre&gt;&lt;code&gt;// header files have been imported before this statement...
990
+ CCSprite *treeObstacle;
991
+ NSMutableArray *treeObstacles;
992
+
993
+ @implementation HelloWorldLayer {
994
+ }
995
+
996
+ -(id) init
997
+ {
998
+ // create and initialize our seeker sprite, and add it to this layer
999
+ treeObstacles = [NSMutableArray arrayWithObjects: nil];
1000
+ for (int i=0; i&amp;lt;5; i++) {
1001
+ treeObstacle = [CCSprite spriteWithFile: @&quot;Icon.png&quot;];
1002
+ treeObstacle.position = ccp( 450-i*20, 100+i*20 );
1003
+ [self addChild:treeObstacle];
1004
+ [treeObstacles addObject: treeObstacle];
1005
+ }
1006
+ NSLog (@&quot;Number of elements in array = %i&quot;, [treeObstacles count]);
1007
+ return self;
1008
+ }
1009
+
1010
+ - (void) mymethod:(int)i {
1011
+ NSLog (@&quot;Number of elements in array = %i&quot;, [treeObstacles count]);
1012
+ }
1013
+
1014
+ @end
1015
+ &lt;/code&gt;&lt;/pre&gt;
1016
+
1017
+ &lt;p&gt;The first NSLog() statement returns &quot;Number of elements in array = 5&quot;. The problem is that (although treeObstacles is a file-scope variable) when calling the method &quot;mymethod&quot;, I&#39;ll get an EXC_BAD_ACCESS exception. &lt;/p&gt;
1018
+
1019
+ &lt;p&gt;Can anybody please help me?&lt;/p&gt;
1020
+
1021
+ &lt;p&gt;Thanks a lot
1022
+ Christian&lt;/p&gt;
1023
+
1024
+ </summary>
1025
+ </entry>
1026
+ <entry>
1027
+ <id>http://stackoverflow.com/q/10266529</id>
1028
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
1029
+ <title type="text">Keep an offline message in the browser . Gmail , YouTube etc</title>
1030
+ <category scheme="http://stackoverflow.com/feeds/tags" term="javascript"/><category scheme="http://stackoverflow.com/feeds/tags" term="web-development"/><category scheme="http://stackoverflow.com/feeds/tags" term="browser"/>
1031
+ <author>
1032
+ <name>Aash Maharoon</name>
1033
+ <uri>http://stackoverflow.com/users/900081</uri>
1034
+ </author>
1035
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266529/keep-an-offline-message-in-the-browser-gmail-youtube-etc" />
1036
+ <published>2012-04-22T08:48:15Z</published>
1037
+ <updated>2012-04-22T08:48:15Z</updated>
1038
+ <summary type="html">
1039
+ &lt;p&gt;When the internet connection is unavailble, and we try to open the &#39;gmail&#39; page when it had opened earlier, a message can be seen &lt;code&gt;Gmail
1040
+ The app is currently unreachable.&lt;/code&gt; This same way, Youtube too.&lt;br&gt;
1041
+ Also in &#39;gmail&#39; offline message, I saw this attribute in the body tag &lt;/p&gt;
1042
+
1043
+ &lt;pre&gt;&lt;code&gt;jstcache=&quot;0&quot;
1044
+ &lt;/code&gt;&lt;/pre&gt;
1045
+
1046
+ &lt;p&gt;How can we implement such a page when the page/browser is offline ? &lt;/p&gt;
1047
+
1048
+ </summary>
1049
+ </entry>
1050
+ <entry>
1051
+ <id>http://stackoverflow.com/q/10263769</id>
1052
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
1053
+ <title type="text">Linux shell script: grep not working inside for-loop</title>
1054
+ <category scheme="http://stackoverflow.com/feeds/tags" term="shell"/><category scheme="http://stackoverflow.com/feeds/tags" term="script"/><category scheme="http://stackoverflow.com/feeds/tags" term="for-loop"/><category scheme="http://stackoverflow.com/feeds/tags" term="grep"/>
1055
+ <author>
1056
+ <name>Lars</name>
1057
+ <uri>http://stackoverflow.com/users/1118450</uri>
1058
+ </author>
1059
+ <link rel="alternate" href="http://stackoverflow.com/questions/10263769/linux-shell-script-grep-not-working-inside-for-loop" />
1060
+ <published>2012-04-21T22:57:39Z</published>
1061
+ <updated>2012-04-22T08:48:01Z</updated>
1062
+ <summary type="html">
1063
+ &lt;p&gt;When I use grep in TEST (line 18) it works perfectly. When I do the exact same command, but inside the for-loop (line 40), it does not work. Why? I&#39;ve bent my brain on this problem too long now.&lt;/p&gt;
1064
+
1065
+ &lt;pre&gt;&lt;code&gt;#!/bin/bash
1066
+ clear
1067
+
1068
+ sourcelist=`ls *.c`
1069
+ headerlist=`ls *.h`
1070
+ FILE=&quot;headers.txt&quot;
1071
+
1072
+ TEST=&quot;receive_elevator_data&quot; #this is one typical entry in headers.tex
1073
+ echo &quot;TEST&quot;
1074
+ grep $TEST *.c -n
1075
+
1076
+ MODE=&quot;h&quot;
1077
+
1078
+ if [ &quot;$MODE&quot; = &quot;h&quot; ]
1079
+ then
1080
+ echo &quot;Searching..&quot;
1081
+ #for entry in $(cut -f 1 $FILE)
1082
+ for entry in `cat $FILE`
1083
+ do
1084
+ echo &quot;Looking at entry in $FILE: &quot;
1085
+ echo $entry
1086
+ echo &quot;Press any button to search, &amp;lt;s&amp;gt; for skip, &amp;lt;e&amp;gt; to exit&quot;
1087
+ read -e INPUT2
1088
+ if [ &quot;$INPUT2&quot; = &quot;s&quot; ]
1089
+ then
1090
+ continue
1091
+ fi
1092
+ if [ &quot;$INPUT2&quot; = &quot;n&quot; ]
1093
+ then
1094
+ exit 1 #exit shell script
1095
+ else
1096
+ grep -n &quot;${entry}&quot; ${sourcelist}
1097
+ fi
1098
+ done
1099
+ fi
1100
+ &lt;/code&gt;&lt;/pre&gt;
1101
+
1102
+ &lt;p&gt;Just to clarify: every line in headers.txt has strings like &quot;test&quot;, i.e no space in the lines. What headers.txt really contains is a list of function names extracted from all headerfiles in a C project :) There was no returned error in my previous code, it was just the grep command in the loop that wouldn&#39;t run. What I want to do, is to search through all C files for each function in headers.txt, and prompt me before each search&lt;/p&gt;
1103
+
1104
+ </summary>
1105
+ </entry>
1106
+ <entry>
1107
+ <id>http://stackoverflow.com/q/10266232</id>
1108
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
1109
+ <title type="text">how to stop onbeforeunload event?</title>
1110
+ <category scheme="http://stackoverflow.com/feeds/tags" term="javascript"/><category scheme="http://stackoverflow.com/feeds/tags" term="jquery"/>
1111
+ <author>
1112
+ <name>Raja Gopal</name>
1113
+ <uri>http://stackoverflow.com/users/1162260</uri>
1114
+ </author>
1115
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266232/how-to-stop-onbeforeunload-event" />
1116
+ <published>2012-04-22T07:59:57Z</published>
1117
+ <updated>2012-04-22T08:47:38Z</updated>
1118
+ <summary type="html">
1119
+ &lt;p&gt;I have tried to stop the default close event with,
1120
+ &lt;code&gt;event.stopPropogation()&lt;/code&gt; and also &lt;code&gt;event.preventDefault()&lt;/code&gt; But, it doesn&#39;t help me to stop the process.&lt;/p&gt;
1121
+
1122
+ &lt;p&gt;Could any of you know how to stop this default close event?&lt;/p&gt;
1123
+
1124
+ &lt;p&gt;Is it possible to listen for browser click event?&lt;/p&gt;
1125
+
1126
+ </summary>
1127
+ </entry>
1128
+ <entry>
1129
+ <id>http://stackoverflow.com/q/10266346</id>
1130
+ <re:rank scheme="http://stackoverflow.com">2</re:rank>
1131
+ <title type="text">Unexpected memory usage of List&lt;T&gt;</title>
1132
+ <category scheme="http://stackoverflow.com/feeds/tags" term="c#-4.0"/>
1133
+ <author>
1134
+ <name>Roy T.</name>
1135
+ <uri>http://stackoverflow.com/users/445112</uri>
1136
+ </author>
1137
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266346/unexpected-memory-usage-of-listt" />
1138
+ <published>2012-04-22T08:20:33Z</published>
1139
+ <updated>2012-04-22T08:47:35Z</updated>
1140
+ <summary type="html">
1141
+ &lt;p&gt;I always thought that the default constructor for List would initialize a list with a capacity of 4 and that the capacity would be doubled when adding the 5th element, etc...&lt;/p&gt;
1142
+
1143
+ &lt;p&gt;In my application I make a lot of lists (tree like structure where each node can have many children), some of these nodes won&#39;t have any children and since my application was fast but was also using a bit much memory I decided to use the constructor where I can specify the capacity and have set this at 1.&lt;/p&gt;
1144
+
1145
+ &lt;p&gt;The strange thing now is that the memory usage when I start with a capacity of 1 is about 15% higher then when I use the default constructor. It can&#39;t be because of a better fit with 4 since the doubling would be 1,2,4. So why this extra increase in memory usage? As an extra test I&#39;ve tried to start with a capacity of 4. This time again the memory usage was 15% higher then when using no specified capacity.&lt;/p&gt;
1146
+
1147
+ &lt;p&gt;Now this really isn&#39;t a problem, but it bothers me that a pretty simple data structure that I&#39;ve used for years has some extra logic that I didn&#39;t know about yet. Does anyone have an idea of the inner workings of List in this aspect?&lt;/p&gt;
1148
+
1149
+ </summary>
1150
+ </entry>
1151
+ <entry>
1152
+ <id>http://stackoverflow.com/q/10266196</id>
1153
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
1154
+ <title type="text">Regex to replace integer seperated by space</title>
1155
+ <category scheme="http://stackoverflow.com/feeds/tags" term="javascript"/><category scheme="http://stackoverflow.com/feeds/tags" term="html"/><category scheme="http://stackoverflow.com/feeds/tags" term="regex"/>
1156
+ <author>
1157
+ <name>Event_Horizon</name>
1158
+ <uri>http://stackoverflow.com/users/1339492</uri>
1159
+ </author>
1160
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266196/regex-to-replace-integer-seperated-by-space" />
1161
+ <published>2012-04-22T07:54:04Z</published>
1162
+ <updated>2012-04-22T08:47:34Z</updated>
1163
+ <summary type="html">
1164
+ &lt;p&gt;I&#39;m creating a MTG card generator with JS, and I was wondering how I would go about replacing my Integers in the card cost using regex? (more for learning than publishing)&lt;/p&gt;
1165
+
1166
+ &lt;p&gt;card_cost is just a input text value from a user, I want to be able to separate the integers with spaces IE: user enters: &quot;10 1 2&quot; Ints should get replaced but spaces should be kept.&lt;/p&gt;
1167
+
1168
+ &lt;p&gt;would start like this:&lt;/p&gt;
1169
+
1170
+ &lt;pre&gt;&lt;code&gt;if(card_cost)
1171
+ {
1172
+ card_cost=card_cost.replace(/INTEGER/g,&quot;&amp;lt;span class=&#39;card_costnum&#39; src=&#39;numsymbol.png&#39; &amp;gt;&amp;lt;/span&amp;gt;&quot;);
1173
+ }
1174
+ &lt;/code&gt;&lt;/pre&gt;
1175
+
1176
+ &lt;p&gt;The attempt here is to replace the integers with themselves held inside a span to display a background image per number.&lt;/p&gt;
1177
+
1178
+ &lt;p&gt;Now that I have had time to think about this I&#39;m assuming I&#39;ll need to get an array of the integers so I can pass them back through within a span, replacing wont be enough to catch more than one integer correctly I assume.&lt;/p&gt;
1179
+
1180
+ </summary>
1181
+ </entry>
1182
+ <entry>
1183
+ <id>http://stackoverflow.com/q/10266452</id>
1184
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
1185
+ <title type="text">Select count from each table from a list stored on a table</title>
1186
+ <category scheme="http://stackoverflow.com/feeds/tags" term="mysql"/><category scheme="http://stackoverflow.com/feeds/tags" term="sql"/><category scheme="http://stackoverflow.com/feeds/tags" term="count"/>
1187
+ <author>
1188
+ <name>elcodedocle</name>
1189
+ <uri>http://stackoverflow.com/users/1060686</uri>
1190
+ </author>
1191
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266452/select-count-from-each-table-from-a-list-stored-on-a-table" />
1192
+ <published>2012-04-22T08:36:22Z</published>
1193
+ <updated>2012-04-22T08:47:28Z</updated>
1194
+ <summary type="html">
1195
+ &lt;p&gt;I have a table &lt;code&gt;tbls&lt;/code&gt; with a field &lt;code&gt;name&lt;/code&gt; containing names of tables.&lt;/p&gt;
1196
+
1197
+ &lt;p&gt;I&#39;m trying to form a statement to get the number of rows of each of this tables.&lt;/p&gt;
1198
+
1199
+ &lt;p&gt;Should I use a stored procedure or is there a simpler way to do it?&lt;/p&gt;
1200
+
1201
+ </summary>
1202
+ </entry>
1203
+ <entry>
1204
+ <id>http://stackoverflow.com/q/10266404</id>
1205
+ <re:rank scheme="http://stackoverflow.com">1</re:rank>
1206
+ <title type="text">How much -XX:MaxPermSize size i can mention for 4GB and 8GB Ram and calculation for this?</title>
1207
+ <category scheme="http://stackoverflow.com/feeds/tags" term="java"/><category scheme="http://stackoverflow.com/feeds/tags" term="web-development"/><category scheme="http://stackoverflow.com/feeds/tags" term="permgen"/><category scheme="http://stackoverflow.com/feeds/tags" term="java-memory-model"/>
1208
+ <author>
1209
+ <name>M Sach</name>
1210
+ <uri>http://stackoverflow.com/users/802050</uri>
1211
+ </author>
1212
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266404/how-much-xxmaxpermsize-size-i-can-mention-for-4gb-and-8gb-ram-and-calculation" />
1213
+ <published>2012-04-22T08:29:42Z</published>
1214
+ <updated>2012-04-22T08:47:12Z</updated>
1215
+ <summary type="html">
1216
+ &lt;p&gt;How much -XX:MaxPermSize size i can mention for 4GB and 8GB Ram. Here are the other detalis of my system&lt;/p&gt;
1217
+
1218
+ &lt;p&gt;OS:-window XP(32 bit)
1219
+ RAM:-4 GB
1220
+ java_opt- -Xms1536m -Xmx1536m //(mentioned as environment variable):
1221
+ tomcat version:-6.0.26&lt;/p&gt;
1222
+
1223
+ &lt;p&gt;I have another system with 8GB ram with other details exactly same . Yes os is 64 bit Window 7.&lt;/p&gt;
1224
+
1225
+ &lt;p&gt;Along with this also let me know what can be the max value for -Xmx parameter for both the systems?&lt;/p&gt;
1226
+
1227
+ &lt;p&gt;It would be great if some body can tell me the calculation to arrive at the figure so that we dont have to cram this figure but we can logically calculate based on RAM ssytem is having?&lt;/p&gt;
1228
+
1229
+ &lt;p&gt;I have really seen people getting permgen error or heap error but every body keeps on playing with this paramters until they come to figure that resolve the issue.&lt;/p&gt;
1230
+
1231
+ </summary>
1232
+ </entry>
1233
+ <entry>
1234
+ <id>http://stackoverflow.com/q/10266370</id>
1235
+ <re:rank scheme="http://stackoverflow.com">0</re:rank>
1236
+ <title type="text">How to mange big data on adroid app?</title>
1237
+ <category scheme="http://stackoverflow.com/feeds/tags" term="android"/><category scheme="http://stackoverflow.com/feeds/tags" term="database"/>
1238
+ <author>
1239
+ <name>Giffary</name>
1240
+ <uri>http://stackoverflow.com/users/286090</uri>
1241
+ </author>
1242
+ <link rel="alternate" href="http://stackoverflow.com/questions/10266370/how-to-mange-big-data-on-adroid-app" />
1243
+ <published>2012-04-22T08:24:17Z</published>
1244
+ <updated>2012-04-22T08:47:07Z</updated>
1245
+ <summary type="html">
1246
+ &lt;p&gt;I have big database that I use on my website and I would like to use it on android application without internet connection.&lt;/p&gt;
1247
+
1248
+ &lt;p&gt;My database can export to .db file. How should I do to use this file for my android app.&lt;/p&gt;
1249
+
1250
+ &lt;p&gt;Regards&lt;/p&gt;
1251
+
1252
+ </summary>
1253
+ </entry>
1254
+ <entry>
1255
+ <id>http://stackoverflow.com/q/4995428</id>
1256
+ <re:rank scheme="http://stackoverflow.com">7</re:rank>
1257
+ <title type="text">Storing Lat Lng values in MySQL using Spatial Point Type</title>
1258
+ <category scheme="http://stackoverflow.com/feeds/tags" term="mysql"/><category scheme="http://stackoverflow.com/feeds/tags" term="geospatial"/>
1259
+ <author>
1260
+ <name>bateman_ap</name>
1261
+ <uri>http://stackoverflow.com/users/260023</uri>
1262
+ </author>
1263
+ <link rel="alternate" href="http://stackoverflow.com/questions/4995428/storing-lat-lng-values-in-mysql-using-spatial-point-type" />
1264
+ <published>2011-02-14T17:47:05Z</published>
1265
+ <updated>2012-04-22T08:47:05Z</updated>
1266
+ <summary type="html">
1267
+ &lt;p&gt;Tech used: MySQL 5.1 and PHP 5.3&lt;/p&gt;
1268
+
1269
+ &lt;p&gt;I am just designing a new database for a site I am writing. I am looking at the best way of now storing Lat and Lng values. &lt;/p&gt;
1270
+
1271
+ &lt;p&gt;In the past I have been using DECIMAL and using a PHP/MySQL select in the form:&lt;/p&gt;
1272
+
1273
+ &lt;pre&gt;&lt;code&gt;SQRT(POW(69.1 * (fld_lat - ( $lat )), 2) + POW(69.1 * (($lon) - fld_lon) * COS(fld_lat / 57.3 ), 2 )) AS distance
1274
+ &lt;/code&gt;&lt;/pre&gt;
1275
+
1276
+ &lt;p&gt;to find nearest matching places.&lt;/p&gt;
1277
+
1278
+ &lt;p&gt;Starting to read up more on new technologies I am wondering if I should use Spatial Extensions. &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/geometry-property-functions.html&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/geometry-property-functions.html&lt;/a&gt;&lt;/p&gt;
1279
+
1280
+ &lt;p&gt;Information is quite thin on the ground though and had a question on how to store the data. Instead of using DECIMAL, would I now use POINT as a Datatype?&lt;/p&gt;
1281
+
1282
+ &lt;p&gt;Also, once stored as a POINT is it easy just to get the Lat Lng values from it in case I want to plot it on a map or should I additionally store the lat lngs as DECIMALS again as well?&lt;/p&gt;
1283
+
1284
+ &lt;p&gt;I know I should prob use PostGIS as most posts on here say I just don&#39;t want to learn a new DB though!&lt;/p&gt;
1285
+
1286
+ &lt;p&gt;&lt;strong&gt;Follow up&lt;/strong&gt;&lt;/p&gt;
1287
+
1288
+ &lt;p&gt;I have been playing with the new POINT type. I have been able to add Lat Lng values using the following:&lt;/p&gt;
1289
+
1290
+ &lt;pre&gt;&lt;code&gt;INSERT INTO spatialTable (placeName, geoPoint) VALUES( &quot;London School of Economics&quot;, GeomFromText( &#39;POINT(51.514 -0.1167)&#39; ));
1291
+ &lt;/code&gt;&lt;/pre&gt;
1292
+
1293
+ &lt;p&gt;I can then get the Lat and Lng values back from the Db using:&lt;/p&gt;
1294
+
1295
+ &lt;pre&gt;&lt;code&gt;SELECT X(geoPoint), Y(geoPoint) FROM spatialTable;
1296
+ &lt;/code&gt;&lt;/pre&gt;
1297
+
1298
+ &lt;p&gt;This all looks good, however the calculation for distance is the bit I need to solve. Apparently MySQL has a place-holder for a distance function but won&#39;t be released for a while. In a few posts I have found I need to do something like the below, however I think my code is slightly wrong:&lt;/p&gt;
1299
+
1300
+ &lt;pre&gt;&lt;code&gt;SELECT
1301
+ placeName,
1302
+ ROUND(GLength(
1303
+ LineStringFromWKB(
1304
+ LineString(
1305
+ geoPoint,
1306
+ GeomFromText(&#39;POINT(52.5177, -0.0968)&#39;)
1307
+ )
1308
+ )
1309
+ ))
1310
+ AS distance
1311
+ FROM spatialTable
1312
+ ORDER BY distance ASC;
1313
+ &lt;/code&gt;&lt;/pre&gt;
1314
+
1315
+ &lt;p&gt;In this example geoPoint is a POINT entered into the DB using the INSERT above.&lt;/p&gt;
1316
+
1317
+ &lt;p&gt;&lt;code&gt;GeomFromText(&#39;POINT(52.5177, -0.0968)&#39;&lt;/code&gt; is a Lat Lng value I want to calculate a distance from.&lt;/p&gt;
1318
+
1319
+ &lt;p&gt;&lt;strong&gt;More Follow-up&lt;/strong&gt;&lt;/p&gt;
1320
+
1321
+ &lt;p&gt;Rather stupidly I had just put in the ROUND part of the SQL without really thinking. Taking this out gives me:&lt;/p&gt;
1322
+
1323
+ &lt;pre&gt;&lt;code&gt;SELECT
1324
+ placeName,
1325
+ (GLength(
1326
+ LineStringFromWKB(
1327
+ LineString(
1328
+ geoPoint,
1329
+ GeomFromText(&#39;POINT(51.5177 -0.0968)&#39;)
1330
+ )
1331
+ )
1332
+ ))
1333
+ AS distance
1334
+ FROM spatialTable
1335
+ ORDER BY distance ASC
1336
+ &lt;/code&gt;&lt;/pre&gt;
1337
+
1338
+ &lt;p&gt;Which seems to give me the correct distances I need.&lt;/p&gt;
1339
+
1340
+ &lt;p&gt;I suppose the only thing currently that needs answering is any thoughts on whether I am just making life difficult for myself by using Spatial now or future-proofing myself...&lt;/p&gt;
1341
+
1342
+ </summary>
1343
+ </entry>
1344
+ </feed>