« first day (1382 days earlier)      last day (2651 days later) » 

12:00 AM
RELOAD! There are 3457 unanswered questions (91.7100% answered)
 
12:33 AM
@DainIIIronfoot That looks good!
 
@CodingYoshi It's funny you should mention code reviews, as this issue was actually brought up during a code review. I was specifically asked to post a StackOverflow question to see if it is considered "appropriate" to use IValueConverters in this manor. — NuclearProgrammer 20 secs ago
 
0
Q: My linked list delete function in C

user130934Hi i really dont know what is wrong with my delete function. It should delete an elemen whose value is vl void deletee(ll* l,int vl) { node **k=&l->head; while(*k) { if((*k)->next->val==vl) (*k)->next=((*k)->next->next); k=&(*k)->next; } return; }

0
Q: An enigma style simulation machine in Python 3

LukeThis code made a few breaks back in my spare time. There are, however, a few alterations to the original machine that this simulation shows, one being the alphabet, another being the amount of rotors. from random import * import msvcrt import os from os import walk english = ['a','b','c','d','e'...

 
12:53 AM
You need to post it on code review. — CodingYoshi 31 secs ago
 
0
Q: Feedback on JavaScript psudocode for card game. Does this follow good coding practice or does it jump around too much?

Andre OI built an online card game last year. Initially I was proud of how tidy the code was, but recently I was thinking about how my code is almost entirely functions calling other functions. It would be great to get feedback from other developers - does my code follow good practices? If it isn't fol...

 
1:09 AM
0
Q: Using "Lookup Logic" in a WPF Converter (vs extra properties in "model" classes)

NuclearProgrammerThere seems to be a point of contention on my project team regarding what method should be used when trying to display something about an object that requires "lookup-logic". Namely, should their be a (lazy-loaded) property on the class being bound to (in my case a model object), or is it accepta...

0
Q: ask the user for the number of students he wants to enroll PLEASE CHECK MY program if correct ? thank you

The GameKillerpackage javaapplication1; import java.util.Scanner; public class JavaApplication1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("How many students do you want to enroll: "); int numOfStu = input.nextInt(); } }

 
2:00 AM
0
Q: StringBuilder in C

QPaysTaxesLots of languages have something that lets you build up a dynamically-sized string with minimal overhead. C doesn't, and I found myself using code that did that manually in a couple of places, so I packaged it into a class. Note that I've only implemented functionality I'm using. stringbuilder.h...

 
2:32 AM
0
Q: Query parser mongo

Noah WallaceWould anyone be willing to review this ts project for inefficiencies or other general problems. https://github.com/NoahWallace/mongoQueryParser

 
2:44 AM
0
Q: asking about php array group

zya.zackI have an array $data = array( array(1, "01/10/2017", "IN"), array(1, "01/10/2017", "OUT"), array(2, "01/11/2017", "IN"), array(2, "01/11/2017", "OUT") ); and i want the ouput like this $data = array( array(1,"01/10/2017", "IN","OUT") array(2,"01/11/201...

 
3:19 AM
0
Q: python pygame button function placement

fudgeI coded a pokemon game a while ago but it was spaghetti code so I decided to start over. It was all going well until I got around to my button functions. So my question is how would you implement the button functions? My old code was mainly in one file and used static class methods. I am using a...

 
3:31 AM
0
Q: Python a program that accepts a string as input, then prints out the vowels in that string and then prints the consonants in that string

WillIm trying to write a code in python so that when a word or phrase is inputted then it will output what letters are vowels and what are constants. def splitem(string): for letter in string: if letter.lower() in "aeiou": print "Vowels:", letter if not (letter.lower() in "aeiou"...

 
I'm voting to close this question as off-topic because questions about improving code that already works better belong on codereview.SE. See the guide for Stack Overflow users. — Shepmaster 53 secs ago
I believe that questions about improving code that already works better belong on codereview.SE. See the guide for Stack Overflow users. — Shepmaster 34 secs ago
 
3:47 AM
I think this is quite possibly the most evil program I have ever written...
maybe I should get it code reviewed heh
 
0
Q: Better way to transpose characters in a string in Rust?

MaxI want to create a function that takes a string and returns an array of versions of it in which always one pair of characters is transposed (swapped). I came up with this: fn transposes(s: &str) -> Vec<String> { let mut vec = vec![]; let b = s.as_bytes(); for i in 1..b.len() { ...

 
is 303 lines (including whitespace) evil...?
 
4:06 AM
@ThomasWard depends - are you Gargamel or the IT Clown
 
no.
 
Do you want to be?
 
I am the embodiment of pure Darkness and Chaos though... that counts for my evil and a lot of my personality sometimes heh
 
Then no, evil is 304 lines
 
actually
evil is COBOL
 
4:07 AM
Evil is VB6
 
no, actually, evil is coding in PURE ASSEMBLY WITH NO IDE
 
evil is our esoteric existence within a dimension fabricated by overlords whom can wipe our program at any time
 
@ThomasWard I wrote a boot loader like that once.
 
0
Q: LXC Bootstrap - A wrapper script around lxc utility scripts to create and set up an LXC container based on settings

Thomas WardSo some background here. I recently discovered the ease of LXC containers on Ubuntu. I've been building some 'test' containers locally for testing things I develop on Ubuntu, but the evil thing is that creating these containers then getting all the software I want in the container and everythin...

 
heh
oh hey my request for code review I just posted a short while ago cool
 
4:10 AM
The fact that my last request can go to bounty in 5 hours means ive been pulling some late nights...
 
heh
@CaptainObvious well, I've pulled almost an all nighter for a bulk of this, getting the structure/layout of functions/workflow design/etc. all thought out
then I wrote everything
still not 100% done, but at a point where it works and can be reviewed heh
 
yea I'm deploying my thesis to a live site tomorrow
and i hate how probably half of my code looks
there's no organization at all
 
I'm ordering a Raspberry Pi tonight.
 
@EBrown I have an unused RPi2 sitting here if you want it
you'll just need a microsd card for it
maybe I can send it to you xD
depending on where you exist
 
@ThomasWard I do want it lol
@ThomasWard Ohio, USA
:35420889 Yes and I've been in some of them for consecutive months. :)
 
4:23 AM
@EBrown hey you're in my neighbor-state. I'm in PA.
 
@ThomasWard No kidding? I'm on the absolute west side of it, but also the north-most.
 
yeah that won't be super pricey to ship, all you'll have to do is pay shipping and all is done.
literally cheaper than, what are RPis nowadays?
something in the realm of $50+?
(or half shipping)
 
@ThomasWard They're $35.
 
ah nice
 
For a RPi3
 
4:24 AM
well half shipping is about $10, i can just send this for free to you
 
Nah I'll cover shipping.
 
whoops brb I think the power for my network died, I hear the UPS beeping
stupid old apartment with old wiring
@EBrown drop an email at teward AT ubuntu DOT com with your ZIP code so I can calc. shipping.
or just share the ZIP :P
i"m in central PA when at University, but in Western PA (Pittsburgh) when not.
so, small world heh
 
@ThomasWard Shoot Pittsburgh is only ~5 hours from me.
 
add 4 to that to get to my location here in Harrisburg, PA, since I'm at University right now :P
 
Aha, that's still not bad. I'll email you here shortly.
 
4:29 AM
@EBrown I think we talked about this before but your up around Lima right?
 
@Trojan404 North of there like an hour or so IIRC
 
yea im cincy
 
@ThomasWard Email sent. Let me know when you've got it.
@Trojan404 Oh nice! That's only 4 hours from here as well lol
 
yep, got it
hang on
 
cleveland is 4 so it would make sense
 
4:37 AM
@EBrown You'd be looking at about $8 in total
probably cheaper than $35+shipping, even though it's an RPi 2
 
@ThomasWard That's fine, I'm going to get an RPi0 when I make the actual thing. Just need an RPi for prototyping right now.
@ThomasWard Oh man breaking the bank lol
 
:P
well that's the flat-rate + tax for USPS, so... :P
not bad :P
@EBrown i have to get the shipping supplies delivered first (I have a small set of packaging supplies coming in from USPS via mail the next few days), I'll try to get this out Friday, Monday at the latest.
If you don't mind the short wait :)
 
@ThomasWard Nah that's fine, much appreciated. :)
 
fun fact: it costs $0.00 for the USPS to send you shipping supplies.
Except for prestamped envelopes, and stamps, of course.
 
My mom works for USPS so I get them free. Lol
 
4:44 AM
so do I.
 
-1
Q: I can't figure out what's wrong with my trie impemenation in C#

user7560966I've spent a good chunk of today trying to implement a trie. I know I am close, but I am not counting the words on each branch correctly. I would really appreciate it if someone would look over my code and tell me what's wrong, or at least point me in the right direction. I am trying to add the...

 
Except I don't want to walk a mile in the cold right now so... :P
@EBrown drop me your address to ship to via the same email, so the same day the supplies arrive I can print off the shipping label and arrange a pickup. Once I get the shipping label paid I'll PayPal request for the shipping cost.
It wont' come with a microsd card, though, but those aren't expensive anyways.
 
@ThomasWard I have half a dozen of them.
 
even better :)
 
Yep. :)
 
4:50 AM
I think I actually took the SD card from the RPi and put it in my Galaxy Tab E, lol
funnily enough I also think it was a 64GB one
 
@ThomasWard I have them from 128MiB to 64GiB.
 
nice. I always ran 64GB but I had a deal for three of those for dirt cheap. Yay for Black Friday and Amazon/Newegg Cyber Week sales.
now that I have my multiple hypervisors, though, my RPi is totally outclassed and has been sitting on a shelf doing nothing xD
 
I need the RPi for some small, embedded-systems style work.
 
Bunch of us around the area apparently, I'm 2 hours west of Cincinnati, in Louisville
 
@EBrown i presume you don't need a wifi adapter?
(no extra cost if you do, I've got a surplus of em)
 
4:56 AM
@ThomasWard I actually do...lol
 
oh hey I found an old 8GB SD card xD
i wonder what's on it
wow, nothing is on this
 
A virus.
 
not even a partition table o.O
@DainIIIronfoot Wouldn't surprise me, but this was in the same little box of stuff that my RPi was sitting in on the shelf I mentioned xD
@EBrown I've got one of those plug-and-forget wireless N adapters from Edimax, works great on *nix
unless you're rolling BSD in which case good luck to you xD
 
@ThomasWard That would be perfect, gonna run Debian if I can.
 
even better, confirmed working on Debian Stable (a VM) and Ubuntu MATE 16.04 (the RPi itself heh), and Ubuntu 14.04 and 16.04 (my laptop when I needed an extra wifi adapter, but before I got my high-gain wifi adapter)
My RPi has a hard plastic case on it, too, if you need to take it off feel free to take it apart, a screwdriver to push in a tab is all you'll need heh
 
5:02 AM
Nah I need it in a case anyway. Gonna mount it to an electrical box at some point.
 
cool. It's not the standard RPI case, but it does have slots on the bottom for mounting, I forget where the mounting kit went though. Been that long that crap's moved around a lot heh
 
Do you have a power adapter as well?
 
yep included
 
Awesome! :)
 
RPi2 (in semi-clear case), Power Adapter, EDIMAX 150-N wifi plug-and-forget wifi adapter...
no SD card, but everything else is there
and lookit you didn't have to spend $35, and I get to get something off of my shelf after it's sat there for over a year :P
so allow me to apologize in advance for the little bit of dust :P
(just grab a can of compressed air, and give it a little burst :P)
 
5:07 AM
I have an industrial air compressor. Lol
 
lol
 
@ThomasWard Does it have GPIO pins?
 
@EBrown money request sent for PayPal, no rush
@EBrown yes
@EBrown 40 GPIO pins.
 
@ThomasWard Sweet. :)
Dude you're the best lol
 
nah i'm just being economical :P
why leave this sitting on a shelf if someone else can use it :P
@EBrown I'll just need the full address to ship to, so when you pay the PayPal request, you can drop me the address to send to, and I'll make up the shipping label.
And email you the details (thank you USPS Online for "Notify Recipient By Email Of SHipment" option)
 
5:12 AM
It's still much appreciated. Let me know if you need any random cables and such. I literally have 100 SATA cables, 10 USB headers, etc that just lay around. Lol
 
lol
I have a stockpile of crap lying around, from many system builds and teardowns
plus 10% of the university salvage of spare cables and crap that are up for grabs that'll be tossed at the end of the semester
so that's a ton of stuff xD
 
I order stuff in bulk just because it's usually cheaper. I have like 30 120mm fans laying around. Lol
 
i can always use ethernet cables, but i have them too. Actually, got a third of a 500m spool of Cat5e from the university for only $5, dirt freaking cheap when you work with them lol
 
I have a server-grade network card and SAS card in my desktop. Lol
 
lol
my two hypervisors, the one has two server-grade 4-port Intel Gigabit NIC cards in it. It's a converted workstation system, so with the embedded port that gives it 9 ethernet ports, all 10/100/1000
my one desktop that I use as a standalone debugger/Linux machine for some things like my laptop does as well, it has one of those cards too.
 
5:17 AM
If I give you a little extra cash can you get a USB thumb drive and download some ISO's for me?
 
@EBrown got specific ISOs you want?
and don't worry about paying for a thumb drive to be thrown in.
 
Yes. I have a list. My network is 3.5Mbps here so it's appreciated lol
 
@EBrown 200Mbps, 235Mbps down max rated with the cable modem I have even though I pay for 200Mbps.
on Daedalus crap'll be downloaded fast
feel free to send a list. If I don't have a flash drive big enough, I'll use one of these portable external hard disks I have lying around. Chances are I have a bunch of the ISOs on my NFS server though
so that'll make it even faster
(If I have to use a portable external hard drive, i'll add $5.00 because fragile fee is evil nowadays at USPS)
Chances are these 16GB sticks will work though :)
USPS flat rate mail is real nice heh
@EBrown lookit that, you get ISOs, an RPi2, with power and a wifi adapter and case, all for the price of flat-rate shipping (under $8) heh.
And greetings to you, @Phrancis
 
@ThomasWard Debian 8 AMD-64, ARM-64 and i386, Ubuntu Desktop 16.04LTS AMD-64 and i386, and CentOS 7 AMD-64 and i386.
Should be all I need.
@ThomasWard Very much appreciated. :)
 
I've got the Desktop images for Ubuntu already, Debian 8 amd64 is already here, arm64 is a .img and i386 is an .iso i'll download those, will have to download CentOS
@EBrown if you can wait to Thursday, 16.04.2 images come out with the updated HWE stack and kernel, otherwise I'll copy my 16.04.1 images in
 
5:28 AM
@ThomasWard Well if you're not mailing it until Friday anyway that works. :)
Also I would need Debian ARMHF for the Pi itself.
 
@EBrown Debian armhf I think I have lying around, not sure if there's an updated Raspbian that might work better though
OW, stupid hangnail
 
@ThomasWard If there is then that would be preferred.
 
brb
@EBrown I can grab both :P
and you can use whichever you wish.
there, hangnail shielded by a bandaid, so it'll leave me alone.
@EBrown don't be surprised if there's a bag of air in the envelope with the RPi, though, I don't like things rattling around in envelopes and I have some air bags leftover from an Amazon shipment that arrived recently, so I might use one or more of them for extra "don't shift around in here" padding :P
 
@ThomasWard Thats fine lol
@ThomasWard Can you also grab both Raspbian images? (With and without PIXEL)
 
@EBrown for the Debian images, I presume you want the Desktop Live ISO, not the 8x4GB DVD Repository Copy ISOs?
 
5:35 AM
@ThomasWard Correct. Lol
 
and yes I will, compiling the download list now and then gonna execute it
 
I only need CD 1.
 
OK
ah hm...
@EBrown CentOS only publishes amd64 images for CentOS7
at least on their download page for ISOs.
 
@ThomasWard That's fine, I don't even plan on using it on the i386 systems.
 
5:37 AM
I have an old Intel Pentium Pro Dual-CPU System I want to get running again.
Was planning on putting the i386 Debian or Ubuntu on it if I can hack it back together.
 
cool
give me a few minutes to compile the download list
i have to use jigdo for some (Debian), and standard wget for others heh
 
5:53 AM
@EBrown DVD images are being populated via jigdo templates currently for DVD1 of Debian 8, amd64, armhf, and i386. If it can't install for some reason when you use them let me know. I am downloading both the Raspbian images as well for the RPi.
CentOS is also downloading
Ubuntu I'll grab Thursday
 
Cool, very much appreciated! :)
 
CentOS DVD image*
hey what better way to use most of a ~30MB/s download speed :P
 
No kidding
 
it's averaging 15MB/s for the ISO downloads via wget, jigdo actually builds the DVDs from the packages and crap so...
that process will take longer than the wget
I assume by EOD tomorrow... erm, today (it's tuesday now in PA) it'll be done :P
@EBrown and since both sets of download/build tasks are running in screen sessions, I can just let them run
power outage will fubar the downloads, but those aren't common.
Except when I overload a breaker, and I turned off some equipment to prevent that.
ping me if I don't remember to status-update you in about 12 hours.
 
@ThomasWard Been Tuesday here for almost an hour. :)
:35421648 I saw that, +1 approved.
 
6:03 AM
@ThomasWard o/
 
6:18 AM
@ATaco now that song will be stuck in my head for hours -_-
 
0
Q: Check if Binary Search Tree

Tee SeeI wrote this entirely from scratch without any Googling/reading as part of an ongoing effort to improve my problem-solving skills. Please critique. Thank you! Also: Please note that the focus for my project was the problem solving steps rather than the code itself, which is why I have the commen...

 
@EBrown y'know what? I can still see that post :P
 
@ThomasWard I can too. ;)
 
@EBrown so, the jigdo processes are now being slowed down/ratelimited apparently by Debian's servers, either that or all my Ubuntu servers' security updates are being pushed down from Landscape to my servers
so it's running slower
but it's already up to the armhf image, so amd64/i386 I think are done?
maybe?
yep, amd64 and i386 are running now
and I am unzipping the Raspbian images from their respective ZIP files for you too
aren't I a nice guy :P
 
Heh :)
 
6:29 AM
no but seriously I have 4 physical cores (and 4 logical cores) to work with, I'm fine letting my desktop churn through these things
good news is that's a majority of the ISOs and images done :p
 
@ThomasWard I have 6 and 6. :)
 
bad news is we gotta wait to Thursday to finish :P
 
Intel Core i7 HT. :P
 
@EBrown my one hypervisor is 1x4-core Xeon, not a newer gen though
my second hypervisor is 2x4-core Xeon + hyperthreading
both hypervisors have 24GB DDR3 ECC Unbuffered RAM
 
@ThomasWard I have two servers here 2x4 core Xeon without HT IIRC. They only have 8GB of RAM each though.
Desktop is 32GB of RAM and 1x6 core with HT though.
 
6:31 AM
the one with the single Xeon is a converted workstation. The one with two 4-cores is sitting on top of an older server I took from my dad's old law firm, and is just parts, but is pretty decent
my next system is going to be 2 x 8-core Xeons with HT, and 128GB RAM
about $1800, but we're talking workstation/server-grade hardware and specs
 
Yeah. I have a server in North Carolina that is 8-core + HT, 36GB of RAM.
 
I have an older either 3U or 5U Dell Poweredge sitting in a box at my parents house heh
I should sell it online and have the buyer pay out the wazoo for shipping
'cause that thing weighs a ton
eesh, raspbian image is 4.1GB, raspbian-lite is 1.3GB...
 
@ThomasWard I'll buy it for the case and pick it up lol
 
heh
once i'm home over the summer i'll make sure it still boots. The downside is I think the top panel is missing, the one that'd cover the top, but eh
(the damn thing was rackmounted lol, but i think the datacenter lost parts, they paid me enough to buy a new top-panel but Dell didn't have any heh)
 
@ThomasWard That's fine, I can build a panel for it.
 
6:35 AM
@EBrown so, I might have to throw two flash drives in here.
 
I have most of a simple fabrication shop in my garage.
 
we're already at projected 17GB
 
@ThomasWard That's fine, I can send you more if you like for the drives.
 
I probably have a few crap 8GB ones if I bother looking around
It's amazing what crap I find in my backpack lol
i'll start looking Thursday
i probably have enough spare sticks to find extra ones
seriously, I have an entire box filled with USB sticks in various sizes somewhere
and it's not a small box either
 
@ThomasWard ^^ That's my rig
The SAS card is below the top GFX card, the network card is below the bottom GFX card.
The cable management was a lot nicer before I put that damn SAS card in there.
Which was an emergency addition.
 
6:44 AM
heh
nice, though, that's got some power
 
Oh yeah, it's a tank.
I have a 27" iMac that sits right next to it on my desk.
I don't have any non-incriminating pictures of it around. Lol
 
Can't wait till I build my new rig. But first a new home, got to set some priorities.
Also, monking.
 
Monking @Mast. :)
Did you find that site, by the way?
 
Crap, I promised you some sensors.
 
Yes you did. :P
If you don't have them it's no problem.
I won't have an RPi to put them on until next week anyway.
Fortunately our friendly Ask Ubuntu mod @ThomasWard has offered to ship me his unused RPi2B.
 
6:52 AM
Haha.
 
@EBrown s/SO mod/Ask Ubuntu mod/
 
^^
Anyway, basically, get yourself some I2C sensors. Those are definitely the way to go with the RPi and come relatively cheap.
 
@ThomasWard PayPal money sent, with address. :)
 
When in doubt, you can even build them cheaply yourself using a what, MCP23017? 023? I keep forgetting which it is.
 
Monking
 
6:53 AM
Anyway, a GPIO expander using I2C.
Monking @Zeta
 
@Mast I have a box of IC's, I wonder if it's in there.
 
Remember you only need the numbers, the MCP is just the party who started producing them (Microchip in this case).
If you can find a TI23017 or whatever, same thing.
 
@Mast All my crap is TI
 
@EBrown got it, thanks. I think Comcast shut my net off, I have to check...
in which case that will be evil
 
@Mast I lied, it's motorola.
 
6:56 AM
@CaptainObvious By the way, what's the modus operandi on questions like that? To the best knowledge of that user, the code was fine. However, it was actually wrong. Still on-topic for CR? After all, one of the points of Code Review is to find those corner cases the developer didn't think of.
 
@Zeta Depends on the severity of the bug.
Corner cases not working is acceptable.
 
Actually I have TI, Motorola and a third brand.
 
Even if they should've been blatantly obvious.
 
I have a box of 555 timers...lol
@Mast Need any 68 ohm resistors? I have a box of them too
 
@Zeta For instance, I got an extremely stupid bug in this question. But it worked for all the other 3995 cases.
 
6:58 AM
Almost 1000 of them.
 
@EBrown Which makes the entire box almost worth 10 bucks.
 
@Mast Yep lol
I have a box of Red LED's, and a box if Yellow LED's.
 
Depending on the tolerance, by the way. 1% are twice as expensive or so as 5%.
 
@Mast The last stripe is gold
 
actually, it's working fine
but not for my laptop
 
6:59 AM
@EBrown With all the crap you've got laying around, you should get yourself that expander I linked you. DIY sensors.
 
maybe my laptop needs a reboot
or i'm eating all the bandwidth via jigdo :P
 

« first day (1382 days earlier)      last day (2651 days later) »