« first day (1620 days earlier)      last day (2696 days later) » 

00:08
Databases be rawr!
-1
Q: computer programming and writing a psediocode with input of odd and even numbers

shanna: Write a pseudocode, that has a module check that decides if a user input number is odd or even computer programming

@CaptainObvious Rightfully hammered.
Bloody nonsense...
00:27
0
Q: gSOAP upgrade from 2.8.10 to 2.8.54 has name space issue

HandyManDanCurrently upgrading gSOAP from 2.8.10 to 2.8.54 The XML code needs to match as 2.8.10 products need to talk to products that use 2.8.54 My current issue is the name space for input and data in the dynamically generated code that produces the XML for 2.8.10 has if (soap_out_PointerTostd__string(...

@Mast I can barely tell the difference
You could, however, introduce transaction processing and (I posit) neither would fail silently
00:56
This might be better suited for the code review site — Kyle Burns 25 secs ago
You can post it in CodeReview instead. — user3437460 52 secs ago
0
Q: Real-time timekeeping logic for ATmega16A

felixphewAs part of a clock I'm building based on an ATmega16A, I wrote some assembly code to handle setting up the timer for a 32.768kHz crystal and handle second/minute/hour/day updates. Here are the relevant parts (of the full program): Timing interrupt handler ; One second has passed, do tim...

01:25
"I know my code is badly organized and incomplete" - this is wrong time to ask on SO or CodeReviews. First get your code to state where it is "complete and reasonably organized" from your point of view, than seek feedback... (Alternatively just pay someone to write the code - less effort and nicer for everyone) — Alexei Levenkov 27 secs ago
 
2 hours later…
03:17
0
Q: Combine two .log files and write into a single log file with sorted list based on timestamp

zuoli zhuI'm writing a C program called "mylogger". It is a simple program that merges several log files in order of timestamp. For example, we have server.log: #SERVER DEBUG,2011-10-21 14:32:00,server starting DEBUG,2011-10-21 14:32:01,server started WARN,2011-10-21 14:32:10,client connected DEBUG,2011...

 
1 hour later…
04:22
I think you should post this into codereview.stackexchange.comIpsit Gaur just now
04:35
Monking
@Phrancis Still having trouble with doing those the way it should be done programatically, hence the ugly stuff. But it should work...
The good news is the books part actually works and has a valid, working method of inserting data. It's not up to design yet and the rest of the tables are still giving trouble, but it's a start...
04:59
0
Q: new coder, JavaScript live grade Calculator

Nicole Gworth noting: I cannot use any languages other than HTML5 and JavaScript (no JQuery!) Grade calculator needs to update live Grade calculator needs to show a percentage grade based off score obtained/score possible AND a letter grade. I've been at this for three days. Please help me, and if possi...

I think this question belongs to codereview.stackexchange.com, since there's no real problem/bug in here. — Igor Soloydenko 31 secs ago
05:33
1
Q: Bash script to symlink configuraion files from git repo into home directory

pauloueMy goals are to: Do it automatically (without adding a line to my script every time I add or change the location of a config file) The files in the git repo folder should not be hidden, but the symlinks in my home directory should Existing files of the same name should be overwritten, but not d...

05:47
0
Q: C# Enhance If else statement coding

Derick LooI have a drop down list contain "Add" and "Subtract". When user select either one, it will call a function Calculate() private int Calculate(string sAction) { int iTotal = 0; if(sAction == "Add") { iTotal = X + Y; } else if(sAction == "Subtract") { iTotal = X-Y; ...

I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com. — Uwe Keim 18 secs ago
This Kind of question should be ask at Code ReviewJens 14 secs ago
06:11
@NimChimpsky read the title Can i simplify. It is clearly a code review — Jens 9 secs ago
@NimChimpsky we on code review only accept code which is either written or maintained by the OP hence this question would be closed as off topic. — Heslacher just now
Monking
Eh, yes, that doesn't work.
06:44
0
Q: Generic Repository without Entity Framework

ibubiAlmost all of generic repository pattern tutorials were making use of EF, so I haven't got much sources to compare my code with. Here is what I have done. Could you please suggest me to fix my wrongs if I have or improve the code? Note: I am using Dapper.Net as ORM, and I am aware of Dapper.Cont...

possible answer invalidation by Uwe Keim on question by Derick Loo: codereview.stackexchange.com/posts/177586/revisions
@TT: Actually, that table with two coefficients already exists. My task is to process it to be usefull for conversion of currencies from invoices. Possibly, it is more intuitive to have 100 JPY = 19.5 CZK than a single number. They are stored as decimals (no information loss). I have added a link to Code Review with my solution. — pepr 58 secs ago
07:03
@TT: Please, comment directly on codereview.stackexchange.com/q/177517/16189 It already uses the temporary table. — pepr 41 secs ago
@sdikby You're right, but correcting that wouldn't contribute anything to answering the question. There are a lot of things about the code the OP posted that are suboptimal, but this is not codereview — Georg Grab 11 secs ago
 
1 hour later…
08:31
0
Q: Changing image source attribute on mouse hover

Tavish AggarwalI have a requirement where I want to change source of image on mouse hover. The way I am doing this is: document.getElementsByTagName('img').addEventListener('mouseover', function() { document.getElementsByTagName('img').setAttribute('src', 'url/of/the/image'); }); I want to know is this ...

0
Q: Passing objects or specific method?

wokuwPassing objects or specific method? For example: class Person { public $name; public $surname; public $address; public $childrens; } And which way is best and why? 1) class Data { public function store($other, $name, $surname) { $this->doing($other, $name, $s...

08:44
0
Q: JavaFX FreeTTS program lags on MacOSX. Load wheel

user150659I am working on a personal project and I am new to app development in general also java and javafx. I have some code that works. Only, I am unsure why I get the mac loader wheel once my button to play sound is clicked. The entire stage seems to just freeze until the program finishes a outputting...

1
Q: JavaScript dynamic element filtering functionality

RechunkI am creating a Website with different boxes being displayed to the user, and he can filter them by their Status (the dates are stored on a Django database). The possible statuses are "Active", "Upcoming" and "Ended". The filtering works with Radio buttons, so he clicks whichever he likes and al...

0
Q: Changing image source attribute on mouse hover

Tavish AggarwalI have a requirement where I want to change source of image on mouse hover. The way I am doing this is: document.getElementsByTagName('img').addEventListener('mouseover', function() { document.getElementsByTagName('img').setAttribute('src', 'url/of/the/image'); }); I want to know is this ...

@TavishAggarwal It was already linked here.
I strongly suspect however that you did not read the help center. Please read this FAQ question as well. Your question does not fit on Code Review.
okay. Sure!
09:17
@Mast Hacks are often needed for SQL
s/SQL/coding/
09:33
0
Q: Handle pagination while data are both fetchable from database AND are constructed in PHP

Valentin BEAULEI already have few pages with pagination working properly. class ObjectToSearch { $id; //Id from mysql $name; //Name of the object from mysql $description; //Description in base64_encode() from mysql $date; //Date of the object from musql } Now, I nee...

0
Q: c# Linq vs foreach

Mina Fawzywhich better in performance consider that case I have an array of objects (DocsOrder), I looped throw that array to match exists of passed data itemTapped.DocType I can take one of two approaches First One foreach (var pdt in DocsOrder) { if (pdt != item...

09:45
possible answer invalidation by ibubi on question by ibubi: codereview.stackexchange.com/posts/177588/revisions
@Phrancis Yea, sure, and as long as it works, I'll sort out how to make it shiny later. Except this should work and doesn't.
@KansaiRobot That would be a question for codereview SE — Fildor 21 secs ago
10:02
0
Q: Number of Strings that are substrings of a String X using KMP algorithm

Sarah MI'm working on this problem from Hackerearth where I have to output: a single integer denoting the number of strings in the list which can be formed using letters of string X. I didn't understand why my solution didn't work on test cases. I used KMP algorithm in order to find if a string is a s...

10:16
-1
Q: A PROFILE OF EMPLOYEE ATTENDANCE OF COMPANY USING VISUAL BASICS

gabbyI AM DEVELOPING A SOFTWARE THAT CONTAIN EMPLOYEE DETAILS LIKE FIRST NAME, SURNAME, MIDDLE NAME SEX, HEIGHT, MARITAL STATUS, PLACE OF BIRTH, ADDRESS ANY HELP

0
Q: PHP JPG image re-creation from original file

lampshadeA third party can upload files via FTP to a client's webserver. These images should be displayed on a public-available webpage. The upload directory is not accessible via normal HTTP. To increase security I thought it might be a good idea to re-create the images and store it in the web-folder man...

1
Q: Getting right model from list

MyrezIm not a programmer, but somehow like trying to make something, almost like a hobby. As of now i have made a list of different gameobjects (models) and i need to choose right one from that list. Everything works but i would like to see how someone who undestands what they'r doing could change the...

10:27
If this code works you should probably ask this question at codereview.stackexchange.comChristopher Moore 54 secs ago
Thanks @ChristopherMoore didn't know there was a code review stackexchange. — msbodetti 29 secs ago
I can't seem to close it and put it on codereview. — msbodetti 13 secs ago
0
Q: React: Better way of mapping this data

msbodettiSo this is a continuation of previous questions. I just started using react and I've managed to fetch a xml file, convert it to json and then loop through the data. But I think there should be a better way to go through what I've done as I'm using a function I found on another SO answer and then ...

10:43
You should try posting this on Code Review. — BartoszKP 33 secs ago
@EugeneProut well my CV is on there ...
0
Q: Python code for Project Euler #12

Josh StaffordIf anyone has any ideas on how to make this code more efficient please let me know. I am confident that the code works but after leaving it for 30 minutes at a time, I still have not got an answer out of it. import time from math import ceil def work(): num = 0 goal = int(input("Enter ...

Is there any way to figure out if "design" is all from the same author/developer or maybe from the same "architect" (whomever does code reviews and is allowed to commit overriding changes)? Maybe this person has a bias towards this design because it is their preferred way of debugging or testing edge case scenarios (exceptions)? To bad there is no way to see a commit history.... — Igor 14 secs ago
11:31
I did another INSERT for the first record of each currency. However, I was not able to do that without using cte. See the updated codereview.stackexchange.com/q/177517/16189pepr 33 secs ago
11:42
I wish I could convince my office that we should move away from VB.NET. I want to learn and use something else like c#.
0
Q: Two exactly similar functions giving different output

Bibhuticode 1 const obj = {foo: 123} convert(obj) obj.foo obj.foo = 234 obj.foo function convert(obj){ let r = obj['foo'] Object.defineProperty(obj, 'foo', { get(){ console.log('getting key "foo": '+ r) return r; }, set(newVal){ ...

12:10
@Matt those two are not so terribly different...
Please move your question to :-Code Review siteAlive to Die 50 secs ago
0
Q: I cannot read datas which include Ç,İ,Ü,Ş,Ö.. letters and blank area, and date (with RSS)?

f_gulayI am trying to build Rss feed with Asp.NET from my database.My database is including Turkish language characters.(body column) That gives me error.I cannot show it. Second, There are some blank column. (title column)That gives me error.I cannot show it. Third, There are Datetime data type but i...

You might be better posting this over at Code Review: codereview.stackexchange.comalxwrd just now
12:30
@Vogel612 Is the point you are trying to make that it should not big a big stretch to go from one to the other or the potential effort to institute such a change would not serve a great benifit
@CaptainObvious lol
1
Q: AVX SIMD in matrix multiplication

Henrik NilssonI have coded the following C function for multiplying two NxN matrices and using AVX vectors to speed up the calculation. It works but the speedup is not what is to be expected(some scalar code is faster). What are my major mistakes when trying to use AVX? (I'm new to programming with it so I d...

@Matt no, my point is that both languages have similar systems and are both very well integrated with .NET
Our lead programmer died and his replacement does not have a huge programming history but knows enough VB.Net to get by. I am coming up to speed with his work and would like to change away from that. What would be the incentive to switch? Mine is mostly selfish as I do not want to program in VB.net if I can avoid it.
13:04
1
Q: Most frequent word in an array of strings - Java

kunal saxenainput word array is { "geeks", "for", "geeks", "a", "portal", "to", "learn", "can", "be", "computer", "science", "zoom", "yup", "fire", "in", "be", "data", "a", "portal","geeks" }; Problem is to find most frequent word in array. I want to find solution that can support on adding mor...

David Robinson on October 10, 2017

We found in a previous post that Python has a solid claim to being the fastest-growing programming language in terms of Stack Overflow visits.

The same analysis showed that that the R programming language has shown remarkable growth in the last five years as well. In fact, R is growing at a similar rate to Python in terms of a year-over-year percentage, though this growth is “easier” because it started from a smaller share of traffic.

In another post, we found that much of the growth of Python can be explained by the expansion of data science. Since R is primarily used for statistica …

13:33
@pepr Good to hear. As I said, I will visit your question on Code Review later and give some more remarks if relevant. — TT. 50 secs ago
If anyone is looking for the answer or feedback or advice on this, it can be found here codereview.stackexchange.com/questions/177608/…msbodetti 41 secs ago
Greetings, Earthlings.
13:54
This would probably be better suited to Code Review: codereview.stackexchange.comDarren Bartrup-Cook 9 secs ago
As a most immediate answer here: look into removing Select/Activate. Many of your Ranges are not fully qualified and if for whichever reason focus switches to a different sheet it then this macro will not work. And as Darren mentioned: working code should go to CodeReview. But try removing Select/Activate before going there. — Victor K 10 secs ago
You're not on the right site for ask this. Go on code review section — Alexis 40 secs ago
@PatrickHonorez hypothetical pseudo-code that's just in the post for illustrative purposes (as well as Minimal, Complete, and Verifiable example's), has nothing to do with Code Review and this particular question would get slammed-shut within minutes. Please read a guide to CR for SO users before making your next CR recommendation. — Mat's Mug 56 secs ago
14:32
@Vogel612 That's live.
possible answer invalidation by Rechunk on question by Rechunk: codereview.stackexchange.com/posts/177597/revisions
15:01
@Matt the only thing that you can basically argue is that C# is the mainly developed language and vb.net is just "following along"
Code reviews should be posted at codereview.stackexchange.comrmaddy 17 secs ago
@Matt There's really no business-based incentive to switch, I have the same thing at my workplace (though it's smaller), you're probably just stuck with it. :(
@Kerooker We allow you to post questions about web-layouts at Code Review, but we specifically review the HTML/CSS/JS, not the design itself. — 202_accepted 7 secs ago
15:24
I expected as much..... booourns
Not sure what type of org you work in, but unless you can create a ROI breakdown you probably won't be able to get it switched.
15:54
Probably a good candidate for the site codereview.stackexchange.comJFPicard 35 secs ago
This question belongs to another site: codereview.stackexchange.comJFPicard 52 secs ago
0
Q: Is this the most efficient way of writing generic Comparator?

AmolI have tried to make a generic comparator with the use of reflection , but i am not sure how efficient it is or it is the right way to do so . Also i don't know how it will handle dates , below is the code: <T> List<?> sortList(List<T> l,String field,Class<T> c) throws NoSuchFieldException, Secu...

0
Q: Detecting if image taken by camera is too dark

Bluesir9I am trying to build functionality to check if an image taken by the camera is too dark. So I added the following 2 functions to a utility class: public static boolean checkIfImageIsTooDark(BitmapRegionDecoder bitmapRegionDecoder) { if(bitmapRegionDecoder == null) { Timber.e("Expect...

0
Q: Obfuscate text and preserve line breaks

JanDotNetProblem A function is needed, that obfuscates text but preserves line breaks. Line breaks may be encoded by "\r\n" or "\r", even mixed. myObfuscator is an object that obfuscates text, ignoring line breaks (would be replaced by any other character). Example: ABC\r\nDEF\rGHE should be obfu...

Monking
What's this ugly layout on SE?
new Top-Bar
Can I revert it?
16:12
@skiwi Just f5ed, it looks grim... :/
16:56
0
Q: Need help reworking simple IF logic for a script for Cisco Networking parser to XML

William HickeyThe INPUT FILE is created by a script that runs "show interface description | i FN" against each of my routers. Once I have that file, my PYTHON SCRIPT below, parses the INPUT FILE for each of the routers hostnames and appends the circuit carrier acronym (VZ, BT, Cogent...etc) and hostname to t...

@skiwi No.
And yes, it's bloody ugly.
1
Q: Does this Python logger make sense?

kramer65I've been writing Python for years, but I've only just started using it in bigger programs than just simple server scripts. This means I now also want to use a more advanced logging system. To make things simple I created the following logger: import logging logger = logging.getLogger() formatt...

0
Q: splitting pdf by size in python but some pdfs get rotated

1T33T3RNI'm trying to split a pdf by size. The code splits the pdf into the correct size and folder but I can't figure out why it rotates some of the pages. The wx portion is a work in progress to output the print statement. Thanks for any help. import PyPDF2 import os import glob import wx class WI...

17:27
0
Q: simple background worker carrying out some queries and updating a progress bar

Daniel LoudonOkay so I have a form that will deal with the front end of a catering system I am building, I have chosen to use a background worker to carry these queries out(I have not wrote them yet), then update the circular progress bar bit by bit as they are carried out, does this seem wise? Is there a mor...

17:42
0
Q: TPL Task tracker which keeps track of tasks

Sharad ShahiThis class keeps track of tasks which are added and tries to remove after certain delay. I was tried doing it with CustomTaskScheduler but didnt get much. https://stackoverflow.com/questions/46595501/keeping-track-of-completion-of-many-tasks/46596616? I would be glad to know if there are other ...

17:58
Without seeing the full application then there is no way to know. Its also worth noting SO isn,t a code review website but a code assistance website. When you hit a problem you cannot solve by learning/debugging/searching then you might choose to post the section of your code that is causing you trouble along with the code required for it to work. — Chris 42 secs ago
0
Q: Creating data objects dynamically at runtime from an interface

t3chb0tSometimes when I write objects for holding data (not real DTOs, no serialization involved) I also create an interface for it. The class that implements it can also perform some null checks. I don't always like to use the Validator because you need to remember to call it. Such implementations may ...

@Hosch250 Not sure if you knew F# has an Option.ofObj for object types, which converts null to None and anything else to Some _. It's not documented on MSDN, so it's hard to find.
Huh, no.
There's also Option.ofNullable which is the same, but for value-types. (Nullable<T> -> Option)
18:12
Good monking.
18:43
0
Q: Delete k-th from last node of a singly-linked list

tofu_baconI'm learning linked lists and I came across this algorithm question that asks to delete the k-th from last node, and to return the head. Here's my code: def del_kth_from_last_node(node, k): if node is None: return node if k == 0: return node head = node prev = node length =...

18:54
I'm voting to close this question as off-topic because this is a request for code review, which belongs on codereview.stackexchange.com — dasblinkenlight 17 secs ago
I'm voting to close this question as off-topic because It is a request for a code review, and may possible be able to be migrated to the codereview Stack Exchange. — Sam I am 42 secs ago
I'm voting to close this question as off-topic because this code works. If it needs a review ask at codereview.se but check their help before posting there. — rene 32 secs ago
In light of this hivemind, I think that maybe codereview.stackexchange.com should be in the list of potential migration targets — Sam I am 55 secs ago
0
Q: How secure is this code? Query from database & loop

Alex GoglI made a custom plugin for showing cross-sells on the single product page in woocoomerce, however i need to know if this is secure and possibly acts as an attack vendor. Additionally, is there a better way than a while loop for iterating through the products? if ( ! defined( 'ABSPATH' ) ) { ...

When code IS working post to code review for comments on how to improve the code. — QHarr 53 secs ago
On all seriousness, this is a question for Code Review - but only with a Minimal, Complete, and Verifiable example. — the4kman 50 secs ago
@Zeta can I ask you to doublecheck my latest haskell answer?
@the4kman Example code is off-topic on CodeReview. Please read this guide before you refer others to CRZeta 6 secs ago
19:19
@the4kman same reason someone would make an Excel display driver to implement a Tetris game in VBA? — Mat's Mug 39 secs ago
@Vogel612 Sorry, got a call. All your points are valid, although the median is a little bit tricky.
thanks for confirming :)
19:35
0
Q: Code to accept resume and cover letter using c#

Desmond BuchananHaving completed an independent coding task I then ask a few professional developers for their feedback as to what they think of the project I presented, given that I am not an expert c# programmer I made quite a few mistakes. How can I improve the following block of code: public class applicati...

20:15
possible answer invalidation by Sam on question by Sam: codereview.stackexchange.com/posts/177550/revisions
20:32
Take loot at codereview.stackexchange.com/questions/62100/… and my answer to the post. Hopefully that's helpful. — R Sahu 16 secs ago
0
Q: Generic Resource Manager

EejinAfter scanning some of the questions here about resource managers I've made some changes, and while it is much improved I still feel it's not quite up to snuff. It tried to make it work for all data types that inherit from resource and load the resource automatically if not yet available. Resou...

21:05
0
Q: Receiving some json, checking if one property of it belongs to a mongoose model (by reference) if it does, adding it to db

R.RomeroI'm completely new in nodejs,mongoose,es6 and i'm having some issues in which way is cleaner and better to do the task I explained in the title, the first one its the "dirty way" its working not as desired because im having issues with error handling. The second its the best approach (using es6 p...

21:23
0
Q: First-class objects in Python

srigAs a beginner, in order to cement my knowledge of functions in Python, I’ve prepared this Jupyter notebook First-Class Functions. The code in it is working, but before moving on to closures and decorators I would like you to comment on my code please.

@Duga Handled
@CaptainObvious 1st block is not working correctly, 2nd is untested, so I'd say off-topic.
@CaptainObvious Off-site code
21:51
0
Q: PL SQL - Syntax error in function

SurveyVisualI had a syntax error, probably a simple syntax error, but I can't see what is it.. Here's my code : CREATE OR REPLACE TYPE courriel IS TABLE OF VARCHAR2(200); / CREATE OR REPLACE FUNCTION fct_courriel RETURN courriel IS courriel listeCourriel := courriel(); vSuffixeCourriel varchar2...

@CaptainObvious Broken
0
Q: A simple implementation of the producer/consumer pattern

VahagnConsider this class that consumes some items and handles them with the provided handler function. #include <queue> #include <mutex> #include <atomic> #include <thread> #include <utility> #include <condition_variable> template < typename Item > struct Handler { template < typename Callable > ...

22:21
0
Q: build a template service that will replace any word given with a new word

IpoozaThis is the user story assigned to me in one of the interview. Personally I think the user story is not well defined for a developer who has no knowledge about business. User Story: One of the application areas that you are working on is handling a Legal document disclaimer that sends a text blur...

@CaptainObvious Code has been added
22:51
0
Q: Python script uses Metro Transit's API to tell you how long till next bus

kat-gieI have written a program which will tell you how long it is until the next bus on “BUS ROUTE” leaving from “BUS STOP NAME” going “DIRECTION” using the api defined at http://svc.metrotransit.org/. Example: $ metro.py "metro blue line" "target field station platform 1" "south" 6 minutes I am v...

23:33
0
Q: Optimization Resource File for Robot Framework

Brandon OlsonI'm looking for optimization between these files, and simplification. If something already exists to do what I have a keyword do, I'd like to know about it. Loops.py is located in one of my other posts (Python - Robot Framework Loops). o_o.py is down below. The idea behind this is to shorten the ...

23:47
I'm voting to close this question as off-topic because this question belongs to codereview.stackexchange.com. — Dávid Pásztor 43 secs ago
aaand you're wrong.. This is pseudocode. It does not belong on Code Review. Read up :) — Vogel612 48 secs ago

« first day (1620 days earlier)      last day (2696 days later) »