« first day (1043 days earlier)      last day (2979 days later) » 

12:00 AM
RELOAD! There are 1961 unanswered questions (93.9299% answered)
 
0
Q: Tidying Java code in Android Studio

SectahButton crossButton = (Button) findViewById(R.id.crossButton); crossButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { if (!x1.getText().toString().equals("")) { if (!x2.getText().toString().equals("")) { if...

0
Q: Redshift Load and Unload Wrapper class

flybonzaiWe do constant traffic with our Redshift tables, and so I created a wrapper class that will allow for custom sql to be ran (or a default generic stmt), and can run a safe_load where it first copies the info to a dev db to make sure it will work before it truncates the prod db. Let me know what I...

0
Q: Stacks method (Java)

I Love YouCould a Stack<Integer> be transfered to a Stack<Character> ?? Ex. Stack<Integer> Num = new Stack(); Stack<Character> Ch = new Stack(); Ch.push(Num.peek());

 
But it's out of stock, and Xenial Xerus LTS should be released soon.
 
Where there's a monkey, there's a way
 
@DanPantry: nelm.io/shop
> Say flash one more time
 
12:57 AM
0
Q: Josephus permutation.

MAGThis problem is taken from the book Introduction to Algorithms, Third Edition By Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest and Clifford Stein. We define the Josephus problem as follows. Suppose that n people form a circle and that we are given a positive integer m <= n. Begi...

 
1:24 AM
1
Q: Updating HTML table (Userlist) with Node.js

TerrorbiteI currently have an HTML <Table> with all the socket.io-rooms. Client-side, the table gets fetched if you visit the page. If some room gets created or deleted, it get updated with the following code. There's also a button that gets updated to show if the room is full or not. Now I want to know i...

0
Q: Removing folders from my rails app with rake

D_SI'm trying to remove the tmp/letter_opener folder. Everything works fine, just wondering if there's a better way to write it. My next step is to write some tests, to double check that I can only accept those inputs (currently failing) #my_rake_task.rake namespace :cleanup do desc 'Deletes the ...

 
1:43 AM
hmm... interesting.
the original "Removing folders" seems to have been posted by captain yesterday
 
0
Q: Trying to work with string comparison

mim123I'm trying to create a menu that lets the user select from a list of options, and if the input is not one of the options, reprints the list. The problem is, even when the user enters a valid answer, the loop still goes on. I can't figure out where the problem is, the code runs fine... My first a...

 
@StackExchange and this one has been migrated 3 days ago...
something's fishy with that stack2rss feed
 
2:05 AM
what is wrong with me writing CR answers to relax on Friday night
 
nothing
speaking of night... I'd better head to bed
g'night
 
Good night
 
are you sure nothing is wrong with me?
 
@enderland There could be, but writing code reviews is not part of it.
 
@SirPython I find CR a good way to learn stuff too
 
2:12 AM
@Vogel612 night
 
2:25 AM
@SirPython are you someone who... is a python dev? :)
 
Sort-of-ish.
 
0
Q: Comparing two shuffling methods

Tony StarkI'm trying to randomly shuffle an collection of integers within a List and I have came up with two shuffling method that does the job. However, I'm not sure which one works better. Does any one have any comments or suggestions? public class TheCollectionInterface { public static <E> void sw...

 
Monking.
 
Hey @Hosch250!
 
Hi.
 
2:37 AM
How're you?
 
Sick, but at the very best time possible.
 
Because it's after your midterms?
 
Because next week is my spring break.
I only have a couple discussions left before my break that I will try to finish, but it won't affect my final grade if I miss them.
 
> Warning Never, never, NEVER use Python string concatenation (+) or string parameters interpolation (%) to pass variables to a SQL query string. Not even at gunpoint.
I love some docs! lol
 
The good thing is that I probably won't have to take my driving test next week.
I'm completely ready except for back-in parking and parallel parking, but my mom was kind of pressuring me to take it in spring break.
If I fail in either parking, I fail the entire test, so...
How are you doing, @SirPython (and sorry for the semi-rant).
 
2:42 AM
enderland feels old
 
Doing well, thanks (no problem)
 
@enderland Your face looks extremely young.
@SirPython That's very good.
 
2:59 AM
-1
Q: How do you write a java program to do the human counting of natural numbers, and extend it to accept any system of base symbols (0 1 2 3 4 5 6 7 8 9)?

Dream23Counting will start with a given number and end with a second given number. ex. 5 & 10 = 5 6 7 8 9 10 this is what i have so far static String next(String base, String n){ int i = n.length()-1; char digit = n.charAt(i) int pos = base.indexOf(digit); n = n.substring(0,i-1...

 
@Hosch250 I'm just so happy!
 
0
Q: What's wrong about those code

reaCodes#!/usr/bin/env python 'makeTextFile.py--create text file' import os ls=os.linesep # get filename while True: if os.path.exists(fname): print "ERROR: '%s' already exists" % fname else: break # get file content (text) lines all = [] print "\nEnter lines ('.' by itself to quit).\n" # l...

 
This site is for review of working code only. You should read the error message and look at the code it points to to solve your problem as the exact error is given in the error message. — enderland 26 secs ago
 
3:16 AM
I saw that it was just a tol default and would have outright called it wrong if you were taking the root of tol in the method body. The machine default epsilon should generally be less than 1 and taking the root will make it larger causing the default method to be less accurate that configured. If I set the default I'm potentially given a different answer that if I pass the some value as a parameter. I realize this isn't code review, but I can't help myself sometimes. — psaxton 57 secs ago
 
3:30 AM
You're probably looking for the code review stackexchange. — Chris Kitching 19 secs ago
@Chris I'm sorry I am new where is the code review? — Cameron 25 secs ago
Just a suggestion, try using else ifs rather than ifs; saves some performance since not all the conditions are required to be checked. And here's the code-review stackexchange: codereview.stackexchange.com ;) — Jaskaranbir Singh 54 secs ago
 
3:47 AM
0
Q: Tips for Simplifying?

CameronI have a project that is due for my -Into to Java- course which requires me to translate the number range of 1 - 3999 into Roman numeral form. If the number I pick is 0 it will end my program, anything else that is below 0 or above 3999 will result in a loop until the requirements are met. I have...

 
4:40 AM
0
Q: Grouping all mathematical results using a number sequence with basic math operators

MattNot sure how to make the title smaller. I was reading the question A truly amazing way of making the number 2016 and some of the answers referred to programatically determining the answer set. What I am doing is related to that in concept. Given a range of number 1 to X determine all possible m...

 
5:17 AM
@JerryCoffin Well. Thanks to you I know CodeReview.SE :). I did as you suggested. Thank you! — duong_dajgja 42 secs ago
 
6:10 AM
possible answer invalidation by Spencer on question by Spencer: codereview.stackexchange.com/posts/122566/revisions
 
 
2 hours later…
7:50 AM
0
Q: Not sure why my logic is wrong

Mona JalalI am trying to write this code for returning the index of peakElement in logarithmic time but my code doesn't return correct one. Any insight is appreciated: public class PeakElementLog { public static int PeakElement(int[] nums){ int len=nums.length; int mid; if ( le...

0
Q: Custom Java Stack Implementation

ganesh ri don't want to use synchronized for sizeof method, any suggestion to implement the method thread safe package com.r.collection.adt; import java.util.concurrent.atomic.AtomicReference; public class ConcurrentStack implements Stack{ @SuppressWarnings("hiding") private class Node<E>{ publ...

 
8:36 AM
0
Q: How to make my algorithm faster

Mona JalalI know my algorithm is very naive and slow for this problem. I would like to learn how to improve upon it? import java.util.Stack; /** * Created by mona on 3/12/16. */ public class ValidParanthesis { public static boolean isValid(String s){ char[] charArr=s.toCharArray(); ...

 
Did you consider codereview.stackexchange.com to review working code? — Stephen Reindl 51 secs ago
 
8:56 AM
0
Q: multi-consumer multi-queue rabbitMq spring (read message by message for each consumer process)

CarolineThe goal of this project is a bit technical but hopefully to have someone to advise me better. Note that I work in a multi-clustering context, which means that I have the same program running on multiple machines. First, I have a producer who send me the events that need to come in order when t...

 
Naruto answer; accepted non-selfie answer with 0 score: Checkboxes array to delete images
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Archiving an SQL table of sessions and statistics
 
9:13 AM
0
Q: DTW memory usage in Java

A.C.I have found the Dynamic Time Warping (DTW) library which coded in Java. Floating point array (float []) as an input and pass by JSP. However, I have triple confirmed that the huge memory usage problem is caused by the DTW library. Java always prompt me that "java.lang.OutOfMemoryError". Besid...

 
9:32 AM
0
Q: Two similar tests on different variables

Yassin HajajI've had a doubt about something. Let's say I have 4 variables, A1, A2, B1, B2. If A1 > 0 or B1 > 0, I have to check if A2/B2 is also > 0. What I have is the following but I'm finding it a bit redundant. IF A1 > 0 THEN IF A2 <= 0 THEN DISPLAY ERROR END IF END IF IF B1 > 0 THE...

 
Monking
There's nothing like getting a good 8 hours and then finishing some cold Singapore Chow Mein from the night before
 
-2
Q: How to jumble words in C

PseudocodeI want to jumble words like a game. I've tried strrev but it can be answered easily. I want to know something new

0
Q: "Guess my Number" game in Python (2.7.9)

SamanthaFirst time posting to Code Review. Just looking to get some advice on how I can write better code. I found the following exercise for a "Guess my Number" game on DaniWeb, but the linked source code file is no longer active. So while I know my code works, I'm not sure if I've written it in the be...

 
10:30 AM
0
Q: My first C# project

WhoisitI've been learning C# for about a month and below is the code for a finished game. I would like some constructive feedback on my progress so far. (Right or Wrong) Thanks for looking. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw...

 
@JeroenVannevel Looks ass in Chrome :(
at least according to the last image
 
... That's how it is now
 
screw you too Dan
screw you
 
10:42 AM
Yw
<3
 
you know I'm joking friend
 
I know babe
 
I'd review your code but I'm too tired from nuking the codebase in work for that ATM :(
 
0
Q: show products in dropdown from parent to chid

Uthman Rahimimy Goal like this : for do this I write these Codes: First: public virtual PartialViewResult DropDown(Guid? selectedId) { var categories = CategoryDropdown(selectedId.HasValue ? selectedId.Value : (Guid?)null, null); return PartialView(MVC.Admin.Category.Views._CategoryD...

 
10:53 AM
It's fine, that review I got will already fix a lot of code smells
I'm trying out the mum-PR right now and it seems to work great
that one's getting merged baby
 
11:08 AM
1
Q: Non-coder options in Javascript

VinceI have a page with a few options that the owner of a site needs to be able to set. He's not a coder and I'm trying to make it as user-friendly as possible. It works, but my implementation feels sloppy and I was wondering if there's a better way to do it. This first part from my main javascript ...

 
11:20 AM
2 weekly RedditCrap users
really?
I know of more than that already that installed it
 
12:03 PM
user image
2
A graphical representation of me getting my crap together.
lol
 
 
1 hour later…
1:23 PM
Might be a good question for codereview.stackexchange.comRhinoDevel just now
 
2:17 PM
@DanPantry I see your spikes of productivity are followed by several weeks of slacking
Whoops, I should have read the full article before posting here, it doesn't actually tell anything :|
 
2:35 PM
@skiwi LOL
Actually no it's just last year we did large commits.. i've switched to micro ones now and am now using git, too
(last year was TFS)
also bear in mind I DO take holidays occasionally
Though at the start of the year I was definitely slacking
 
0
Q: Making my code faster: Finding the longest path, avoiding obstacles in a 2D plane

xorThe Scenario You are given a matrix of size m x n (width x height) with m*n spots where there are a few obstacles. Spots with obstacles are marked as 1, and those without are marked as 0. You can move vertically or horizontally, but can visit each spot only once. The goal is to cover as much are...

 
That last spike is today/yesterday
I've made some 80 commits
 
80 commits in a single day?
are you committing one character at a time?
 
@nhgrif over the past 24 hours :P
No, I am just doing large-scale refactoring
 
needs more git rebase!
 
2:38 PM
Meh, I should probably be rebasing
 
no... you're doing tons of mini-scale refactors...
 
rebasing is scary though
 
Nah, rebasing is easy. 90% of the time.
 
you just never know when you might accidentally blow away some history of some sort!
 
The other 10% of the time you have to throw away your repo?
 
2:39 PM
^
 
@nhgrif If I rebased it would be a large scale refactor.
 
I just used my gold dupe hammer on SO. ;)
 
I would at the moment prefer to keep the history
As I am still working on it
 
How big is the code base you're refactoring?
 
also I have no clue on context at all other than 80 commits
 
2:39 PM
I mean, are you literally committing each line individually?
 
@nhgrif I couldn't give you a file count (unless there's some kind of magic bash)...
No.. not every line individually
Every "unit" of refactoring, if that makes sense
 
@DanPantry is it in github? you can make a fake PR to show total filecount
 
Are there hundreds of files? Thousands? Tens of thousands?
 
It's in gitlab. let me see if it shows up in a PR there
 
also, your code base has good test coverage... right?
 
2:41 PM
@nhgrif I think we are way too interested in this for our own good :P
 
The number of files modified in the past 50 commits (I've made 50, not 80) are 134.
Some of those are removals due to being extraneous (For example, removed VS files because this is now a plaintext project)
Test coverage? what's that? /s
Bear in mind that this is an experimental branch, and is not going to be pushed back into the work branch for.. a long time, if ever
I'm just looking to see what direction I can take the project in in such a way that it is more maintainable
 
long living branches also aren't good.
 
> Bear in mind that this is an experimental branch
It's not even "official" work. This is me playing with the code base.
 
80 commits in 24 hours just really doesn't make sense to me. Or 50 commits.
 
@nhgrif If you saw the commits I'd made you'd probably understand
Unfortunately it isn't a public project
But each individual commit fixes one atomic thing. It's not necessarily one line (though it could be)
 
2:46 PM
remonking
 
2:56 PM
@skiwi Also worth noting that in several of those slumps I was off for a week at a time ^^
Hello @Quill
 
@DanPantry Oh, it's work repo?
 
So it's my own personal git repo, but yesterday I cloned the changesets from tfs into git.
So the history is a work repo, but what I am working on now is my own personal repo that doesn't affect the centrallised work one. Hence "experimental branch"
 
3:37 PM
0
Q: ToyVM - a small and simple virtual machine in C - follow-up

coderodde(See the previous and initial iteration) Now I have refactored the code in order to conform to the suggestions made in the answers to the first iteration. I have this: toyvm.h: #ifndef TOYVM_H #define TOYVM_H #include <stdbool.h> #include <stdint.h> #include <stdlib.h> #include <string.h> en...

 
Kaz
Monking @all
 
4:10 PM
0
Q: PathTracer Java

Качалов ТимофейFew months ago i wrote PathTracer on Java. This is my first Java project and i want to know things, which i did wrong, ralated to Java. https://github.com/sanex3339/PathTracer-Java/tree/refractiveSurfaces Please, ignore formatting like return explicitLightSamplingColor .add( ...

 
4:28 PM
0
Q: Program to index a book

In78 Indexing a book. Write a program that reads in a text file from standard input and compiles an alphabetical index of which words appear on which lines, as in the following input. Ignore case and punctuation. For each word maintain a list of location on which it appears. Try to use Hash...

 
4:40 PM
0
Q: Shifts time in a .srt file as per user request.

user100070origSRTFile = 'D:/Torrents/test.srt'; newSRTFile = 'D:/Torrents/tested.srt'; deltaTime = [0,0,0,0]; #[hh,mm,ss,ms] shiftIndicator = 1;#[1 to increase(delay) 0 to decrease(advance)] inputTimeFormat = ('0','1','2','3','4','5','6','7','8','9',':','-','>',',',' '); import mySRTConfig; import ...

 
Monking
 
A test-driven development approach to Project Euler #7:
func testNthPrime() {
    XCTAssertNil(nthPrime(0))
    XCTAssertEqual(nthPrime(1), 2)
    XCTAssertEqual(nthPrime(2), 3)
    XCTAssertEqual(nthPrime(3), 5)
    XCTAssertEqual(nthPrime(4), 7)
    XCTAssertEqual(nthPrime(5), 11)
    XCTAssertEqual(nthPrime(6), 13)
    print(nthPrime(10001))
}
 
If your question is strictly about performance, please ask it at codereview.stackexchange.com/tourcricket_007 19 secs ago
 
5:19 PM
0
Q: CSS list-style improvement wit Font-Awesome css toolkit

GrischaI will design a list with a Font-Awesome design arrows. My code already works fine, but I will improve it. css code: ul.long_arrow_right_red,ul.long_arrow_right_gold {list-style: none;} ul.long_arrow_right_gold li:before {content:"\f178"; font-family: FontAwesome;display: block;float: left;...

2
Q: "Curious Numbers" (HackerRank PE 34)

Pin CrashI was inspired by a certain recent question to try my hand at this challenge: Project Euler #34: Digit factorials \$19!\$ is a curious number, as \$1!+9!=1+362880=362881\$ is divisible by \$19\$. Find the sum of all numbers below \$N\$ which divide the sum of the factorial of the...

1
Q: n-queens puzzle in Python

Pooshan VyasI want to increase the efficiency and time complexity for the n-queen problem in n*n matrix chess. I am able to run only still (11*11) in normal time otherwise for the big number it is taking much more time. How can I improve performance? import time start_time = time.time() def queensproblem(...

 
@CaptainObvious @Vogel612 ^^ that's the culmination of the FP code we were talking about yesterday, in case you are interested
Oh wow, printing to console is expensive...
  (print "Curious Numbers to 10^2: ") (time (list-all-curious-numbers-between 10 (exponent 10 2))) (newline)
  ;; Curious Numbers to 10^2: "Elapsed time: 0.497506 msecs"
  (time (println "Curious Numbers to 10^2:" (list-all-curious-numbers-between 10 (exponent 10 2))))
  ;; Curious Numbers to 10^2: (19 56 71 93) "Elapsed time: 55.641647 msecs"
 
always is
 
That totally biased my benchmarks, I need to fix this
 
you should never bench mark printing
 
There fixed them in the post
 
5:35 PM
possible answer invalidation by Pin Crash on question by Pin Crash: codereview.stackexchange.com/posts/122672/revisions
 
@Duga I only changed the benchmarks, no answer has addressed those (yet)
 
0
Q: Program to index a book

In78 Indexing a book. Write a program that reads in a text file from standard input and compiles an alphabetical index of which words appear on which lines, as in the following input. Ignore case and punctuation. For each word maintain a list of location on which it appears. Try to use Hash...

 
5:54 PM
Are you freaking serious
I want to include a config file for my chrome extension so I don't have to define a few constants in two places
In order to be able to reference those constants from the .json file, I have to create an XMLHttpRequest() that retrieves the file
How is that ever an acceptable practice
 
posted on March 12, 2016 by viavad

There is some Spring rest controller which creates the item, but during this process can be throws exception. I decided to implement it in the way that http status will send to client along exception will throw to server console what can be useful. Is it good idea at all ? My implementation. Is it normal resolving? @RequestMapping("/item") public ResponseEnt

 
Can't use import yet obviously.
COBOL had it 30 years ago
But Javascript has it soon
 
Welcome to Code Review. Sorry you had trouble with code formatting, I fixed it to the best of my ability. Please add a plain English description of what your code does to help us address it better. — Pin Crash 2 mins ago
Anyone care to weigh in?^^ I VTC as unclear, for now...
 
0
Q: CS50 pset-1 itsa Mario- Make a half-pyramid using parameters from user input

RobertEI'm taking Harvard's introduction to computer science (cs50) course online, and I've written a program that satisfies a coding challenge but I don't understand what I did or how I can improve it. I'm a very green programmer. The challenge is to get an int from the user between 0 and 23 and use t...

0
Q: Delegation Design Pattern - MVP

alex.agatI am working on a project that has a Model-View-Presenter framework and use the delegation design pattern that has the following structure/implementation. Would love feedback. Thanks The ViewController will setup the MVP triad: class BookViewController: UIViewController { private var bookM...

 
6:30 PM
possible answer invalidation by 200_success on question by Grischa: codereview.stackexchange.com/posts/122671/revisions
 
0
Q: Dungeon Crawl game code

Luna#include <iostream> #include <string> #include <time.h> #include <Windows.h> #include <algorithm> int main(){ std::string grid = "0000000000\n" "0000000000\n" "0000000000\n" "0000000000\n" "0000000000\n" "0000000000\n" "0000000000\n"; char trap = 'T'; grid[15] = trap; grid...

0
Q: Game of Life using unordered set of coordinates

dylanPreviously I had been using an array of bool(dead/live) to represent cells. I looked on code review to see how other people have implemented Conways Game of Life. Someone in the comments of a post suggested using an unordered set to only store live cells. This sounds like it would be more effi...

 
6:50 PM
possible answer invalidation by Grischa on question by Grischa: codereview.stackexchange.com/posts/122671/revisions
 
@Duga That one is OK
 
7:06 PM
0
Q: Type Storage Class

Jack WilsdonSo I have designed a "type store" in C++ that can hold a single instance of any subclass of a defined type. Here is an example of how it would be used: class BaseClass { }; class FirstSubClass : public BaseClass { }; class SecondSubClass : public BaseClass { }; TypeStore<BaseClass> store; // ...

 
Better suited on Code Review, IMO. — cad 18 secs ago
Make it a working program, which means adding a main and making sure that the relevant functions are called from main. Then post it at the code review site. — R Sahu 10 secs ago
 
7:25 PM
0
Q: Could this function be simplyfied and without duplicated code?

MateuszThis method find cells that are crossed by line A-B and adds them to one vector. I have got some duplicates here and some lines of code are very similiar but they differ in one variable. Should this duplicated be fixed or is it fine? std::vector<Cell> Grid::findCells(int xA,int yA, int xB, int...

0
Q: Console HangMan game

Luna#include <iostream> #include <string> #include <algorithm> #include <time.h> int faults = 0; int hangman(); int i = hangman(); int main(){ srand(time(NULL)); while (i == 1){ std::string words[7]{"Alpha", "Cornwall", "Crepuscular", "Blind", "Steroid", "Plunder", "Talisman"}; std::string...

 
7:38 PM
JS person here?
 
8:00 PM
crickets
 
It's fine, I'm awesome enough that I managed to write my own code
4
 
8:48 PM
You wrote : "I created a system that does this effectively". Good! What programming language did you use? "I'm looking for ... that abstracts all these operations for me". Not clear what you mean by this. Do you want to create a standalone program called scrapper that features options for concat, catch, sum, no-dupe, etc? OR what? In anycase, you're aware that Qs asking for recommendations are off-topic on S.O. We'd need to see some code that we can fix to make it on-topic. See codereview.stackexchange.com . Good luck with your project. — shellter 47 secs ago
 
9:00 PM
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Class that generates records after performing business logic
 
9:36 PM
0
Q: Player classes for a playing card game

denisI have a simple base class and two derived classes. However, when I'm creating new instances of that class, the line where I instantiate the variables is getting way too long. I have it on two lines: private Bot Bot1 = new Bot(10000, AnchorStyles.Left, "Bot 1", 2 (int)UsersProperties.CUser.Bot...

 
10:10 PM
I have become a project manager
reviewing @Hosch250's PR on VSDiagnostics and 2 wild PRs on RedditCrap
work, my minions, work
 
@JeroenVannevel I have worked.
 
merge time yay
 
10:32 PM
This should have been a comment, not an answer. I'm aware you can't comment yet, but if you wrote your comment shorter (that's what it is), it could've auto-converted into a real comment. The system is smart like that. — Mast 7 secs ago
 
@Mast Too much comment, too less answer in your comment there :P
Reread it ;)
 
@Mast DRY
Put comment in a variable
 
@skiwi Too much comment in my comment?
 
0
Q: Improving this if condition with an equation

PuyoverI have the following method that is working perfectly. Main problem I see is that I think it can be done just in one line, but I don't know how: def _animate_display(self, display): self._timer += 1 / bge.logic.getAverageFrameRate() symbolic_level = self.battery.get_symbolic_level() ...

0
Q: Fluent interface for access to non-related class generating code

VáclavI have class SimpleBridge (hard to say if it is the most suitable name, due to its purpose) that uses non-related class CodeGenerator. class SingleBridge extends ElementListSetting { use CodeExport; protected $SingleBridge; public function __construct($Element) { try { if(empty...

 
10:53 PM
Could you be more specific as to what problems you are having with this program? It would be helpful if you could select certain pieces of code, briefly explain what they should be doing and then what they are doing. Many people may not be familiar with the API's but can help you if you really boil down what problems you're having. Just a tip for posting next time: don't just paste a bunch of code and ask people what's wrong with it. It's pretty time consuming and harder to debug. Thanks! — hamzamuhammad 33 mins ago
Guess somebody converted it anyway ^^
 
11:06 PM
0
Q: avoid duplicate data in MySQL?

nasyiaI have two tables one for questions and the other for the answers and I need to display more than one question in my webpage but every time I try that I do it in wrong way either if it's keep giving me duplicate questions or all the answers for the all questions CREATE TABLE `questions` ( `quest...

 
11:22 PM
@Mast Yes, if you wrote your comment shorter it could've been auto-converted into a real comment?
 
@skiwi Not inclusive enough.
TTGTB
 
11:38 PM
0
Q: Input/character validation on an input-element

SnorlaxI took some time to create a function, which can validate which keys you input on an element. So far it has two uses: You call .validate() on the object, but make sure it has a data-match attribute with the regex in it You call .validate("REGEX") on the object, but replace REGEX with your actua...

0
Q: Simple Java mergeSort implementation

Aaron Leepublic class MergeSortImplementation { public static int[] merge(int[] arrayA, int[] arrayB) { int n = arrayA.length + arrayB.length; int[] mergedArray = new int[n]; int x = 0; int y = 0; int a = 0; int b = 0; for (int i = 0; i < mergedArray.length; i++) { ...

 
11:56 PM
0
Q: Conversion of a simple Python Neural Network to a Haskell implementation

error_null_pointerI started with this code here:http://iamtrask.github.io/2015/07/12/basic-python-network/ I originally modified and expanded it in python. As an exercise/challenge to myself I decided to covert it to Haskell. I either write imperatively or functionally. This is the first time I have tried convert...

 

« first day (1043 days earlier)      last day (2979 days later) »