« first day (747 days earlier)      last day (3263 days later) » 
00:00 - 16:0016:00 - 00:00

12:00 AM
There are 1389 unanswered questions
 
There are actually 1388 unanswered questions.
 
Hello, all.
 
Hello
 
Hi.
Drat, that question count has been going up.
 
I'm about to make it go up a little more, but I might pick off a zombie or two as well...
 
12:02 AM
Prep the nukes.
 
I killed a couple C# the other day to get my badge.
I need one more CSS to have 20, but you guys would have to vote a bit more than usual for CSS to get the 100 score.
 
I'm going to be using R on a more regular basis, so I thought I'd bone up on that by looking over the existing R questions.
 
@EthanBierlein Are you saying @Duga is wrong?
If a quesiton has zero answers with a score of +1 or greater, it is unanswered.
 
@Duga is occasionally off by a couple.
 
Hey, @Edward
 
12:05 AM
But, since everyone is reloaded:
1
A: Fetching Background Data in iOS View Controller

nhgrifYou've posted a lot of code, so I'm going to give a general overview of some common mistakes I see people making (and are also happening here). You are using lots of magic numbers and magic strings. Let's instead create constants somewhere for all of these. You're using NSLog statements withou...

 
@nhgrif Is a "quesiton" a fundamental particle in physics? ;)
@SirPython Hello, @SirPython
 
What does @Duga mean by "RELOAD"
 
@SirPython I hope my "Linux sound question" answer was useful to you.
 
@Edward Of course it was helpful; thank you for it.
 
12:07 AM
That's good. It was rather terse, so I didn't know if it was too short to be of use.
For what it's worth, if I were writing something like your piano program in Linux, I'd probably target ALSA.
 
@SirPython You get your votes and stars back at 00:00Z, which is when you see RELOAD!
3
 
I just wish creating sound on Linux was just as easy as sending numbers to a port, like is 16-bit mode.
 
0
Q: Playing with digits problem using python

SiddarthProblem: Some numbers have funny properties. For example: 89 --> 8¹ + 9² = 89 * 1 695 --> 6² + 9³ + 5⁴= 1390 = 695 * 2 46288 --> 4³ + 6⁴+ 2⁵ + 8⁶ + 8⁷ = 2360688 = 46288 * 51 Given a positive integer n written as abcd... (a, b, c, d... being digits) and a positive integer p we want to find a...

 
@Phrancis Ah, that makes sense; I always thought she (I remembered the gender!) was telling us to reload our webpages.
 
lol
 
12:12 AM
@SirPython It's been a while since I did any sound programming, but you might find this ALSA tutorial useful, even though it's a few years old.
 
@CaptainObvious This question is confusing..
The problem statement anyway.
 
"Mythos" game design has begun! Super big kudos to @SimonForsberg for the awesome Groovy DSL. Check it out! http://bit.ly/1PXABOI
 
12:29 AM
Hello Folks!
4
 
Hello, @RefathBari
Just out of curiosity, how are you able to use this chat room with only a single reputation point?
 
@SirPython You know JS, is this any good?
0
A: On hover, hide text and display options

Hosch250One thing you could do is create functions to call instead of writing each sub function out every time you want to animate something. var hideText = function(element) { $('#menu ' + element).stop().animate({ width: '0px', opacity: 0 }, $('#menu ' + element).hide); } var sho...

 
@SirPython Pretty sure chat takes account of network rep, not single-site rep
 
Thanks, santas.
 
@Hosch250 I think it's a great answer
 
12:37 AM
That gives me the 15 and 16 score in jQuery that I need to get Generalist.
Just 4 more now.
Thanks.
 
@SirPython any chance you can help me out, my googling skills/brain are bad at this time in the evening :D
 
0
Q: Code Review: My OOP TictacToe with Tkinter (in python) Implementation

akh88this is my implementation of a tictactoe game with Tkinter GUI. So far I've set up the game to play with another player. For an interview coming up, I am suppose to build additional feature such as play with AI. I would love some general feedback on this. (Does my code smell? Can I organiz...

 
Sure, @DJanssens!
 
@StackOverflow Um, OK...
 
This is a better fit for CodeReview SEmichaelpri 44 secs ago
 
12:41 AM
 
I'm trying to split a python string of variable size of the form <x>,<y>,<z> into an array [x,y,z]
 
If you have two horses and want to know which runs faster, you should try asking this question on whichhorseisfaster.stackexchange.com... — nhgrif 2 mins ago
 
If you decide to post to Code Review, make sure to delete your question on SO. — Phrancis 34 secs ago
 
@DJanssens Tried regex? ;)
 
@DJanssens Are the <'s and >'s in the actual string?
 
12:42 AM
yes
"<x>,<y>,<z>"
would have been clearer, my bad :)
 
You could do: str.split('<') and then iterate through the array that is returned, taking the first character of each element and pushing it to a separate array.
 
split the string on >,<
Well, first remove the first < and the last > and then split the string on >,<
 
that's easier than I expected. Oh boy!
 
<x>,<y>,<z>
x>,<y>,<z
str.split('>,<')
 
thanks guys
 
12:53 AM
In case anyone didn't see the latest feature:
9
Q: Reordering method parameters

Hosch250Next release of Rubberduck (should be 1.4) introduces a reorder parameters refactoring, which lets user reorder the parameters of a module (or class) member, and automatically adjust all usages. Before: After: This is the IDialogView interface implementation: interface IReorderParameter...

 
0
Q: My OOP TictacToe with Tkinter (in python) Implementation

akh88This is my implementation of a tictactoe game with Tkinter GUI. So far I've set up the game to play with another player. For an interview coming up, I am suppose to build additional feature such as play with AI. I would like some general feedback on my code. (Does my code smell? Can I or...

 
Wonderful, my 7-year-old sister is running around flipping everyone off because she doesn't know what that gesture means.
 
@EthanBierlein Maybe that's what she wants you to believe ;-)
 
I would be sad if that was the case.
 
TTGTB
See you all later
 
1:04 AM
See you.
Self answer that isn't. What is standard protocol here?
 
@Edward why this fet is giving me the hard time
 
@Hosch250 OP seems a bit argumentative and defensive. I'm not sure that moderator action would help. I've just downvoted.
 
OK.
 
0
Q: A Smarter random bomber for Battleship

EdwardIn a further exercise of my original Battleship test framework, I have enhanced and refactored the SmartRandom class from an earlier question and have updated GitHub project to incorporate most of the suggestions I received for the previous questions. the full context), I have finally written a ...

 
I wasn't sure what to do.
 
1:11 AM
@Edward you're an npn you would understand his language better
 
@EthanBierlein Return the gesture with another finger. Turn it into a 1-in-5 chance.
 
@Mehrad Do you owe it money?
Boba Fett is a fictional character in Star Wars. A recurring antagonist in Star Wars Episode V: The Empire Strikes Back and Star Wars Episode VI: Return of the Jedi, he is a bounty hunter hired by Darth Vader. He also made a cameo appearance in the digitally remastered Special Edition of Star Wars Episode IV: A New Hope working for Jabba the Hutt. Star Wars Episode II: Attack of the Clones establishes his origin as an unaltered clone of the bounty hunter Jango Fett raised as his son. His aura of danger and mystery have created a cult following for the character. == Appearances == === Original... ===
 
@200_success I think that would turn out much worse that the way you might think it would.
 
@200_success I don't see a downvote, are you sure you got the right post?
1
A: Implementation of a string-based loot table

KrythicHere is an updated version of my Loot Table. I dropped the "all probabilities must add up to 100" and instead left it open for the programmers own implementation. using System; using System.Collections.Generic; using System.Linq; namespace NovaEngineFramework.Framework.Probability { public ...

 
@Edward haaaahhahaha... funny as. I am dealing with his cousin Mosa Fet
 
1:16 AM
@Mehrad An equally dangerous character, I'm sure. :)
They can turn on you in an instant.
 
They normally behave but this one is a rebel
@Edward HAAAAAAAAAAAAAAAHAHAH... very wise joke
 
1:50 AM
0
Q: Find kth element from singly linked list in one pass

here4learnI have tried the below program to find (Kth element from tail) of Singly linked list. I will Appreciate your time for review. I have tried to utilize the length field which I am incrementing whenever an item is added into the list or vice versa. public Node<T> findKthFromTail(int kth) { // l...

 
I love how I spend the first 24 minutes of a project writing the top docstring.
Which consists primarily of this:
0x0-0x0-0x48;
0x0-0x1-0x65;
0x0-0x2-0x6c;
0x0-0x3-0x6c;
0x0-0x4-0x6f;

0x2-0x0;
0x2-0x1;
0x2-0x2;
0x2-0x3;
0x2-0x4;

0x4;
 
2:15 AM
Reading about C# hooks.
Quite interesting.
Actually, I believe they are .NET
 
This question may be better suited on the Code Review Stack ExchangeDaniel Storm 22 secs ago
 
Yes.
 
@Hosch250 Sounds more interesting than what I'm doing.
I'm trying to install Emacs for windows.
NotePad++ has outlived it's stay.
Whoops. Accidentally corrupted the download.
Trying again.
 
2:34 AM
I thought emacs was corrupt by default.
you have to Meta-X-Ctrl-T-Alt-f1 to get it to work?
 
Nah, I just accidentally stopped the extraction mid-extract.
Now I have to go through pages and pages of docs to figure out how to use the damn thing.
 
Yeah, I figured out that hooks are probably NOT what I want, but a Raw Input, perhaps.
 
1
Q: RSS parser for Node.JS

Andres OsorioI would like someone review this code and tell if it can be done better, or if the code is elegant and simple enough for the task at hand. I used code climate and I got 4/4 and my test coverage is 96%, yet I would like a professional opinion about it. 'use strict'; var cheerio = require('cheer...

0
Q: Node JS Twitter Count Module Elegant and simple code?

Andres OsorioI would like someone review this code and tell if it can be done better, or if the code is elegant and simple enough for the task at hand. I used code climate and I got 4/4 and my test coverage is 96%, yet I would like a professional opinion about it. 'use strict'; var PromisePolyfill = requir...

0
Q: Remove first or last element from vector

johnI'm stuck with a contest problem. Description: What is the minimum number of removes in an int array where the remove actions is as follow: - If the top (first and last) elements of a vector are equals. Remove then. - Else remove one of the top elements. Input The first line is the number of te...

0
Q: Dijkstra's algorithm in C

Snow DragonHaving a bit of trouble with my assignment (bear in mind that this is an assignment so I'm really after psuedo code if anything). It's using these datatypes: `typedef struct edge{ int toVertex; unsigned int distance } Edge; typedef struct edgeNode{ Edge edge; struct edgeNode *next } *EdgeList;...

 
3:19 AM
0
Q: Combinatorics - Unique combinations of sets with N min selections of overall set

Alexander MorouI'm in the process of attempting to write a parser compiler. In this, sets play a major role. I'm in the 'lexical ambiguity' isolation phase, and to that, I need to yield a set of every possible permutation of a given set of items which represent an ambiguity. An ambiguity is reached when ther...

 
 
2 hours later…
5:09 AM
if anyone wants to take a look, I'm kinda stuck on a weird XAML issue here:
0
Q: Why does my dropdown feel so clunky?

Mat's MugI have a XAML UserControl embedded in a WinForms/WPF Interop ElementHost control. The control is pretty simple - it's just a dropdown with a button - here's the entire markup: <UserControl x:Class="Rubberduck.UI.FindSymbol.FindSymbolControl" xmlns="http://schemas.microsoft.com/winfx...

 
5:41 AM
0
Q: C++ Homework - Palindrome, isalpha and character counter program

AlexHere is a copy of my entire code. Everything in it works except, in the IsAlphaStr function, the if and else statements at the end to output whether the string[] has only alphabetic characters or other characters as well. The output automatically jumps to the else statement declaring that it has...

 
6:34 AM
Monking "all
 
0
Q: Denormalization: python3 to csv

Marco MilanesioCross post from stackoverflow, as suggested. I have an ordereddict, and I need to store it in CSV file. Input: dic = collections.OrderedDict([('k1', 'v1'), ('k2', 'v2'), ('k3', [ [('k3a',21), ('k3b',22)], ...

 
6:56 AM
Monking
 
7:45 AM
I'd suggest asking this on codereview.stackexchange.comEpodax 51 secs ago
 
8:09 AM
0
Q: Securing php shopping cart

Griphoni've managed to create a working shopping cart and my next concern is security. Mostly about the arcitechture and session security. Should i make sessions somehow secure, if there's no authenticated login and sessions are deleted when browser closes? or is session_start() enough in this case? W...

 
@CaptainObvious Too broad
Perhaps even OT
 
@CaptainObvious Doesn't using ternaries like if (isset($_POST['id']) ? $_POST['id'] : "") { seem really pointless?
 
8:34 AM
0
Q: Improving the performance of an Informix SQL query

LisaMMThe goal of this query is to get a list of payments where all the corresponding payment lines and transactions have the status CLOSED. These are one to many relationships. The database is Informix. I wonder if there is a more efficient way to write this? In its current state it has a lot of repe...

 
8:53 AM
@Phrancis question for you : codereview.stackexchange.com/q/91380/35389
 
0
Q: What makes a question too broad for code review?

Nick UdellI was pondering the close reason today and I can't think of an instance where a question that is on-topic for Code Review is too broad. When is a question too broad? How could a too-broad question be edited to be acceptable?

 
0
Q: The mood of the nation - Twitter trend

overexchangeThis assignment is taken from here Introduction In this project, you will develop a geographic visualization of twitter data across the USA. You will need to use dictionaries, lists, and data abstraction techniques to create a modular program. The map displayed above depicts how ...

-2
Q: Occurs when load data in datagridview

Hà Văn LộcHere my DAO: Dataprovider for excutenonquery with store procedure. public SqlDataReader GetData(string query) { SqlCommand comm = new SqlCommand(); comm.Connection = openConection(); comm.CommandType = CommandType.StoredProcedure; comm.Comm...

 
9:24 AM
This question would probably be better on: codereview.stackexchange.comJosh Stevenson 24 secs ago
 
@Duga Wow, that's actually true.
Howdy people!
 
monking
just looking at this question
-6
Q: java - prime number generator + push to file

LegacyI am very new to programming and I like it when I can look at a program someone else makes a program and then I can mess around with it afterwards. Can someone please show me how to make a prime number generator that I can choose the length of how many I want (like all prime 1 to 100 or 1000000)...

faster downvoted then mine internet connection could handle
 
There are tons of such programs on Code Review...
 
yes, he isn't the first who is trying to make a prime number generator
 
@chillworld
 
9:29 AM
I whish someone wrote an application that just gives the code ;)
I can start making one, the first thing he can answer is : "I don't understand your question, can you reformulate the question?"
and then keeping track how many times they try ;)
 
9:42 AM
@JeroenVannevel you've been playing with the analyzer code. I've got a question for you when you have a second. Let's say I have a class that I use internally, but am in turn exposing a slightly altered interface of it to COM Interop. So, for the sake of code reuse, this class needs a particular constructor that should only be used by code in my Rubberduck.SourceControl.Interop namespace.
If I created a custom attribute, like Obsolete only different. Something like InteropOnly say... I should be able to write an analyzer to reflect over the code, look for the attribute and if the namespace isn't Interop, raise a warning about it, right?
I know that sounds very theoretical (because it is), but it seems to be an interesting possible use of a project specific analyzer. Thoughts about it?
 
Yes, very possible
A few lines of code and you're done
 
Seems like you think it'd be pretty simple then eh?
I'll tuck that away in an issue somewhere and come back to it when I talk Mug into upgrading to 6.0.
 
You just register a code inspection on ObjectCreationExpressionSyntax and look at semanticModel.GetSymbolInfo(expression.Type). Now you can retrieve all the attributes using symbol.GetAttributes(). For each attribute, look if its attribute.AttributeClass.MetaDataName is equal to InteropOnlyAttribute. Now all that's left is verifying if you're in the namespace you should be in using expression.AncestorsAndSelf().OfType<NamespaceDeclarationSyntax>().First().Name‌​
 
Oh dang. That is pretty simple.
I didn't figure it would be hard and I knew you were the guy to ask.
Thanks.
 
Anytime
 
9:52 AM
Man, I bet some custom analyzation would be worth it's weight in gold for any OSS project.
 
I agree. You can basically provide develop-time warnings for any codebase specific quirks you have
3
 
Set your standards, distribute them along with the rest of the source. Contriubtors know up front if they're meeting the basic style guides.
Yeah. I'm definitely going to play with that after I get this feature done.
 
10:29 AM
I've voted to close this question as unclear. At this point, based on the asker's comments the question seems more like a rant or a troll. This question could be improved if the asker either added an example of what "evidence" might look like or if an explanation of what they'd like to see in response to a potentially inaccurate on-hold reason being used. — nhgrif 13 hours ago
@nhgrif - it's not a duplicate of that question. That question is Float -> Int. This is NSTimeInterval -> Int. I didn't know NSTimeInterval is a Double. — TIMEX 3 hours ago
 
0
A: Securing php shopping cart

QuillIn chronological order: session.php: If you're into ternaries, you could always change it to: (session_status() != PHP_SESSION_NONE ?: session_start() ); My Ajax is terrible, so I'll have to skip that, sorry. add_to_cart.php: You call two main variables: $error & $success. For $error, inst...

 
I've voted to close this question as unclear. At this point, based on the asker's comments the question seems more like a rant or a troll. This question could be improved if the asker either added an example of what "evidence" might look like or if an explanation of what they'd like to see in response to a potentially inaccurate on-hold reason being used. — nhgrif 13 hours ago
 
10:48 AM
If your code is working properly, you can try the same question at Code ReviewSourav Ghosh 35 secs ago
 
11:07 AM
@nhgrif agreed
@Quill nice answer, I personally dislike the formatting style of bolded (and heading) inline-code as you use it for the filenames
 
@Vogel612 Thanks, and I'll take that on board for the next answer :)
 
meh, it's just personal preferences
 
0
Q: Trying to find what is stopping com objects being released

mccdyl001I have a method which creates an excel workbook using COM Interop: using System.Runtime.InteropServices; using Excel = Microsoft.Office.Interop.Excel; ... private void CreateWorkbook(string WorkingDirectory, string FileName) { Excel.Application excel = new Excel.Application() { DisplayAler...

0
Q: How do you choose between a switch and a table lookup?

Michiel van der BlonkAs an example a piece of my code: function togglePerspective(event) { switch(event.which) { case 32: // space perspectiveView(); break; case 97: // a, left leftView(); break; case 100: // d, right rightView()...

 
0
Q: How should we revise the standard off-topic reasons, if we can have up to five?

200_successCode Review currently has three standard off-topic reasons: Questions containing broken code or asking for advice about code not yet written are off-topic, as the code is not ready for review. After the question has been edited to contain working code, we will consider reopening it. Questions m...

 
Well, this question is for CodeReview, not for stackoverflow. But I'll give one advice at least, don't evaluate all numbers from 1 to 1000000, searching for palindromes. There are not too much of them, it's better to generate them. — mkrakhin 14 secs ago
 
11:19 AM
Posting from my phone... So this'll have to done for now. One reason should cover the general case of the asker isn't even seeking a review. That can include code not yet written or asking for an explanation of code or the results of run code. This separates code not yet written from broken code and let's the broken code reason elaborate on "not working as intended" as well. — nhgrif 18 secs ago
@200_success I will post an actual answer this afternoon if what I'm trying to get across still isn't clear
 
11:38 AM
Yippee. I broke emacs. Again.
I give up. Time to go back to NotePad++.
Or maybe...
EVERYBODY! NEW IDEA FOR CR PROJECT. A TEXT EDITOR THAT'S NOT AS COMPLICATED AS EMACS BUT STILL HAS THE SAME FEEL.
.lower()
Goodbye
 
@EthanBierlein you do know that's impossible, right?
also: use vi(m) instead
better feel and not as complicated
 
Things are only complicated until you understand them.
Pointers used to be complicated... Now that statement sounds stupid to me.
 
the entry barrier to emacs is still higher than the vi(m) barrier
 
11:54 AM
-2
Q: Correct usage of async/await

Mike EasonI'm having some confusing with async/await keywords. I've gone through a couple of tutorials and they seem to follow the same pattern, which goes something like: Create this class and call it's Async method, isn't it awesome?! Which is great, but it doesn't really explain how these methods impl...

 
modclosed, nuke-pls
 
@EthanBierlein Try Atom
Who managed to crash a Bash environment yesterday by rm?
I've thought of something evil to try there.
 
12:21 PM
Ethan did...
 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comcrashmstr 59 secs ago
 
0
A: How should we revise the standard off-topic reasons, if we can have up to five?

rolflI believe we should use 5 close reasons. This will significantly reduce the confusion people may express when they have to figure out which of multiple close reasons was actually used to close a question: Questions must include the code to be reviewed. Links to code hosted on third-party sites ...

^^^ my take ;-)
 
@rolfl I agree with @SimonAndréForsberg - merge 2 and 5 and use the free spot to have an explicit "not your code" reason.
 
@SimonAndréForsberg - I feel it is impossible to 'police' the not-your-own-code - when it is obviously "not their code" it is easy to close for all sorts of reasons. When it is not obvious... what then? The explaining the motivation is key. — rolfl ♦ 15 secs ago
 
Good counter argument.
 
12:34 PM
@rolfl I agree with 200... Anonymized code per se is not an off-topic argument
 
For close reasons discussions ^^^^
 
@rolfl why keep it out of the main-room?
 
in Discuss Close Reasons, 1 min ago, by rolfl
will make it simpler to sort things out later, if needed.
 
Greetings, Programs.
 
@Donald.McLean Greetings Humon.
 
12:50 PM
 
I have a really n00by question I need answered if I'm to even begin to google what I want to do... What is this JSON part of this cURL command?

curl -XGET 'http://mysite.com/stuff' -d '
{
"stuff": "value"
}'
 
I'm voting to close this question as off-topic because it is not about a specific programming question, but a general code review. As an aside this would be a really good question on Code Review, and I have flagged it for migration. — rolfl 33 secs ago
 
@Gemtastic the things after -d
 
@Vogel612 yes
what is it, what does it translate to? (how do I use that in other calls through javascript?)
 
 mysite.com/stuff?stuff=value
 
12:54 PM
The thing is that the source needs that JSON as an input
I'm trying to use elasticsearch
 
send it as POST instead..
 
through google script
The request method doesn't matter
it's supposed to be a GET
I want to know what it is
 
request parameters
 
What kind?
 
there's different kinds??
 
12:56 PM
Did the original code not include an unlock somewhere in there?!? In answer to the question, usually delegate-protocol pattern or completion blocks are better, where the time consuming process pro-actively notifies the caller when it's done, rather than spinning/waiting for completion. But it's impossible to say without far more details about what this separate thread is doing. Also, this might be a better question for codereview.stackexchange.com. — Rob 28 secs ago
 
@Vogel612 well, there must be because my request isn't being sent
 
so... curl says no?
 
The curl command works
But I need to use google scripts
Google scripts doesn't seem to be able to make curl-calls
 
@Gemtastic Why don't you use it "stuff=value" mysite.com/stuff style?
 
@Mast Because the actual query is too complex
it's more like:
{
  "query": {
    "stuff": "stuff",
    "herp": "derp"
  }
}
 
1:00 PM
@Gemtastic Ah, you got layers
 
A nest of objects and arrays as elastic search queries are
 
There, moved the auto-generated unit test files to a NuGet package. Now I can use it more easily as a dependency and I can fix that ugly unit testing code they had in there
 
@Gemtastic Couldn't you pipe it into a variable and put the whole thing in a Bash script?
 
@Mast I don't even know if google scripts can do that
 
I've never used Google scripts, so neither do I
 
1:02 PM
Google script is basically javascript without the DOM
I can make the URI requests, but how do I put that JSON query in there?
 
Why does my NuGet package have 4 downloads in the 3 minutes it's been up
I haven't even written any documentation
NOBODY KNOWS WHAT IT DOES
 
@JeroenVannevel Curiosity
 
@JeroenVannevel Google.
 
google crawler uses the Download link?
 
@JeroenVannevel Google crawlers use every link, they don't really care afaik
 
1:06 PM
Well then I guess Google is my most hardcore fan
3
 
Google is n̶o̶t̶ your friend.
@JeroenVannevel ^^
 
Great. I moved away from MSTest because it doesn't have an Assert.Fail() so I installed xUnit.net instead.
That doesn't have it either
Time to go to NUnit
It's not a hard feature, people
 
@JeroenVannevel BIY?
 
I don't want to have to
 
@JeroenVannevel Sometimes, life is not about want. It's about need.
Re-inventing the wheel is usually a bad idea, but sometimes all the wheels you can find have production errors.
So making one yourself isn't a that bad idea in the end, sometimes.
 
1:16 PM
0
Q: Improving this Jquery plugin

user74109I'm pretty new to client side scripting and I'm still learning. I've written this JS plugin which animates blocks of HTML (fade-in from left/top/right/bottom) as you scroll down the page. Everything seems to be works correctly, but was just wondering if there is anyone who could suggest how I c...

 
Re-Inventing the wheel is sometimes fun though.
 
0
Q: Is it an anti-pattern to let ViewModel fill itself from a domain object?

PlucLet's say you have a Employees table mapped to a Employee class. Now you want to code a Edit page for general information. You need a ViewModel with all the properties you need to build the page, so you create EditEmployeeViewModel. Then you make your action EditEmployee and your view EditEmploye...

 
is it possible to add AJAX stuff to the Tool Box of Visual Studio? or is it easier to just write the code? I mostly use the toolbox so I know what there is to use
 
Geez, it's impossible to find hosted JS libraries...
 
@EthanBierlein Google has them
 
1:27 PM
@EthanBierlein 1. Get NodeJS. 2. Use npm
Client-side JS is sooo 2013
 
Ik, I just never know what to search on google, ironically. The last time I tried to search for them, I typed this into google: "Javascript online google hosted libs". facepalm.
 
there you go
> google javascript library
 
And bookmark as first visible bookmark, now!
 
that is what I searched, and it was the second link
 
@EthanBierlein That must have turned up a load of crap.
 
1:31 PM
sometimes you just have to know what to look for on google search results.
 
0
Q: Is there any way to tidy up my code ?

ClarkPamler93I am writing a script that will check the set values against a .properties file and I am just wondering if there is any nicer way to right what I have here ? #!/bin/bash # @summary Check Values # --------------------------------------------------------------------------------------------------...

 
When it comes to google, I can never type in the right thing.
 
@Lyle'sMug I used these once on a HTML/CSS site. Terrible times.
 
interpretation is everything in the Programming world. you are always trying to interpret something that someone said or trying to interpret results of something
@Mast you must not have been doing it right. they are super nice and simple.
 
@Mast Well, this came up. Not sure what it is... Looks too pretty to not be sketchy...
 
1:32 PM
@Mast you attach them like you would if you had an external JS file on your server
 
@EthanBierlein Definitely, run!
@Lyle'sMug Oh it was very simple to implement. I just didn't like doing it.
 
RUN BEFORE THEY TAKE YOU
RUN I SAY
 
@Mast what is your background? Just curious
I don't write much javascript, I borrow snippets most of the time
@EthanBierlein I am somewhat of a professional when it comes to Google-Fu
 
@Lyle'sMug C++, but haven't written anything serious in that for a while. VHDL, kind of. Python2. That kind.
Currently writing in NodeJS to talk I2C to a module. Still can't wrap my head around it.
Started with Basic and C, but that has been a while as well.
 
There must be some way to send a body through a post..
 
1:36 PM
@Mast that's over my head, I haven't done anything supercool with JavaScript. but I know that soon I will be needing to learn more advanced things with it.
 
@Gemtastic There is... alive is harder.
2
 
@Gemtastic why would you send the Body Tag?
 
@Lyle'sMug NodeJS is basically 'Let's talk event-driven JS'.
 
@rolfl XD
 
1:38 PM
43 mins ago, by Gemtastic
I'm trying to use elasticsearch
 
@Mast basically a library around stuff that people have been doing for a while.
 
@Lyle'sMug Like, if you want a server, you import a server and just configure it.
But it's hard to force it into executing a whole big function the old fashioned way instead of everything at once.
 
I'm not sending the body tags, I'm trying to send a JSON to Elasticsearch through google scripts
 
@EthanBierlein I have been watching that since you posted it, .......
Can't stop
 
1:46 PM
Last summer I played that for 9 hours straight. 9 HOURS. It destroyed my soul.
 
@EthanBierlein How? It's just an animation.
 
BTW.Work
 
@Mast Let me rephrase, I left that in an open tab for 9 hours straight.
 
@EthanBierlein Your soul doesn't like open tabs?
 
0
Q: Did I good deal with Builder Pattern?

ViTUuWell, I am doing a game, this game use nape physics in ActionScript, but my question isn´t about language and it is about use of pattern. I had fruits in my game. I did one interface Fruit and fruits like Banana using this interface, I made too a class Fruits to get random fruits in runtime. p...

 
1:55 PM
I've migrated your post to Code Review; it'll start afresh there. Just sign in on Code Review with the same credentials you use on Stack Overflow and the question will be assigned to your account. — Martijn Pieters ♦ 12 secs ago
 
@CaptainObvious Darn, that question could use some love before it gets an answer.
 
1
Q: Calculate grades based on pass/fail percentage

Michiel van der BlonkOur school grading scale is from 1..10 with one decimal. If you do nothing you still get a grade of 1.0. A passing grade equals 5.5. A a 'cesuur' percentage defines at what percentage of correct answers the 5.5 will be given to a student. Examples: List item Grade(0,100,x) should always result...

0
Q: Android MVP using Headless Fragment as Presenter

ZhuindenSo I've been experimenting with MVP pattern on Android, using dagger2, Otto eventbus, butterknife, android priority jobqueue, and using retained Headless Fragment as a presenter. The basic setup is this: LoginActivity public class LoginActivity extends BaseActivity implements L...

 
@Mast is that a little bit better?
the OP needs to trim the code a bit though I think
0
Q: Fruit game using nape physics

ViTUuWell, I am doing a game, this game use nape physics in ActionScript, but my question isn´t about language and it is about use of pattern. I had fruits in my game. I did one interface Fruit and fruits like Banana using this interface, I made too a class Fruits to get random fruits in runtime. p...

 
@Lyle'sMug It's better, but still too clunky
Kudos for effort
 
2:10 PM
@Mast I agree, the English needs some work
 
@Lyle'sMug Not just the English though. I'm all for posting all the required code to understand the context, but this feels too bulky.
That might be part of the reason why he wants a review though, because his design is bulky
 
http://codereview.stackexchange.com/questions/91403/improving-this-jquery-plugin
http://codereview.stackexchange.com/questions/91395/improving-this-jquery-plugin

Got a duplicate on a migration
 
I'm voting to close this question as off-topic because it is not about a specific programming question, but a general code review. As an aside this would be a really good question on Code Review, and I have flagged it for migration. — rolfl ♦ 1 hour ago
 
Spotted
 
Thanks @rolfl
 
2:17 PM
@rolfl Wasn't that question moved here by Martijn?
Let's play Pong
 
posted by rolfl on SO, duped by OP on CR, moved to CR by martijn, closed as dupe by rolfl on CR
 
Gotta love migration
TTGTH
I'm feeling obstinate and throwing forkbombs around won't do well with my boss
 
both Mugs post within a minute of each other....lol
3
I need to BTW.Work
I got caught up trying to catch up on my Import BlogKit reading
@JeroenVannevel does your site have an RSS feed? I tried vannevel.net/feed but my Chrome Extension didn't like it for some reason gave a 200 error
Nevermind I fixed it, don't know how though @JeroenVannevel
 
It's www.
No wait.. they both work..
I clicked your link, 404. I went to my site, clicked 'RSS feed' and it worked
 
I clicked the link and then pulled the URL from the url bar and input that and it worked.
 
2:29 PM
now your link works as well
 
maybe a lag in the server for a couple of seconds or something?
 
I'm not denying my site sucks. The 10 second initial load is testament to this
 
lol.
I was just trying to clean up my browser a bit, I had 4 different blogs open that I was able to put into my RSS feeder
import BlogKit
The Codeless Code
CommitStrip
To Kill a Mocking Bug
I already have VBA4ALL and Eric Lipperts blog in there
seems Eric's isn't working correctly
wow, I just added /feed/ at the end of his site and it worked.
there was no button for it anywhere on his site
 
You have to be a wizard for it to work.
 
lol
 
2:41 PM
@Lyle'sMug didn't vba4all ragequit SE?
 
@Vogel612 IDK, I don't know I never knew it if he did.
 
Oh I think he did it for real this time around.
 
wow
if anyone wants to RSS feed my blog ►►► --> randomlyle.blogspot.com/feeds/posts/default?alt=rss
 
0
Q: Create variable and use in one stored procedure

indofraiserAim: Find a value via a stored procedure then run a second process in the same stored procedure than than calling a second stored procedure. Query: When a call is 'simple' i.e. not Where x y then... I keep the stored procedure, even when I need to get a variable, in the same procedure. Why her...

 
and now I go get more Coffee and then BTW.Work for real this time....
 
2:49 PM
These days, I spend more time editing my old answers than posting new ones ._.
 
I need to follow RetailCoder's blog as well. who is that Mug anyway?
now I have 84 blog entries to read....
they changed the separator in chat.. that is cool
 
@Lyle'sMug explain?
 
it used to be a dotted line
the deal that says where you read too when you come back
 
I still have a dotted line.
 
0
Q: Generic Sql Connector classes

Robert SnyderThe need came up the other day to be able to easily switch back and forth between making IBM DB2 queries and MS SQL queries. I didn't want to mess with NHibernate as I was on a time crunch, and I also didn't want to have a million connection strings. Lastly I learned a while ago that for classes ...

 
2:57 PM
me too - dotted for me to
 
@EthanBierlein found this that you might like
316
A: What is your best programmer joke?

mxcCommand line Russian roulette [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo *Click*

 
0
Q: Code Optimization - Find the number

SwanandA Friend gave this puzzle: Find 3 numbers (say, A B C) such that ` ABC+ABC+ABC = CCC `ABC means ((A*100) + (B*10) + C). and also,these 3 digits must be distinct, I wrote a quick code to find out the answer: int main(void) { // your code goes here int hun,dec,unit; int final_nu...

 
@bazola lol.
 
> .NET is called .NET so that it wouldn't show up in a Unix directory listing.
I chuckled
3
 
3:18 PM
0
Q: After creating parallel lines, I call a method to draw the parallel lines.

Kala JThis question is a followup to the last one. I followed RobH's advice and his edge case bug found in my code with this solution: private Line CreateParallelLine(Line target, int offset) { var parallelLine = new Line(); var xDifference = target.point1.x - target.point2.x; var yDiff...

 
This is not a programming question, it's a request for code optimization/review. Try the codereview site. — Marc B 31 secs ago
 
3:36 PM
When you move it to codereview - can you explain why you think your method is not so good? — lessthanideal 11 secs ago
If you do move it to Code Review, please close the question here. — Quill 33 secs ago
 
3:49 PM
Wouldn't this be better on codereview.stackexchange.com? — Liam 1 min ago
 
Amazingly, this question still stands open.
-7
Q: How can I convert a NSTImeInterval to Int?

TIMEXlet date = NSDate() let timestamp = date.timeIntervalSince1970 as Int This simply does not work. I just want a timestamp ,that's all.

 
Hey hey.
 
Hello
 
00:00 - 16:0016:00 - 00:00

« first day (747 days earlier)      last day (3263 days later) »