« first day (446 days earlier)      last day (3588 days later) » 

7:00 PM
@rolfl Not a bad prediction. I carried out some testing and I got 3X slower for List. — toto2 Jun 27 at 20:22
;-)
@Mat'sMug I do too, but don't know how to express it.
 
I skipped both that one and the FP reviews... so much for my [badge:reviewer]...
 
0
Q: Dropdown Form to Link to Another Page

user3873314I'm trying to create a dropdown form that will allow me to link to another page after the user clicks on one of the dropdown items. Here's the code so far: <script> $('document').read(function(){ $('#mapform').change(function(){ var selectedContinent = $('#mapform option:selected')....

 
5 more rep today and I get my first !
 
@AlexL Ho ho ho
2
 
@AlexL looks like you already got it
 
7:08 PM
0
Q: How to unify XML formatting with inheritable parsing?

CrypticStormInspired by the XML format for game data question, I was interested to see how my system works for storing game data. My system works a lot like Halo, where there are a variety of gametypes and configurations vary between them, but some basic items are always configurable. For example, every game...

 
@Malachi Not the badge, nope
 
you will get it when everyone reloads
@AlexL and now you are maxxed for rep unless you get some more accepts or bounties
 
> You've earned the "Mortarboard" badge (Earned at least 200 reputation (the daily maximum) in a single day).
@Malachi Now I have! haha
 
And, I just got: You've earned the "Excavator" badge (Edited first post that was inactive for 6 months) for "*Obsolete Iterative code reviews: how can they happen successfully?".* huh
The thing is, mortarboards, and excavators are often found together ;-)
Hmmmm wikipedia is not helping me here:
A hawk or hod is a tool used to temporarily hold a viscous material so that the user can apply that material to a surface using a different tool. It consists of a board about 25 cm (9 inches) square with a perpendicular handle fixed centrally on the reverse. The user holds the hawk horizontally with his or her non-dominant hand and applies the material on the hawk with a tool held in the other hand. Hawks are most often used by plasterers along with a finishing trowel to apply a smooth finish of plaster to a wall. Brick pointers use a hawk to hold mortar while they work. Hawks are also used to...
^^^^ that is a mortarboard.
 
Wow, I'm actually still quite far from earning Archaeologist and Copy Editor on Meta.
 
7:15 PM
0
Q: Returns values for a specific array and key

Jeromy FrenchThis code is intended to take an array and a key as inputs, and return an array of the values paired with that key. function valuelist($array, $array_column) { $return = array(); foreach($array AS $row){ $return[]=$row[$array_column]; }; return $return; }; Can this be i...

 
@CaptainObvious Hmmm, I think I'll grab this one...
 
...but that would be overkill IMO. Unless you say "we've come this far, might as well go all the way down the rabbit hole"... — Mat's Mug 28 secs ago
 
> I just can't find anything to pick apart. Well done. Thank you for helping me make the case that VBA is a legitimate programming language in the right hands.
^^^ only in the hands of the museum curator
2
 
honestly, it is abusing the language. isn't meant for that.
but it looks awesome, I find.
 
7:37 PM
It's only abusive to the poor vba "dev" that ends up maintaining it later on.
There's nothing wrong with building a toolbox.
 
I want to see some Linq in VBA!
2
 
^TS
 
^^TS
 
@Mat'sMug is abuse itself.
@ckuhn203 RSA
 
@skiwi It can be done well. I stand by my opinion on that.
It's just kind of like php, there's a lot of beginners writing terrible code.
 
7:43 PM
hehe ok, I haven't taken a look at it to b ehonst
And will never plan to do so.
 
@ckuhn203 That sounds like JAVA too
 
Exactly
 
@Jamal meta has overall 600 questions.. copy editor is unattainable..
 
answer edits count too
 
well then... ahem... electorate is unattainable?
(goes to meta and runs through questions by age for votes, to be the first to get it)
2
 
7:51 PM
@Malachi the closest I can do is call a method by its name, with its parameter values, and capture its return value. Wait, I think...
 
@Mat'sMug ^^^TS
 
@Malachi SRSA
 
^^ this made me lol
 
wow skiwi just held back his stars, and now it's his great moment ;)
 
@Vogel612 I tend to be careful with my stars these days
Oh! Right now I'm out of stars... for real
 
7:54 PM
 
@Jamal RVA
 
0
Q: Optimization of Recursive JQuery Images swap function

IndieRokGood day everyone! There's this website I'm working on that needs to swap images every few seconds, like a slideshow or image fade swap in a way, except that you need to target 5 IMG tag elements. I was able to make a weak version of that function. But i'm sure this could be done even better, c...

 
This made me lol
+1 for referencing the Future — bpgergo Nov 11 '11 at 15:45
 
@Pimgd JavaFX FTW!
 
@SimonAndrΓ©Forsberg TS!
 
new user, off-by-one:
9
Q: XML format for game data

SebastianSGI want to create an XML format in which I will define data objects for a game I am currently working on. The base idea is that I will have Elements which can be combined in other Elements, Items or Spells. A primal element is an element which is directly available. If an element is not primal...

 
8:16 PM
And there goes my last vote...
2
 
So, I just stumbled across an old blog I wrote. (Before I started spending way too much time in the 2nd monitor.) I thought you blokes might appreciate it.
 
@SimonAndréForsberg I got a new version including the Future done
try {
    future.get();
} catch (InterruptedException ex) {
    Thread.currentThread().interrupt();
} catch (ExecutionException ex) {
    throw (RuntimeException)ex.getCause();
}
Yep, I really wrote that.
 
0
Q: Simple Object known state System

Lemony-AndrewI'm currently re-studying C# and I wanted to make a basic system where objects always know where each other are. But I also wanted to make it so that objects that don't need to know about other objects (Like a Wall) don't necessarily need to keep that data. What it currently does The Shape ...

 
@all for Java to be able to talk to PostgreSQL, I would use JDBC right?
 
@Phrancis I think so yep
 
8:25 PM
@skiwi I don't see why you typecast ex.getCause to RuntimeException, I would just wrap it in a runtime exception. throw new RuntimeException(ex);
It does look a lot better though @skiwi
 
@SimonAndrΓ©Forsberg You'd prefer throw new RuntimeException(ex.getCause().getCause()) then?
 
@skiwi No, just throw new RuntimeException(ex);. I don't see the need for getCause.
 
You don't want it to be wrapped up even more
 
I believe you can just rethrow ex in your service.submit code.
 
Then you'd get the original exception, wrapped in a RuntimeException, wrapped in an ExecutionException, wrapped in a RuntimeException
 
8:28 PM
Callable is declared to be able to throw Exception
 
@SimonAndrΓ©Forsberg Correct there
Now it got even better
} catch (ExecutionException ex) {
    throw new RuntimeException(ex);
}
 
    Future<?> future = service.submit(() -> {
        try {
            baseAccept(path);
        } catch (AutomaticExecutionFailedException ex) {
            //do not rethrow, failure was expected, cleanup has been done
        } catch (Exception ex) {
            ManualUtils.moveToManual(Config.REJECTED_DIRECTORY, path);
            throw ex;
        }
    });
    try {
        future.get();
    } catch (InterruptedException ex) {
        Thread.currentThread().interrupt();
    } catch (ExecutionException ex) {
 
Just by adding an return null, .
@SimonAndrΓ©Forsberg Close
You need the return null; at the end of the runnable/callable
 
@skiwi Don't blame me, I just make minor modifications in your code.
 
It works though now, I also know what I'm doing
 
8:32 PM
As soon as the Meta tag post receives , I'll finally earn the tag badge. :-)
 
Time to test and see if it crashes the JVM again.
I may have disabled my pagefile on Windows, hence it cannot get more memory once it's out.
I can't afford to lose 24GB on my SSD
 
Who here has any experience with Java, JDBC and any version of SQL used together? I'd like to have a private chat for a few minutes... please
 
@Phrancis I have some remote experience
 
Very nice answer.
1
A: Creating ShortCut (RightClick) Menus in Access

Xiaoy312As you already noticed, all the CreateSomething methods have the same repeating pattern. We can extract this pattern and encapsulate it in a method for reuse : Private Sub CreateCommandBar(name As String, ParamArray buttonIDs() As Variant) Dim menu As Office.CommandBar Set menu = Command...

 
Invite me for room if you want
 
8:49 PM
Another book added to the shelf
 
9:03 PM
Phrancis, i have, but i am on my phone, and can't chat well
 
Ugh, I still need to redesign as it's still not logging the document id on exceptions :(
 
0
Q: How easy is it to crack this encryption algorithm?

konoWhen I was about 13 or 14 years old, I was a little interested in cryptography (which is, after all, an interesting field). I learnt quite a lot since that time (it has been about 8 years since then), but I'm still very far away from concidering myself an expert in cryptography. Whatever, when I...

 
9:22 PM
0
Q: Bitcoin address validator in C

syb0rgHere is a Bitcoin address validator I am looking to have reviewed in C. Normally I would have the enum and function prototypes declared in a header file, but I decided for the purpose of this question to integrate them into one for easy copying and compilation. /** * @file bitcoin.c * @brief ...

Pure awesomeness ^^^
 
0
Q: Aggregating values of a path-dependent type

rightfoldI have a type representing an immutable order which contains immutable order lines that belong to it. I want to use path-dependent types for this. Obviously you cannot instantiate a path-dependent type without having the value it depends on, so I decided to take a function from the constructor. S...

0
Q: Instantiating a k-ary hierarchical tree in C without relying on RAM

AsicsI created a k-ary tree in C to be used as an easy and efficient way to organize "UML-like" data in embedded devices. The left node is at the lower logical level (a child) while the right node is at the same logical level but represent a different data or option (sibling). Since it is to be used ...

0
Q: Bitcoin address validator in C

syb0rgHere is a Bitcoin address validator I am looking to have reviewed in C. Normally I would have the enum and function prototypes declared in a header file, but I decided for the purpose of this question to integrate them into one for easy copying and compilation. /** * @file bitcoin.c * @brief ...

0
Q: Is my design workable (Repository/UOW) rocks or sucks?

Abu HamzahI'm using VS 2013/EF 6/WEB API 2 This application of mine which is working on will eventually grow to be big project and I'm in the very beginning stage and need your guys expertise to make it simple as possible without over complication. my goal is to make it KISS solution and I'm trying my be...

 
9:38 PM
0
Q: Deep pick using lodash/underscore

PeteUse Case _.pick creates a shallow clone of an object given a predicate that identifies which keys to keep. I tried to create a version that would perform a deep clone of the object and would "pick" up all nested objects containing the given keys. Improvements I'd like any constructive criticis...

0
Q: Module pattern callback implementation

zokIs there a problem with this callback implementation for a module? Or with the module implementation? (function($) { $.Module = function(options){ var module = { options: $.extend({ callbacks: { start: false } }, options), start: function(callb...

 
Wow, The Whiteboard people are crazy lol.
 
@Pimgd Named variables isn't a "gotcha" any more than named methods is a "gotcha".
 
Is everyone out of votes, or didn't see my question in the tidal wave of new questions?
 
@syb0rg a lot of people are on their way home from work I think..
 
9:48 PM
Another batch of (mostly smaller) meta tags have been identified.
 
10:00 PM
First answer of mine in a while:
0
A: Instantiating a k-ary hierarchical tree in C without relying on RAM

syb0rg ...it [the program] is to be used in embedded devices with possibly very low available RAM In that case, we should be getting rid of everything that isn't of absolute necessity. In kary_tree.h: Do you absolutely need <stdbool.h>? I understand that it is a small header, but it is st...

 
DELETE FROM Work WHERE UserName = 'Phrancis'; GO
2
See you all later
 
@HassanAlthaf Hello!
 
@syb0rg 'sup?
 
10:07 PM
Soz, don't know C.
 
And capped! Boo yah! I must have been a good boy.
 
@HassanAlthaf You can trust that I know what I'm doing: codereview.stackexchange.com/tags/c/topusers
;)
 
@syb0rg I am out of votes for today, sorry.
 
@HassanAlthaf *votes
 
yeah, that.
 
10:13 PM
lol
 
I think that's enough edit-flooding for now. The next two tags are and .
 
Whatchya working on @Jamal?
 
10:20 PM
Yes!!!! BURN ALL THE THINGS!
 
@Jamal Out of votes?
 
@syb0rg Yeah. :-/
 
1
Q: A solution to the AST Typing Problem

Matthew PickeringExpression trees are the bread and butter of functional programming but when it comes to adding additional information to an established tree it can be difficult to incorporate such changes without breaking the existing interface. I have attempted to solve the problem with this example which demo...

 
What's wrong with and ?
 
@nhgrif 200 brought these up. The latter is meta (we have other file tags anyway) and the former doesn't seem too useful.
 
10:23 PM
Hey, what's DOM parsing?
Is this just a silly term for XML parsing?
 
DOM is mainly HTML or XML parsin
 
@Jamal What file tags? I thought was useful.
 
Yes, it is.
DOM means a Document.
Document Object Model.
 
@syb0rg Other than appearing to be meta, it has no followers. We have and , which will stay.
 
A tag must have followers to stay?
 
10:26 PM
No, but it's just one factor.
 
Maybe we should be running more of these through meta.
 
Then more discussion should take place on that post.
 
^True, but it's difficult to tackle many tags at once. Better discussions happen when it's one or two tags in question IMO.
See file-structure above.
Anyway, it's dinner time and I'm happy to have read this. en.m.wikipedia.org/wiki/Dependency_injection
 
Later!
 
and seem different to me... but maybe not. Between the two though, I think is better.
 
10:36 PM
Ahh, sweet. I just got my OS X Yosemite Beta invite.
 
@nhgrif Perhaps synonymization would be best?
 
Perhaps.
 
I wasn't going to remove it today anyway. I just went after one question that also needed other edits.
 
@nhgrif My thoughts exactly.
 
In that case, someone can suggest the synonym (if anyone here hasn't yet earned the badge).
 
10:46 PM
@nhgrif Have you gotten the badge yet? I just got it the other day.
 
What badge?
 
I've also discovered this new synonymization proposal, in case anyone wants to vote on it.
@nhgrif Synonymizer (bronze)
 
I don't have 5 score in either tag. I can't recommend synonym.
 
It appears @ckuhn203 doesn't have the badge and also has a sufficient score.
 
0
A: Website parsing optimizations: cleaner way to deal with special cases and improving data transfer between classes

nhgrifFor now, I will avoid commenting too much on - (NSArray*) getHourDataForRow:(TFHppleElement*)row Meal:(NSString*)meal as I think the real answer here is to look into NSXMLParser and see if that will work for you. Other than that, for now I'll simply comment that your spacing is inconsistent and ...

I'm 43 upvotes from the silver badge, which is approximately half an upvote per Objective-C answer I've posted.
 
10:50 PM
0
Q: Java GS Collections ImmutableList implementation

firephilThe following code is taken from GS Collections implementation of immutable Lists. Is it good practice to perform the above chain of construction for small lists of size <=10 ? public <T> ImmutableList<T> with(T... items) { if (items == null || items.length == 0) { return this.of...

 
Welcome back @Phrancis
 
Thank you!
> These IDEs are industry leaders and offer substantial support for OS X:

Eclipse IDE for Java Developers (http://www.eclipse.org) is a free download.
Netbeans IDE (http://www.netbeans.org) is a free download.
Jetbrains IntelliJ IDEA (http://www.jetbrains.com/idea/) requires a license for continued use after a trial period.
Xcode (http://developer.apple.com/tools/xcode/) is a free download with a free account from the Apple Developer Connection.
Any recommendation for good Java IDE? ^^
 
@Phrancis The best would be Eclipse
 
@nhgrif The problem is, the meaning of is ambiguous. It could mean anything from serialization format to the organization of source code files within your project. In fact, the tag has been applied to both.
We already have , by the way.
 
@200_success That should be specified in the tag wiki
 
10:58 PM
Feel free to contribute to the cleanup effort.
Personally, I'd prefer a tag whose name was clearer.
 
It may also help to see how the current questions relate to each other.
 
@syb0rg Base58 is a pain to decode!
 
@200_success Yeah... I know. Silly Bitcoin
 
I'm not sure that that clarifies much.
You're thinking about file formats, e.g. the JPEG standard, whose sections have markers and associated length fields?
 
@Phrancis Get Xcode and start learning ObjC/Swift ...?
 
11:10 PM
Test/
β”œβ”€β”€ .gitignore
β”œβ”€β”€ README
β”œβ”€β”€ CMakeLists.txt
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ audio/
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ web/
β”‚   β”‚   └── ...
β”‚   └── ...
β”œβ”€β”€ build/
└── cmake/
    β”œβ”€β”€ FindLibSndFile.cmake
    └── FindPortaudio.cmake
 
@nhgrif maybe later, I need Java for now though for a personal business project (because everyone else is on Windows)
 
@200_success I was thinking more like that ^^^
 
Then get Xcode and do Java in Xcode so you're already familiar with it when it's time for ObjC/Swift.
Actually, don't do that.
I know nothing about developing Java in Xcode.
 
@nhgrif I tried once. It wasn't fun.
 
@syb0rg: Feel free to argue this on the Meta tag post if you wish.
 
11:14 PM
^^ huh
 
Update JVM.
 
Right...
Holy crap, downloads from Oracle website are slow
 
I suggested the synonym.
 
Is JVM what compiles the code into machine language, basically?
 
JVM is "Java Virtual Machine"
It's the environment in which Java applications run.
 
11:22 PM
Hello CR!
 
0
A: Should we do something about our meta tags?

syb0rgI feel like file-structure should not be burned, and is a valid part of a code review (if included with the question). Take this example: Test/ β”œβ”€β”€ .gitignore β”œβ”€β”€ README β”œβ”€β”€ CMakeLists.txt β”œβ”€β”€ src/ β”‚ β”œβ”€β”€ audio/ β”‚ β”‚ └── ... β”‚ β”œβ”€β”€ web/ β”‚ β”‚ └── ... β”‚ └── ... β”œβ”€β”€ build/ └── cmake/ ...

Opinions? ^
 
@syb0rg Hmmm... Now that I think of it, isn't file structure technically architecture? And doesn't that belong on Programmers (conceptual, no code)?
 
@AlexL That's why I said it shouldn't be the only thing reviewed.
 
@syb0rg I noticed, it still seems funny to me
 
There we go...
public class HelloWorld {

	public static void main(String[] args) {
		System.out.println("Hello, world!");

	}

}
 
11:35 PM
Hey! @Phrancis made a hello world! Nice!
 
Gotta start somewhere ;-P
 
@Phrancis Should be (String... args) I believe, in more modern Java.
 
@Jamal I wasn't sure what would happen to such an old question. Thought I'd bring it up though!
 
Dunno, Eclipse wrote it like that when I created the class lol.
 
String[] args is perfectly acceptable.
 
11:37 PM
@AlexL I had forgotten about that one for a bit, too.
 
0
A: Should we do something about our meta tags?

ckuhn203I'm of the opinion that if we're going to burn google, we should replace it either with a catch all google-api or with several more specific tags. So we could go either with a synonym or youtube-api google-maps-api etc I think I would prefer the catch all tag. There aren't enough questions ...

 
I'm not a Java programmer perse, so my advice may be flawed.
 
String... args would also work.
 
TTGTB here, nighty night
 
@SimonAndrΓ©Forsberg Goodnight!
 
11:40 PM
@200_success Why is that argument even required? Does it work differently than in C and C++ with their command line arguments?
 
Java supports overloading. main() would not be the same as main(String[]).
main(String...) is an alternative syntax for main(String[]), introduced when varargs support was added to the language.
 
Okay
 
: completed.
 
Wow the Eclipse tutorial HelloWorldSWT doesn't compile. Great.
public class HelloWorldSWT {

	public static void main(String[] args) {
		Display display = new Display(); //error here
		Shell shell = new Shell(display);//error here
		shell.setText("Hello, World!");
		shell.open();
			while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) display.sleep();
			}
		display.dispose();
		}

	}

}//error here
 
You have an extra closing brace.
Proper indentation helps.
public class HelloWorldSWT {

	public static void main(String[] args) {
		Display display = new Display(); //error here
		Shell shell = new Shell(display);//error here
		shell.setText("Hello, World!");
		shell.open();
	        while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {display.sleep();}
		}
		display.dispose();
	}

}

}//error here
 
11:55 PM
I see. I'm still getting this at Run:
> Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Display cannot be resolved to a type
Display cannot be resolved to a type
Shell cannot be resolved to a type
Shell cannot be resolved to a type
 
Eclipse pros, what's the import shortcut?
Ctrl+O?
Ctrl+Shift+O?
 
@nhgrif I think it's this one.
 
Cmd+Shift+O on Mac apparently.
Hmm. :/
 

« first day (446 days earlier)      last day (3588 days later) »