« first day (1178 days earlier)      last day (2841 days later) » 

4:13 PM
I don't know VHDL. I think this question needs eyes on it. codereview.stackexchange.com/questions/135868/…
 
1
Q: VHDL: pipeline with a for loop

MarmozThis question was initially in Electrical Engineering: http://electronics.stackexchange.com/questions/247459/vhdl-pipeline-with-a-for-loop I'm implementing an AXI4-Stream module. The module uses three DSP blocks (DSP49E1, UG479 - Xilinx). In order to run the module at a frequency of 150 MHz, the...

 
So there's a Monero site in closed beta ATM.
 
4:33 PM
@Mast You around?
 
0
Q: Time conversion without using datetime

orangesparkGiven a time in AM/PM format, convert it to military (-hour) time. Note: Midnight is on a -hour clock, and on a -hour clock. Noon is on a -hour clock, and on a -hour clock. Input Format A single string containing a time in -hour clock format (i.e.: or ), where . Output Format Convert an...

 
Zak
@ff524 you should've seen my first posts ^^
 
@EBrown Always lurking.
3
 
I need advice on something
 
I may be able to give advice
 
4:46 PM
I'm trying to structure this SE Stats website, and I need to know if my idea makes sense.
 
shoot, I'm just writing documentation right now so I need a distraction anyways
 
If the code is working and you're only looking for refactoring tips than this is a candidate for codereview.stackexchange.comAndreas 15 secs ago
 
Have you tried a rough sketch? That usually does wonders for me.
 
A radio button: option 1 is "Multi-Site Graph (Bar)", option 2 is "Single Site Graph (Line)"
 
Okay
 
4:48 PM
Then, if you select option 1, you get a "Metric" dropdown, which lists all the different fields/metrics you can compare against and a multi-select box with every site listed, which you can select any number of.
 
Okay
 
If you select option 2, you just get a "Metrics" multi-select box with each metric listed, which you can select any number of.
 
I'd say add a single-select box on option 2 so you can change the site your viewing if you want to
 
Then you get a "Build Graph" button
@Trojan404 Yeah, forgot to mention that.
 
is the button building asynchronously or does it reload to a new page?
 
4:50 PM
Let me sketch a rough drawing.
 
@Trojan404 Quite irrelevant for the design of the page I'd say.
 
@Trojan404 Technically, it's asymmetric. But you can build up to n graphs before you "View Graphs"
Not sure what value of n makes sense.
 
@Mast design wise, it depends on your scope
 
Noisy environment, but it works
 
@syb0rg Cool! :)
 
4:51 PM
It could be in scope for design if it is AJAX loading because you have to provide it the location to display the graph after loading
 
@syb0rg Khronos? :3
 
Just have to make it a bit more portable (right now I'm hardcoding a build for 64 bit systems for example)
@zyabin101 My pet project, finally on Windows
 
@EBrown Not sure what resources are available to you, but I'd honestly say go asynch display of option 2. This way you can change site graphs without having to reload to a new a graph
You could probably even optimize it by having the graphs pre-built on a server and just return the fields requested
Hope this gives you some things to think about, good ideas so far though
 
Monking
 
zmonking @DanPantry
 
5:00 PM
0
Q: Templates, function overloads - good approach?

Antonio KovačevićThis is the end result I need (or similar): node<dataType::div> d_div; d_div.addParameter<param::_class>("div1"); d_div.addParameter<param::name>('c'); d_div.addParameter<param::id>(34); and this is the code that I've written to achieve that: namespace dataType { typedef enum {a,div} type...

0
Q: Modify nested json key value with python

StrykerI have a json file that I need to update. I am converting it to a python dict and trying to update it. Here is the input, but it could be any dept. I'm sure there is a better way to do this, but don't know. { "groups": [ { "name": "group1", "properties": [ { ...

 
@EBrown and the two fields below the radio button dynamically show based on which radio is toggled correct?
 
@Trojan404 Yeah, just didn't write the JS for the sample.
 
@syb0rg Congratulations :-)
Still fails on Linux though.
 
@EBrown I still think you should show the most recent graph "added" in a div or something like that in addition to adding them to the display queue, but that's your decision
 
5:04 PM
Working on that.
 
Other than that, I'd just give it some padding and margining to make it flow and look better
less hugging of the edge of the screen
that's just personal preference, though. Meaning we're getting beyond design and moving towards user testing
 
@EBrown hyperlinked to the graph storing location? maybe even hover to see a tooltop-sized image of the graph?
 
Graphs aren't stored.
 
I think this would go better the the code review site. — Prune 36 secs ago
 
5:13 PM
they're dynamically generated when the 'View Graphs' button is pressed then?
 
Yep.
The page will call D3 to generate the graphs.
All client side.
The only thing I do is provide .tsv files for each graph.
 
so the hover is out of the question, but hyperlinking to see that graph individually shouldn't be too hard
 
Which are generated from an API endpoint.
 
@pacmaninbw On it.
@pacmaninbw What was your concern about that question? Looks fine to me.
@DanPantry Want to see some ugly JavaScript?
CMakeFiles/LibSndFile.dir/build.make:89: recipe for target 'library-build/src/LibSndFile-stamp/LibSndFile-download' failed
@syb0rg
 
5:33 PM
@Mast Well
after seeing that code
I hope he doesn't mind if I borrow some of his whiskey
 
lol
 
Are we talking about the VHDL question? If so, it got lots of love after I mentioned it.
 
Except that everyone there is naive and nobody understands ECS systems :) Embarrassingly, on code review people would start trying to encapsulate it (as Deni has), not realizing it's a completely trivial operation, already built-in to Unity. — Joe Blow 59 secs ago
 
@DanPantry Irish or Scotch?
I'm into single malt scotch's myself.
 
@pacmaninbw Paebbels found it. Paebbels is awesome.
@pacmaninbw So am I, but they're eating my wallet.
 
5:40 PM
@Mast They do that. I have a good bottle of The McCallan at home.
 
http://www.commitstrip.com/en/2016/07/25/internet-of-things-the-day-my-toaster-got-a-snapchat-account/
CommitStrip
Internet of Things: The day my toaster got a snapchat account
CommitStrip
1469468352
 
@CommitStrip Reminds me of that site where a guy acts like he gave his cat the option to text him.
 
lol
Monking!
 
0
Q: Program to print all evironment variables

ultraI'm learning x86 assembly on Linux and this is the first program I wrote, so I'm looking for all kinds of ways to improve it. ; Build using these commands: ; nasm -f elf printenv.asm ; ld -o printenv printenv.o -m elf_i386 -s section .data section .bss section .text global _start _start:...

0
Q: Serial Code Inconsistent

amanwaliaI am moving two stepper motors using commands received serially from raspberry pi to arduino.Command is in format sP"stepper1 angle"T"stepper2 angle".Here is code : // Changed to obtain Pan and Tilt Angles for motors and rotate motors // Authored by Aman // Date : 8 June 2016 #include <Driv...

 
@CaptainObvious Ninja'd at the close.
Yes. It needs to negate for the existing vote 'res[0].vote' of +1 or -1. — NoobSter 8 mins ago
...
 
6:01 PM
@Mast Is that from a fresh download?
No remaining past libraries in the libs folder or anything?
 
Oh, there's probably some spare thing laying around.
The build folder was clean though.
 
0
Q: Formatting Bash output in Python

tehjokerI'm writing Python code and working with some database tools (bash). Unfortunately there are no Python libraries available for the Database so I'm trying to find a clean solution to this problem. Basically what I'm trying to do, is clean up the need to call grep, tail or awk. Ideally, I'd like...

 
Ah, you need to empty the lib folder in the main directory as well.
You should probably fix that eventually :P
CMakeFiles/sphinxbase.dir/build.make:106: recipe for target 'library-build/src/sphinxbase-stamp/sphinxbase-configure' failed
 
@Mast Github issue ;)
 
6:16 PM
I'll put it on the .5alpha release schedule
And I should probably give that a deadline...
 
I have no clue why it fails though.
 
The empty libs folder?
@Mast That's my problem to solve tho
 
Nah, sphinxbase not completing.
 
Oh, what does the log say?
It should be outputting to one of the configure logs
 
lol
 
6:24 PM
-1
Q: Code working properly in java, but same code failing in some Test Cases in C

VatsalSuraI was doing practice algorithms problems HackerRank website and I submitted my code firstly in C language but I got some Test Cases incorrect. I thought my logic was right so I ported my code to Java and I passed all my Test Cases. Link to the problem definition: https://www.hackerrank.com/chall...

 
**Error**: You must have `autoconf' installed to.
Download the appropriate package for your distribution,
or get the source tarball at ftp.gnu.org/pub/gnu

**Error**: You must have `libtool' installed.
Get ftp.gnu.org/pub/gnu/libtool/libtool-2.2.6b.tar.gz
(or a newer version if it is available)

**Error**: You must have `automake' installed.
Get ftp.gnu.org/pub/gnu/automake/automake-1.11.tar.gz
(or a newer version if it is available)
Your dependencies are missing dependencies.
 
@pacmaninbw I'm teetotal, I don't actually drink alcohol.
 
@Mast What computer are you building this on? Ubuntu?
 
@syb0rg Yup.
 
You don't have libtools installed, correct?
 
6:26 PM
That's what the log says.
I'll just install the bunch to get to the good stuff.
/care
 
I think of a good solution to the problem in the meeting I'm about to head to
Except I'm heading the meeting...
I'll multitask, gotta prioritize
 
/src/sphinxbase-stamp/sphinxbase-configure-err.log
configure.ac:12: installing './compile'
configure.ac:11: installing './config.guess'
configure.ac:11: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/libsphinxad/Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
swig/python/Makefile.am:26: installing './py-compile'
parallel-tests: installing './test-driver'
configure: error: You need to install bison
Moar dependencies.
 
hmm... I'm under 300 robots behind now...
 
300 robots on the wall
 
and that's with two recent-ish 0-voted answers
 
6:36 PM
src/sphinxbase-stamp/sphinxbase-configure-err.log
configure.ac:12: installing './compile'
configure.ac:11: installing './config.guess'
configure.ac:11: installing './config.sub'
configure.ac:6: installing './install-sh'
configure.ac:6: installing './missing'
src/libsphinxad/Makefile.am: installing './depcomp'
configure.ac: installing './ylwrap'
swig/python/Makefile.am:26: installing './py-compile'
parallel-tests: installing './test-driver'
configure: error: swig not found
Moooaaaar dependencies.
 
@Mast moar and moar and evan mooooaaarr
 
For a program that should auto-download all dependencies, you sure are missing a lot of them @syb0rg
@Vogel612 Yea, questions usually fare better...
 
well it's both zombie kills...
 
0 voted answers do not kill the zombie.
 
I'm currently trying to burn through everything in [java] -[android] score:3 answers:0 is:q closed:no
 
6:38 PM
sphinxbase is going steady now, let's see where it fails next.
@Vogel612 Good, good.
Is score:3 selecting everything with a score of exactly 3 or above 3?
 
3+
it's geq, soo
 
@Vogel612 geq?
greater or equal?
 
^^ that
 
0
Q: Hackerrank Sparse Arrays in Swift

ClefairyI solved this problem and was looking for feedback on my code. More efficient, cleaner, more verbose variable names, anything helps. There are strings. Each string's length is no more than characters. There are also queries. For each query, you are given a string, and you need to find out ...

0
Q: HTML/CSS - project's structure, BEM, turned from psd

testeriusI'd like to ask you for opinions about website. It is training template turned from someone's web design. Generally, I'd like to know what I should improve and how to be more effective with future website projects in fields like: project's structures, HTML tags, layout technics, CSS naming, modul...

 
[ 94%] Built target main
Scanning dependencies of target audio
[ 97%] Building C object src/audio/CMakeFiles/audio.dir/record.c.o
[ 97%] Built target audio
Scanning dependencies of target Khronos
make[2]: *** No rule to make target '../lib/PortAudio/lib/.libs/libportaudio.dylib', needed by 'Khronos'.  Stop.
CMakeFiles/Makefile2:184: recipe for target 'CMakeFiles/Khronos.dir/all' failed
@syb0rg Now everything till PortAudio works, just add the list of Issue 7 to your script and you should have a whole lot of progress.
 
6:58 PM
why does chrome make it so damn hard to register your own self signed cert
I had to generate a sha256 cert, then find the cert, export details of it from chrome, then reinstall the cert into the trusted ca store, then reboot and half the time it woudln't even install the cert into the personal store
@Quill jspm is actually alright, it's basically npm + sugar on top
 
Stop using Chrome and all your problems will go away.
 
helps deal with avoiding all the boilerplate webpack requires to get a project up and running.
@Mast no. >:
 
@Mast This is the discussion I'm having with Erik (the creator of LibSndFile), because libtool stuff is deeply embedded in his development process and they don't mix well with CMake
This is why it's been taking so long to finish LibSndFile's CMake system
 
Well, you're getting somewhere, one step at a time it's getting better.
PortAudio isn't yours, is it?
No.
 
@Mast No, but PortAudio2 is
 
7:08 PM
Oh...
Do you use both?
 
PortAudio was abandoned, I couldn't let a great library die so I picked it up
@Mast Just one
 
All-right, perhaps you should change the naming then.
 
The repo name is PortAudio2, I download it as PortAudio and reference it as such afterwards
 
Got everything up and running till there.
That's 97% or so.
 
Pretty good, we were at 30%ish before
And that was on a good day
@Mast Can you look at the contents of libs/PortAudio and see whats there?
 
7:16 PM
Khronos/lib/PortAudio# ls -alt
total 1736
drwxr-xr-x  6 root root   4096 jul 25 20:49 CMakeFiles
-rwxr-xr-x  1 root root  97312 jul 25 20:49 libportaudio.so
drwxr-xr-x 14 root root   4096 jul 25 20:49 .
-rw-r--r--  1 root root 127688 jul 25 20:49 libportaudio_static.a
-rw-r--r--  1 root root   1381 jul 25 20:49 cmake_install.cmake
-rw-r--r--  1 root root  22462 jul 25 20:49 Makefile
-rw-r--r--  1 root root  11941 jul 25 20:49 CMakeCache.txt
-rwxr-xr-x  1 root root   1001 jul 25 20:49 options_cmake.h
 
@Mast I think you can fix this
Change this line:
SET(PORTAUDIO_LIBRARIES ${PORTAUDIO_BINARY_DIR}/lib/.libs/libportaudio.dylib)
It should be something like SET(PORTAUDIO_LIBRARIES ${PORTAUDIO_BINARY_DIR}/libportaudio.so)
It looks like it built the library, but just can't link to it (because the path I specified doesn't exist)
 
0
Q: C++ - Code prints out Tic-Tac-Toe - What is wrong here?

James BondThis is for a game of tic tac toe in c++. For some reason, when run this code just prints a blank screen. Please help! Code: #include <iostream> #include <string> void printboard() { std::string array[9] = {"O","O","O","O","O","O","O","O","O"}; std::cout << " | | " << std::en...

0
Q: Finding longest common prefix

user112385I have been trying to solve a modification of the Longest Common Prefix problem. It is defined below. Defining substring For a string P with characters P1, P2 ,…, Pq, let us denote by P[i, j] the substring Pi, Pi+1 ,…, Pj. Defining longest common prefix LCP(S1, S2 ,…, SK), is defin...

 
@syb0rg What file?
 
@Mast cmake/Unix-ExternalProjects.txt
@Mast Did it work?
 
Still building, but I don't have high hopes.
Nope, didn't work.
make[2]: *** No rule to make target '../lib/LibSndFile/libsndfile.dylib', needed by 'Khronos'.  Stop.
CMakeFiles/Makefile2:184: recipe for target 'CMakeFiles/Khronos.dir/all' failed
Monking @Mat's
 
7:27 PM
Hey @Mat'sMug
 
monking!
 
@Mast Hm, I'm thinking I should download the binaries depending on the system instead of trying to build them locally
I can do that for libraries like LibSndFile
Then I don't have to worry about the libtool dependency problem stuff
Also should speed up the build
 
It would probably speed-up the process as well.
:-)
 
Sadly, those pre-built binaries don't exist for sphinxbase and pocketsphinx
I'll see if they're on some dark corner of the internet
 
I'm voting to close this question as off-topic because there is no actual problem described here. This question belongs on codereview.stackexcahnge.com instead. — Mad Physicist 57 secs ago
 
7:31 PM
The thing almost builds completely now, fixing the last part can't be that much extra work compared to re-writing everything to use pre-built binaries instead.
 
@Mast You'd be surprised
 
Ah, didn't realize that existed. Thanks. I will post there. Also the URL should be codereview.stackexchange.com. — LMc 20 secs ago
 
I'm not easily surprised :P
 
@Mast Is LibSndFile the holdup now?
 
The real url should be Code Review On-topic help center, to make sure the OP reads what's on-topic there. — Mast 20 secs ago
 
7:34 PM
@syb0rg PortAudio is, at 97%.
But the LibSndFile at the start of the process goes fine.
 
@Mast Dunno why PortAudio is failing... I'll have to look at it later
 
@syb0rg Have a gist and have fun :-)
 
7:52 PM
1
Q: Base64 encoder and decoder

giuscriI'd like to have some feedback on this small snippet I wrote to implement a base64 encoder and decoder. Specifically, I'm not sure I'm handling padding in the best way possible. import string values = string.ascii_uppercase + string.ascii_lowercase + string.digits + '+/' ALPHABET = dict(zip(ra...

0
Q: Simple ini file parser

cloakedlearningThe below is a C++ parser for a reasonably simple INI grammar (although my understanding is that there isn't an official spec as such). My grammar is roughly: comments: (optional whitespace){;#} section: (optional whitespace)[{printable ASCII}] keyval: (optional whitespace){nows printable ASCII...

 
@Mast I made an issue with the libs folder problem before: github.com/syb0rg/Khronos/issues/8
Dunno if you want to give input on possible fixes or not
 
Hi @Daryl
 
monking
 
@syb0rg Want? Yes. Not sure whether I'll be able to do so though. You're pulling quite some magic.
@syb0rg Have you been able to reproduce that though?
 
@Mast It is CMake stuff... but do I want to delete the entire libs folder every time I restart a build? That would make subsequent builds take longer
 
7:58 PM
Could've been a version difference.
 
No, I've had problems with it before
On Windows and Mac
 
@syb0rg That's what I'd do. It's not efficient, but you want your build to work first.
 
True
 
Make it work first, make it pretty later.
4
 
OOP isn't limited out because it's VBA. There are some good examples over on Code Review; — Comintern just now
 
8:00 PM
Welcome @Mario
 
If your code is 'ok' and you want some advices, you should ask at CodeReviewdot.Py just now
This might be a better fit over on code review. — That1Guy 5 secs ago
 
Naruto answer; accepted non-selfie answer with 0 score: Buffered asynchronous writer
 
8:16 PM
0
Q: Get a list of indexes for list A based on criteria in list B in Python

LMcI have one list of data with duplicate IDs and a second list of data with attributes for the IDs. >>>a [1,1,1,1,2,2,3,3] >>>b ['No','No','Yes','No','Yes','No','No','No'] So, you can see the data more easily: >>> for c,(x,y) in enumerate(zip(a,b)): print(c,x,y) ... 0 1 No 1 1 No 2 1 Yes 3 1 N...

 
@That1Guy Thanks, will try it at code review. Did not know about it Until Now/ — Rohan Dwivedi 14 secs ago
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: OPP Sign In/Out procedure in PHP
 
Law is getting appointed moderators. Don't forget to vote.
They don't have much candidates and I'm not a fan of 2 of them, but let's keep democracy alive and get voting.
VOTE!
MORE VOTING!
No, seriously, there's not enough voting going on on the SE network.
 
@Mast @Mast thanks, I'm new here, just reading the messages.
 
:-)
26
Q: Welcome to The 2nd Monitor!

PhrancisSo, you have found your way to the Code Review main chat room, The 2nd Monitor, perhaps for one of these reasons: You were invited or "pinged" by a site moderator or other user to discuss a post on the main Code Review site; You visited Code Review for the 1st or Nth time, and noticed the chat ...

 
9:18 PM
1
Q: Wrapping a CSV file for access and testing

Ayb4btuI have a simple class that represents and accesses the data from a CSV file (using the CsvHelper library). I've tried restructuring the code to allow for better unit testing, but I'm sure the structure of the class could be better; both for testing and for using it (I'm not sure if there is any s...

0
Q: Firebase Sign In/Sign Up Methods - React Native

szierI am in the process of updating my code to the new Firebase 3 Web API standards. I'm having some trouble getting all the syntax right and I'm not quite sure where I am going wrong. Can someone please help me clean up the code below? Any insight would be helpful. The app I am working on is built w...

 
9:28 PM
0
Q: Partial ArrayList implementation in C++

user6636809I've implemented a C++ version of Java ArrayList. It doesn't contain all the functionalities such as AddAll and iterators and such, but I still would appreciate criticism to my code correctness, style and flow and such template <typename T> class ArrayList { public: ArrayList(); ...

 
9:40 PM
Please describe the exact problem. If no problem, post that in code review section. — Jean-François Fabre 18 secs ago
 
9:59 PM
0
Q: How to decouple resource that only lists items owned by logged user

Marco Aurélio DeleuSo, here is the code that I have: class CompaniesController extends ApiController { /** * @var CompanyRepository */ private $repository; /** * CompaniesController constructor. * @param CompanyRepository $repository */ public function __construct(Compan...

 
10:49 PM
0
Q: php optimization

Mj GhuneI'm coding a website whereby users can upload images, I want to optimize those images using php this is what I did. $src = imagecreatefromjpeg($dir); imagejpeg ($src, $dir, 70); $dir is a variable containing an image directory, this however works just fine to images which have very small size...

 
11:00 PM
Welcome to Stack Overflow. Your question might not be on topic for Stack Overflow, but is probably a good match for our sister site Code Review. Try posting it there and see if you get a better response. — Robᵩ 38 secs ago
 

« first day (1178 days earlier)      last day (2841 days later) »