« first day (540 days earlier)      last day (2715 days later) » 

1:15 AM
@CuddleBunny I'm not very good at rails, but there are some here who know more about it. You are welcome to hang out and chat.
 
 
2 hours later…
2:53 AM
There aren't very many OOP solutions on Codewars, despite Ruby being one of the oopiest languages around. I see many solutions with a single class, and many that are a bunch of global functions. It's making me kind of embarrassed to have used so many objects, and so many more lines of code.
 
3:41 AM
@WayneConrad I didn't attach any xml file
 
@Mr_Green I know you didn't. I was going to try to reproduce your problem, but I can't without an XML file. I was wondering whether you wanted to throw up a gist or something...
 
@WayneConrad In the above question, the OP is trying with "wordpressdotcom", and I am actually trying to go with this link. import.jekyllrb.com/docs/wordpress
 
@Mr_Green I don't think there's anyone way to know why you're getting that error, unfortunately. Not with the information we have.
 
Now I tried with an wordpress exported xml file
same error
@WayneConrad the xml file is exported from the wordpress. I can't share that file as it has all my posts. Sorry
 
Oh, private blog? I understand.
 
3:51 AM
yeah it is private. right now it is being hosted by wordpress. kamlekar.com
but I am planning to move to jekyll
I already did most of the part using jekyllnow as explained in SO blog. kamlekar.github.io
 
Jekyll is a lot better for a programmer than wordpress. You'll enjoy it.
 
but now I am trying to export the posts from wordpress to jekyll
yeah
Any idea what could be the cause of that error?
 
@Mr_Green For a private blog, your posts seem strangely public.
@Mr_Green No, no idea. If I could reproduce it, I could dive into the Ruby code and figure it out. But I can't reproduce it.
 
It can be viewed public but the posts are added only by me (I thought it is called private)
I will try to export a dummy xml and share with you, if you are free
 
That might be what private means. What I meant by "private" is that only certain people can see the blog... an invitation-only blog, for example.
 
3:55 AM
nah it is public then
 
@Mr_Green Sure.
I'm going to go outside and pick on the banjo for a bit. I'll check back later.
 
strange, just now observed whenever I run the above command line, it is generating a file
"wpexport.xml})'"
with .xml}) extension
 
4:11 AM
Learning to make classes, any suggested resources for getting my head wrapped around them? Anyone know of good code that would be a good example to read through?
 
Hmm, what do you already know?
 
@JonathanAllard very little to be honest. I know basically how classes look, I'm starting to get the point of initializing aspects, but writing out methods cold seems vague. I feel a lot more comfortable just writing code that solves problems or uses data than I do writing out things like @amount = amount inside a method.
 
It's kinda straightforward except a few gotchas. I'm bored, maybe I can walk you through an example of something you'd like to do?
I guess useful things to learn are *Difference between class and instance methods, *Inheritance and inclusion of modules ... Though the sidebar link kinda covers it
 
0
Q: Import wordpress posts in jekyll

Mr_GreenI already have a blog maintained by wordpress. Now, I am planning to move my blog posts to jekyll. I already forked jekyll basic blog template from jekyllnow and then I tried to import all my blog posts from wordpress to jekyll using Wordpress to jekyll exporter plugin as explained in this arti...

 
@JonathanAllard I think what would help me the most is a real practical example.
 
4:26 AM
@CheeseFry Sure, can you show me an example of what you'd like to do?
@Mr_Green It's kinda weird, it looks like the syntax error is from the hash "source" =>, but it looks like the right syntax also
@Mr_Green What if, instead of giving the -e switch and the code, you open irb and paste it there?
 
I am on Windows 8 with Ruby 1.9.2 installed.
irb?
interactive ruby.. ok wait
 
Instead of ... yup
and in IRB, paste what's between the ' 's
 
Windows is not Ruby's happiest environment.
 
Indeed, but refusing {"string" => "value"} as a syntax error, that's pretty harsh
I guess the punishment fits the crime ha
Grumpy @Wayne, making good points.
 
That would be pretty harsh.
 
4:31 AM
I'm really stumped on that one
 
@JonathanAllard Don't have an idea off the top of my head. Something simple to help me see the value in using custom classes.
 
@JonathanAllard Sorry, I didn't get you
 
@Mr_Green In IRB, paste what's between the single quotes
 
Hey, this is a Windows command shell problem... it's trying to interpret what's in the double-quoted string differently than how Linux would. How much do you want to bet?
 
Copy-pasting your command in your question would prolly be good too though, maybe you have some weird characters or something
I'm not betting on Windows being anything more than completely deficient
 
4:35 AM
@JonathanAllard I am sure there are no weird characters as I had typed it
@WayneConrad I think you are right
anyway to solve it?
 
What if you echo the piece of code?
@CheeseFry Neither do I. But if you want to see "the value in using custom classes", maybe you can research the benefits of OOP
 
strange, there is a space in imp ort
in that command line
 
@Mr_Green I think that's a cut/paste error.
 
ohh ok
 
The command runs fine in *nix with Ruby 2.2.1.
@Mr_Green Try running it in irb, like so:
 
4:39 AM
I think I need to install new version of ruby
 
$ irb
2.2.1 :001 > require "jekyll-import"; JekyllImport::Importers::WordpressDotCom.run({ "source" => "wpexport.xml"} )
Imported 1 posts
 => {"post"=>1}
2.2.1 :002 >
 
doing "gem install hpricot" now
 
Excellent.
You may or may not be able to run jekyll in Windows. It'll be a bit of luck if you can. Windows is, I am sad to say, a second-class citizen in the Ruby world. Not because Rubyists as a group hate Windows--just because Ruby was designed around Unix from the beginning, and most Rubyists work in Unix.
 
Awesome
Thank you guys
 
No you're not sad
 
4:45 AM
It's working?
 
Successfully imported :D
yup
 
Woohoo!
 
I really wonder what Ruby was getting from the Shell
 
Again thanks guys for great support
I was trying to figure this from last night
 
4:47 AM
@JonathanAllard Saying "I am sad to say" is a shorthand for "I am sorry that you're having trouble with Ruby under Windows... I hope you may be able to someday experience how wonderful Ruby is when used in its native environment."
@Mr_Green You might want to have a look at cygwin for things like this. Cygwin gets you a *nix-like shell under Windows. That command probably would have worked under Cygwin.
 
@WayneConrad I get it; though the répartie is less good in that case ;o)
 
ok thanks
 
Thanks for stopping by. Feel free to hang out and chat (or just lurk) any time.
 
sure :)
 
Cool, there was a macroburst about 10 miles North. I could see the storm collapsing on the weather radar, and I felt the gust front go by when I was outside. Actually, you can see the gust front on the radar, a blue arc moving from North to South.
@JonathanAllard I'm glad you stopped in. Have we met before and my poor memory has forgotten?
 
4:54 AM
Nice.
Hmm nope, I don't think so
I was very bored tonight and started shooting the Ruby questions and then I came here
Which is kind of a first
 
Please keep us in mind whenever boredom strikes. We enjoy company.
 
I will!
Oh my god, you're the one person in my day who I can tell this to and who will understand:
I spent 2-3 hours this morning trying to craft a function in Postgres
 
In pg/psql? It takes me an hour just to write "hello, world" in that ~~nasty~~ somewhat annoying little language.
 
and when I ran my tests, the function(anyarray) kept rejecting my citext[] input saying "function(citext[]) does not exist"
I touched it, then ran away, and could get away with just/sql
So after 2-3h of trying to debug why the function won't accept my argument type...
I realized it was because I used rake db:migrate:down/up and didn'T rake db:test:prepare
The function wasn't in the test schema at-all.
 
Oh, argh! Yeah, I do appreciate that. I suffer from that sort of thing whenever I use rails... the rake tasks have a lot of magic in them, and they don't like to tell you what the magic is doing.
 
5:02 AM
Yeah, and they fiddled with test:prepare in 4.0..4.2
db:migrate runs it I think, but not db:migrate:up
Moral of the story: "function(type) does not exist" is not an acceptable error message to mean "function exists but argument type is wrong"
 
Haha! Yeah. I think that's a result of Postgres doing function overloading by argument type.
 
Sounds right. I just wish it indicated "weh, there's a function with that name somewhere"
 
No kidding.
 
And about telling the PG people this, let's just say mailing lists are a little user-hostile in the ux
 
Heh, yeah. They're kind of old-school that way. They don't have MINSWAN.
 
5:07 AM
TIL
Yup, had to Google it ha
Best-yet for feature req's I think is Github
If you really want a discussion format, Discourse I guess?
I was speechless when I saw the Rails mailinglist ran on Google Groups
 
There's a new generation of programmers who refuse to put up with "RTFM" and other such shorthands for "you don't know this so I get to be curt/mean/etc. to you." I think it's a good thing.
Github's issue tracking is awesome. Discourse, I'm just trying now. Someone has started a discourse for Ruby (I can't find the link at the moment).
 
I love it. So much in fact that I'm now allergic to any other bulletin board system out there
Call me spoiled
 
@JonathanAllard The Rails core is very much Japanese. Very nice guys, but the language/culture divide can make it interesting to try to discuss or contribute to the Ruby core. That gives me an idea of what it has been like for the rest of the world to use the languages invented in the English speaking world.
 
Good point
As a French native speaker, it's kinda weird to code an app for consumption eg only in French, but have all the code, columns, etc in English
It's just so much less of a hassle that way
 
I've always thought that must be weird.
Are you a Frenchman, or French Canadian?
 
5:17 AM
French Canadian, in Montreal
 
I love the French Canadian accent. I don't know the French language, so I can't put my finger on it, but I think it sounds great. I'm not sure what makes it different than European French. It just sounds good to my ear.
 
It's way lower (and sounds way cooler) in my opinion
 
Lower in pitch?
 
I'm not sure
Not sure if there's an actual quantity being lower ha
But I've heard people saying it sounded more like German
Maybe there's a comparison to be had with how Southern American is different from British English
The lips, the jaw is tighter/looser maybe?
 
I'm listening to a youtube video with a Frenchman and a French Canadian speaking. The French Canadian sounds less gluteral, more nasal.
But it's not that big a difference to my American ears.
 
5:24 AM
Sounds right
 
(By The Way: Isn't it funny how the U.S.A has take American to mean just the U.S.A, when in fact Canada, Mexico, Brazil, etc., are all American?)
 
Absolutely
I've been to an "Americas" conference in Buenos Aires, and in the Spanish language, they tend to use 'American' for the Americas, and 'estadounidense' for the US
It sounded weird to hear people talk about the "American group" all the time referring to... well mostly Latin America
 
In Mexico, the U.S. is "Estado Unidos." Which makes sense.
The gal in this video says that the swear words are different in Canadian French than they are in mainland French. Heh. I wouldn't know, and I won't invite you to swear here. But I might have to look that up.
She says that if a Frenchman wants to speak like a Quebecker, he had better spend a lot of time with them, and "staying less in the West and the South," whatever that means.
 
Oh yes, definitely. Quebecois use church words a lot to swear. French? Sexual, the equivalent of English I guess
And the West and South of QC (besides Montreal) are generally where there are more anglophones
 
She was saying something about the history of Quebec and the church, and how at one time the church had a lot of power.
 
5:35 AM
Yup, until the "Révolution tranquille", in the 60s when Duplessis died and they mostly secularized the state
 
In the nine-teen sixties? Wow.
 
They named it "tranquille" (calm) cause there were no wars, just big peaceful changes
Yuuuup
Duplessis, premier in the ~40-50s, had a lot of power and was using the power of the church to uh... keep and wield his power
 
A politician wanting to keep power? I'm.. shocked. Shocked, I tell you.
But what's surprising to me is religion being used as a tool of power that late into the 20th century.
 
Well... he was a very austere man and kinda... vicious
The only person who makes me think of him, in a lesser quantity but in the same kinda direction, I guess PM Stephen Harper
 
I don't recognize the name... I'll have to look it up. But for now, it's past bedtime for me. It's been a pleasure to meet you, but I must go before I fall asleep on the keyboard and type something incredibly boring like eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee with my forehead.
 
5:42 AM
Haha it was a pleasure, see you around!
 
Thank you... See ya!
 
 
8 hours later…
1:33 PM
Good morning, all.
 
1:48 PM
morning, happy 4th to you
 
Happy traitorous rebellion day to you too :)
 
Haha, you are the only American here but thanks :D
 
Another name for it, which I kind of like, is "poking-your-finger-in-the-king's-eye day"
 
lol
so I take it not much for big celebration then?
 
Not for me. I usually go to bed around 9, but the neighborhood will be noisy until 1 or 2 or 3 in the morning. I plan to nap a lot today. Maybe get a latte around bedtime and then stay up and code.
 
2:00 PM
aye
that's a good idea then lol, rest throughout the day and work while it's loud
 
Might sit out front and play the banjo while the fireworks are going off, too. Maybe I can work up an arrangement for "Yankie Doodle Dandy" or something.
 
2:16 PM
ok back. nice! banjo sounds great. what kind of code are you working on today?
 
I should be working on the side project. Instead, I'm doing another infernal Kata.
What are you doing today?
 
well I spent all of yesterday learning responsive design so now I am under the gun to get these interfaces complete for tomorrow. got a meeting with the club owner later this afternoon to go over the scope of the project
 
Your project is going to be live when it's done?
 
yes
it's a rather small community compared to others out there, but about 4k members and upwards to 10 mil hits a month traffic wise. it is by far the largest project I will have built
 
But no pressure, heh.
 
2:28 PM
lol
this is why the front-end is a must, to have the bulk of it complete for monday...this goes live 2nd week of august
and I have to build the whole backend
 
 
2 hours later…
4:04 PM
getting error as " Zip end of central directory signature not found (Zip::Error)" from this method.. gist.github.com/aruprakshit/…
any idea why ?
 
@ArupRakshit Are you using GzipReader?
 
4:32 PM
yes @WayneConrad
scroll up
I don't know the reason of the error
@WayneConrad any pointer why is wrong.. ?
 
4:54 PM
@WayneConrad can I use this code review section of SO for markup?
 
5:20 PM
This kata was kind of hard, but very satisfying.
 
@ArupRakshit '.zip' and 'gz' files are different formats. I think your code may be trying to read a '.gz' file using code that is intended for a '.zip' file.
@JonathanMusso I don't understand. Was there supposed to be a link?
 
I checked and found the archive format is Zip.. its extension is not saying that
 
I don't know then.
Diety in the Sky, <name redacted> is such a pedant in his SO comments, and a snarky one at that. I wish he would lighten up.
 
@WayneConrad I remember a week or two ago you link codereview.stackexchange.com
I was wondering, is this the best place to get your code reviewed? And can I post HTML and CSS?
 
5:29 PM
I don't know if it's best, but it's pretty good. And yes you can.
30
Q: How to get the best value out of Code Review - Asking Questions

rolfl I have a project I am working on, and I would like some, or all of it reviewed, how can I ask for this review on Code Review in a way that produces the best possible value? This is not about a question being on-topic, or off topic. Rather, this is about making on-topic questions great qu...

 
thank you
 
5:41 PM
Please feel free to post a link to your question. The usual disclaimers apply: Offer not valid in all states, you must be 18 or over to enter, some limitations may apply, we may or may not actually follow the link, etc.
 
5:54 PM
:X
:D
 
Anonymous
Hi everyone!
 
Anonymous
long time since I have been here, like a few days/
 
6:51 PM
@onebree Hello stranger :)
 
7:38 PM
@WayneConrad getting some new error gist.github.com/aruprakshit/41e698c43a21e535a80e
rubyzip-1.1.7/lib/zip/entry.rb:582:in `initialize': Is a directory @ rb_sysopen - /home/arup/Rails/gobgob-ror/lib/knet (Errno::EISDIR)
 
Anonymous
Does anyone else feel like they get sidetracked easily when they are home on the weekend? I feel like I get nothing done sometimes because I dance around projects.
 
7:54 PM
I can maintain focus pretty we... Oh, look, a butterfly.
 
anyway I resolved my all pains
 
@ArupRakshit What was the cause?
 
8:18 PM
unnecessary things I was doing
thing is I was doing XOR -> gzip -> gunzip -> unzip , whereas I should do XOR -> unzip
@WayneConrad ^^^
 
I'm glad you got it worked out, Arup.
 
You know that .gz made me fool
I though lots of things for that,,, later I found it is just there no reason.. I can put .f*** also .. it will work.. Shy!!!1
 

« first day (540 days earlier)      last day (2715 days later) »