« first day (990 days earlier)      last day (3326 days later) » 

11:09
How would one provide a test-case for Game of Life on Code Review?
Would a picture suffice?
0
Q: Restricting types not related through inheritance without using instanceOf by creating own class heirarchy

shrewquestRestricting types not related through inheritance without using instanceOf by creating own class heirarchy Need to interact with a key value data store, will convert to object before putting but need to convert back to fields after getting from DB with Function, something about this wrt inherita...

I have a question, (see mine comment) because otherwise I have a nice code for that
I'm voting to close this question as off-topic because this probably belongs on the codereview site — RiggsFolly 33 secs ago
@Mast that depends on the input method
you could have a jagged or 2d array with booleans, a ascii grid
@Quill Click cells, hit start.
then yeah, a picture would do, I suppose
11:20
Providing a picture feels a bit weird, but I can't think of a better method.
Zak
Zak
12:02
@Quill I didn't know I was that high. A whole 9 points.
Huh, really I should get that 40th.
I could get it today if I put my mind to it.
I find it interesting that Malachi is a high candidate
not that he wouldn't be
Time helps a lot.
Really, you are new here, and so am I.
Palacsint, for example, and 200_Success, have twice the history on this site than I do.
Also, people like Jamal cannot ever get the 40th badge ;-)
Posted an answer (and hope he may lose those implementations)
0
A: Restricting types not related through inheritance without using instanceOf by creating own class heirarchy

chillworldYou can create the same thing by not creating all those subclasses. I also see that you can't use the instanceOf method. Mine first intention was getting this test method to work : System.out.println(Field.fromObject(new ArrayList()).getFeatureValue().getClass()); System.out.println(Field.fromOb...

12:17
@rolfl because unless they step down they can't get the flag badge?
Yup.
monking @all
@rolfl Jamal will get a hidden 40th badge for all of his edits
4
That's gonna be a while... some of the users on SO have a lot of edits
Hmmm.... I think Jamal is right up there on SO.... let me check.
Uhhh... no.
12:32
yeah...
I thought the same until I checked it a few days ago
Ugh, neural networks are more interesting than the content of my exam tomorrow
Zak
Zak
thecodelesscode.com/case/220 - The Two Hard Things
5
12:57
Greetings, Programs.
hey Donald,
Hi Mr McLean
Hey @Donald.McLean
hey @Donald.McLean
@skiwi lol
13:03
@DanPantry Sssh
was very confused for a moment
"wtf, what was that notification"
0
Q: DialogService which can return a result and closes Window

Andreas DueringI wanted to have a DialogService that can return an arbitrary result. The views to be displayed are implemented as UserControls, and UserControls cannot close themselves (nor directly the parent window), so I decided to do the closing of the window via the DialogService. The UserControls do not h...

0
Q: Producing of JavaRDD has failed

GuforuI produce the next piece of code: ArrayList<Row> list = new ArrayList<Row>(); Row testRow = RowFactory.create(true, 101.0, "string"); list.add(testRow); JavaRDD<Row> testRDD = JavaSparkContext.parallelize(list); In the last line of this code I have follow error message: Cannnot make a stat...

Hi and welcome to Stack Overflow. If the code is working and you have no specific problems, consider posting it on codereview.stackexchange.com. StackOverflow is more solution-oriented. — Hubert Grzeskowiak 55 secs ago
Would it be so hard for wikipedia to explain concepts in English
i was looking for a solution to sorting the the txt file would that be answered in codereview.stackexchange.com — Greg Knight 17 secs ago
Zak
Zak
13:12
@DanPantry You could always create the simple.wikipedia page for it ^^
@Zak Meh, I don't understand half of the wording on that site, frankly.
I am also really disappointed with the direction Angular2 is taking. Talk about adding a lot of complexity for really no gain.
@CaptainObvious hammertime
come on people
I need to write 3-4 more good reviews before I can vtc again :(
Zak
Zak
@DanPantry I had VTC. Then I put up a 200 bounty on my latest VBA project
0
Q: PyQt5 Python 3.4 QtableWidget at bottom of parent window

GeosucherI am a beginner in using PyQt5. I want to create a dialog with a tableWidget at the window bottom with the same width as window width. If I resize the window, I want to resize the tableWidget too. How can I do this? Thanks! Geosucher

13:26
@Zak Seems silly that people who once had the privs get them taken away
@CaptainObvious RBA
@DanPantry meh.. what about serial voting reversals?
less silly now, right?
@Vogel612 Well, yeah, but serial voting is a bit different to offering up a bounty
Zak
Zak
Not from a database perspective. You'd have to have 2 different rep figures
^^that
Zak
Zak
13:27
The "Rep" and the "True Rep"
@CaptainObvious no code, gimme teh codez, unclear, too broad,...
@Vogel612 and a signature of their username in the question, which is almost as bad as gimme teh codes
Started installing VS an hour ago.. it's about 20% through; installing Web Deploy, a feature I didn't even ask for. Thanks Micro$$$$.
13:43
FTR, I am not running for Moderator on SciFi
... but?
@Malachi it should be a cr link? no?
@Quill ?????
the linked seded query
wtf I had jekyll running earlier and now literally making a new project and hitting build doesn't work...
@Quill I have had 2 big cups of coffee already and I am still not following
13:47
why did you say "SciFi"
oh, okay.
I'm voting to close this question as off-topic because it is asking for a code reviewQuentin 12 secs ago
when someone says to you, "What code generators have you worked with?" are they talking about things like Wordpress???
@Malachi I would ask them for what they consider a code generator
13:50
That ^^
I've written my own code generators, those are probably not what you mean.
> Something that generates code
So get a definition straight first.
Manually writing LUTs in VHDL is a pain, we got Python for that...
@Malachi I would think they mean things like LLBLGen
@Malachi probably stuff like resharper, yeoman
@DanPantry You write pretty reviews, so you'll get it eventually.
13:53
ALT+INSERT, or what?
I haven't used any of those...
My IDE is a code generator, at times =)
not even resharper?
I am a Code Generator.
3
Insert coffee, receive code
2
13:53
@Malachi effectively: tools that generate placeholder or stubcode for you
@Quill nope... never had a need to use it yet.
Code to coffee converters, also known as a developer.
sometimes IDEs do it for you
@Quill Visual Studio is a Code Generator then
@Malachi yes, it is - right-click -> generate is code generation
13:54
Resharper, as Dan said, is a Code Generator
so are t4 templates
You can fill in missing implementations from interface references, for example
you could even argue file -> new is code generation in vs
@DanPantry Is that React?
@Mast No, T4 templates are a (weird) type of VS feature.
I don't understand it, it's magic
It's what .edmx files are based off of.
13:55
The only thing that I have used then is Visual Studio
I would highly suggest getting Resharper
If you can afford it and have a PC that can cope with the bloat.
4GB RAM + Resharper + Visual studio = death
I don't do C# without an analyser
@DanPantry I have a ROG setup at work and it still crashed the fresh VS2015 install I had
My PC will have to deal with whatever crap I throw at it. It has to listen to me, not the other way around.
It'll deal with it the same way a blocked toilet deals with a large, uh, deployment
Badly, and slowly, and you'll wish you had spent £100 just fixing the thing
13:57
I only have 4GB RAM on this Laptop
Honestly, ReSharper is great if you have a decent amount of RAM, but if you don't have about 6-8GB youl'l lose productivity
my other machine can handle it I think
VSDiagnostics is a good analyser too, and smaller
but I can't find the bluetooth dongle for the keyboard and mouse..... <b>UGH!</b>
I haven't done anything with Dependency Injection either..... I hate working on Legacy CRAP.
Embarrassed
neither have I. my c# skills are way behind
14:00
Dependency Injection is when you don't have a coffee cup, but somewhere (you don't know where, it's autowired) it's pumped into you.
2
1
Q: Algorithm in another way to find leader in array?

Mithlesh UpadhyayAn element in an array X is called a leader if it is greater than all elements to the right of it in X. The best algorithm to find all leaders in an array Solves it in linear time using a left to right pass of the array Solves it in linear time using a right to left pass of the array Solves it ...

1
Q: Object oriented architecture with an image processing code

BenjThis code is python 3X code (in django). It takes an instance of user entry, and process images: it creates a resized version of original image, 2 thumbs, saves all, and update instance fields to point to correct files so it's correctly saved. Then it returns the updated instance. I'm not sure t...

@Pimgd input from anywhere?
@Malachi Pretty much, define a few beans and they get ground up into coffee and end up in all sorts of places
How on earth is VS struggling to install Git for windows? It's a 400kb package lol
@Pimgd it's basically creating a service that can be passed an object and then do stuff?
14:02
what I'm still struggling to understand is how the neurons in a neural network learn and validate parameters
@Quill magic
2
sorry that was a question
@Malachi yes, it is
@skiwi I wonder if my local bookstore stocks "Neural Networks for Dummies"
Internet.
14:04
Mat keeps explaining it to me, one of these times it will stick and I might have to start actually implementing it.
@Quill I found this yesterday: neuralnetworksanddeeplearning.com
May be very interesting, haven't read it myself yet, but glancing over it it seems to be a legit source of information
Essentially traditional neural networks are quite dumb
For example if you look at image recognition: It's just creating a formula using all input pixels for every output class you want to know
@skiwi That's a relatively easy to read book.
so how do you evaluate weights?
as in, actually rank them
via sorting?
That's done using backpropagation to update the weights, you try to determine how "wrong" every neuron is in your current network (during learning), and then you correct that
14:10
0
Q: Read & display data from MySql table. Any security threats here?

billyhafizIs there any security threat here? $con = mysqli_connect("***", "***", "***", "***"); mysqli_query($con, "set names 'utf8'"); $id = $_GET["id"]; $result = mysqli_query($con,"SELECT * FROM document_$id"); while($row = mysqli_fetch_array($result)) {// echo table } I am curious about my use of th...

0
Q: On error : should the code be indented?

gazzz0x2zI did add an error management to a xml reading function(in hp-uft, a dialect of vbscript for automated tests), to avoid an unreadable error if the variable looked for is not found in the file. On Error Resume Next VarEnvXML = Environment.Value(Chaine) If Err.Number <> 0 Then ...

I'm trying to find an use for a big traditional neural network though, seems that the best case you have is to classify real world images
Something that could work is classifying a license plate database... But I guess you cannot find such a dataset somewhere, so I have to look around where to find datasets of pictures, ideally already classified by humans
@skiwi Face recognition, OCR, signature validation, things like that.
You could probably do voice recognition with machine learning as well.
@Mast I don't have much of that around here though :P
I was part of a project to recognize SMD components with a low-budget camera once.
@skiwi why images?
14:14
hmmmm, make it answer the question "where is this screenshot from"
why not phrases?
The project failed, but it was mighty interesting.
also I think someone was doing one with imgur photos to see if they were nsfw
@Quill I think you need to encode phrases in a fixed length for traditional neural networks, so there's really a maximum length
And I'm not sure how that could be useful then
that makes sense
14:19
Maybe analyzing Twitter messages could work though
In case anyone is interested in having a larger/wider text box for post/code edits...
1
A: Dynamic editor width when answering

AlexeiA possible solution to improve code readability by allowing larger widths is to use an extension that changes the layout a little bit. The following works in Google Chrome (thanks to this post), but I think it can be ported to other browsers. The extension enlarges the left column and also allow...

also I read something about chinese & japanese kanji analysis through a neural network once
If you want to be able to do something with variable-length text then I think you need a recurrent neural network, one that can have memory, but that's beyond my abilities for now
@Mast Sounds interesting... I had an internship project two years ago where the goal was to recognize relevant data on an invoice
Of course, but, we very much do not want any code to go into the repository without having been code reviews(We use pull requests for this). And although we can always revert, it's a pain. I would rather just make sure we don't make a mistake to begin with. — sigsve 27 secs ago
Back at the time I approached it using OCR, but in hindsight neural networks would've been much much better
14:21
@Quill Sounds like a fancy version of OCR.
I have a case in mind where I could recognize what's on the screen in a HearthStone game, but say there's 1000 different cards, then I think I'd need 1000 output classes for every position on the board... which still might sound okay
But I'm a bit stuck at learning, you'd need to give it an example of training data for every card in every position if I'm correct? Doesn't sound feasible at all
"better way" and "good enough" questions lead to closable (either too broad, opinionated, etc) questions. Perhaps try codereview.stackexchange.com for this. — Tim Lewis 19 secs ago
correct me if I'm wrong: a neural network is verification, a markov chain/generator is generation?
@TimLewis This would be off-topic for Code Review in its current form, as there is no code included in the question. Questions on Code Review must include real, working code. — Phrancis 39 secs ago
@Quill I don't know anything about markov chain/generator
To me it seems like it's infinitely easier to train a neural network to answer yes/no questions than it is to ask it to classify an object where the answer is a set of possibilities
Are you for real...
@Phrancis That's correct, although I feel like that should go without saying given the nature of code review :P — Tim Lewis 48 secs ago
0
Q: Embedding an RSS feed into a page after it's already loaded

RubberDuckI'm working on reworking our website from a WYSIWYG editor to MVC. I'm all right with server side code, but complete rubbish when it comes to client side Javascript, so I'd appreciate any/all feedback. The goal Embed this rss feed from our blog into a page on our main website. So that it looks...

It should be relatively simple (note: not necessarily fast or feasible) to detect if a face is male or female, while telling which person on the planet it belongs to is much harder
@Quill Doesn't tell me much, except that it looks a little bit like the MtG RNN that I believe uses LSTM somewhere
@skiwi b-but gender is a social construct!
seriously though, might not be the best idea ever
meh
Hey, @RubberDuck
14:33
@TimLewis for whatever reason it seems to not go without saying, or else we wouldn't be closing ~20% of the questions asked at CodeReview.SE because they contain hypothetical code and almost 60% because they contain broken code — Vogel612 46 secs ago
@Quill FYI I rolled back your edit. I get why you did it, but I really want to hear from people who know , not just .
jquery implies the language, and I was out of tags.
I don't chop out C# for entity framework and assume people know what I mean
but I can understand what you want
there's literally three lines of jquery
versus like 20 of JS
possible answer invalidation by Enrique on question by Enrique: codereview.stackexchange.com/posts/117176/revisions
That's a bit different, you could be using Entity Framework with any number of questions.
I want what I always want when I post a question here. "Does this code make my ass look fat?"
2
@RubberDuck Yes. Yes it does.
2
But it's okay, rubberduckies need a big base to float around on
4
14:43
lol. We do.
@RubberDuck What is monkey patching?
This isn't review material, but my recommendation is: drop jQuery and C#/MVC
Use Angular instead, keep your site servable off a static host like AWC
@Phrancis Technically, it's extending a system type, but I used it here to say "I modified some code I found".
@Quill Fair, but I intend to extend the site later with some dynamic functionality (a Code Inspection preview). I should include that in my post.
my test passed but it's broken
4
it's probably easier to limit it to that page then, and use angular to build the site template for every page besides that one
14:47
0
Q: Improving my ctypes code

urschreiI'm trying to figure out whether I can speed up passing large int and float lists to my foreign function. Currently, I'm doing it like this: from ctypes import cdll, c_uint32, c_float, Structure, c_void_p, cast, c_size_t, POINTER lib = cdll.LoadLibrary('whatever.dylib') class _BNG_FFITuple(St...

why am I writing my tests after I was done with my code
Also everyone needs to remember to vote and/or make ads:
19 hours ago, by Mat's Mug
Got a tag you want to see more contributors in? Make an ad! - we need moar ads!!
#NamingThings
Why is VITALSIGN one word? I didn't think that was a valid compound word?
@Quill because reasons
14:49
@Phrancis I recall you said this to me before. lemme just find the response ;p
I moved to Nth @Quill @Pimgd
or maybe not. I fixed my test and it still works
Thanks, I'd still watch it though... you never know with those kind of conversations
Jan 15 at 3:04, by Phrancis
Actually, definitively an error on my part.
I like this approach, but my reason for wanting a different type was so a code reviewer could see at a glance that the return type is something that code downstream cannot alter the query with. — adam0101 29 secs ago
14:54
@Quill I think I found part of the reason... because then the primary key name would be the same as these 2 tables instead of being the same as the other 6
wow, how many tables do you have?
@Quill Jesus had one table, he used it for his last meal.
or is your head SQL guy hugo weaving?
help I'm stuck in smartass mode
7
@Pimgd ·~thud
@Phrancis That's a lot of tables.
wow
@adam0101 That sounds unecessary, if a code reviewer sees an IEnumerable all he should assume is that he can enumerate it, but changing this to a type is trivial, editing my answer now for a type version (a type also has other advantages, it is pretty useless to do "just that" but it can be extended to do caching etc.)* — Ronan Thibaudau 1 min ago
@Phrancis wat
You have more tables than most restaurants
14:57
I don't think there's any restaurants with that many tables
@Quill That happens quite quickly actually.
... I wrote one extra test, now two of them are broken
I always forget how good V for Vendetta is
@Pimgd maybe it's just your code ;p
Your tables are causing side effects in my code </shiftblame>
@Pimgd 99 little bugs on the wall... take one down, patch it around, 101 little bugs on the wall
4
15:00
@Pimgd Sounds like regex.
@Mast I'm surprised you didn't say JavaScript
@DanPantry JavaScript has only one bug: the language itself.
5
nah, it's spring beans being reused by different tests
one day, the JavaScript jokes won't be funny because you'll all be forced to use it
and then @Dan and I will be the ones laughing
@Quill asm.js is the future and you know it
15:02
@Quill j̡̧̧͍͎̳̮̘̪̖̓͋̿͑̈́̿̆̕͝͝ǟ̤̱̫͎̲̹̱̭̳̯͗͆̈́̈́͋̑̐̕v̹̘̞̫̤̗̥̞̈́̀̓̅̋̀͊̏̕͝ͅͅa̟͕̙͚̥̼͒͑̐̎̋͗̍̀̚͠‌​̰̼̯̙s̛͍͕̯̖̻̣̯͓͈͉̒͂̍̏̾̔̉̋͘c͚͇̩̘̱̱͖͈͚̍͛̋͆̾̀͂̈́͒̏ͅr̛̺̩͇̜̥̜͎͓̫̼̽̍̄̊͂̾͘̕͝ị̛̼͉̌͗͑̔͒̀̍̈́͠‌​̨̨̣̣̠̱͜p̙̙͇͓͚͈̲͇͈̠̔̒̐̈̂͒͑̉̎͊t̨̰͖̦̳̪̮̳̖͓̒̀̇̔́͌̎̎̕͠ ̡̢̡̥̖͎̰̥͍͑̾̒̉̏̂̔̎̀͊
5
@Quill I'll never be forced to use anything.
@Pimgd native VM, right...
@Mast so you're doing JavaScript now... because you want to?
without proper floating point... right
@Quill I think he's learning it because it's the most popular language right now, which is a fair reason to learn it.
Follow the money
15:03
that's kinda what I said
@Vogel612 It's a very, very faraway future.
@Quill Because I want to display fancy things in a webpage. Writing apps is só 2012.
@Mast oh no you didn't
Zak
Zak
whadda ya know. Zalgo renders properly on the starwall ^^
@Mast Use HTML Tables?
Zak
Zak
15:04
But still subject to the max. display character limit
@Zak it actually clips. For some reason the chat seems to think Zalgo text is longer in characters than it actually is.
You can hardly type a couple of words before running into char limit.
The wonders of unicode.
now 4 of my tests fail
Zak
Zak
@DanPantry That's because it is. At a very basic level, all of those super/sub scripts are individual characters.
everytime I run the code there's more
15:05
@Zak TIL
my test code has turned into a zombie apocalpyse
@Pimgd I call overuse of mocks leading to brittle code and spring being a burning bicycle like always
@Quill Tables are the solution to all problems you know.
Maybe this would be better suited for CodeReview? — Script47 6 secs ago
15:06
@Mast JavaScript + Zalgo = 99 bugs confirmed
@Phrancis nesting divs is so 1990, right?
Wow. Just realised our code is so bad that upgrading IDE has broken it.
@Vogel612 divs? What are those? ;)
@Phrancis In hardware they kind of are. Why calculate something if you can simply store the result?
@skiwi JS got 99bugs, but zalgo ain't one
15:06
@skiwi 4 99 little bugs
@Phrancis you should still use <div> for style hooks ;-)
<td>wtf</td>
@Script47 not quite. The OP wants help adding additional functionality to their code. That would be Off-Topic at Code Review. — Zak 13 secs ago
@Zak the OP doesn't actually appear to have asked a question or stated that he has any problem except for what's in the title, which sounds just like a Code Review request. — Alnitak 53 secs ago
@DanPantry That's kinda scary
Consider asking over at: codereview.stackexchange.com we're here to solve problems not improve working code — TheLethalCoder 17 secs ago
15:12
(maybe) stupid question : is it possible to register your nick worldwide?
@chillworld No.
@chillworld depends how unique it is
:( I see now that some clowns making music under mine nick :( :( :(
I guess the proper place for this question is at codereview. — galenus 47 secs ago
@chillworld Or you are posting on SE under their nick ;-)
15:14
@skiwi I was first ;) this nick exist almost 20 years
And I can prove that ;)
@chillworld That's not how it works.
@Quill No, you'd have to internationally trademark it or you simply won't come close.
@Mast I know, first registration counts
so that's why I was looking for worldwide registration
so if they didn't have it, I win ;)
Then there's that nobody is going to lift people from their bed simply because they have the wrong username.
Worldwide jurisdiction isn't a thing, luckily, so you're asking for something that won't work.
@Mast depends on how much you want to pay I think.
0
Q: Custom data validation approach, any advice?

Francis DucharmeSo I came up with a validation design for my project and wanted to hear if there's anything I could improve. Here's how it works. I have the models (code first) public class Item : IEntity<Item> { public Item() { } public int ID { get; set; } public string StoreCode { get;...

15:17
isn't Apple not world wide?
@chillworld Nope.
oh well, then not, as long they stay far away from mine communities I'll have no problem ;
;)
Ask countries like Iran, Bolivia, UAB, etc.
but TTGH
I hate cross-server SQL queries, they never seem to work very good
15:21
@AngelusMortis, this is long story. It was during one of the code review. I have summited code with option 2 and the team lead suggests that using is redundant and I should remove that. And then I notice it doesn't build on a different compiler. — Yuchen Zhong 33 secs ago
This belongs on a physics site, or (with some code) on a code review site. It's not an appropriate question for SO. — spender 50 secs ago
Wouldn't it be easier to sell the site to LinkedIn, instead of morphing into it step by step? — Norma Jan 4 at 18:06
@Phrancis It's actually because VS 2012 uses TS 1.2 and VS 2015 uses TS 1.9
Zak
Zak
So it's StackedInBook? — Macro Man Jan 4 at 18:26
The follow-up is a decent post though, but the original was a mess.
In new VS debugging view: I have no idea what half of these buttons do. Is this what being a pilot is like?
15:30
@Mast I wonder if all those DV's are game-stoppers?
@DanPantry VS is stacked with features. Having menus which make sense isn't one of them.
@Mast The VS2015 menus aren't actually that bad, tbh
BTW.HomeTime
night
0
Q: Slider constructor that gets data, templates and bind UI listeners

stylerThe constructor should get data provided by a url param, template the data then output the slider element into a selected target element. After this the slider event handlers should be bound so the slides can be toggled. Would be great to get as much feedback as possible on this as really want to...

15:54
(removed)
Why does the chat say (1) in the tab title when the "new" message has already been removed?
Because it's not "really" removed, it's there but is replaced by greyed out text saying "removed"
It doesn't stop existing, the text is just hidden.
The original can still be read by RO (and probably moderators).
It can, yes

« first day (990 days earlier)      last day (3326 days later) »