« first day (495 days earlier)      last day (2736 days later) » 

12:04 AM
heya
I challenge you
1
A: Solve the Laplace equation

flawrMatlab, 84, 81.2 79.1 bytes = 113 - 30% function u=l(f,N,a,b);A=toeplitz([2,-1,(3:N)*0]);A([1,2,end-[1,0]])=eye(2);u=[a,f((1:N-2)/N)*(N-1)^2,b]/A;plot(u) Note that in this example the I use row vectors, this means that the matrix A is transposed. f is taken as a function handle, a,b are the le...

 
12:21 AM
@flawr Nice!
Great use of eye
 
1:06 AM
@Adriaan It's worth the cost, man, do it
 
 
10 hours later…
10:38 AM
14
Q: My cat sat down on my laptop, now the right side of my keyboard does not work

user660920The rest of my keyboard is still working but when I go to type either L or P they give me 3 or *. I had to use the touch screen of my computer to type this in.

3
 
@Adriaan <3
 
11:22 AM
For you, regexp lovers: regexcrossword.com
 
@AnderBiguri I love that thing=)
 
I found it in PPCG, and its amazing
specially to learn,because I do not know how to do regexp
 
im stuck in begginer 2 XD
 
I hate regex, but they are useful sometimes
 
11:36 AM
@LuisMendo you always find the weirdest things with indexes
 
wait... what? — Ander Biguri 1 hour ago
@AnderBiguri ^ My exact thoughts :-)
 
yeah, I was a bit confused
is this only 2016b?
I just tried something like
A=ones(3)
A(end/2)
 
It happens in recent versions, about 2010 onwards. See here:
16 hours ago, by Luis Mendo
You have an older Matlab version (was it 2010?). Can you check?
According to comments in the question it doesn't happen in 2009
 
weird
 
12:26 PM
@andr
in SO Close Vote Reviewers, 21 secs ago, by tripleee
helping build a catalog of common dupe targets is one way to lower the barrier
@AndrasDeak ^triggered my memory, how's our database coming?
 
good, good, nothing changed
 
Soooo, we going to put it anywhere nice?
 
well it's on github, so anyone can do anything:P
it should be compiled into one ordered bunch, with some system for easy identification
Bhargav Rao told me that in R they have some web interface that helps with this?
he even linked me to the github but I didn't understand much (in the available time)
 
kk, I'll probably not understand a thing of it either in that case
@BhargavRao, got the link for that GitHub so I can bookmark it?
 
Have I been summoned?
 
12:32 PM
you have :p
 
@Adriaan Here ... github.com.
 
We have a github list of MATLAB questions for dupe-hammering
@BhargavRao thanks!
 
It's the link to "that github" :P
@Adriaan Oh, Ok. Just a sec.
 
Now to see whether we can get that into the tag-wiki or something
I think there's 20 gold badgers in MATLAB, of which only 10 or so actively use theirs, so it's not a huge amount of people we should tell about that
 
@Adriaan, The idea is to keep everything on GH pages (as it's free).
 
12:37 PM
@BhargavRao so our list isn't even that bad ?
 
oh, hey, Bhargav:)
 
Bit AFK, I'll BBiab.
@AndrasDeak o/
 
(our list is very much work in progress, but said progress hasn't progressed in a while)
 
I think the list is rather complete actually.
New ones may come up when necessary, which we can add then
 
there might be some duplicates in the duplicate list:P
and if we want to target the tag wiki, we might have to weed some less-important ones out
 
12:47 PM
pick the most appropriate one in that case
 
if we create a github pages page for it, then this is fine
@Adriaan I mean exact dupes
same question linked twice by eager sloppy friends:P
 
GH page seems fine to me, as I said, there's only some 10 people you need to tell about this list, most of which frequent the chatroom
 
1:10 PM
@Adriaan That's quite enough.
 
@BhargavRao aight, thanks for your opinion.
You're always welcome here if you get sick of using <- as an assignment operator ;)
 
Steps: 1. Create an org. 2. Flick code from here, github.com/r-public/r-public.github.io/tree/master/hammer 3. Use this to convert your md file to JSON github.com/r-public/HammeR/blob/master/mdtojson.py 4. Change the JSON Url to point to yours. 5 ??? 6. Profit
Max 10 mins :D
 
use JSON stuff? Sounds difficult
 
Bah, Run that python program. It will do the stuff.
 
hello?
i need some help with matlab
 
1:21 PM
@Zombievirus Hello!
 
what type of help! :P
 
@Zombievirus there's the stackoverflow ask-a-question box?
 
stats_b is a struct
i need it's length as text to place it in the title of an image
how do i convert it from number to text?
 
a struct is not text
is a struct
I meant number
a struct is not a number
 
i know but it's length is a number
length(stats_b)
 
1:23 PM
num2str( )
 
that
 
so num2str(length(stats_b))?
 
@Zombievirus read mathworks.com/help/matlab
as in: learn the language first. This is a very basic thing
 
OR, alternatively, copy and pasting your question: google.co.uk/…
;) Matlab help is very nice, just type your question on Google, will give you the answer 99% of times
3
 
solved the problem! thanxxx
 
1:27 PM
@Zombievirus but please, read the language fundamentals and, as @AnderBiguri suggested, use Google, as that will solve all of your MATLAB problems you'll have in the first two months of using it.
 
i don't like matlab. it's homework so i am being forced to waste my time with it.
sorry
 
@Zombievirus if you don't like wasting your time, why do you "waste" (for the lack of a better word) ours, whereas Google would've been just as quick?
 
@Zombievirus If its homework we worry more, as we do not want to give you answers
 
Besides, if you're learning MATLAB for school/university, it's absolutely NOT a waste of time, as it's highly sought after by research groups from both industry and university
 
Also, homework for Uni (assuming) are a waste? you need a degree! Its part of your degree a waste? Try not to put that in your CV
 
1:30 PM
it was a object detection script. i am already done with the detection! i was just having difficulties with the title
been sitting here for 12 hours. super exhausted
 
Probably because you left it for the last time :P
some of us here are either students or teachers/TAs in Unis
we know the deal
 
yup! deadline is tomorrow
 
whos fault is that :P
 
2:20 PM
So my girlfriend's mom gave me $500 bucks on Saturday lmao
My life is weird
 
0
Q: What does this MATLAB expression mean?

imulsionI have the following MATLAB function definition: function dv = rc(t,v) dv(1) = -0.1*v(1); I'm trying to understand what it's doing. I can understand the expression and definition of the function, but why is there a (1) after dv and v? What does that do?

how'd that get an upvote? It's language fundamentals
 
listening
Aussies use VHS?
3 mins in, no music :P
that was very weird indeed
 
3:05 PM
hahahah yeah
lmao
So good though
 
@ballBreaker ( ͡° ͜ʖ ͡°)
 
3:20 PM
whut, I just got an upvote on one of my first ever answers on the site. Q was not that great...
Do votes from 1 rep users kick in once they reach 15?
as in: vote in August 2015 on my answer, ask another Q now, get a few votes, go past 15 rep -> old upvotes suddenly kick in?
That'd be weird with the serial voting script though
well, that can't be the issue anyway, OP has had 15 rep since March 2016
 
3:43 PM
Anyone see this yet?
23 minutes in, good watch so far.. Trent Reznor and Atticus Ross did the soundtrack.. it's beautiful
 
I heard about it
 
@ballBreaker Pit and Obama?
 
@Adriaan that's leo budday!
It's a documentary on climate change
 
oh right, should've known that
 
It's actually pretty freaky lol
I can see why most people just try to pretend that climate change isn't a problem though, I mean it's very human
Or at least they acknowledge that it's happening, but go about their life and try not to worry about it lol
 
3:57 PM
@ballBreaker The standard human being:
 
I guess a silver lining would be that if it ever did hit a crescendo and shit went catastrophic, mother nature would just flush us all away and start over
 
@ballBreaker I have a comic for everything
 
This song describes it perfectly though, crazy how it just applies more and more every year that goes by
God I love that song, it's the one that got me into Tool in the first place
Fits my pessimistic view of society and the world haha
I'm too young to be a pessimistic son of a bitch
I feel like a 60 year old man telling kids to get off my lawn, and membering how good the good-old-days are
@AnderBiguri lmao awesome
 
 
2 hours later…
5:53 PM
ghehe, I'm reading through the official plaintiff's statement for the lawsuit against Leffe in Florida; they actually use Google Translate to show that where the English version of their website doesn't mention the mother company, the Dutch and French versions do. Splendid, that that is allowed there. Hire a bloody official translator, you're suing for $5M anyway
 
I have no idea what you are talking about
some source? Leffe like the beer company?
in Florida?
 
reuters.com/article/us-a-b-i-lawsuit-leffe-idUSKCN0X11YD is a more press-ready introduction :P
basically someone is suing AB-InBev for deceptive marketing of their Leffe beers
similar cases in the past 10 years against AB (before the merger) have been won over German beer brewed in the US and Japanese beer brewed in the US.
 
Having some trouble figuring out this one, if anybody wants to lend a hand:
0
Q: using convolution function in Matlab

NektarI have a grayscale image. I want to calculate Del for every pixel of image, where del = sum(absoluteValue(anypixelInensity - it's 8 neighbors Pixel Intensity) I = imread('crop.bmp'); %KERNEL windowSize = 3; kernel = -1 * ones(3,3); del = abs(conv2(double(I), double(kernel), 'same')); disp(...

 
Lawsuit trolls
 
The problem is the abs in the difference
 
5:59 PM
yup, I dont think it can be done with a kernel
its a non-linear kernel
 
I thought about using nlfilter, but it doesn't handle the borders properly in this case
 
pad the image
 
yeah, I guess so
 
image=padarray(image,[kernelsize/2],'replicate)'
or something like that
then crop in the end
 
@AnderBiguri jup. technically their label is correct (you don't need anything but the signature of an abbey in Belgium to call your beer Abbey Beer in Belgium), but it's deceptive as fuck, as is every bloody piece of advertisement
 
6:01 PM
Well, its deceptive yeah
 
I'm still on this, as I still don't know whether a verdict has been passed...
all I can find are documents from early April 2016, when the complaint was made
 
6:40 PM
@AnderBiguri I took a stab at it padding with NaN
 
 
3 hours later…
9:54 PM
Do you guys know that greek letters can be used as strings?
e.g this:
a='ςερυθιολξγδσαχωβνζΣ'
 
@Sardar_Usama you can even use them as variable names on some systems, but don't tell anyone I told you so
 
O.o
Which systems btw?
 
not sure; problem is that some systems don't, so you create incompatible code
 
2
Q: using greek alphabet (or any non-ANSI alphabet) as variable names in matlab

user1508419Is it possible using Greek alphabet to represent variables in Matlab environment? i.e. I'd use the Greek character epsilon in matlab window prompt. Any idea? I tried to insert \epsilon but I received an error.

Related ^
I think MuPad (which is not part of matlab) accepts greek variables and you can import them into the command environment as symbolic variables. — ja72 Nov 17 '15 at 14:30
 
bottom line though: use lambda, mu etc for their Greek counteraparts.
 
10:07 PM
lol is that what you meant in the first place?
I smell sarcasm :D
 
@Sardar_Usama No. I don't have a Greek character set here and I'm too lazy to copy them from internet, but yes, you can, on some systems, use the actual Greek alphabet for variable names.
and yes, it's sarcastic in the sense that you should never do that
@rayryeng found you on Shog's list of dupe hammerers. Quite high on the second list actually, which is the more important of the two (first is # of hammers, second is # of reopens on own hammers)
 
> 2*b || ~(2*b)
(quote from Hamlet, by Shakespeare)
@Sardar_Usama what the heck is that supposed to say?
 
What ?
 
ςερυθιολξγδσαχωβνζΣ
 
lol nothing, just some random letters
 
10:12 PM
oh :)
 
0
A: Just want it in shorter code

NKNYou could benefit from the definition of function in programming. Something like this can be done: function main w=linspace(-1,10,5000); t=2*pi; figure;hold on for k=0:5 [a,b] = getNext(k,w,t); plot(a,b,'.'); end function [a,b] = getNext(k,w,t) a = w.^2; b = (-1).^k.*a-((-1).^k).*(k*pi...

can using arrayfun be called vectorization? ^
 
lol
 
No, as arrayfun is explicitly just a wrapper for a for loop. So in a sense it's just an obsufcated serial code
 
Ooo
Company asking for references.. @ray ..(SWI)
 
more like arraysadness
 
10:23 PM
left a comment
Technically arrayfun is just a wrapper for a for loop, and the for loop itself is of course not very vectorised. Using cells means you can't vectorise things, as due to the irregular nature of cells with respect to both contained data type and size MATLAB has to evaluate each subcell separately anyway. — Adriaan 1 min ago
Do tell me if I'm wrong ^
 
seems right to me!
 
language question: is "co-department" a thing? As in "another department of the same company"?
 
mmmmm
no
Don't think so
Context would help, but no there isn't a specific word for that, as far as in my experience
 
@AndrasDeak "code-partment"?
 
@ballBreaker no context, I'm helping my sister-in-law translate her CV:)
"no" is a perfectly valid answer:D
thanks
 
10:30 PM
Yeah usually it would just be "another department"
 
OK, I'll mutate the original phrasing:)
 
:)
I'm out for the night. I need to give a company two references.. So cross your fingers for me!
Hopefully I have an offer soon
Night guys
 
@ballBreaker Go get 'em!
 
*crossing toes and fingers*
take care, dude
 
@ballBreaker break those balls
 
10:34 PM
@AndrasDeak you have some flexible toes there
 
yup, all 15 of them
 
@AndrasDeak and you looked so normal back in December :P
 
anyone up for a challenge?
 
11:25 PM
@AndrasDeak Cerberus runs for mod :P
 
@Adriaan yeah, I'm really glad to see that!
definitely one of my candidates
ArtOfCode likewise
 
hum, one of the chaps got a dug up fraud accusation from undo
can't link to those comments, bummer
@AndrasDeak oh? I thought you thought him much too cynical
 
11:41 PM
how does that contradict modding?:D
@Adriaan well, Undo mentioned plagiarism, other user mentioned 2k loss of rep overnight
 
@AndrasDeak that's one hell of a well hidden sock puppet
bedtime for me. Good night
 
me too, take care
 

« first day (495 days earlier)      last day (2736 days later) »