« first day (1266 days earlier)      last day (1140 days later) » 

12:00 AM
RELOAD! There are 2894 unanswered questions (92.4921% answered)
 
 
1 hour later…
1:06 AM
0
Q: For loop to compare a date I am looking for with a trending hashtag date

MHorvI am trying to write a for-loop in Python that will compare a date with the date of a trending hashtag. If the dates match, the code will return the hashtag. I am VERY new at coding and am not sure how to: define path since it is just a generic path at this point. define want_date since it cann...

 
this is probably more appropriate at codereview.stackoverflow.com — Joe 31 secs ago
I would recommend posting your question to codereview.stackexchange.com, since it was made for these types of questions. — Maikflow 52 secs ago
 
2:08 AM
Do you have a question, or are you just looking for general code review? There's a separate site for code review: codereview.stackexchange.comPMV 56 secs ago
 
0
Q: Heap Sort from Intro to Algorithms in C++ Implementation using Vectors

SherdI have been working on Heap Sort Functions in C++ that follows the logic from our class book, Intro to Algorithms 3rd edition and am not getting the desired output. Have been working through this in my head and am close, but I am not seeing my error. I am using vectors and have omitted the code...

 
2:28 AM
0
Q: Determining a value given the coordinates for numbers arranged in a triangular fashion

Karthic RaghupathiNumbers are being stacked in the following manner: 7 4 8 2 5 9 1 3 6 10 The x-axis is horizontal and the y-axis is vertical. With that in mind, here are a few examples of the values and their coordinates: 2, 3 (coordinate) ==> 8 (value) 2, 2 (coordinate) ==> 5 (value) I need to write a fun...

0
Q: For-Loop to compare date I am looking for and date of trending hashtag

MHorvI am trying to write a for-loop in Python that will compare a date with the date of a trending hashtag. If the dates match, the code will return the hashtag. I am VERY new at coding and cannot tell if this code works correctly or not when I try to run it. def readtrends(path, date): """ ...

 
 
2 hours later…
4:23 AM
0
Q: x86 assembly change case of first letter of string

DeeI am new to learning assembly language for x86 processors and I can't figure out how to change the case of the first letter in a string and print it. Here's what I have so far. .data greeting byte "hello", 0 .code main PROC mov eax, OFFSET greeting sub eax, 20h exit main ENDP END main

 
WEEKEND TIME
(for me)
 
Monking
Programmers.se is gone long live softwareengineering.se
12
37
Q: It's official! This site is now Software Engineering Stack Exchange

enderlandAwww yeah. WOoooooooOOOOoooOOOOOoooT! PARTY TIME. Check out that domain name and logo! Thanks Stack Exchange :-) If you see any problems anywhere, please leave an answer to this question so we can track them.

 
4:42 AM
@Heslacher uh oh
That seems like a bad idea, imo
 
Ooooohhh I like that!!
 
No, its a good idea. They shaped their scope and made a complete new make up. Until now everybody who read "oh, programmers" thought that this would be the place to post each programming question´ how off topic they would be didn't matter.
 
Actually wait. Imo it looks and feels better, so yea, nice.
@Heslacher yeah Ikno, my biggest concern was/is same with any name change: seo issues and slight user loss due to that
 
Happy to see them have a fresh(ish) start, it's sad that the site had become kind of stale, but I can kind of see why
Honestly I'd like to see more cross-pollination between CR and SE Software Engineering
Damn, they have the same acronym as Stack Exchange :\
 
5:43 AM
Monking! :)
Can anyone tell me, what will happens, when a static synchronized method is called from 2 different threads in Java?
Does it blocks the second call to wait till first one finishes?
Because here the static members aren't bound to instances, rather to the class
any inputs from any of you will be appreaciated :)
 
posted on October 21, 2016 by dserres

I've written this program that, renders a circle in the middle of the screen. It's been written in a very elementary way. Any suggestions on principles or techniques? Or any more optimal or efficient ways of drawing circles in C? I'm using SDL2 (Simple Direct Media Library) and GCC to compile. #include "SDL.h" #include <math.h> #include <stdio.h> #d

 
6:21 AM
0
Q: Using Nolock under TransactionScope ReadCommitted/ReadUnCommitted for adding in Cache in C#

Jatin GandhiAccidently we used 'nolock' under 'TransactionScope ReadCommitted/ReadUnCommitted' while fetching data from database and adding it into Cache in C#, which resulted into an error - when key is fetched from the cache, it says key exists but its value comes out to be null sometimes and not always. A...

 
 
1 hour later…
7:27 AM
Maybe ask code reviewers about general documentation techniques? — Teemu 56 secs ago
 
0
Q: Suggestions and critiques needed for Code Improvement and Optimization

Aftab AhmedI have written some code for mapping excel columns to table columns and processing data after mapping columns. Please review this code, check for SOLID, OOP principles and suggest any improvements and optimizations. Any critiques, suggestions or comments are warmly welcomed. API Action Method t...

 
0
Q: Calculate the weekly pay

Gerald LooThe problem for ne here is that I keep getting Exception in thread "main" java.util.InputMismatchException The first few parts work alright but it doesn't really work until the end. import java.util.Scanner;//program needs scaanner import java.text.DecimalFormat; public class Commission2 { p...

 
8:00 AM
Tumbleweed candidate; zero score, no answers, no comments, and low views: libconfini (shared library)
 
0
Q: X86_64 implementation of STRLEN using NASM

Shift_LeftAs this will eventually become part of an operating system I'm developing, there is no specific adherence to any particular ABI, eventhough this is being developed and tested on Ubuntu 16.04. My OS will however adopt a SYSTEM V paradigm insomuch as passing values by register, but they will be pas...

 
It's a shame, and I don't like it, but MATLAB and Octave are not interchangeable @rolfl. codereview.stackexchange.com/a/144639/109032
 
0
Q: C# Separating main code into classes

AmateurHBSo, I have an assignment due in a couple days where I need to create a card game. I chose to do a memory game and I'm nearly completed however I have fucked up and need help. I have everything inside of the main form however I found out that I need to create classes for the card and the deck. I...

 
8:20 AM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: PageVisibility API, to handle page/tab visibility changes
 
 
1 hour later…
9:23 AM
Monking
 
0
Q: Dijkstra's Algorithm not optimized enough

ambikeya sangwanI was attempting a question on HackerRank-Dijkstra's Shortest Reach 2 and upon submission my programs times out in 3/7 test cases. One of the test cases had 200 nodes and about 2000 connections. Here is my code- import java.util.Comparator; import java.util.PriorityQueue; import java.util....

 
9:45 AM
@DanPantry Howdy!
 
If this code is working correctly, but you want to improve it, codereview.stackexchange.com might be a more suitable site for your question. — Hulk 6 secs ago
 
10:00 AM
0
Q: Refactoring a binary search tree addition to a more C-ish way

AdHominemI am in the process of refactoring this simple binary search tree code responsible for adding new values: void add_internal(Node *root, int value) { // Decide whether to insert left or right if (root->value >= value) { // Decide whether to insert here or down the subtree ...

 
Monking
 
hi
I guess you have much knowledge on Java 8
aren't you? @Vogel612
 
Yea I do......
if you want to call what I know "much"
it's mostly trivia..
 
I believe my level of knowledge on this is much lower comparatively with yours :D
 
Since your code is working, this is a question for code review anyway. — UKMonkey 22 secs ago
 
10:13 AM
1
Q: Static context cannot access non-static in Collectors

JudeI have group of students. First I want to group them by the marks. Then I want to further group those sets into same name students together. Map<Integer,Map<String,List<String>>> groupping = students.stream() .collect(Collectors.grouping...

@Vogel612
 
that has nothing to do with java 8 from the title
 
yeah, but the content is with java 8
 
actually it seems it does have to do with it ...
unrelated to that though...
 
would you provide an answer for it
?
 
23 hours ago, by Vogel612
@user5348fh8y5 this room is not a help room. This room is intended only for matters pertaining to Code Review. Don't ask for help with posts on stackoverflow in here. Thanks
3
 
10:16 AM
ohh okay
 
This isn't really the place for such a question as your code is working. What you want is a code review please repost there. — UKMonkey 48 secs ago
I'm voting to close this question as off-topic because this Kind of questions should be asked at codereview.stackexchange.comJens 16 secs ago
 
0
Q: 1 player pong working

L.DavisI have made this pong game as a 1 player game, versus the computer. however it is impossible to beat the ai. Any ideas to make the code better would be appreciated. import pygame from pygame.locals import * pointcounter = 0 class Pong(object): def __init__(self, screensize): self.sc...

 
10:46 AM
Hey guys, not sure this should be at -4. Am I missing something?
-3
Q: C# Separating main code into classes

AmateurHBSo, I have an assignment due in a couple days where I need to create a card game. I chose to do a memory game and I'm nearly completed however I'm completely stuck and not sure how to move all of the methods or functions into classes. Shuffle, cardFlip etc I'm wanting in classes but not sure on ...

 
assignment due in the future
also bad title
the first could be interpreted as cheating
 
And that makes it a bad question? Is that different from having a friend check your work?
The title, ok.
 
FWIW Ididn't vote,,,
 
Fair enough. Just noticed it and thought it worth bringing up. I attempted to fix the title.
Gtg. Happy Friday everyone!
 
@RubberDuck IMO it's not programmed as OP intends, but isn't bad enough to VTC.
 
11:03 AM
0
Q: How to fixed the sized of the sub region(table) in the oracle appliction

Nirmolendu SinghaI have a web pages, and have a sections where it displays exactly like when we retrieve any thing from database (eg. few columns and rows). and I want my layout of the particular section should be maximized every time. what am facing is if the value in the column are short the form get shrink, a...

 
hrngh ... why does Java not have something like a Timestamp that's not a Date in disguise?
well whatever
 
0
Q: DatabaseHelper with multiple tables

Schwesi I am programming my first android app. It is going to be a quiz. It will have 40 different categories of questions and for each category I am going to have a SQLite Table, which holds the questions for that category. I have a working DatabaseHelper for the first 2 tables. If I keep going like t...

 
11:20 AM
@CaptainObvious 2 VTC's please
 
possible answer invalidation by mdfst13 on question by ambikeya sangwan: codereview.stackexchange.com/posts/144864/revisions
 
0
Q: Dynamic allocation instead static in CUDA

DanielI've got the code where I allocate statically four vectors, I'd like to allocate memory dynamically in advance by providing pre-allocated pointers into the kernel. Can anyone help me with that please? In the future those vectors should become quite large when I start working with volumetric data,...

 
11:45 AM
0
Q: Copy and paste based on a date range of non contiguous data using intersect

Ivo OliveiraI am using the following code to copy a range of non-contiguous data from different columns based on a date range. At the same time I want this data to be pasted into non-contiguous columns that match the date range. I hope this explains a little bit. Basically, I have all the data in both sheets...

0
Q: upload an image to folder through form - performance, security

USer345738380i am using this code to upload an image, please review code and give your feedback regarding performance, security, quality.... this code working in pdo project also <!DOCTYPE html> <html lang="en"> <meta charset="UTF-8"> <form action="" method="post" enctype="multipart/form-data"> <h2>Upl...

 
12:03 PM
Greetings, Programs.
 
@Donald.McLean Monking
 
12:20 PM
Monking
 
monking
how come I get no upvotes on my selfie?
 
Too broad is a reason to close a question, we don't like broad questions! I suggest you post it in CodeReview. Your solver is OK. It will fail in the places where the Newton solver fails, but you can check wikipedia for that — Ander Biguri 30 secs ago
 
@Malachi I think it's safe to say that nobody upvoted it then
 
it is not a good answer? --> codereview.stackexchange.com/a/144811/18427
 
To be fair, there's lots of answers and yours is at the bottom, I don't see much reason people would even look at it
I personally read the top two or three answers of a question, but it's rare that I read all of them
 
12:35 PM
I should be getting more upvotes on my answer to the original question, I personally think that my answer is better than the others --> codereview.stackexchange.com/a/144692/18427
@skiwi I usually scroll down a bit farther to see if someone has a newer better answer, a habit I have picked up from SO
 
@Malachi I believe 99.99% people don't understand any answer that goes beyond the basic stuff, if you look at the upvotes then the most trivial questions and answers about naming conventions and parameter checking recieve the most votes
 
0
Q: filled data structure with unique objects that does not have same member variables

sampratI have in-house template like QList which creates a list of all objects of say Book. Now this list contains many objects of book. Book has member variable called BookTitle and in some cases objects have same value for BookTitle. Now I am thinking of writing a function which contains objects ...

 
I find there should be bonus for answering non-naming-convention questions and some kind of a level of the question where +1 isn't worth just 10 but maybe 15 or 20 or even 30 rep
 
12:59 PM
@t3chb0t that is sad. I try to look for the answers that go a little beyond my understanding hoping that I will learn something
@t3chb0t bounties
 
I'm voting to close this question as off-topic because it belongs on the Code Review Stack Exchange. — Kevin Workman 20 secs ago
 
1:26 PM
0
Q: Refactoring to use generics

ThaodenI hope I'm in the right stack here. If not, please move accordingly. In my current .Net Core project, I want to inject two services into my controllers for dependency injection. I wrote the following extension methods: public static class IServiceCollectionExtensions { public static void Co...

 
1:38 PM
0
Q: Tic Tac Toe against Al

HeshamyI'm working on a project that has an option to playing against Al, so I started to make it in a separate class and just extended the main class which has an object of a GUI class which draws the buttons and frames. My algorithm works as follows: Once a button is clicked: Set the text to "X" C...

0
Q: Issue with Classes

blusti'm working on an assessment and i've had to create my own classes based on UMLs. Within a specific class it is registering a variable for an event (also another class). I've created all of the classes as i'm meant to but, I'm trying to work out away for it not to register the same variable twi...

 
My question has 10 times the views the original question has...I almost feel bad
 
1:58 PM
Code Review is the best place for this question. Otherwise, your code does solve Newton's Method correctly. There are obvious cases where Newton's Method will fail and that is inescapable for any implementation of the algorithm. — rayryeng 52 secs ago
Seems reasonable enough. I would just generate the deck with a simple list comprehension and then sample from it in a separate line. Since this code works, it probably belongs at code review rather than here. — John Coleman 54 secs ago
Don't worry about it. I'd much rather see readable code in the wrong place than unreadable code in the right place. Here is the link to code review: codereview.stackexchange.com A final remark: you probably want flop = random_cards[4:7] rather than flop = [random_cards[4:7]. A slice is already a list, do you really want a list inside a list? — John Coleman 36 secs ago
 
2:43 PM
0
Q: Can someone make this C# code more efficient

FrankMy code works but I don't believe its the most efficient way of doing it. I'm still learning. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using static System.Console; namespace GroupProject_MidTerm_ { class Program { s...

 
3:06 PM
CK: Please note that this doesn't mean your question is bad, just that you'll find better answers over at Code Review. Good luck! — Kevin Workman 40 secs ago
 
My desk & monitors are shaking due to construction going on over the road.
 
that must be a headache to work wtih heh
 
0
Q: Learning Android: "Photo Sales App" exercise as homework, and processing multiple checkbox "isChecked" values

Thomas WardSo, I've done this assignment here for my android programming course I'm taking. The exercise requirements were to create a single-activity interface for selecting a 'photo package' to purchase, and to select the payment method, and then display a short summary of the information (subtotal, sale...

 
hey that's my post! :)
4
 
3:34 PM
0
Q: First time Coding a basic ECS using SFML - Thoughts?

Kaylorsso I've delved into cpp recently (around two weeks) and have been playing around with the SFML library. I've read up a bit about the EntityComponentSystem way of doing things and thought I'd implement one while also learning about the sfml library a bit. I'm basically looking for a code-review. ...

 
3:46 PM
1
Q: Object-oriented Brainfuck interpreter

Rainer P.Inspired by this question, I decided to give it a try and implemented a brainfuck interpreter myself. It includes various improvements: It's object-oriented and modular Unlimited tape size It includes a call stack (no seeking for opening parenthesis) It allows stepping and debugging It throws e...

 
@CaptainObvious is there anyone around that could Help @Frank if I invited him here?
 
I reopened it (what an edit!), but the post still needs a title
 
4:13 PM
0
Q: Efficient solution to Project Euler 14 (Longest Collatz sequence)

VermillionThis is an iterative review. I asked for reviews on a Collatz sequence generator here. I tried to address all of the suggestions that were made. I've added a new function get_longest_collatz(n), which can be used to solve Project Euler problem 14 (the question states: which number under a millio...

 
4:53 PM
@t3chb0t You can still answer those questions thoroughly.
The basics are important though.
 
@t3chb0t Why? Generally, if the question is a tougher answer, other users will notice that and you'll likely attract more up votes.
 
If code is unreadable, people are less likely to provide a review of algoritmic nature.
 
Id post this on dba.stackexchange.com and codereview.stackexchange.com though you may find helpful answers here too. — scsimon 32 secs ago
 
Fix the style first so we can actually see what's going on.
Too much code still looks like crap regardless of actual content.
 
5:33 PM
posted on October 21, 2016 by CommitStrip

4
 
@CommitStrip LMAO
 
5:59 PM
hahahah
 
6:09 PM
You can actually buy that poster lol
 
6:25 PM
You may want to move this to the code review site — MisterPositive 1 min ago
 
6:35 PM
possible answer invalidation by 200_success on question by Emmilia: codereview.stackexchange.com/posts/119646/revisions
 
To me this is like asking why don't toasters accept Ice cream. — HLGEM Mar 21 '13 at 21:30
 
@Phrancis Because the dev wrote input validation
 
Correct
 
6:52 PM
Could you please give more details of what you are trying to do; stackoverflow isn't for code review. I take it you're trying to do something related to an android app, but you need to provide better context. — jhaagsma 57 secs ago
 
7:02 PM
"momentarily" wat
 
> You've earned the "Tenacious" badge (Zero score accepted answers: more than 5 and 20% of total).
on SO?
someone just downvoted one of my PHP answers that was accepted.....
 
Was there ever a Meta consensus about how much code is too much for one post?
'cause I have about 600 lines of code that all depends on other code pretty heavily, but that feels like a lot
 
as long as it fits the ~65K character limit and your post is nicely formatted, there shouldn't be any issues.
 
...TIL it's not 30k
 
7:17 PM
-1
Q: scala empty future

Gastón SchabasI'm a bit new in concurrent programming. I have the following issue. In the first function it works ok but I think it's not so good that else with empty Future. In the second one, it works ok too, but I'm not sure about using Await there. The last one, doesn't work beacause when I invoke funtion(...

 
it's 30K on SO ;-)
 
Oh, that explains it
It's weird. After more than a year of not contributing more than occasionally, my rep here is still higher than my SO rep
 
@QPaysTaxes We eat 600 lines of code for breakfast.
6
Long time no see in chat btw, @QPaysTaxes
 
@SimonForsberg Yeah, I've been busy lately
When was I last in here? End of last summer-ish? Longer ago?
 
July/August '15
 
7:26 PM
So, yeah, end of last summer
Summer hasn't ended here, yet
So yeah, I've been busy with becoming a ski patroller, graduating high school, getting EMT-trained and waiting on certification, starting college, getting my driver's license, and writing my own programming language, after like six months of talking about it and failing
Also, magically transforming into a unicorn! My profile picture is a picture someone took of me before I could stop them
 
@QPaysTaxes Sounds like progress!
 
@SimonForsberg Progress, yep
Not much more
 
Probably better posted on codereview.stackexchange.com but Object.keys(Object.assign({}, ...all)) is one option. — squint 1 min ago
 
Alright, I've gotta go catch a bus
 
@SimonForsberg have you implemented an AST for BrainDuck?
 
7:38 PM
@Mat'sMug Nope. You really think Brainfuck is smart enough to be able to have an AST?
I could possibly use one to improve performance on it though and make optimizations. Could be interesting, but I really don't have that kind of time.
 
well there's a concept of an instruction, and then one of a block (loops)
 
0
Q: LESS: Applying a set of styles both with a media query and with nested rules

Frank TanBackground I am working on an application which responds to different screen resolutions. At a certain minimum DPI, we want to apply a set of styles. We also want to apply that same set of styles if the class hidpi is present on html. Our project uses LESS. Original code This is the code I in...

 
I wrote a BF tokenizer yesterday
 
Yeah, just realized that theoretically, it could be used.
lol. You what?
 
A lexer that spits out tokens
 
7:40 PM
So you have finally realized that Brainfuck is superior to VBA?
5
 
bwahaha no it's just an exercise to see if I get the AST concepts right
Then I'll apply it to RD
BF is just practical because there's not 200 tokens to deal with
I think I'll put it up on GitHub tonight
 
@Mat'sMug Yeah that's true
So have you tokenized my BF FizzBuzz?
 
possible answer invalidation by Wade Tyler on question by Wade Tyler: codereview.stackexchange.com/posts/144770/revisions
 
someone yesterday told me to implement a "simple BF interpreter", so I went and started writing a lexer/parser and full-on AST - the interpreter will work off the AST
 
7:45 PM
@SimonForsberg ha, not yet - but it should work
 
Sounds interesting
And when you have done everything I might convert it to Java/Groovy and steal use it in Brainduck.
I imagine at least that if you make an AST of it, you could find ways in which it could be improved.
 
I don't know enough BF to implement refactorings and inspections, but yeah I suppose
 
0
Q: Scan a string for certain characters and count them

HytyotwoIn my AP Computer Science class, we have an assignment where I need to input a string (which in this case is always a tweet) and then check to see if it meets the charlimit, see if it is a retweet, and then count the Hashtags and Mentions. I have figured all of this out, but for a Hashtag or ment...

 
@CaptainObvious migrated
 
Tumbleweed candidate; zero score, no answers, no comments, and low views: libconfini (shared library)
 
8:02 PM
0
Q: Making this website

cascading-stylefriends... I have a website that I'm making for myself... I would like you guys to tell me what I'm doing right and what I'm doing wrong... The site is hosted on my PC for the moment... So it may not be available all the time. I am currently using a x509 cert. so, ignore the security warning... ...

 
@Mat'sMug Don't worry about that. I'll deal with that ;)
When I have time, that is...
 
Naruto answer; accepted non-selfie answer with 0 score: Unit testing a prism event
 
@CaptainObvious No code, no review.
 
@SimonForsberg I guess one inspection could be one that identifies a MoveLeftInstruction that would make a negative PointerPosition, or a MoveRightInstruction that would move beyond short.MaxValue or whatever the last cell is
 
Let it be known that I dislike when people use ellipsis instead of proper punctuation. #EnglishReview
 
8:15 PM
*known...
 
@Mat'sMug Yup. Been there, done that ;)
 
@Mat'sMug ninja'd
 
Also a MoveLeftInstruction that is immediately followed by a MoveRightInstruction. They cancel each other out.
 
Ha, duh
 
Or even a mess like this: <+>-<<<+++>>---->+++>--<-->+++ It can also be drastically simplified.
 
8:18 PM
MY BRAIN IS NOT A STACK lol
3
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Matrix rotation
 
@Mat'sMug BrainOverflowException
5
 
@Mat'sMug Use it as an array instead and track the changes of all the indices.
 
yeah that's what I meant. OutOfMemoryException.
how do people do BF without a pen & paper
 
s/ without a pen & paper//
 
8:24 PM
lol
 
BRB writing a website in batch
4
 
<+ [1]
>- [1 -1]
<<<+++ [3 0 1 -1]
>>---- [3 0 -3 -1]
>+++ [3 0 -3 2]
>-- [3 0 -3 2 -2]
<-- [3 0 -3 0 -2]
>+++ [3 0 -3 0 1]

So all the changes are really `+++>>--->>+`, although you might need to add some `<` at the beginning.
@Mat'sMug We don't. We make it in Brainduck!
Keep track of your memory in BF is the most important thing.
 
Seriously, why would anyone ever think that batch is the right tool to make a website? mind.blow()
 
Sometimes it's not about using the right tool. Sometimes it's about doing it because it can be done.
5
 
shouldn't be that hard to write a website in batch ..
 
8:28 PM
Probably.
 
@Phrancis Wait.... has anyone actually thought that?
 
@echo off
if not exist "C:/apache24/MTlines%REDIRECT_URL%" (goto error404)
echo status: 200 OK
if "%REDIRECT_URL:~-1%"=="/" (
    set dir=yes
    if exist "C:/apache24/MTlines%REDIRECT_URL%dirscr.bat" (call "C:/apache24/MTlines%REDIRECT_URL%dirscr.bat") else (goto error404)
    exit
)
set dir=no
if exist "C:/apache24/MTlines%REDIRECT_URL%/filescr.bat" (call "C:/apache24/MTlines%REDIRECT_URL%/filescr.bat") else (goto error404)
exit
:error404
echo status: 404 Not Found
echo Content-type: Text/html
(goto hell)
 
Oh wow...
 
Seems really odd to manually write out your 404 exceptions
Perhaps the OP has a fundamental misunderstanding of how web servers work
 
Or he just wants to have fun and do it his way.
I did a lot of crazy stuff 15 years ago...
 
8:41 PM
I think your definition of "crazy" has changed over the years ;-)
(you've made a BF IDE, after all)
I wish someone had been successful talking me out of making a GUI with Swing months ago, man that was a mistake
 
Learning things is never a mistake.
4
@Phrancis ...details.
 
I learned that Swing is a terribly tedious GUI library and it's ugly too :D
 
@SimonForsberg What have you learned by learning Brainfuck?
 
@skiwi Umm.... I've learned Brainfuck?
Also I've learned that it's possible to do things in a completely different way from how you're used to.
Just look at my FizzBuzz where I actually show a Java version of my code as well.
 
Seems like Brainfuck is in part about learning how computers (specifically, their memory) work, isn't it?
 
8:51 PM
0
Q: Trying to port my interactive ncurses game of life implementation from C to python

TURNBOMBI have a single out of range bug when trying to iterate over the grid to count neighbor cells. It's almost done, but I've spent a couple hours on this one bug already. I'm determined to deal with the rest of them if any after this. lol. Python and C code follows. Requires the blessed python3 libr...

 
@Mat'sMug My open tabs on the other hand are a doubly linked list
 
@Phrancis Well... maybe. Not quite how they use the memory though.
 
@Phrancis it's just a little state machine really
 
Ah OK
Interesting article I saw someone posted on SoftEng chat
Quick general question... for some application or website to update its displayed data on-the-fly, you need an asynchronous process for fetching the data right?
 
9:11 PM
@Phrancis Pretty much, unless you want to automatically reload the page every X seconds
 
@skiwi That sounds like a terrible idea :D
 
It's not the best idea indeed
 
183
Q: Using Node.JS, how do I read a JSON object into (server) memory?

Matthew Patrick CashattBackground I am doing some experimentation with Node.js and would like to read a JSON object, either from a text file or a .js file (which is better??) into memory so that I can access that object quickly from code. I realize that there are things like Mongo, Alfred, etc out there, but that is ...

Probably going to end up doing something similar to that
 
9:32 PM
-1
Q: Displaying live 12 hour time in html - no date, with AM and PM

Jael PerezThe closet thing I could find was Displaying current date and time using JavaScript and HTML time tag - I just have a few questions in regard to customizing it. I have no experience in coding so all help is very much appreciated. I'd like only the time to be displayed, no date. As in "1:07PM" (w...

 
@CaptainObvious Was thinking for a moment that it would be without Javascript, then that would be a challenge
 
 
1 hour later…
10:55 PM
wow ... 1 hour silence
 
There is nothing wrong technically with omitting parenthesis, it's a matter of opinion. You might have better luck with the rest of your question on codereview.stackexchange.com. — meagar ♦ 32 secs ago
Oh, I've never heard about codereview site! Thank you, I will try my luck there. — Karel Poláček 32 secs ago
 
11:11 PM
Is it acceptable to modify a loop from within itself if all I do is return; after that?
 
11:26 PM
@JoshuaLamusga Could you provide some code to show how you mean?
 
Sure, something like
for (int i = 0; i < someContainerSize; i++) {
   if (i == 50) {
      someContainerSize.RemoveAt(i);
      return;
   }
}
That's just a rigid example, of course. My code doesn't really remove something at a fixed and known index.
 
@JoshuaLamusga Well... I don't see what would be wrong with that.
Even though it could perhaps be done in other ways...
 
possible answer invalidation by 200_success on question by YRn: codereview.stackexchange.com/posts/144881/revisions
 
@SimonForsberg Alright. My usual method is to "cue" all the indices or values to delete, then remove them after the for-loop. Alternatively, I can reverse the for loop to start at the container size and count to 0, then increment i when I remove something at position i while traversing the loop.

Anyway, I thought maybe it's bad for maintenance reasons. At least, I think I should comment not to continue; the loop or anything since it's delicate code.
 
11:45 PM
0
Q: Invert-range operation in a circular vector

nbroI implemented a invert-range operation in a (logical) circular vector. A circular vector is a vector without a logical starting and ending object, or, equivalently, the successive element of the element at the last index of the vector is the element at index 0 (similarly for the previous element)...

0
Q: How to well format ruby code; functions without parameters and others

Karel PoláčekWhat I have Hello, I am a bit advanced PHP developer, but now I went to college and we are learning Ruby there. We got first homework and I did it. But I wanna make great code - so I looked for standarts and found pretty much nothing. I only realized, that variables aren't name with cameCase but...

 

« first day (1266 days earlier)      last day (1140 days later) »