tag:blogger.com,1999:blog-16002962.comments2023-10-13T01:00:52.135-07:00Web JazzWil Chttp://www.blogger.com/profile/03696320260631888445noreply@blogger.comBlogger272125tag:blogger.com,1999:blog-16002962.post-59138174419365112542014-07-09T12:05:55.410-07:002014-07-09T12:05:55.410-07:00Thanks... it saved me few hours :)Thanks... it saved me few hours :)Jigarhttps://www.blogger.com/profile/08181595409506645242noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-68820529375955640552014-02-26T15:38:54.749-08:002014-02-26T15:38:54.749-08:00XLink was introduced in 1998/9 to provide linking ...XLink was introduced in 1998/9 to provide linking from XML. This was the NEW web of the time. People were thinking in terms of an extended HTML, in which xlink:href attribute could be applied to any element. This was to extend/replace the href that existed at the time in HTML. The value of xlink:href was to be an XPointer expression that enabled linking to any part of a target web page instead of just to particular anchors. So linking from plain XML has been around a long time. It was part of the design of GML (Geography Markup Language) from the very begining.Ron Lakehttps://www.blogger.com/profile/08938086824464968403noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-68320339644380041282013-10-29T14:42:04.438-07:002013-10-29T14:42:04.438-07:00Like ianxm wrote, that is damned sexy. Unfortunat...Like ianxm wrote, that is damned sexy. Unfortunately, if you ever had to use it with large arrays, it will slow down quite a bit. I ended up writing this as a result:<br /><br /> def interlace(other_array)<br /> if empty?<br /> other_array<br /> elsif length == other_array.length<br /> zip(other_array).flatten<br /> else<br /> l = [length, other_array.length].min<br /> (take(l).zip(other_array.take(l)) + drop(l) + other_array.drop(l)).flatten<br /> end<br /> endBrian Kiddhttps://www.blogger.com/profile/13732031661674529112noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-4879844435166796322013-06-11T13:04:06.282-07:002013-06-11T13:04:06.282-07:00https://github.com/yerv000/how_to-ruby_from_source...https://github.com/yerv000/how_to-ruby_from_sourcerubyisthttps://www.blogger.com/profile/03326908011284644192noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-49831562570196543702013-01-24T09:52:13.176-08:002013-01-24T09:52:13.176-08:00To check for Postgres adapter you may do that:
&g...To check for Postgres adapter you may do that:<br /><br />> ActiveRecord::Base.retrieve_connection.kind_of?(ActiveRecord::ConnectionAdapters::PostgreSQLAdapter)<br />=> trueEndel Dreyerhttps://www.blogger.com/profile/12902171223485551443noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-66038500926390024132012-10-23T03:07:37.202-07:002012-10-23T03:07:37.202-07:00find . -name *.c -print -o -name *.h -print | xarg...find . -name *.c -print -o -name *.h -print | xargs grep expression_to_grep<br /><br />I don't like the -print there a couple of times, but I couldn't find a way to make it work without the double -printAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-39061675400781535962012-08-27T12:21:24.742-07:002012-08-27T12:21:24.742-07:00I was getting this error due to the same problem:
...I was getting this error due to the same problem:<br /><br />ActionView::Template::Error:<br /> can't convert ActionView::Resolver::Path into IntegerAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-16030355380522787422012-08-15T11:16:49.561-07:002012-08-15T11:16:49.561-07:00Note that the regex .*.mpg would match a file name...Note that the regex .*.mpg would match a file named foo.barmpg.<br />This happened to me when trying to match .*.sh and all of my .bash files where getting matched.<br />If you escape the period, .*\.sh, then only files strictly ending with .sh will get matched.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-71300486048094779942012-08-10T18:33:08.004-07:002012-08-10T18:33:08.004-07:00Great post! Thanks for the help.Great post! Thanks for the help.Anonymoushttps://www.blogger.com/profile/15104434023216657508noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-43225943953305354412012-08-01T14:42:04.237-07:002012-08-01T14:42:04.237-07:00% find . -name "*.[ch]" -exec grep -l &q...% find . -name "*.[ch]" -exec grep -l "stringToFind" {} \;Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-7755310830537581332012-02-26T20:10:54.956-08:002012-02-26T20:10:54.956-08:00thanks...it helped a lot...Appreciated your effort...thanks...it helped a lot...Appreciated your effortsAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-20344921086620574672012-02-24T23:19:50.243-08:002012-02-24T23:19:50.243-08:00There is one simple solution to alter table
1. Fo...There is one simple solution to alter table<br /><br />1. For changing type of column:<br />class AlterUserColumn < ActiveRecord::Migration<br /> def self.up<br /> change_column :users, :admin, :integer, :default=>nil <br /> end<br /><br /> def self.down<br /><br /> end<br />end<br /><br />2.To Alter whole table structure :<br />class AlterUserColumn < ActiveRecord::Migration<br /> <br /> def self.up<br /> execute 'SIMPLE mysql alter query'<br /> end<br /><br /> def self.down<br /> execute 'opposite query to above written query'<br /> end<br />endShrikanthttps://www.blogger.com/profile/10563298956872740586noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-33948458732145717632012-01-09T22:13:13.397-08:002012-01-09T22:13:13.397-08:00Anyone having issues with libg2c0 on new versions ...Anyone having issues with libg2c0 on new versions of Ubuntu should just revert to using f2c using these instructions. http://rubyforge.org/tracker/index.php?func=detail&aid=25451&group_id=273&atid=1118jamiequinthttps://www.blogger.com/profile/12750768809455506728noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-82008574026807180422011-11-01T07:02:55.432-07:002011-11-01T07:02:55.432-07:00Thanks for the tip. Was exactly what I was looking...Thanks for the tip. Was exactly what I was looking for.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-91287881283729178522011-08-09T07:12:23.730-07:002011-08-09T07:12:23.730-07:00find file extensions .c and .h
find . -name "...find file extensions .c and .h<br /><br />find . -name "[*.ch]"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-4297504103369219562011-08-02T03:21:07.316-07:002011-08-02T03:21:07.316-07:00After spending 30 minutes with "man find"...After spending 30 minutes with "man find" I got frustrated and used search engine and after 5 minutes found this site and got my problem solved. Thank you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-91715230290305923372011-07-06T22:31:53.188-07:002011-07-06T22:31:53.188-07:00I have a similar issue. But both :back and reques...I have a similar issue. But both :back and request.referer causes the previous page contents to reset to nil, losing what data already entered. How to avoid this?rarebear.nmhttps://www.blogger.com/profile/13885064400106492108noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-81518374338363935922011-06-30T06:02:18.758-07:002011-06-30T06:02:18.758-07:00... or you could use:
diff -rq directory1 directo...... or you could use:<br /><br />diff -rq directory1 directory2 -x .svnAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-86545206039991052742011-04-13T05:37:27.595-07:002011-04-13T05:37:27.595-07:00took me an few hours to implement while i was stud...took me an few hours to implement while i was studying erlang<br /><br />bubble_sort(L) -><br /> if <br /> length(L) > 1 -><br /> SL=bubble_sort_p(L),<br /> bubble_sort(lists:sublist(SL,1,length(SL)-1)) ++ [lists:last(SL)];<br /> true -> L<br /> end.<br /><br />bubble_sort_p([]) -> []; <br />bubble_sort_p([F | R]) -><br /> case length(R) > 0 of<br /> true -> case F > hd(R) of<br /> true -> [hd(R)] ++ bubble_sort_p([F|tl(R)]);<br /> false -> [F] ++ bubble_sort_p([hd(R)|tl(R)])<br /> end;<br /> false -> [F]<br /> end.<br /><br /><br />I think I start to like Erlang but I need to start thinking differentlyAnonymoushttps://www.blogger.com/profile/17395558779155665861noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-53505498434855459092011-03-20T03:21:35.275-07:002011-03-20T03:21:35.275-07:00Titanium can be a huge pain, but it's not so b...Titanium can be a huge pain, but it's not so bad if you know what to avoid (though the docs don't help too much either).<br /><br />It now has a basic implementation of CommonJS's require(), which is what I'm using in my project (while staying the hell away from Ti.include()).Unknownhttps://www.blogger.com/profile/05789613006579139296noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-56539133346133156472011-02-15T18:20:32.362-08:002011-02-15T18:20:32.362-08:00Thank you ^^Thank you ^^Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-16002962.post-31278389233295666882011-02-01T10:58:56.160-08:002011-02-01T10:58:56.160-08:00It's been a long time since I wrote it, and it...It's been a long time since I wrote it, and it was more a prototype and for fun. you can do a lot better with a lot of the javascript HTML game engines available nowadays.Wil Chttps://www.blogger.com/profile/03696320260631888445noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-12434484442241305082011-01-31T16:55:32.982-08:002011-01-31T16:55:32.982-08:00Is this code still available? Would be nice to use...Is this code still available? Would be nice to use as an instructive reference.<br /><br />The http://www.3cglabs.com/test/isometric.html example is down.Unknownhttps://www.blogger.com/profile/00080874997553299596noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-79678940463969557592010-11-19T07:14:40.487-08:002010-11-19T07:14:40.487-08:00HEhe not workign well i supposed 3 years get fast!...HEhe not workign well i supposed 3 years get fast!, im currently researchign isometric Java Engines, could be interesting if i can see your code!Jose Carlos Tamayohttps://www.blogger.com/profile/02840151957865072152noreply@blogger.comtag:blogger.com,1999:blog-16002962.post-89167288322177704002010-11-05T19:50:49.851-07:002010-11-05T19:50:49.851-07:00Note that the line that Anonymous posted needs to ...Note that the line that Anonymous posted needs to be added to your .emacs file.Anonymousnoreply@blogger.com