« first day (853 days earlier)      last day (3157 days later) » 

8:03 PM
Oh yeah!
I'm proud of myself!
Successfully cloned an HDD with Windows 7 and it is working!
 
What optimization would you suggest? What do poeple say at codereview.stackexchange.com ? — Eser 17 secs ago
 
Is there any reason for me to serve the angular.min.js file from my own server, or can I just leave the call to googleapis.com?
I believe it to be the latter
 
hi
 
hi
 
8:15 PM
hi
 
Wait a second....
 
it's the bottom one
 
Why are there two?
 
one of them is your config specifically for the views
not quite sure why
or why they are named the same
 
ugh........
 
8:18 PM
19
Q: why are there 2 web.config files

leoraSomeone sent me over a link to download the sample standard asp.net MVC sample, I noticed that there were 2 web.config files: 1 in the root directory 1 in the views directory What is the reason for this?

 
I wrote a Jeopardy clone as a hobby programming project.. Would posting it for review as a FAIR USE of the Jeopardy!(TM) be ok?
 
> In ASP .NET there is basically an inheritance style thing going on for config files. You have a machine.config out there in the .net framework folder which has basic settings for all apps on the machine. Anything you specify in a root web.config with the same tags would override the stuff in the machine.config.
Any web.config in a sub-folder can override or add additional settings within that sub-folder and its children.
 
grumble grumble grumble
Closer. Now I sometimes see my 404 page.
 
What's jeopardy?
I never got it
 
Jeopardy! is an American television game show created by Merv Griffin. The show features a quiz competition in which contestants are presented with general knowledge clues in the form of answers, and must phrase their responses in the form of questions. The original daytime version debuted on NBC on March 30, 1964, and aired until January 3, 1975. A weekly nighttime syndicated edition aired from September 1974 to September 1975, and a revival, The All-New Jeopardy!, ran on NBC from October 1978 to March 1979. A daily syndicated version premiered on September 10, 1984, and is still airing, making...
now shoo
@RubberDuck Sometimes is good enough. Right?
 
8:23 PM
Yeah. It's good enough until someone complains about it.
 
0
Q: Find minimum in rotated sorted array

CodeYogidef findMin(ary): def recurse(lo, hi): # Base cases if (ary[lo] < ary[hi]): return ary[lo] if (hi - lo == 1): return min(ary) mid = lo + (hi - lo) / 2 if (ary[mid] < ary[hi]): return recurse(lo, mid) else...

 
@Caridorc If I understand what you're asking, I don't think there would be an issue, but if you're still not sure you could ask one of the mods who hang around here. I'm far from and authoritative figure.
 
@IntensifierDescriptorMan nice to hear your opinion
 
Zak
@Caridorc I doubt the mods could tell you one way or the other.
I recommend law.se
At least, I'm sure there must be one by this point
 
1
Q: WebApi Get with paging

MegaTronCould you please suggest me how can I improve the code? public virtual HttpResponseMessage Get(int pageNo, int pageSize) { pageNo = pageNo > 0 ? pageNo - 1 : 0; pageSize = pageSize > 0 ? pageSize : 0; int total = repository.Table.Count(); ...

0
Q: ProductManager: a basic CRUD for products with SQLite

Mithos-YggdrasillI would like to have a review of this basic CRUD application so I can improve and learn from your experience. The code can be found here: https://github.com/Mithos-Yggdrasill/Datumcontrole Design pattern/coding principles improvement that could be used Exception handling Readability Coding be...

 
Zak
8:32 PM
this is a legal question???
0
Q: Can I use mysqldump.exe binary file on local network server at work?

D.TateI want to use MySQL mysqldump.exe on a network machine here at work backup the company site. Apparently, MySQL is GNU GPL v2. Is it ok to simply copy that file from my local installation on the network, or do I need to fully install MySQL? (...I don't want to have to fully install because it is ...

 
in Cardshifter TCG, 5 mins ago, by A Red Herring
You want to serve from a CDN rather than your own server because it will reduce the amount of load on your server, and it's likely that the CDN will have better distribution centers = less latency across the world rthan your server does.
 
@Zak Who cares about 250 mb?
 
That's what I figured -- thanks
 
@Zak Not a very good one
 
@Zak nice advice
 
Zak
8:37 PM
Anyway. I need to decide which TV show to start on next. What are people's thoughts? I have: Agent Carter, DareDevil, Supernatural, Walking Dead, Parks and Rec, Orange is the new black, The Office and Mad Men.
@Caridorc NP
 
Wait.. a terrible bug hit my game. Now only the last of the questions array is shown. It seems very though to fix.
 
public int getNumberOfProducts() throws ServiceException{
    try {
        return db.size();
    } catch (DatabaseException ex) {
        throw new ServiceException(ex);
    }
}
Would this^^ imply that db only has one table, i.e., Products?
 
OK
 
Bug beheaded by using var and putting things in the most local scope possible, yeah
 
8:43 PM
@Caridorc JavaScript?
 
@Duga hypothetical code?
 
It's nearly a good fit for CodeReview, but example code is off-topic. — Zak 26 secs ago
 
@IntensifierDescriptorMan Exactly using globals will send your code into total chaos
 
@Caridorc Just spend 3 days redoing some JavaScript I wrote. I'm starting to get the correct layout now
 
8:50 PM
@IntensifierDescriptorMan of all the languages, why is Javascript the official Browser-Supported Web language?
 
I think that's the wrong question to ask :)
"Why has JavaScript become the language most widely supported by browsers?"
 
@Phrancis True, but personally I hate CSS more (though with flex-box it isn't as bad)
 
I'll take CSS over the lack thereof :)
 
yeah, I'm with ya
 
9:00 PM
0
A: Finding the common prefix in a list of strings

kraskevich There are some inconsistencies in your code style: sometimes you do put a space before an opening curly bracket, sometimes you don't. It is a good practice to adhere to one style(in this case, it is conventional to have a whitespace there). It is also conventional to surround all binary operator...

 
I kinda like the look of my Jeopardy! game, you may try it at programming-jeopardy.bitballoon.com I think it is almost ready to post for review, but I will look at it some more for details and bug-fixing.
 
> Is Javascript strongly or weakly typed?
> * true
> * false
 
I was about to quote just that
Also, it could definitely use some CSS love, not to mention maybe Bootstrap
 
Bootstrap is all I can do
and jquery plugins
 
9:04 PM
Angular > jQuery, for something like this :)
 
Never used angular. That's some kind of MVC thingy for javascript, right?
 
@IntensifierDescriptorMan yes it is: [] + [] == ""
 
@IntensifierDescriptorMan Don't know what MVC is, but AngularJS is a great library that's a lot more lightweight than jQuery, and is much simpler and more elegant for a lot of things.
 
@Phrancis No, numbers are primitives for speed: i.e. not objects
 
I typed "false" and it told me I was wrong
 
9:10 PM
same here
 
I knew the answer duh lol
 
Also, the wording is confusing, that's why I quoted it.
 
Does [] + [] === "" though?
 
@Phrancis fixed // Yes just open the console in the Browser and give it a shot
 
'use strict';
if ([] + [] === "") {
    console.log('Yes');
} else {
    console.log('No');
}
// Yes
So weird
 
9:15 PM
huh, would have never guessed that....
 
   Is Javascript strongly or weakly typed?
   * strongly
   * weakly
 
that sounds better to me
You should totally just have one mess of ternarys as one of the higher point questions, and ask what the output is.
 
The highest question will be "In Javascript what is [] + 0 ?" -> answer
"0"
Or
If "121" - 1 ->120
How much is "121" + 1 ? -> "1211"
Weak typing should die now and forever
 
Eh, dynamic typing can be fun
 
9:22 PM
dynamic typing is fun. Weak typing is insane
Python is strongly and dynamically typed
>>> 1 + "1"
Can't add integer to string
 
I think many have a dynamic type, but they highly suggest against using them unless you know why you need it.
 
I wish more languages had different operator for arithmetic "add" and string add/concat
 
Well I can use + for integers only and strings only; as long as int + str is wrong I do not worry
 
Hm, I think the only one I can think of is VB, now that I think of it
... I think ;)
 
I think haskell uses ++ for string concats
 
9:27 PM
@IntensifierDescriptorMan ++ is for any sequence, anyway yes
[1, 2] ++ [3, 4] == [1, 2, 3, 4]
 
I only did haskell for like 3 days. Moved to F#. Supprised I remeber anything, lol.
Well, TTQW. See ya peoples later
 
Zak
later
 
I'd say this codereview.stackexchange.com/questions/6847/… and then run the results manually through a pattern filter. — zapl 24 secs ago
 
We are aware of 523 errors near Prague and Denmark - we are investigating.
 
@StackExchange That's a lot of errors ;x
 
9:34 PM
@Duga not yet written code
bye people
 
@zapl code not yet written is off-topic on CodeReview I mean — Caridorc 49 secs ago
 
@Phrancis VB isn't implicitly typed. It's doing a truckload of implicit type conversions behind your back - there's a difference ;-)
TQTW, 3-day weekend!
 
And that is why I use C#.
It doesn't do drug deals behind my back.
@Mat'sMug You have Labor Day too?
I thought that was a US holiday.
 
9:53 PM
Some empowered Canadian folk must have deemed it a good idea ;-)
 
Apparently.
 
BTW.Weekend
 
10:10 PM
TTQW finally
I thought the day would never end
 
Greetings
 
I'm not one to cry, but Javascript brings me close
On a positive note however: I just got my angularjs app working with a nodejs-backend powered by expressjs
so many buzzwords
Now I just have to figure out how to bring gulp back in there and I'm ready for startups to hire me
 
Zak
10:33 PM
'nite people
 
Have a good night dude
 
10:47 PM
Evening all.
 
0
Q: Kivy: Why is my timer not updating?

Twin802I have a clock that should start a timer when the game starts, then it should display using the label the new time, whenever it updates. Game.py: from kivy.app import App from kivy.uix.widget import Widget from kivy.properties import NumericProperty, ReferenceListProperty,\ ObjectProperty ...

 
Greetings dude
 
0
Q: PHP USB serial port call from Windows to Linux

aku fooI have a piece of simple code that works on a Windows - WAMP environment, e.g. <?php `mode com3: BAUD=38400 PARITY=N data=8 stop=1 xon=off`; file_put_contents(com3, chr(1).chr(255).chr(1).chr(4).chr(64).chr(5)); ?> It connects via a USB cable (using USB-Serial drivers) to a circuit-board to...

 
Hey @DJanssens. Long time no quack.
 
Been kinda busy. :)
How have you been @RubberDuck
 
11:03 PM
The same.
 
btw, bit late but congrats @janos
 
Busy, that is.
 
How is your Rubberduck project going?
 
@CaptainObvious Broken
Please, someone comment for me
I can'tnow
*can't now
 
Uhhh. I honestly don't know right now. I've not been very involved for a little while.
 
11:19 PM
@DJanssens bit late, but thanks DJanssens!
 
I saw an update of it on twitter, if I remember correctly @janos :)
 
1
Q: Fast evaluation of "x==7" to 1 (true) or 0 (false) in Java, using only operators (and no conditional branchings)?

ChrisI want to port a crypto function from C to Java. The function has to run in constant time, so no conditional branchings are allowed. The original C code is: int x,result; ... result = (x==7); ... So that 'result' is set to 1 if 'x==7' and to 0 otherwise. The 'result' variable is then used in ...

0
Q: Stack Implementation in C++

Ankit Sharma#include <iostream> #include <new> using std::cout; using std::cin; using std::endl; using std::nothrow; using std::size_t; template<typename T> class Stack { public: // constructor for class Stack() { count = 0; last = NULL; } // destructor for class ~Stack() { if (count >...

 
11:38 PM
Monkevening
@JeroenVannevel wait no jQuery? :D
You should throw it in there just for the additional buzz word.
 
Hey dog, I see you're using jQuery. You should totally drop that and use jQuery instead.
4
So... Is there no MVC framework for ? I'm seeing a lot of home brewed routing mechanisms here.
 
@CaptainObvious Um, why did that question get 3 upvotes?
int x,result;
...
result = (1<<(x-7))&1;
...
^^ That is the entirety of the the code the OP wants reviewed
 
11:54 PM
1
Q: Route some questions to [url-routing]

RubberDuckSome one recently created url-routing. At time of writing, there are 75 candidate questions for this new tag. Anyone care to lend a hand applying it? As always, remember to make all appropriate edits when re-tagging. Be sure to fix spelling & grammar while you're at it. If anyone thinks of oth...

 
@Phrancis because
 
8
A: Do one-liners and other narrowed-down code qualify for a code review?

rolflSummarizing some chat, and other perspectives. Also providing more context than the 'counterpoint' answer I gave previously. The 'Real Issues' There are three issues at hand... is there a threshold of 'enough' reviewable content? (and then, an obvious follow-up question is how-much is needed,...

 
@RubberDuck Yii? Laravel?
 
@RubberDuck Guess I'll just ignore it then, as the Monkey wisely advised :)
 

« first day (853 days earlier)      last day (3157 days later) »