« first day (483 days earlier)      last day (3536 days later) » 

7:00 PM
May I remind @Jamal that he's a moderator?
 
@SimonAndréForsberg Student moderator
The other students are infecting him already...
 
That explains it...
 
Yes, I know that, but I don't think cursing is purged in most rooms unless it gets really out of hand.
 
@sim hence cursing with moderation ;)
 
It's alright, was just checking :)
 
7:09 PM
@Mat'sMug what 30k limit?
 
maximum post length (in characters) on SE
 
ah that rings a bell
 
I've hit my head in that bell many times...
 
lol
 
Anyone ever heard of a "optional type specifier" for Javascript?
@JeroenVannevel It's an optional type specifier — Chris Mantle 1 min ago
google doesn't give me any result
 
7:14 PM
stackoverflow logic: "Oh, this question is stupid! DOWNVOTE AND SUFFER, NEWBIE!" — Evil Washing Machine 3 mins ago
 
not me
how's your job search going @JeroenVannevel ?
 
@janos So far it's going great
 
@JeroenVannevel How hard is it really to translate that code even if you don't know what it is...?
Can't people guess anymore?
 
I've got an interview with that Culver city based company sometime in the next few weeks
I'll email them to make a skype-appointment tomorrow after my last exam
Their recruiter will sit me down with their team
 
where is that?
 
7:16 PM
Shouldn't be too hard to blow an internship interview
LA area
left-bottom, I think
 
did you try full-time jobs or only internships?
 
If the interview doesn't work out I've still got another LA-based company interested in me
And a teacher at my school put me in contact with a business partner of his that is starting a new company in SF
so I've got a few fallbacks
aside from the already interested companies outside the US
 
cool
 
only internships
Although the company that I'm going to interview with now did ask me my plans for afterwards: whether I would be interested in living in the US permanently
and whether I would go back to Belgium after the internship
 
I think you can aim for full-time jobs btw
 
7:18 PM
Told them yes but that if they would like me and offer me a job, that I'd be very interested in it
Eeeh, I think getting that bachelors is pretty important
at least for the visa
 
oh it is
but you're graduating soon, no?
 
I think one of the requirements for the visa for people with extraordinary qualifications is having a bachelors
Mhhm, in theory.. suuure
 
1
A: Is [lolcode] reviewable?

nhgrifIs it reviewable? Sure. Should we review? I guess, if someone feels so inclined--but why? But for me, there's not much point to it. It's truly a toy-language. No one will ever write any serious production code out of it. Moreover, the example questions we have of it show that the language ...

 
But the way the Belgian system works, I now have classes completed in the first, second and third year of college
 
oh I see, you're looking for internships because you haven't graduated yet
 
7:20 PM
My bloody economics from the first year keeps dragging on
There's a chance I might have failed it again these exams
so there's that
yeah, still a student
 
@Mat'sMug I guess it's safe to say that @nhgrif does not like your inventions
 
I think it just kind of goes against the entirety of the spirit of Code Review. ( as well I think, but seems more obviously against it)
 
so "toy" or "esoteric" languages should be blacklisted?
Where would we draw the line, though? At vb? php? cobol? — 200_success ♦ 15 hours ago
 
I don't want to make a blanket, categorical statement.
 
lolcode and brainfuck are both silly things, and don't belong here in the strict sense, but we gotta lighten up sometimes. I think they bring some color, so we're not all so very super serious
 
7:30 PM
VB, PHP, and Cobol are all serious production languages.
 
they are still a tiny fraction of all the meaningful content
 
@nhgrif I can understand your point in a way about brainfuck, although I do not agree. While doing brainfuck I learned to think in an entirely new way. Brainfuck is, IMO, not a "toy" language. Esoteric, yes, but not a toy. It is incredibly heard to make something useful in Brainfuck
 
I'm not saying that these languages are completely useless.
Nor am I saying there's no value in writing them.
 
Although now I am a bit tempted at making Rock-Paper-Scissors in it... but it would take me days
 
But what kind of reviews do we give here?
First, performance.
Second, cleanliness/organization/readability
Isn't the answer to literally every brainfuck or lolcode question in terms of that second review type to just start over in another language?
 
7:33 PM
Tough decision here, I'm giving you the checkmark on this one.. but I'm surprised nobody mentioned that I'm doing 3*5 at every iteration, could have used a I HAS A FizzBuzz ITZ PRODUKT OF Fizz AN Buzz outside the loop. — Mat's Mug 6 hours ago
^^ performance right there
 
I'm not saying you can't review performance in LOLCODE.
I'll be back later
 
np
BTW @nhgrif that's exactly the kind of discussion I was hoping to trigger
 
I can't speak on behalf of lolcode, but I can speak on behalf of Brainfuck:
Performance: I believe it is possible to simplify my Brainfuck program by structuring the tape better, or simplifying how you setup the tape or whatever. (Perhaps even taking an entirely different approach to it)
Organisation/Readability: The readability comes a lot from how you present the code. A BF program without comments should never be posted on Code Review.
I did my best at making a "good" Brainfuck question.
 
nvm, back
 
@Mat'sMug As long as we don't get an invasion of them, I think they should stay.
 
7:35 PM
Here's the question though
 
@Mat'sMug Just looked up Fim++ OMG! equestriadaily.com/2012/10/…
 
This is the question that I can't answer and what prompts my answer on the meta.
WHY would you want LOLCODE reviewed?
 
Also, another question... if it weren't for my downvote on your LOLCODE fizzbuzz, it'd be on the first page even if you limit only 15 questions per page. Do we really want this to be a shiny example of one of our best all-time ever asked questions?
 
is anything wrong with the way it's asked? 'cause I can edit that (though that'll bump it)
 
7:40 PM
There are pretty good questions asked every single day here on Code Review. Questions about programming languages that serious programmers use in a very serious way on an every day basis. Questions for which I, while at work, could potentially browse to, read, and make an improvement in my production code based on the answer. I couldn't EVER do that for a LOLCODE question. It's no value to me, because no matter who I work for, I'll never be writing production code in LOLCODE.
 
@nhgrif That's a good question.
 
So it's not that the question shouldn't be allowed.
It's just that it's extraordinarily disappointing to me that the 36 upvotes and my downvote make it apparently the 16th best question on the site of all time.
Out of nearly 17,000 questions.
 
LOLCODE in production is LOL production, BYE production
 
So I'm fine with you posting it, and I'm fine with people reviewing it, and if it didn't have so many upvotes, I might not even downvote it.
 
LOLCODE = ScriptKiddyCode..
 
7:42 PM
I'm fine with people downvoting it - heck, I'm fine with people voting to close it.
 
If its fun its going to be popular right?
 
popular as in draws views and attracts new users, yes. I don't think we need to prepare for an avalanche of LOLCODE questions.
 
@Mat'sMug I honestly have not voted on your question at all. The main reason I haven't downvoted is because I have a Brainfuck question myself. I can't really convince myself that "My BF question is good, lolcode questions is bad"
If there is another lolcode question within 7 days, then I think we might have a problem.
 
It's a break from the norm
Those types of coding style should have their own site IMO
 
It's just really bothersome to me that this question has 95 total upvotes between the question and all the answers. Meanwhile, I only average 4 upvotes per Objective-C answer and 2 upvotes per Swift answer. I understand that these languages aren't so popular on the site overall... but there are a ton of really good Objective-C and Swift questions and answers, and there are definitely more people fluent in Objective-C and Swift that are regulars to Code Review...
 
7:45 PM
As they are non-conventional
 
I am a bit surprised that my first downvote on the BF question arrived today (supposedly from @nhgrif)
 
The highest upvoted ObjC question is 15 upvotes. Less than half the upvotes this question has and the lolcode hasn't been up for nearly that long.
 
It's mostly a question of whether a question gets hot
 
it's not only , it's too. Highest upvoted had 26 before came along.
and how useful is a question, has been bothering me for a while, too.
 
That's questionable. But I treat FizzBuzz sort of like Hello World. You should be able to implement it in any language and it's a good way to get your feet wet with a new language.
 
7:50 PM
which is exactly what I did
 
Whether or not it's a good fit for CodeReview, I don't know. But FizzBuzz to me is sort of the first step toward writing more serious code in that language.
What's the most serious code anyone would ever write in ?
 
@nhgrif A brainfuck interpreter maybe?
 
and the rock-paper-scissors post touches on breaking down functionality into more specialized functions.
 
The problem is, it's just not a good question. It's not a good question because it's really not seriously helpful to anyone ever.
 
@nhgrif Unless we're talking Brainfuck... I was happy when I could print a "A" in BF
Even happier when I could do it in about 20 chars instead of 66...
 
7:51 PM
There are other questions that aren't good questions.
Being a bad question doesn't mean it should be closed.
 
what "serious" code was ever written in ?
 
The problem is, because is silly, it gets a ton of upvotes. Meanwhile, a bad question in any other programming language gets an appropriate-ish amount of upvotes.
Welcome to Code Review, where we talk about .
 
so we do hate then
 
I don't hate fun. I find programming very fun.
I don't think CodeReview is a very appropriate venue for silly.
It sort of makes a mockery of all the very good, very serious questions and answers that are on the site.
 
^^ Good point
 
7:54 PM
indeed
 
So as I said, I think it would bother me far less if it didn't have nearly as many upvotes.
 
although I don't find 2 little questions change anything to my 358 answers and my other 54 questions contributed so far.
 
If you wish, I could have it locked for now.
 
@Jamal I see no reason to do that
 
well it would block the voting
and prevent it from going hot
 
7:56 PM
...ter?
 
@Jamal which one?
 
My problem isn't even with you Mug, or that you've posted these questions. This isn't a personal thing.
 
:)
 
Maybe just the first one.
 
Consider your question versus this:
12
Q: SQLConnect - A library for connecting Objective-C/Swift applications to Microsoft SQL Server

nhgrifThe complete SQLConnect library can be found here. The file from which the following method belongs can be found here. At some point I may or may not open questions for reviewing other aspects of this library, but I intend to keep the questions relatively small. This is the largest method in t...

Is your question worth 3 times as many upvotes?
(This is biased toward ObjC/Swift only because that's where I spend 90% of my time on Code Review)
 
7:57 PM
I believe it has been said before that comparing upvotes between questions is not a good idea to do.
 
I find it more comparable to this:
5
Q: Materializing any ADODB Query

Mat's MugFollowing-up on Creating ADODB Parameters on the fly and pushing the "wrapping" of ADODB a step further, I have written two more classes that allows me to expose methods that don't require a Connection object, without returning an ADODB.Recordset. Taking this method as a reference: Public Func...

 
If it were Java and Objective-C, it's very easy for me to chalk it up to the fact that there are (at least) 3 times as many Java browsers than Objective-C browsers.
There are not 3 times as many browsers as there are browsers.
 
the thing with is that it's reviewable by any programmer, because no-one specializes in .
 
Then it might as well be pseudocode.
 
but it runs
 
8:00 PM
Except instead of using words that make sense, we talk like we're forum trolls.
You could have your algorithm reviewed on Programmers. As for the readability, the answer to will always be to use a different language.
 
Maybe we need a
http://noveltycodereview.stackexchange.com
 
the way I see "good code", and has proven this, is that it's really "good code, for the language it's written in"
 
Or comedy.stackexchange
 
I think ultimately we'll need to come to a consensus about what's acceptable regarding esoteric languages, or blacklist their tags.
 
I don't disagree with that entirely... but as a question that's probably borderline in terms of this site's scope, a good developer has to always be certain they're using the appropriate language for the job.
For which job is a good programming language to use?
 
8:06 PM
0
Q: Autoloading Class files and instantiating a class - Admin backend

CodeXAt the moment i am auto loading my classes with: spl_autoload_register(function ($class) { require_once 'classes/class.'. $class .'.php'; }); And Instantiating the class with: $backend = new backend(); $dashboard = new dashboard(); $article = new article(); $video = new video(); $theme = ...

 
I think a separation of serious productive languages and "novelty" coding languages would be a good idea
 
I don't do any web development, but I assume PHP and Javascript, ugly as they are, actually have their uses.
 
@nhgrif Learning experience?
 
@nhgrif They are extremely popular over here :)
 
Is there something you can learn writing that you can't learn writing in other programming languages?
 
8:07 PM
the answer to any question could also be "use another language"...
 
@CodeX What kind of separation? On-topic / Off-topic?
 
@Mat'sMug What are the alternatives to (I seriously don't know)
 
@nhgrif That I don't know, as I have never tried writing lolcode myself.
 
@SimonAndréForsberg Full separation, maybe its own site
 
@CodeX I don't think there's demand enough for it to make it its own site
 
8:08 PM
@nhgrif any server-side language... I'd say with ...
 
And if you're not on a Windows machine?
 
^^
 
@SimonAndréForsberg Hmm its a difficult one, i can see the argument from both sides
 
8:09 PM
Can Java do all the server side stuff PHP would do?
And Java is objectively better at doing all that stuff than PHP in every aspect?
 
Wordpress uses php..
 
Java is better than PHP in every aspect other than the capability of writing bad code.
3
 
Drupal
 
(This includes ease of learning, development time, etc)
 
8:11 PM
comes to mind...
 
@nhgrif How can you say that one thing is objectively better at doing something than another language?
 
(Ease of deployment, capability with user base)
 
Bad programmers exist in every language.
3
 
Take a programmer that knows both languages equally well.
 
Probably with the exception of Brainfuck... just getting something to work in Brainfuck is an achievement itself...
 
8:12 PM
For ease of use and flexibility and as a base language PHP is great
 
If I know Java and PHP equally well, is there any advantage whatsoever in me using PHP?
Can I develop faster with it?
Is it easier to get working on the server?
 
@nhgrif I think @CodeX said everything. If you want to make something simple, you can use PHP.
There are more servers that support PHP than Java
Not many webhotels supports Java
 
I was about to say that
 
So there are viable reasons for using PHP over Java.
 
Get linux hosting and look at the PHP support
 
8:14 PM
Even if Java is vastly superior, there are some reasons.
 
And there are viable reasons for using Java over PHP
 
I agree, that's not the point though.
 
Definitely
It all depends on what you want to do i guess
 
As soon as you want to do multi-threading, PHP pretty much goes out the window...
 
The point here is... are there any viable reasons for using over other languages?
 
8:14 PM
Your level of experience
 
@nhgrif of course not. is as useful as or on that aspect: you learn the language to see how you can do what you already know, in that language... and how is that different from learning as a developer?
 
Is lolcode viable to use for a serious project?
 
Is lolcode easier to write? Is it easier to deploy? Does it run faster? Does it leave a smaller memory footprint?
There are plenty of good reasons to know both C# and Java.
Java doesn't run on .NET
C# doesn't run in JVM.
Want to work with SQL Server? Use C#.
Need to develop multi-platform? Use Java.
 
PHP has a lot of security issues, does C# or Java require as much attention in that aspect?
From what i can see C# and Java is a much better structured language with good standards
 
@CodeX You can do SQL-injection in any language.
4
 
8:17 PM
Sure but is it easier to secure?
in C# or Java
 
The point is, I've got a bag of programming languages to use as tools. When I see a nail, I get my hammer. When I see a screw, I get my screwdriver. What sort of problem is available for which the right tool to use is (or )?
 
Is lolcode viable to use for a serious project?
 
When I see a LOLCATZ, I get my
 
That's what I'm asking.
 
it's not.
 
8:18 PM
For what project do I pick over other programming languages that I know?
 
So its a novelty code for fun?
 
@CodeX easier, I do not know. If you use the right libraries, yes (Hibernate FTW)
 
If you posted a question on StackOverflow, would you get answers, or would you be closed as off-topic because you should be using a real programming language to solve your problem?
 
Java is just a poor man's C#
3
/hide
 
(I know we're not SO, but I think the question is at least partially relevant to the discussion)
 
8:20 PM
In comes the divide question again, should codereview be for serious programming languages ONLY?
 
22
Q: What good is the NERFIN loop operation in LOLCODE?

JB.What the spec says on the subject: Iteration loops have the form: IM IN YR <label> <operation> YR <variable> [TIL|WILE <expression>] <code block> IM OUTTA YR <label> Where <operation> may be UPPIN (increment by one), NERFIN (decrement by one), or any unary function. That oper...

 
@nhgrif For Brainfuck it's all about the learning experience. You just don't do things in the same way. Brainfuck is however not a 'production-language'
 
@JeroenVannevel Haha!
 
@JeroenVannevel C# is a stupid man's Java (stupid for paying for something you can get for free)
 
Come at me with your capitalized String, broheme
 
8:21 PM
@CodeX Is it possible to make a separation of serious and unserious languages?
 
I guess its Personal Preference..
 
@JeroenVannevel Come at me with your enum without methods, broheme
 
Ok, so separation of serious production languages that are useful / popular from languages that are novelty
 
@SimonAndréForsberg Why you gotta go there man. You know that's our soft spot
 
Now we wait for the LOLCODE epidemic..
Hello @RubberDuck
 
8:24 PM
@CodeX I'm afraid that would create yet another grey area of Code Review. Do we need that?
@CodeX As long as there is no epidemic, there is no problem. Hold your thumbs
 
as I said earlier, I think it needs to be black-or-white here. Either we treat esoteric languages as programming languages, or we blacklist them.
 
@SimonAndréForsberg Haha, true.. Its worth considering i guess
Can you blacklist a tag so you never see questions from it in your profile?
That would work right?
 
hmm I think they'd have to be vaporized (the questions)
 
@Mat'sMug My vote would be out but in, which would cause the grey. Which means that my vote is: As long there is no problem, it's OK. Again: If there is another lolcode question soon, then it would be a problem.
 
It might be worth pointing out that StackOverflow, which has 7.9 million questions has just 7 questions, 2 of which are closed (not specifically because they're ). The first of these was posted February 2009. They're averaging approximately 1 on-topic question per year. And the highest voted question over there is somewhere around page 800 at 50 questions per page.
 
8:29 PM
@CodeX You can ignore tags, don't think that totally hides them though
 
Meanwhile, we have 2 questions in 24 hours. The highest upvoted one would be on the front page if it weren't for my downvote.
 
That would be a great feature i think, you can't have a problem with something you can't see
 
@nhgrif That sounds acceptable to me. I don't expect there to be a real lolcode question within the next 2 months or so.
 
@SimonAndréForsberg Why/how do you distinguish between and ?
 
I'm guessing the hidden posts would be replaced with questions relevant to your own language preference
 
8:31 PM
@nhgrif Because I learned a lot by doing Brainfuck. Things I would not have learned by doing another language.
 
Are the things you learned applicable to other languages--production languages?
 
The maker of Brainfuck..
 
@nhgrif I would say yes. I learned to approach FizzBuzz in a way I have not seen before.
 
Lolcode and brainfuck are very different. Brainfuck is an educational language. Lolcode is for fun.
 
@CodeX That ^^ is how an ignored tag looks
 
8:33 PM
But both are very much real languages.
 
@RubberDuck This makes sense. It certainly feels like there's a difference between them.
 
They have implemented compilers. They both run and do things.
 
Brainfuck was created not to be confusing, but to require the smallest possible interpreter.
 
Where would we draw the line, though? At vb? php? cobol? — 200_success ♦ 16 hours ago
 
@SimonAndréForsberg Hmm, there could be an option to completely remove post from view, I'm sure it was discussed at some point and they decided that was the best way to do it..
 
8:35 PM
> Urban Müller created brainfuck in 1993 with the intention of designing a language which could be implemented with the smallest possible compiler
 
0
A: Can I read command line Parameters passed to LOLCODE

retailcoderI haven't used lolcode-dot-net, but from your code it seems you're trying to simply pass a parameter to a function. Per the LOLCODE 1.2 language specs, this is the syntax for calling a function: I IZ <function name> [YR <expression1> [AN YR <expression2> [AN YR <expression3> ...]]] MKAY Thi...

 
Mug, he's trying to pass in command line arguments. Which I do not think is possible.
 
 
Lol
 
Yesterday I taught my boss about C-strings.
 
8:39 PM
It went really quiet for a second then lol
 
Nice ^
 
We've started working on some software to communicate to some assembly-line machines.
He's basically taught himself VB (he started at this company 10 years ago doing their website and then they started developing ERP software from scratch)
 
@nhgrif Do you need a MAC to develop iOS apps or just to compile them?
 
iOS?
IOS is some Cisco stuff....
 
haha..
 
8:41 PM
To develop in Objective-C or Swift, you need a Mac.
 
But there's always XAMARIN
 
However, you can develop iOS apps without a Mac using things like Xamarin.
 
Which uses the glorious C# language
 
Do i need a MAC to compile ?
 
@RubberDuck that's not what his code seems to be doing. he just so happens to have called his function "MAIN"
afk
 
8:43 PM
Yeah, but it sounded like he wanted to do this.
 
@CodeX I don't think you need a Mac to compile Xamarin... in fact, that wouldn't make much sense.
 
@JeroenVannevel And there's always RoboVM
 
You can develop it on Windows, but you need some special apple shizzle to publish it in the app store
 
program.lol /something 'param'
 
I haven't looked into it yet but I believe there's some developer's license needed
I don't know how apple publishing works
 
8:45 PM
@nhgrif @JeroenVannevel Thanks, that makes sense (publishing)
iPhone 6 out soon.. Anyone have any inside info?
 
It'll be bigger and it will be 50% more DPI than the current retina devices.
or.... is DPI the right terms? 50% more pixels per inch anyway.
 
Dots Per Inch
Yeah
Sapphire Crystal glass?
 
To publish to the app store, you need one of two types of developer accounts
Either a standard developer account which is $99/year
Or an enterprise developer account, which is $299/year
 
Is it free to develop the apps, software etc?
 
Xcode is free if you're on a Mac. There's also an iOS simulator for iPhone 3.5", iPhone 4" (32 and 64-bit), iPad non-retina, iPad retina 32 bit, and iPad retina 64 bit
 
8:48 PM
0
Q: Minimalistic rmdir

charlyIn my eyes most of the GNU stuff is bloated and doesn't realy fit my view of how a linux envierement shuld look like. So I have come up with my own minimalist impementation of the GNU Coreutils, but i did not touch C in a long time and my programming style reflects that little. rmdir.c is a good ...

 
However, in order to test on a device, you need one of the developer accounts.
 
Ah, ok makes sense, stops the flood that a lot of the other OS's get
 
I don't know about Xamarin (though I'm pretty sure even with Xamarin you need a developer account before you can test on an iOS device)
 
Xamarin Test Cloud
 
> There are a few requirements that must be adhered to when developing for iOS on Visual Studio. As briefly mentioned in the overview, a Mac is required to compile the .ipk file, and applications cannot be deployed to a device without Apple’s certificates and code-signing tools. The iOS simulator can also only be used on a Mac.
 
8:51 PM
> The first LOLCODE implementation was a PHP parser written by Jeff Jones.
3
 
I think that ^^ says everything about LOLCODE
 
Thanks @JeroenVannevel @nhgrif
@SimonAndréForsberg a PHP parser.. :/
 
I don't know what .ipk is... I'm not sure that's still used.
.ipa I see and use all the time.
 
8:54 PM
I think there's a .apk also.
 
.apk is what Android uses
 
Ah, yup. I knew that looked familiar.
 
"IM IN UR FUNNAHS ITZA JOKE" - HAHA
 
but .ipa is definitely the file you use for installing iOS apps to devices/simulators
 
yeah i recognise .ipa from File Explorer
"An .ipa file is an iOS application archive file which stores an iOS app"
 
8:57 PM
It has the compiled app, plus the meta data I think? Also the artwork for the appstore.
 
Has the whole app?
 
Yes.
Not the source code. The compiled binary.
Okay so...
@JeroenVannevel How do you test an iOS app then?
 
@nhgrif No idea, never used it
 
I think there is an addon for VS that lets you run the app in a virtual iPhone on the screen
I might be thinking of web apps though
 
Per Jeroen's quote:
> The iOS simulator can also only be used on a Mac.
 
9:03 PM
I think there are "hacky" windows variants
It might have been a dream..
 
So... you can't really do much of anything on the free version of Xamarin it looks like.
 
Nope, its all £££
 
And in just 24 months (I think) of paying for the cheapest version, you could've purchased a Mac Mini.
The next tier up might be more reasonable--but that depends on how many users you're allowed at that tier.
 
@nhgrif I have a friend who has a mac maybe he'll lend me it.. :/
 
Student license is 100$ though
Which is very cheap for the comfort it brings
 
9:08 PM
Slowly losing the need to code an iOS app..
 
lol
When I was a student, I got a copy of one of the better versions of Visual Studio too.
Xcode has built-in source control. We found out at work a few weeks ago that Visual Studio does not.
 
WOW that's some real money!
I had a "free" copy of VS a few years ago
 
Yeah, I'm working with VS Professional free through school as well
 
You can get VS Express for free.
I think I had VS Pro through school.
 
Visual Studio has integration with Git and SVN through NuGet and has TFS built-in, no?
 
9:13 PM
It's not built-in.
It has some menu options for source control that automatically show up, but only after you install a 3rd party add-on.
 
eh, if it's in NuGet then it's pretty much built-in
 
"pretty much built-in" and "built-in" are not the same.
 
I'm inserting a youtube embed code into a database and it strips out the http:
//www.youtube.com/embed/lGXHVlEklgQ
Anyone know why?
Weird thing is i can play the video in a preview window with that URL
 
How are you inserting?
What's the query?
 
PDO Prepared Statement
INSERT INTO wcx_videos (video_title, video_description, video_embed, video_active, video_category, video_date, video_postby) VALUES (:video_title, :video_description, :video_embed, :video_active, :video_category, :video_date, :video_postby)
 
9:22 PM
Oh wait, is this Microsoft SQL Server?
 
Sorry, no
I read SQL and just answered..
I was going to store the embed code as htmlentities()
then html_entities_decode() on the edit page
Oops, i see whats happening
"// << stripping out the http:
i need to escape the "
Heads gone.. need to sleep, take care all! Have a great weekend! :)
 
9:40 PM
Is it still September...? — nhgrif 6 secs ago
This wrong answer has an upvote. :/ stackoverflow.com/a/25586923/2792531
My answer has no upvotes. :/ stackoverflow.com/a/25587030/2792531
 
nice review by new user:
2
A: Minimalistic rmdir

DarkDustStyle Minor nitpicking: your style is not 100% consistent. int main(int argc, char** args){ // should be int main(int argc, char **args){ while(1) { // should be while(1){ Pattern I think this block is very, very unusual. switch(parents){ case false: remove_dir(path, verbose); break; ...

and if I'm pimping other people's answers...
let me pimp my unloved perl fresh zombie answer too:
0
A: Expand hostnames from a string of hostnames and/or regex

janosYour function expects a single argument that should contain hostnames or patterns separated by spaces: sub expand_names { my $host = shift; my @raw_hosts = split(' ', $host); foreach my $raw_name (@raw_hosts) { Why not use multiple arguments? sub expand_names { foreach my $raw...

thank you Santa!
 
9:58 PM
0
Q: File-based fixed-record merge sort

rolflA problem posted here to Code Review prompted me to experiment with a general-purpose merge-sort algorithm for any fixed-length record data. External / File-based mergesort I answered that question, which specifically deals with int values in a file, and proposed an answer that suggested a Mapp...

 
^^^ Very meaty Java code for review, if anyone is interested.
 
No, thanks. I already have a Java assignment to work on. :P
 

« first day (483 days earlier)      last day (3536 days later) »