« first day (396 days earlier)      last day (3622 days later) » 

12:00 AM
@JerryCoffin have you seen this: lwn.net/Articles/590296
could be interesting going forward
 
12:15 AM
Yes a friend @Mat'sMug. I didn't realize VB6 had it. I'll look into it, but it doesn't sound hopeful. Looking forward to officially moving to .net. =(
I've been working on learning c# in what free time I've got.
 
nice! where are you at?
is string a value type or a reference type?
 
Learning. Lol
String's an object, right?
 
everything is an Object - including ValueType. The String class is a reference type though ;) ...string is a C# shortcut for System.String, a bit like int is a shortcut for System.Int32 (the language is case-sensitive)
 
Yeah. That throws me now and then. Obviously. I'll catch you later man. Gotta put this new chair together.
 
later!
 
12:22 AM
Yeah comphy new office chair. Boo yah.
 
as long as it looks like a chair when you're done with it! ;)
 
@DaggNabbit Hadn't seen that particular article, but it's an area I've been watching with some interest. While this certainly seems like an improvement in the short term, I think the long term solution is to replace X with something closer to what people really want (and although X has some good points, part of the design is oriented toward things I'm pretty sure almost nobody wants, and quite a few people barely even believe can possibly be true).
A little like the average Christian's reaction if they found out after your older brother died that you almost certainly slept with his former wife, and when she got pregnant, claimed they were his children, even though he'd been dead a year by then.
[In case the connection isn't apparent: yes, that's pretty much what part of the Bible requires, but many Christians pretty much refuse to believe it, even if you show them the part of their Bible that says so.]
2
 
12:38 AM
Well that got weird quickly. o.O
 
@JerryCoffin my knowledge of Christianity is basically nil but I see what you're getting at :) I think a lot of us expected xorg to change a lot of things and that didn't really pan out
i sort of remember a Y being proposed a few years back but that never went anywhere either I guess
and now, TTCNW
(time to continue not working)
 
meh
 
12:55 AM
 
Clever @Mat'sMug
 
it's a C#-ization of @codesparkle's ad
oops
missing the comment
 
Hmmm interesting :)
USE code_review; UPDATE code SET line = 'better' WHERE line LIKE '%smells%';
 
merged with mine, "tough questions, smart answers" gets a new meaning!
 
LMAO
 
1:11 AM
@200_ You around ?
This answer here ... it is failing to make sense to me.... but now ... it does.
Nothing
to see
here
Just me not
being able to add
9 + 8 right.
 
0
Q: AttributeError: 'bytes' object has no attribute 'timeout'

bluecerealimport re, urllib.request textfile = open('depth_1.txt','wt') print('enter the url you would like to crawl') print('Usage - "http://phocks.org/stumble/creepy/" <-- with the double quotes') my_url = input() for i in re.findall(b'''href=["'](.[^"']+)["']''', urllib.request.urlopen(my_url).read(), ...

 
Never mind ... let me eat some crow here....
 
hmm did you know?
24
A: Does a dishwasher consume less water than manual dish washing

dratYes, a dishwasher almost always uses less water than manual washing. According to a study published by the University of Bonn[1], both the energy and water consumption of a dishwasher is better: As regards the normal household practice of washing small amounts of dishes and heavily soile...

 
As it happens, I did.
And, because dishwashers use much higher temps than most people can tolerate, the dishhes are cleaner, and can use less detergetn in may cases too.
 
and:
@drat i have to flush more than 5L of water through the pipes just to get the water hot! (plus the dishwasher doesn't care, it heats the water up itself) — Michael 10 hours ago
:D
 
1:31 AM
Am I in the right chat room?
The more you know
 
the more coffee you drank
 
@rolfl "right" is open to definition. At least one language would make that "98"... :-)
 
that's the real thing.
 
1:39 AM
@rofl knows the secret of the wise
 
Well, shucks.
at the moment I know I don't know a lot.
And, the more I am learning about it, the more I realize I have to learn.
 
-1
Q: A pattern for obtaining a lock with timeout and log if failed

ChrisWueI refactored some code which looked like this: if (_MyLock.Lock(_LockTimout)) { try { //... do stuff } finally { _MyLock.Release(); } } else { //... log error } I encapsulated the timeout lock into an IDisposable so it could be used in a using block ...

 
I know you know more than I know about what there is to know.
 
I'll never get this project done.
The thing is, I can introduce you to many, many people who make what I know look like nothing.
 
you make what I know look like nothing
 
1:42 AM
Naahhhh ... you know VB6, and that's something I'll never know... ;-)
 
lol
 
At some point, I have to know what's worth knowing..... ;-)
 
that's always good to know... you know
(cough)
 
Somehow seems relevant: specialization is the act of learning more and more about less and less until you know absolutely everything about absolutely nothing.
2
 
I have heard that about professors.... ;-)
Explain how I missed that the JDQ is ranking so high at the moment?
 
1:45 AM
you were busy knocking your head onto your desk keyboard... that project.
 
Ahhh.... 200 has 36 upvotes on it.
 
how was it doing when you protected it?
 
I forget..... but, I must have been forsoothing.
 
@rolfl Call me stupid if you will, but what's "JDQ"?
 
Java Developer Question.
 
1:48 AM
@rolfl Ah, I guess I should have realized.
 
I get to see deleted questions, but, he has >120 questions, and no answers.
 
I see 131
and 85 votes cast
 
OK, 131 (I couldn't be bothered to count and subtract).
To his credit, he has been improving.
(both on voting, and questions).
 
and 75 accepts (57.3%)
(I know, accept rate metric is outdated... still)
 
2
Q: Insert in circular linked list

JavaDeveloperPlease review my code. public class CircularLinkedlistinsert { private Node first; private static class Node { int element; Node next; public Node(int element, Node next) { this.element = element; this.next = next; } } pu...

From a while ago....
 
1:52 AM
"Please review my code: { code }"
 
His track record, for the record, is better than mine.
My code has been getting worse, and my voting has dropped off.
 
yeah @rolfl you're such a bad, bad user! :p
hehe
he's going to improve, I'm sure
the participation I mean
eventually
 
@rolfl I was considering doing a quick edit to his newest one. As it stands, it talks about finding cycles in an acyclic graph, pretty much an oxymoron.
 
See my comment?
Terminology comment... you cannot detect cycles in acyclic graphs, because, by definition, there are none. You should be saying "detect cycles in an undirected graph", or "prove an undirected graph is acyclic". — rolfl ♦ 3 hours ago
Also, ChrisWue just asked a question ....
Hi Chris!
 
why is it downvoted?
oh wait... why??
// do stuff
 
1:57 AM
@rolfl Nope--you must have commented after I looked at it.
 
var localLock = NonThrowingTimedLock.Lock(_LockTimeout, () => LogTimeoutError());
if (localLock == null) return;
using (localLock)
{
    //... do stuff
}
the review is narrowed-down, but reviewable I guess, if you know your stuff with locking.
 
I am on the fence on that one, so, I will stay there and hide behind the moderator hat.
If it was Java code, I would likely find some things to say.
 
then there is likely something to say about this C# snippet too
 
I am guessing so, in the past I have proven points with less code than that.
It's not a great question. Down-votes are understanable.
close is a stretch.
Did you guys know you could see your days you visited the site?
 
yup / yup
 
2:04 AM
huh, It was new to me today.
 
lol and your calendar is all-green since you joined!
mine has a hole on October 12th
would be nice to be able to click on a date and see that day's entire history
 
Yes, it is. I am surprised you can see mu calendar ;-)
 
I can't. I don't need to see it to know that ;)
 
I can't see other people's calendar on SO, but I can on CR, I figured it was a mod thing.
Ahh, OK then, yes.
> visited 217 days, 217 consecutive
 
that's not showing either...
I just happen to know
spider-senses
 
2:10 AM
It's not something I am shy about.
I am going to miss a day, one day, and I am not sure what I will do.
 
Wisdom is emptying your cup.
So that you can fill it again.
 
12 hours ago, by Mat's Mug
and this is how the cookie crumbles
 
What irks me is that I missed a day on meta....
 
it happened to all of us..
(right?)
 
My first visit to meta after joining was the 13th November.
 
2:12 AM
258 days, 18 consecutive
 
I missed the 14th, 18th, and then the 13th of feb
> visited 200 days, 111 consecutive
 
200!
Success!
 
2:35 AM
@ckuhn203 My cup is always full (though sometimes just full of air).
4
 
 
1 hour later…
4:01 AM
I hope my answer is somewhat worthy:
0
A: Fluent API of a Role based access control implementation

Mat's Mug public delegate IEnumerable<string> GetUserPermissions(IPrincipal user, object resource); public delegate IEnumerable<string> GetUserRoles(IPrincipal user, object resource); public delegate bool IsUserInRole(IPrincipal user, object resource); I seldom create new delegate types, I tend to use ...

oh well, TTGTB. Good night @all!
 
5:06 AM
Bye @Mat'sMug
 
0
Q: Shuffling a deck

user3705545My objective is to swap every element of a string array with a random element. for (int i = 0; i < array.length; i++) { // scanning the deck int abc = rm.nextInt(77); // random object range String temp = array[i]; // swapping cards at random places array[i] = array[abc]; array[ab...

 
5:18 AM
Any able to help me out with a Java Question?
I'd surely appreciate it! :D
Found it on the internet, thanks anyways bros! :D
Self reliance five!
 
What's the nature of your question?
 
5:52 AM
monking
 
monking @all
 
Alright, I do have a question now.
Arrays.asList(...).contains(...) is contains only qualify as an exact match?
for instance if you check an array that has the value "ROAR" and you're searching in contains "OAR" will it return "ROAR"?
 
that depends
implementation equals and hashcode
 
um, sorry; I'm web developer could you explain that further?
Dabbling only in java to sort some data :P
 
oke, when you make an object like person with a first and lastname
 
6:01 AM
Would showing you the code help to answer this question?
 
you implement equals on lastname => he will give true when some person has the same lastname
it could
 
I don't wanna spam chat though
janky solution!
The compare happens right at the bottom near "System.out.println("DYNOMITE");"
so essentially there are two arrays which are set with a ton of alphanumeric values
 
i'll take a look at it
 
Thank you sir!
 
oke your doing strange things there :)
you are reading your file twice
one is just to get the number of lines, the other for actual reading
if you use a list in stead of an array in the beginning you just have to read once your file
 
6:09 AM
I'm not really worried about that as it's reading takes less than a couple seconds :P
 
then for your Arrays.asList
 
I just want to know if approximate results are returned or only exact results.
 
do that before the for (each iteration you do the aslist => also iteration over all objects)
but normally that should go. String is a pain in java
 
how do you mean?
 
well with string you have always to do equals and never ==
but the contains works on equals so that is here no problem
731
Q: How do I compare strings in Java?

Nathan HI've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug. Is == bad? When should it and should it not be used? What's the difference?

if you want I could clean your code a bit
 
6:14 AM
Hehe, if you're so inclined I would appreciate it ! :D
Thank you by the way.
 
Thank you ser :D
 
your welcome
 
6:58 AM
@SimonAndréForsberg Post it as an issue ^^ that's not supposed to happen
 
7:17 AM
First Java answer \o/
0
A: Shuffling a deck

DaggThere is a problem with the distribution of your shuffle. Instead of choosing a random index from anywhere in the array, choose an index from zero to i (inclusive). This should prevent the same card from being shuffled twice and ensure a more even distribution. This is essentially the Fisher-Yate...

 
7:28 AM
in principal you are correct @DaggNabbit.
but a card can be moved more times also with your solution
 
0
A: Shuffling a deck

skiwiThe others have already posted out most points, so I'll briefly recap my opinion on them and provide an easier example: You are using some random object range in int abc = rm.nextInt(77), I suppose you wan to use rm.nextInt(array.length) such that it scales with your input. Please try to use me...

Short version:
public void shuffleArray(final Object[] array) {
    Collections.shuffle(Arrays.asList(Objects.requireNonNull(array, "array")));
}
 
@chillworld yes but only as a result of swapping it with a card that hasn't been moved
 
indeed
 
it's analagous to randomly taking cards out of a deck one by one and stacking them up
in a separate pile
 
@skiwi no java 8 solution?
actually you could do something like that
 
7:38 AM
@chillworld No need for Java 8 here ;)
 
create a new empty array
 
@chillworld yeah, maybe easier to understand but more overhead
 
indeed more overhead
 
but it's a good way to understand the analogy, because the cards in the new pile don't move around
 
list of card
random picking one out and putting in the array
 
7:41 AM
Monking @all
 
monking @Nobody
 
Monking @Nobody
 
@JerryCoffin Now you got me on the weird sites: biblehub.com/deuteronomy/25.htm (whole left column)
> 9: his brother's widow shall go up to him in the presence of the elders, take off one of his sandals, spit in his face and say, "This is what is done to the man who will not build up his brother's family line."
> 10: That man's line shall be known in Israel as The Family of the Unsandaled.
This reminds me of Life of Brian
 
8:06 AM
Yay, I have two options:
1) Writing error-prone code in Java 6 and have potentially lots of clients (including Android)
2) Write beautiful code in Java 8 with potentially no clients
 
8:19 AM
WOW. You thought Resident Evil 2 controls were bad... try Resident Evil 6...
Good morning, btw. I might just go back to Diablo III.
 
Morning @Phrancis
 
0
Q: ${} shell substitution using output of another program

nponeccopI want to collect total RSS used by all foo processes and pass it to quux script as an argument. function collect_foo { local X=0 local P local M for P in $(pgrep foo) do M=$(cat /proc/$P/statm | awk '{ print ($2 * 4096) }') ...

0
Q: My simple PDO class

Kid DiamondI made a simple database class and I wanted to know if there are any improvements I could work on as far as readability, efficiency, methods and making it modular goes. Any other suggestions are also welcome! Database.php class Database { private $config; private $pdo; public func...

0
Q: Adding data to database, improving code efficiency and layout, using linq or sql connection and object

user3284707I have a table called tblDelegates in my database which I need to populate with some data. I have created a class called Delegates which has various properties to hold the bulk of the information. I am fairly new to c# so wanted to get the answers to a few questions as to why you should be do...

 
@SimonAndréForsberg github.com/skiwi2/TCG/releases now offers an executable release
 
8:51 AM
1
Q: Wordgenerator algorithm using java collection

anirbanProblem Statement Prompt the user for the order statistic n: 1, 2, 3, etc. Read a file of tokens, building a map (Map[List[Stringn]] -> List[String*]) from a list of n words to a list of the words in the text following these words: e.g., if n were 2, the map would contain a key for every ...

0
Q: Anonymous Events in Delphi

linluki wrote a anonymous event creator. i would like to ask if anyone can tell me if i did it the "right" or "best" way, or how i could make it better. here is what i did: declaration: TAnonymousEvents<TTEventPointer,TTEventReference>=class public class function Create(AEvent:TTEventReferen...

0
Q: Extract variable's value from a different file in php

Patrickcopy_files_to_remote_location.sh file SERVER_AND_SHARENAME=$1; SRC_PATH=$2; DST_PATH=$3; DST_DIR=$4; cd $SRC_PATH; smbclient //$SERVER_AND_SHARENAME -A ~/\.smbclient -c "cd $DST_PATH;mkdir $DST_DIR;cd $DST_DIR;pwd; recurse; prompt; mput *; exit;"; '.smbclient' username=abc.xyz password=my_p...

 
9:10 AM
I've got so many cyclic dependencies here, I don't even...
I've got so many cyclis dependencies that I don't even know where to start.
 
0
Q: Optimisation of multiple levels of a nested For-Loop

FraserOfSmegFirst post here, so please comment if I should include more information. I have a the following snippet of code. The purposes is to calculate the probability of two objects colliding. I have some preprocessing that tells me which objects could collide. All objects are within multiple cubes; all ...

 
9:25 AM
Monking @SimonAndréForsberg
 
Monking @SimonAndréForsberg, I needed you... Or rather you needed me
 
monking @SimonAndréForsberg
 
9:47 AM
@skiwi Yeah, I will try to figure out how to post the issue as an issue...
 
Somebody please tell me it's not true that you can use emoji's in swift. m.facebook.com/…
 
@SimonAndréForsberg Do you have an issue with posting the issue as an issue?
 
@ckuhn203: That gives @rolfl the opportunity to finally write beatiful code with 🍌
 
PDO wrapper classes are starting to become Linked-Lists...
 
I'm trying to figure out if there's a harm in implementing Serializable on an non-immutabl class
Making the setter package-private should already give some protection...
 
10:02 AM
0
Q: Create and organize some classes (hierarchy)

LorisI'm trying to figure out what is the best way to create some objects in my app. The app is already running, but since i'm informing about design patterns i want to learn to structure things well and cleany. These objects represents paths and they are complicated (they receive various parameters...

 
I checked out the .net loop optimization guy's questions on SO. I think that's actually his code, but I'm not 100% certain.
 
@SimonAndréForsberg Thanks, labeled it, etc.
@SimonAndréForsberg I think I even know the issue, but at work now
As a rule of thumb you can assume that all versions on github should not give any exceptions. The pre-releases that get uploaded there do always compile and all tests succeed.
 
10:23 AM
Monking ..... BANANAS NOM NOM NOM!
2
 
@Nobody what in god's name,,,
 
?
 
@Vogel612 I think, technically, it was "sleep with your dead brother's wife" ... in God's Name
 
Monking @rolfl - @Vogel612
 
Or otherwise remove your shoes, or have them removed for you.
Hey skiwi
 
10:28 AM
Fun times when you change method names and use reflection to retrieve those methods...
Yes, this needs to go through CodeReview ^
 
@skiwi I have something like that in my unit-tests.....
but at least I extracted the field- and methodnames to constants...
 
Nooo, don't do it in unit tests
lunch
 
10:42 AM
0
Q: Keeping WebBrowser control's DocumentCompleted event handlers

ShamilSThis morning, being in urgent need of an effective subject code solution, I have had to write a "quick & dirty" custom one. Here it's: using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace MyTestConsole { /// <summary> /// Handles System....

 
@CaptainObvious "please review & refactor"
wat....
 
11:03 AM
Back from lunch
@Vogel612 hehe
Well, he did say please.
Code smell? Big review will be posted in the coming month
//construct accessible method objects to package-private methods
Method blockSetParentMethod = Helper.constructAccessibleMethodObject(Block.class, "setParentTessResult", TessResult.class);
Method paragraphSetParentMethod = Helper.constructAccessibleMethodObject(Paragraph.class, "setParentBlock", Block.class);
Method textlineSetParentMethod = Helper.constructAccessibleMethodObject(Textline.class, "setParentParagraph", Paragraph.class);

//set all parent relations from top to bottom
for (Block block : tessResult.getBlocks()) {
 
11:28 AM
As a result of Apple's mistake earlier this year related to curly braces missing around an if body, in their new language, , curly braces are not optional for if, else, for, for-in, while or do-while statements. They are required and the compile will complain if they are omitted.
3
 
@nhgrif Complain as in error-complain I hope?
 
Yes. It won't compile.
 
That should be forced in all languages
 
Syntax error or something--I haven't actually played with yet, just started reading Apple's book last night.
 
So they kind of understand that obj-C sucks?
 
11:35 AM
They understand that like any other language it has room for improvement.
And the line they're taking is "What if there was a language that had all of the benefits of Objective-C without being tied down by the limitations C puts on it?"
 
Is it still something like obj-C, like a modification, or is it a whole new language? (Which can still share common obj-C constructs)
Isn't obj-C without C = not C related anymore? (Hence I don't see a C in Swift?)
 
And that's why Apple is Apple. We don't do anything new. We do it better.
 
Objective-C without C doesn't work, so Swift is a whole new language.
 
Can't say if swift will be any better or not. Haven't looked at it yet.
 
However, Swift/Objective-C/C can all be compiled together.
So my existing app, when Apple is ready for iOS8 submissions, I can write new code in Swift and keep old code in C/ObjC.
And can slowly rewrite the ObjC bits at my leisure.
 
11:39 AM
That
That's a nice feature.
 
I'm way too unfamiliar with it all... But seeing as obj-C has C in its name, it just gets compiled to native instructions?
 
Objective-C gets turned into C by the precompiler is my understanding of how it actually works...
Anyway, I'm off to work. @ me if you have any other questions I can try to answer.
Also... Xcode can generate a file that shows you what your Objective-C looks like when the precompiler is done and before the compiler starts, I believe.
 
"Precompiler" is quite the right word, if by that you mean preprocessor. GCC calls it a "front end".
Same with LLVM.
 
Huh.. what does the OP want to say here?
Can't you understand? — Loris 49 secs ago
 
@skiwi Slight suggestion for your method-reflection: Put an annotation on the method and find the method with the correct annotation.
 
11:48 AM
monking
 
@skiwi My experience with Italians is that many of them does not speak good English. I don't think he understands what you're trying to say.
 
@SimonAndréForsberg An annotation like... how?
Or well maybe I know what you mean
 
@skiwi @UseThisMethodForThatAndThat
 
I'll keep it in mind, an dyou keep it in mind with a review!
Can't implement it now
 
11:54 AM
At work... And also would need to do stuff for presentaiton tomorrow :(
I think I got something working for the Tesseract thing :D
But I kind of forgot what I was actually doing now
 
Boo hiss work. I know the feeling.
 
12:19 PM
monking
 
12:29 PM
Is it normal to have libraries (DLLs) in the system directory (or at least on the path) on servers?
 
12:44 PM
0
Q: Ruby-ize for loop

ckuhn203I wrote this a while back when my fiance was taking a Number Theory class. I wrote about it here and it recently came back to my attention. Anytime I write a for loop in Ruby I feel kind of dirty. I would like to "Ruby-ize" this routine if there is a more Ruby way to do it. Also, is this the most...

0
Q: NodeJS event tracker written in LiveScript

K..I need to track the use of JavaScript app and wrote this: server.ls require! ['./config.json' 'fs' 'crypto' 'http' 'connect' 'connect-route'] const ACCEPTED = 202 const FORBIDDEN = 403 if config.data-dir.charAt 0 is '/' data-dir = config.data-dir else data-dir = "#{__dirname}/#{config.dat...

0
Q: How can I shorten this code?

TryingToImproveHow can I improve this code to shortere syntax? string parameters = (string)Page.RouteData.Values["params"], param1 = string.Empty, param2 = string.Empty, param3 = string.Empty, param4 = string.Empty; if (!string.IsNullOrWhiteSpace(parameters)) { var ...

 
It's good to be back in Java 8 again.
 
monking
@CaptainObvious How can I write a better title?
 
1:02 PM
Greetings, Programs.
 
Greetings
 
Greetings @Donald.McLean
 
0
Q: Is it possible to condense and/or tidy these jQuery functions?

mpdcHere is a JSFiddle of my problem. I have one <select> on the page that lets you choose a brand: <select class="form-control" name="website_brand"> <option value="" disabled selected>Please Select</option> <option value="" disabled>────────────────────</option> <option value="TEA">Ae...

0
Q: optimizing snap svg animation with collision detection

mheaversI have a snap svg animation which animates a bunch of circles, and draws a line between them if they are within a certain proximity of each other. However, I realize that there is a lot of optimizing I can do, but I'm not exactly sure how to do it. I feel like it would be useful to have a good ...

 
This is a hell of a error message...
Caused by: java.lang.ClassCastException: cannot assign instance of com.skiwi.tessutils4j.data.Word$SerializationProxy to field com.skiwi.tessutils4j.data.Symbol$SerializationProxy.parentWord of type com.skiwi.tessutils4j.data.Word in instance of com.skiwi.tessutils4j.data.Symbol$SerializationProxy
Would be cool if I had a single clue how to solve it :D
 
1:21 PM
@Jamal (removed)?
oh, well
 
He's taking lessons from you, Mug
 
SerializationProxy? Doing some advanced stuff there, @skiwi
 
0
Q: SASS mixins improvements

DreibaI've got these 2 SASS mixinsnext to each other: @mixin push($index) { @if($index > 0) { left: percentage($index / $column-count); } @else { left: auto; } } @mixin pull($index) { @if($index > 0) { right: percentage($index / $column-count); } @else { right: auto; } } ...

 
@Mat'sMug Yeah, another dead baby unicorn...
 
@rolfl And doing some advanced messups as well.
2
0
Q: SerializationProxy pattern gives ClassCastException: How to avoid?

skiwiI have the following two classes that use the Serialization Proxy pattern from the Effective Java book. I suppose I am running into trouble due to circular dependencies, how would I be able to solve it? public class Symbol implements Serializable { private static final long serialVersionUID ...

That kind of advanced stuff.
 
1:30 PM
Time to write some code!
@skiwi An inevitable progression.
 
Time to make the doughnuts @Donald.McLean
 
@ckuhn203 No doughnuts, they're not a healthy choice.
 
@ckuhn203 I might have time to look at your VBE code today :)
 
Code adds up when you make an immutable class, add a builder for it, and a serialization proxy...
And then realise the class cannot be immutable
Unless you use a circular constructor reference
And when you figure out how to do that, the world's probably gone already.
 
@Donald.McLean croissants are longer to make
 
1:35 PM
Today it's Chex with cinnamon and a banana.
And Earl Grey tea, hot.
 
Oh! That would be cool @Mat'sMug.
No rush.
 
no rush, but in the meantime your question is slowly zombifying ;)
 
@rolfl You must know this, should hierarchies offer a parent attribute? How does JDOM do it?
 
... and while we code, we can crank some tunes.
 
@Mat'sMug you at rep max yet?
 
1:42 PM
0
Q: Auto-recycling C++11 polymorphic smart pointers

Vittorio RomeoI've recently read an interesting blog post by Philipp Zschoche: it explains how it's possible to avoid unnecessary allocations/deallocations by keeping track of previously allocated memory in a stack. It's very easy to code a drop-in replacement for smart pointers (such as std::unique_ptr and s...

 
@skiwi I am part way through an answer there... ;-)
 
@rolfl I'm eagerly waiting
Is someone building garbage collection in C++?
1
Q: Auto-recycling C++11 polymorphic smart pointers

Vittorio RomeoI've recently read an interesting blog post by Philipp Zschoche: it explains how it's possible to avoid unnecessary allocations/deallocations by keeping track of previously allocated memory in a stack. It's very easy to code a drop-in replacement for smart pointers (such as std::unique_ptr and s...

 
@skiwi Done.
 
@rolfl You are genious.
It does make sense... after someone shows it to me.
You encountered the issue before? ;-)
 
You think?
 
1:51 PM
@Malachi lol nope.. +75 ...it's 9:51AM here, I'm no Skeet!
2
 
I think, yes.
 
I gave you an upvote on an answer that I hadn't read until today
 
well thanks!
 
@skiwi link?
 
@Mat'sMug ain't that the truth....lol
 
They also look advanced...
 
@SimonAndréForsberg ouch!
@jwg I just wanted to provide a more human approach. Considering the number of up-votes, apparently some people thought it's useful. The most useful thing is that this code works, the original doesn't. — Simon André Forsberg 16 mins ago
 
@skiwi But, importantly, this line here...2099 calls this line here which is what sets the parent on the child being deserialized
 
I don't fully nerstand that JDOM code there
It's still giving an error unfortunately
 
Damn questions on SO , and the answers suck.
 

« first day (396 days earlier)      last day (3622 days later) »