« first day (1099 days earlier)      last day (3216 days later) » 
00:00 - 16:0016:00 - 00:00

16:08
0
Q: NEW TO OOP ERROR - Object of Class Could Not Be Converted To String

Timothy CoetzeeI am completely new to OOP anyone know why I am getting this error on the following code: class Movie{ public $title; public $director; public $cost; public $actor; function __construct($title, $director, $cost){ $this->title=$title; $this->title=$dir...

@CaptainObvious Borked, VTC.
Also,
@CaptainObvious RBA
Zak
Zak
16:33
Woo. I just created my first database ^^
That said. Microsoft. Your help, documentation and readmes are awful.
@Zak What ones are you reading?
Zak
Zak
The readmes on the download/installation pages. Followed by whatever I could find by googling "How to ..."
16:53
Yea, those are generally awful.
@Zak What did you pick?
Zak
Zak
@Mast For now, it's Microsoft SQL Server 2014
@Zak Which edition?
@EBrown There's more than 1 per year?
enterprise, web, etc
@Mast Sorta. There's "Express", "Standard", "Enterprise", etc.
17:01
there are different grades
if you have the free version you probably have sql server express
Of-course, what else did I expect from Microsoft...
Zak
Zak
It's Express. No way am I going to start shelling out money just so I can be locked into the Microsoft ecosystem.
try postgres
So I'm playing with Docker + .NET Core
is going.. interestingly
uh, lol
I don't know what I expected, but 3500 errors definitely wasn't it
Postgres is quite nice, takes some getting used to though.
@DanPantry Probably a missing include, or something equally important.
> missing an include
> System.Int32 is not defined
I mean
You're not wrong :D
17:12
:P
The more errors you get, the easier finding the cause is.
0
Q: Regex to obtain float values from a large text file

keshkI am reading a text file and obtaining certain data from the file. The following line is repeated over a million times in the file where the £ values may differ each time. Start Game, Credit: £200.00game num: 1, Stake: £2.00Spinning Reels:NINE SEVEN KINGKING STAR ACEQUEEN JACK KINGtotal ...

ah, that's why
Apparently .NET Core does not support System.Data
System.Net.Mail. There is currently no support for sending emails from .NET Core using these APIs.
Ah, crap.
We use that, too.
@DanPantry You're migrating something?
.NET Core, is that .NET light?
I just want to try Docker with .NET, but apparently it's going to take a bit more work than I anticipated.
uh, sort of, it's basically .NET for Not-Windows
Of-course they half-assed it...
17:23
so
here's the migration guide for our project
the tldr is everything is broken, apparently
interestingly it's claiming our main services program is only 80% compatible with standard .net framework lol
you know your code is bad when it's only 82% compatible for the platform it was written on!
> Sorry, We could not process your request !
;)
@Mast welp
@rob0t Quill, is that you?
@Mast Life is the condition that distinguishes organisms from inorganic matter, including the capacity for growth, reproduction, functional activity, and continual change preceding death.
17:34
Definitely @Quill.
Or syb0rg.
> This is the half-robot side of syb0rg. I do not vote on my half-human side's posts.
That description kinda gives it away...
But no, rob0t is running himself right now
@syb0rg Could I borrow a cup of sugar?
And he's quite random...
17:40
a cup of sugar?
that's a lot of sugar
@DanPantry He's still in the developmental stages ;)
@rob0t I'll borrow you one, come and get it.
I still got 1.5kg around from my last experiment.
0
Q: Write a small archiving program that stores students' names along with the grade that they are in

CodeYogiProblem: Write a small archiving program that stores students' names along with the grade that they are in. In the end, you should be able to: Add a student's name to the roster for a grade. Get a list of all students enrolled in a grade. Get a sorted list of all students i...

0
Q: Performance of critical function

Michiel Uit Het BroekI have finished the first part of my project, i.e., getting a full working program. However, the performance is not too impressive. The function expectedCosts(state const &S) took around 96% of the total running time, so any performance increase in this function might be worthwhile. For profili...

0
Q: Hunt n' Kill algorithm JavaScript

Bálintlast day I implemented the Hunt and Kill algorithm in JavaScript, using HTML5 without any libraries. I would like my code to be reviewed. function HuntnKill(size) { this.size = size; this.grid = []; for (var x = 0; x < this.size; x++) { this.grid[x] = []; for (var...

18:01
0
Q: Theano code for 2-layer neural net for mnist

userI have written the following code. I did not attach the data, but it is the standard mnist in csv format. I am getting around 92% accuracy. I know there is no momentum that may be improving accuracy, but still, it seem way too low, I would expect at least a 95%. What can be improved? import pan...

18:11
@rob0t Can I borrow your borrowed cup of sugar?
@DanieleC sea.substring(p, p).equals("x"); is not doing anything, you are not updating sea. Should be sea = sea.substring.... Anyway this is not a place for code review. It is for asking specific questions and I've done much more than what I supposed to.... — user3437460 17 secs ago
18:36
Well, I finished migrating the project to ASP Core1.0
None of it works, mind you, but it compiles. that's a start.
Yes, yes and yes (don't use clone, ever, I doubt your attack class implements it reasonably). Also this would really be better at code review, but the general idea is sound. — Voo 30 secs ago
18:54
0
Q: Unsure about where to start python probability

joelittlejohns4I am trying to code a script for the site CSGODOUBLE.com. It is basically a roulette site for csgo skins. I have a basic vision of what I want and have made a start but am a bit unsure on some of the maths around it and would just really like a third set of eyes to try and solve my creative block...

@DanPantry Cool.
I can't seem to get the DI working with unity, though. Might have to try out AutoFac, that seems to have working examples.
I used Unity in Learn OneNote.
Want to take a look at what I had?
That works, but I have to say it is pretty ugly.
It could probably be done better.
Ouch
better than xml config tho
I'm pretty sure it can be done better. I haven't worked with Unity since I wrote that.
19:08
            var container = new UnityContainer();
            var locator = new UnityServiceLocator(container);
            // FIXME: HttpContext.Current doesn't exist
            //container.RegisterType<IPrincipal>(new InjectionFactory(c => HttpContext.Current.User));
            //container.RegisterType<IAuthenticationManager>(new InjectionFactory(c => HttpContext.Current.GetOwinContext().Authentication));
            // FIXME: XML loading is broken (we should probably use In-code configuration anyway)
I have this very dirty hack atm. I'm pretty sure its causing a stack overflow because IIS crashes immediately, lol
This is no code review site. If your code works, try our sister site. — Olaf 16 secs ago
It's a gorgeous day out, but I can't be out in it :(
20:41
You can put it on code review. What do you want to do better? Your code works. I tried playing for scores 10 and then 1. I measured with Valgrind and there were no memory leaks or alignment errors reported. I don't play poker so I don't know what "playing for a score" means. But I know that the code isn't broken. — Programmer 400 18 secs ago
0
Q: RAM Overhead on a compression program

thexivIn a program, the one below is attempting to codify into a translation of another file. The output is severely condensed. If it works, and I get it to decompress, then it will win award after award. However, in the first I must make accommodations for computers with smaller memory. One file of 3...

0
Q: Check if registered then unregister or simply unregister

J_StrautonI am trying to figure out which of these two calls are more efficient: Check if listener is registered before calling unregister. if(EventBus.getDefault().isRegistered(this)) { EventBus.getDefault().unregister(this); } Or calling unregister without the check. EventBus.getDefault().unreg...

21:11
@DanPantry I don't operate bots in main
21:28
@CaptainObvious Sounds awesome, give the new user some upvotes.
0
Q: lexicographic rank of a string with duplicates

Cyclotron3x3 Given a string, find its rank among all its permutations sorted lexicographically. For example, rank of “abc” is 1, rank of “acb” is 2, and rank of “cba” is 6. Assuming there can be duplicate characters. MyCode: public class Solution { public int findRank(String A) { int n = A.length(...

21:48
0
Q: What is the best way to set up a secure login system?

loginsystemThis isn't going to be as much of a code review as it is a process review. I'm trying to design a login process that is efficient and secure, and what I've come up with seems like it has a lot of room for improvement in both categories. For reference, I am using PHP as my backend, even though I...

0
Q: python3: time exceed error while solving prime generator problem in spoj

FreddyI am trying to solve spoj problem. no_of_cases = int(input()) for i in range(no_of_cases): x = input().split(" ") a = x[0] b = x[1] lis = [1] for i in range(int(a),int(b)+1): for x in range(2,i): if i%x ==0: lis.append(i) ...

22:24
0
Q: small poker program in C, needs improving

NergalI made a small poker program with C but I believe I could've wrote it better. the src -> https://bitbucket.org/assyrian/c-small-poker-program/src

As the others mention, you should instead post this on codereview.stackexchange.comWarren Sergent - spakatak.com 48 secs ago
23:02
0
Q: Simple class to let a thread make a clean work

YesICanCSharpI was working on the last days with threads and I didn't want to use ugly methods like Abort(), etc. So I did a simple class which does use one of the most performant and better alternative to Abort(). The class is named as CThread.cs which would stand for CleanThread.cs. Class code: using Sys...

23:19
The script is certainly far too big to post here. But it does shine out as a desperate cry for help. Please repost on code review.stackexchange.com to get some pointers. One of the standout howlers is using exec('wget....') To perform a HTTP fetch. See lampe2e.blogspot.co.uk/2015/03/…symcbean 15 secs ago
23:49
0
Q: UWP client App is not able to communicate to .Net Server using TCP socket programming

HariI am using socket programming to communicate the messages from client to server and vice versa. My client application is UWP app where as server is normal .Net application. The issue is StreamSocket.connectAsync (From UWP App) method which I am using to connect to TCP Server is not responding and...

00:00 - 16:0016:00 - 00:00

« first day (1099 days earlier)      last day (3216 days later) »