« first day (546 days earlier)      last day (3461 days later) » 

12:00 AM
My bot glitched when I decided to play beyond the one grid win. So I finished the game on my own and won. lol.
 
Which bot was X and which was Y O ?
 
I was X, started first.
 
I think my bot is quite bad at end games
so I'm not very surprised that you won.
 
Hmm...what type of algorithm does your bot use?
 
I've pretty much done a fuzzy logic expert system for it. Using this:
12
Q: A Scoring approach to Computer Opponents

Simon André ForsbergThis code is starting to be used within several of my projects, and therefore I thought it's time to get it reviewed. Description The most common application for this code is that there is a computer opponent in a game which needs to make a decision based on some parameters. A list of all possi...

 
12:13 AM
Interesting, going to save this for a good read :)
 
Enjoy :)
The approach is perfect for my Minesweeper Flags game, but for UTTT, not so much. At least not yet.
Also related:
13
Q: A scoring approach to computer opponents that needs balancing

Simon André ForsbergUpdate: The (Java) code used for this approach has now been posted at Code Review. This question is about an approach to computer opponents that I have created and are either currently being used, or are planned to be used, in several computer games. Background Last year, when trying to impr...

 
1:01 AM
@SimonAndréForsberg I think the reset button is broken on your game...
 
1:12 AM
0
Q: Adding functionality to a UseComponent.

TimeEchoesI’m using a component entity system to drive my game and I'm not convinced the way I'm adding functionality to the UseComponent is the best approach. This is what the UseComponent looks like for giving a potion entity the ability to restore health to characters on use. UseComponent<Entity, Ent...

 
Anyway, played another game, this time until all three tiles have been won. Strength level: 2
X: Simon O: Engie
It's so bugged. Look at the 2nd grid. It's clearly won, but not marked.
 
1:28 AM
You need to have three in a row?
That explains why my "oxo" didn't win
I stopped after that, I figured it was broken
 
0
Q: How to deal with ordering of calls in polymer element initialization lifecycle

Daniel DavidsonSuppose you have a Polymer component PC with a model pcmodel you want to associate with it: (new Element.tag('t-pc') as PC).setModel(pcmodel); Assume there are good reasons for doing this in code as opposed to declaratively. We know these are going to happen on the element: created ready att...

0
Q: What should be done to initialise multiple components in a Java applet?

Peadar Ó DuinnínI have the following code in my class and its init() method. It works fine as it is but I'm wondering if there's a better way to do this so that my init() and initialisations aren't so cluttered. Should I have separate initialisation methods for each component that my init() can call? I'm mostly ...

0
Q: Unable to implement Quicksort

khateebI have written an implementation of Quicksort in Python using the algorithm as taught by Sedgewick in his course. I am unable to sort it properly. What is wrong with the code? def partition(a, lo, hi): i = lo j = hi v = a[lo] while(True): while(a[i] < v): i +=...

 
1:44 AM
@CaptainObvious broken code
 
-1
Q: insert a formula and lock the cell based on value of another cell using Excel VBA

AliI am having an issue on Excel. I have a drop down menu in cell D5, with three options, A, B, and C. If A is to be selected, cell content in D6 should become zero/clear-out [i.e., available for manual input by user], and cells D7, D8 and D9 should be locked while having formulas assigned to them ...

0
Q: Creating UIImage from buffer returns nil

PopKernelI'm trying to darken UIImage by grabbing the CGImage, getting each pixel and subtracting 0xa from it, then saving each pixel to a new buffer. But when I try to load that buffer back as an image, the function [to create a CGImage] returns nil. This means I must have done something wrong (I wouldn'...

 
@CaptainObvious is this on- or off-topic? Looks like stub code...
 
@CaptainObvious burn the broken vba question with fire.
I'm too tired to comment, but kill it before the infection spreads.
Burn them both.
 
I commented
 
> This means I must have done something wrong (I wouldn't be surprised) in my code.
Thanks @Phrancis
 
1:50 AM
Canned responses FTW.
 
Oh wow. CaptainObvious had been busy. Which one looks like stub code?
 
"How to deal with ordering of calls in polymer element initialization lifecycle"
 
> Unable to implement quick sort.
 
I read that and thought this may be better for Programmers...?
 
1:52 AM
Easiest VTC of the day ;)
 
-1
Q: Unable to implement Mergesort

khateebI have written an implementation of Mergesort in Python using the algorithm as taught by Sedgewick in his course. I am unable to sort it properly. What is wrong with the code? def merge(a, aux, lo, mid, hi): assert isSorted(a, lo, mid) assert isSorted(a, mid+1, hi) for k in range(lo...

 
"oxo"?
I'm assuming there were three won grids? For O, then X, then O right?
 
No, I looked it up
 
@CaptainObvious ORLY? Same user as "Unable to implement quick sort."
 
"oxo" was apparently only popular in Flanders
for some reason
instead of 3 in a row, you win when you have an "o", an "x" and another "o" in a row
oxo
 
1:54 AM
Ohh, I see. :p
 
This is looking and sounding pretty hypothetical. Is this your actual code? If it is, can you please add some additional context (i.e. relevant code)? — RubberDuck 27 secs ago
 
Suppose you know how to code
Suppose you know how to do math
Suppose you want to ecoporate these features
 
Suppose you know how to suppose
 
Suppose you tell me what to do
 
Suppose you're on the wrong interwebz
 
1:57 AM
sigh finally added win by three tiles mode. Tested with Simon's.
 
Suppose you have any clue about anything :')
 
Good grief we're all awfully jaded for a Friday night.
 
Must be the cold and rain on Halloween night :)
 
That's pretty cool @EngieOP.
Must be.
 
1:59 AM
Technically it's saturday morning, and I have had too much cola
 
0
Q: Implementing `tag` for JustList

Kevin MeredithWorking on this homework from 2013 for self-learning. For the following Algebraic Data Type: data JoinList m a = Empty | Single m a | Append m (JoinList m a) (JoinList m a) deriving (Eq, Show) I implemented tag: tag :: Monoid m => JoinList m a -> m tag...

0
Q: Finding the weight of the heaviest path in Binary Tree - is this idiomatic Java?

doughgleI'm fairly new to Java, arriving in the "future" from C and returning to type safety from Python. I've programmed an algorithm to return the weight of the heaviest path from the root of a binary tree to one of it's leaves. Each Node in the tree has a weight (it's data).The weight of the path is...

 
Straight cola
or do you call it virgin?
:(
I dunno drinking lingo
 
FINALLY some on-topic questions!
 
\0/
 
Yeah a plain cola would be a virgin cola, in drinking lingo.
 
2:00 AM
Thank you
 
/0\
 
Good old black gold coca cola
 
\0\
I prefer Coke with a little rum in it. More of a Mountain Dew guy myself.
 
Thanks. The code is flipping shot though. :(
I'm hoping for a good review on it.
 
I prefer it the way it is, but the water where I live is so delicious
 
2:02 AM
Straight bourbon straight from Kentucky. =)
 
I didn't use to like drinking water, but then I lived in a place where the water tasted like old water puddle
 
Hey @RubberDuck that's right next door to me! (Kentucky)
 
Why does == to my brain?
2
 
oh well, bedtime
 
@Malachi Thanks for the ★ on git. ;)
lul
 
2:03 AM
(wish me luck with all this cola in my body XD)
 
where are you @ again @Phrancis?
 
Southern Indiana; just across the Ohio river from Louisville
 
I'm not far from Kentucky myself.
Lol. No shit?
 
Headless Horseless Headless Horseman.
 
Dead Serious. google.com/…
 
2:05 AM
I'm in central Ohio.
 
I could literally walk to Louisville from my home :)
 
Yeah, I see that.
 
Pretty much the only time I go to KY is if I'm out of beer on a Sunday, though. Stupid IN laws.
 
Im kind of curious how users like this find CR. codereview.stackexchange.com/users/57264/ali
 
^^ that.
 
2:10 AM
I mean, I came here from SO... That guy doesn't have any other SE account.
 
You know that's a good question.
@RubberDuck CR came up on first page with simple search
@Phrancis I corrected the code. It is working as expected. — khateeb 56 secs ago
Hey @JaDogg
 
hello
you caught me lurking :p
 
2:26 AM
Ok, I'm home alone, wife going to a party... fires up PostgreSQL
I need to create some queries and functions to aggregate data in a normalized way, however I have no data so I'm going to tinker around with RANDOM(), CROSS JOIN and other such fun things to create a bunch of faux-data :D
 
0
Q: Don't deploy webapplication in tomcat 6

Thanh PhongI am moving the application has been webserver Apache Tomcat developers to a different server. Like that. Server A / WebA === into ==> Server B / WebA (Note: I am not have the file developers .war, I am only file have been extract) Like that combined operation with the inside the 3rd to cause...

 
@CaptainObvious off topic
 
> I am attempt to try to one to make the application may be effective I am trying to with that.
 
Are Friday nights always like this??
 
I guess many aren't trick-or-treating tonight.
(or this is our 'trick')
2
 
2:30 AM
Lol. Maybe the devs are trolling us
 
OP name sounds Vietnamese, maybe Chinese. I think even I can't make sense of that broken of English, @Jamal...
 
I think it's broken, but I used unclear. Because... Well... That was unclear.
 
I wonder if that's the reason he keeps asking off-topic questions (that wasn't the first).
 
There's no code to review...
 
I like that the title wasn't even a question.
> Don't deploy web app
Or there's a legitimate language barrier. Hard to tell the difference.
 
2:34 AM
@Jamal That would actually make sense. Maybe he should post to English.SE first, and then when they close it as off topic help him/her fix it we can ... close it as off topic again for not having any code :)
 
> Copy the application has developers khai hát máy chủ one another, Include:
 
OP is Vietnamese. Has an English Language account. codereview.stackexchange.com/users/52577/thanh-phong
 
Look at his question and answer scores... :~| poor guy
 
2:49 AM
Value to owner: Favorite classic record, expensive equipment. Value to cat: Semi-comfortable perch.
 
3:02 AM
> You've earned the "status-completed" tag badge.
 
Nice... what does that mean?
 
I have no idea. :-P
 
I guess not ;)
 
I have just now. ;-)
 
3:22 AM
@Jamal Getting much cold down in your neck of the woods? We're getting frost temps over here. Coldest day so far this year.
 
It's a bit cold now.
 
Thanks for the Nice Question badge on Meta :)
 
3:54 AM
0
Q: Depth and Breadth First Search Java

user2989902I am trying to work on this and I can seem to get the right output. Can anybody help me? Thank you!!! Input.txt ---> Input file A,B,C,D B,A,C C,B,D,A,E D,C,A,E E,D,C MAIN CLASS: import java.io.FileNotFoundException; import java.util.Hashtable; import java.util.LinkedList; import java.util...

0
Q: appling singleton and factory design pattern in same application in java

HamzaI am trying to apply singleton and factory pattern design in same exercise , the exercise is about making two database connection type , Oracle and MYSQL here is my classes i creat: public enum types { Oracle,MySQL } Iconnection class: public class Iconnection { types contype; public String ...

 
4:20 AM
As much as I love SQL in general, it's a PITA to debug vague errors like No function matches the given name and argument types. You might need to add explicit type casts.
The name matches exactly, and there are no arguments to speak of, period. What do you want from me???
CREATE OR REPLACE FUNCTION cardshifter_create_schema()
RETURNS VOID
LANGUAGE plpgsql
AS $$ BEGIN
-- simple DDL stuff
END; $$
SELECT cardshifter_create_schema();
-- error happens
 
5:01 AM
0
Q: Avoid row duplication

Alvi_1987public function month_wise_due($grade_due, $new_due, $id, $remaining) { $now1 = time(); $now = date('F, Y', $now1); $store = array( 'mwf_month' => $now, 'mwf_previous' => $remaining, 'mwf_due' => $grade_due, 'total_due' => ...

 
 
5 hours later…
10:14 AM
The last message was posted 5 hours ago.
Is everybody dead?
 
10:31 AM
seems like it
 
Just mostly dead.
 
or hungover
Last thing before I went to bed was a conversation about whiskey :P
 
11:00 AM
0
Q: Work with nested task

AlexandrI have client and server classes. Server return ResultWithNestedTask a object. public class ResultWithNestedTask { public Task<String> NestedTask; public string Result; } Client's work is show data from Result, then wait complete NestedTask and show result from Neste...

 
11:17 AM
0
Q: Backing up an entire website with PHP

harryI'm attempting to backup lots of website using this php code. The script basically goes through the whole public_html directory and adds all the folders and files recursively and zips them. Here's what I've got so far: if (!file_exists('/home/sites/'.$_SERVER['SERVER_NAME'].'/cbitsbackup/')) { m...

 
 
2 hours later…
1:01 PM
How fun. The compiler optimized my debug variables away
6
 
1:15 PM
@JeroenVannevel C++? Suit yourself ;)
@EngieOP Barely even remembered that I had a reset button.
@EngieOP Could you provide a Windows binary of your game as well?
 
1:31 PM
@SimonAndréForsberg C#!
 
@JeroenVannevel Suit yourself :) Java would never do that ;)
 
Pssh, probably because it can't
I vaguely recall playing around with the optimization settings some time ago
probably a leftover from then
 
that would explain it
 
1:59 PM
10 more days to Fanatic :D
 
@JaDogg Be carefu. The first time I tried to obtain Fanatic, I had a problem and couldn't connect the 100th day.
 
@Morwenn huh
If I don't succeed I'll try again. :p
 
0
Q: building command line application

cha#include <iostream> #include <fstream> #include <string> #include <sstream> #include <list> using namespace std; void get_filename_and_number_of_commands(std::string& filename, int& num_commands, int argc, char* const argv[]) { // fill this function } void execute(std::list<double>& list_n...

 
2:23 PM
0
Q: Project Euler #2 in F#

Overly ExcessiveMy first attempt at this problem using functional programming with F#. I would've liked to use some kind of take-while function to keep generating Fibonacci numbers until they fulfilled certain conditions, but alas I could not find such a thing in F#. open System let rec fib n = match n with ...

 
2:52 PM
Can someone check this out please? I'm on the go.
Replace PC with a very businessy class name TFLiquidationSummary and replace t-pc with businessy tag name plus-t-f-liquidation-summary. Using those does not add and I feel detracts from the general question. The contents in ... are not something that add to the question. It is not pseudocode - it is real code modified as little as possible to get to the heart of the question. — Daniel Davidson 25 mins ago
 
@Phrancis I'm really only familiar with SQL Server, so this is sort of a guess... but does the return value count as an argument? Does cardshifter_create_scheme(); return a value that can be SELECT-ed?
@Phrancis Too many tabs... too much in dock...
8
Q: IB_DESIGNABLE, IBInspectable -- Interface builder does not update

nhgrifI have the following set of code: CustomView.h #import <UIKit/UIKit.h> IB_DESIGNABLE @interface CustomView : UIView @property (nonatomic) IBInspectable UIColor *borderColor; @property (nonatomic) IBInspectable CGFloat borderWidth; @property (nonatomic) IBInspectable CGFloat cornerRadius; @en...

 
 
1 hour later…
4:09 PM
We are about to failover operations to Oregon for read-only mode while we upgrade our core switches in the NY data center.
 
0
Q: Queue implementation without using built-in data structures

dev_nutIn an effort to brush up my algorithms and data structure skills I have a done a queue implementation without using built in data structures, i.e. using only arrays. Any comments on this code regarding issues, bad/ good practices and good style would be greatly appreciated. #include <stdexcept> ...

 
4:38 PM
.@BrentO We're discussing how to rig up LEDs to raspberry pis in the cage now. This may happen. With a color scale chart beside.
We are rebooting core switch #1 in the NY data center now.
 
adding the tweet feed was smart. Now I know why we're in read only. =)
 
5:33 PM
We are prepping a success over back to the NY data center now.
 
5:57 PM
We are bringing traffic back to our NY data center now and restoring full site functionality.
 
6:22 PM
yaay full functionallity!
2
 
6:42 PM
0
Q: Store CSV in Redis

confused00I needed to make a small script to read a csv file and store 2 columns in Redis. Can you guys take a look over the code and let me know how I can improve my code style? #!/usr/bin/env/ python """Proces csv file and store key-value pair of columns in redis""" import csv, redis, json from sys imp...

 
7:03 PM
0
Q: Lottery number picker

Frank TudorThis is my first Python project. Let me know how I did, and where I can improve it. # Random Lottery Number Pick Tool # It has U.S. national lottos and two from Nebraska # I'll add more to it later. import random # here is a giant body function I wonder if I could make this easier to deal with...

 
7:34 PM
c'mon captain, your being slow...
 
1
Q: Playing a game throughout the house

Vogel612Target I wrote this program in a few free hours when I was on an excursion as "youth leader". I had created a game to explore the house, with a 40-field mechanic, using dice for advancing and question-based setbacks. The dice and questions were managed outside the program. De-facto this was ju...

 
8:04 PM
@Vogel612 I'll probably write more, still reading, just wanted to "put my foot in the door" ;-)
 
0
Q: Custom Sorting a List of Objects Efficiently

user2284725NOTE: I'm using Python 2.7.6 I'm trying to make sorting of objects in my program as fast as possible. I know that sorting with a cmp function is deprecated in python 3.x and that using keys is faster, but I'm not sure how to get the same functionality without using a cmp function. Here's the def...

 
@janos umm... you do know threads get terminated when the main method returns??
 
running happily for me
 
wasn't so friendly for me...
 
as long as the Screen is up, main is running, and I don't see why it wouldn't
 
8:07 PM
... looks like it..
@janos The fields nicely contain 2-digit numbers on my laptop...
I'll add a screenshot ;)
 
no need, I believe you
just know that it might not be that way on all platforms
 
hmm... maybe I should've defined a standard font ...
 
do you know if it's costless to create a stream from an array?
 
8:25 PM
I have no idea tbh...
but it should be about the same as enhanced for-loop
or a bit more
and it's damn confusing to have 2 different computers running at the same time on the same desk
Welcome Back @EngieOP ...
 
Okay, I'll try.
Last time I tried cross-compiling for Windows I ded.
@Vogel612 TY. :)
 
CR is still quite slow. Everyone must still be tired from Halloween. :-)
 
@Vogel612 even in the screenshot you added, the text field looks too small for 2 digits
 
@janos if you say so ;)...
keep in mind the text-field is designed for values in the range of a dice
--> 1-6
 
didn't see that :)
I've been entering values like 23
(which works)
well, one more reason to make that pulldown
 
8:41 PM
Okay, this AI is pretty good... x_x
http://ultimatetictactoe.creativitygames.net/
 
@Vogel612 advancing by -1 is a valid move?
 
it's the setback for answering a question incorrectly
each time you hit a field you need to search a corresponding paper...
 
so I found a valid input that won't fit in the text field :)
 
T.T
I had hoped my questions were easy enough not to have to do this often, but,...
but it didn't work out T.T
 
9:13 PM
Monking again :)
 
Why is it that you say monking?
Instead of morning
 
@Gemtastic
14
A: What's a Zombie? And what are the many other memes of Code Review?

Vogel612Meme: Monking Originator: Morwenn Cultural Height: The 2nd Monitor Background: A morning greeting to the Monkey doing his monkey-business, in other words: monking Examples: A small chat search Variations: Monkernoon, Monkevening, Monknight, ... Important is only that it begins with Monk... ;...

 
Makes me think you've spent the night in celebacy or something and need to share it with a brother
@Vogel612 Ah
 
That's an old meme that I unfortunately originated.
 
Hehe
Well, it's fun to coin things like that
 
9:16 PM
And people have been saying "monking" ever since.
 
Monking in the morning, monking in the night. Monking with your coffe, monking it tight.
D:
He's fully functional and anatiomicaly correct~♪
 
ok @Vogel612 I'm done reviewing
 
@janos the fields-declaration ensures adequate capacity...
	private JPanel[] fields = new JPanel[FIELD_COUNT + 1];
 
that's far away from the snippet
if the snippet doesn't guarantee it, I have to read up in the implementation to verify it
 
point taken... Your formulation makes it sound like it's just waiting to break though...
then I'd have to document the +1 behavior for start...
I smell a follow up already..
 
9:31 PM
what +1 behavior for start?
 
the array size...
[FIELD_COUNT + 1]
 
I commented on some minor issues, but I wouldn't comment on that
 
0
Q: Reverse Nodes in k-Group

chmod766I am trying to solve a linked list programming question but not been able to clear all test cases. Here is the brief description of problem: Given a linked list, reverse the nodes of a linked list k at a time and return its modified list. If the number of nodes is not a multiple of k...

 
9:54 PM
Less than 3 weeks away from Constable. :-)
 
Welcome to CodeReview! Unfortunately code that doesn't fulfil requirements (in your case tests) is not considered ready for review, and thus off topic. You may find help on another cs/programming related stackexchange siteVogel612 10 mins ago
@Jamal editing and not closing that one??
 
I was waiting a bit, but I'll close it now.
 
hmm... kk
 
But usually I just close off-topic questions without editing them.
 
Hello again.
 
10:18 PM
Hey @Morwenn
C++11 , Qt5 :p
 
@EngieOP Oh, ok. God then :)
 
11:01 PM
It meant "Good" actually. Also, I have written an almst-meaningless review. Enjoy.
 
11:15 PM
@Morwenn Much appreciated! I didn't know about the new syntax, in fact almost everything I know about Qt pretty much comes from that one Programming with Qt4 book. ._.
 
@EngieOP I learnt about the new syntax a few hours ago.
Actually, I never liked the fact that Qt is not real C++ since it needs its own preprocessor. The signal/slot stuff has already been implemented in pure C++ in Boost, so I was wondering whether there were some improvements in Qt to be closer to C++-only.
So I looked whether there was any Qt5 alternative to SIGNAL/SLOT and finally found that connect had been improved :p
 
11:33 PM
Interesting, I'm still fairly new to Qt.
To me Qt Signals/Slots are awesome. lol
 
They represent an interesting way of linking functions. But actually, only the signals are special. The slots can be anything.
And for some reason - at least in Qt4, I don't know for Qt5 -, you must inherit a QObject in order to be able to use signals.
You can use Boost.Signals2 if you want to use signals in any project and without having to use Qt.
 
0
Q: Getting "neighbors" of a 2D Point

RyanI am trying to find an algorithm to find all the defined neighbors of a 2D point (efficiently would be nice, but does not make much of a difference). Here is my existing code: private static ArrayList<Point> getNeighborsOfPoint(int i, int j) { ArrayList<Point> neighbors = new ArrayList<P...

-1
Q: MVP on simple Windows Form Application

JosuaI'm building a Windows Form Application using MVP Design Pattern; the application is quite simple, it just calculates the sum of two number; So I have a form in which are located tree textbox: number1 number2 and result, plus a button to perform the action. interface ICalcView { string...

 

« first day (546 days earlier)      last day (3461 days later) »