« first day (2703 days earlier)      last day (1318 days later) » 

12:00 AM
RELOAD! There are 7021 unanswered questions (89.7493% answered)
 
12:51 AM
0
Q: Simplified Windows' tracert function

CarcigenicateI wrote a simplified versions of Windows' tracert command as an exercise and to learn about TTL in packets. It shows the path that your internet traffic will (likely) take on the way to the given destination. Here's an example (some stuff is redacted out of paranoia): python tracert.py google.co...

 
1:32 AM
@pacmaninbw Nice, I use the 5540(?) for my new job, 7520 for my old, great machines.
@Mast It's been fun...
@pacmaninbw ProPlus is so worth it
 
 
2 hours later…
3:16 AM
@DerKommissar I think the 5540 is one of the newer generations, do you have an i9 in it? If the ProPlus is the service package I bought, yes, I've spilled coffee into 2 laptops, that gets expensive. Keeping my old hard drive is also worth it if it fails. I'll fix a tower if it fails, don't want to mess with laptops when they fail.
 
 
2 hours later…
4:55 AM
Never build the SQL query like that. Use prepared statements instead. This question would be more suitable for the Code Review! — csabinho 43 secs ago
 
5:11 AM
To be honest: no! I just caught this major error and would have to check your whole script. But maybe it's more suitable for Code Review! — csabinho 39 secs ago
my bad,code review does sound more reasonable.do i just delete post now? — blue 58 secs ago
 
5:48 AM
0
Q: Output Mismatching

Naman JainA string of characters including only alphabets (lowercase letters) is provided as an input. The first task is to compute the frequency of each character appearing in the string. In the output, the characters have to be arranged in the same order as they appear in the input string. Then character...

0
Q: mysql security concerns and improving php pagination script

blueHello I'm new to sql and php.i was trying to understand how a php pagination script works, i found a video on youtube which helped me understand it.this is the source code from that video,however i've got some questions : -is this script good enough for displaying information on a site online?is ...

0
Q: Displaying dynamic input fields with values when the page loads?

Ashiful Islam PrinceHere is my php code: <?php try{ //Need to make a connection $con=new PDO("mysql:host=localhost;dbname=courseraassignment","root",""); $statementUpdate=$con->prepare("select * from position where profile_id=:profile_id"); $statementUpdate->execute(array( ':profile_id'=>$_...

 
Usually questions asked on stackoverflow need a clear answer that solves the problem. 'Please clean up my code' is likely going to be closed pretty fast. The Code review stack exchange might be better. — Evert 18 secs ago
 
 
1 hour later…
7:13 AM
What should we be doing with this answer? Python, assumes wrong version.
 
 
1 hour later…
8:21 AM
When you think that you are finished, and have tested it & are satisfied, why not post it to our code review](codereview.stackexchange.com) site and get some feedback? Even thought the code works, there are usually some informativeness that can be made and you can learn from others that way. Good luck — Mawg says reinstate Monica 37 secs ago
 
 
1 hour later…
9:31 AM
codereview.stackexchange.com would be more appropriate for this type of questions. — Omkar76 46 secs ago
 
0
Q: String line limiter

AndersMy experience is more general architecture and software design not code snippets like this. See any improvement to my code? var message = @"This is a test message 012345678901234567890123"; var output = Split(message, 20); output "This is a test", "message", "01234567890123456789", "0123" Max...

 
9:56 AM
0
Q: Poker Hand Evaluator in Haskell

L292092The idea is to represent a hand as a list of cards and create a frequency mapping, which can then be used to identify what rank of hand you have and arrange your hand in a way that allows the Ord type class to compare hands of the same rank. My solution feels a little cumbersome, however this is ...

 
10:20 AM
@Mast it should show up in some queues now
 
@Peilonrayz Not in any I see, but we'll see what happens.
 
Posting a message to see yours. Firefox bug
Yeah it might take a little while to show up int the vlq queue
 
10:41 AM
Monking
 
 
2 hours later…
12:49 PM
0
Q: created a sql helper class using c#

Vivian Mascarenhas using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Web; namespace WebApplication1.App_Code { public class SqlHelper { public string connstring; public SqlConnection con; ...

 
1:39 PM
0
Q: Coded a Go Script that Sends proxy requests to backend servers

Judas Is BackI've started Go for the last couple of months and I decided to challenging small projects, so I created this proxy requests script. It works well (in my opinion at least) but I'm looking for different ways of improving this further like being able to target all servers, or making this more concis...

 
2:04 PM
-1
Q: Optimizing leetcode problem solution/implementation

user82261I have solved the following problem on Leetcode: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric. Here's my iterative solution: def isSymmetric(root): if root == None: return True ...

 
2:53 PM
0
Q: Password Generator "Crapcode"

user394299I made Password Generator on C#. It prompts the user for the length of the password, whether it contains numbers, lowercase letters, uppercase letters or symbols, and generates a strong password from randomly added numbers, letters, or symbols. There's the code: using System; namespace Password...

 
This question is off-topic due to MRC. In needs definitions for the following classes and objects: ScraperQueueItem, ISocialEventHandler, profile and ProfileConnection.
 
3:08 PM
@pacmaninbw Why can't you review the question because they are missing?
 
Because fields and methods from each one are used.
 
Ok, you can still use them the same way
 
@Peilonrayz I've been doing code reviews professionally for about 30 years, you might want to cut me some slack.
 
Ok? Every time MRC is brought up you and Mast seem to have to call me incompetent. Rather than attacking my point it seems like you'd much rather attack me.
 
3:23 PM
I'm not attacking you I feel like you are attacking me and I am responding.
 
I've also coded professionally in C sharp for my last 3 contracts.
 
I’m voting to close this question because OP is asking for a review. It might be posted on codereview.stackexchange.compptaszni 1 min ago
 
@pacmaninbw How does it feel like I am attacking you, so I can stop that?
 
To give an example, because I knew that you would respond in this fashion, I added
> In needs definitions for the following classes and objects: ScraperQueueItem, ISocialEventHandler, profile and ProfileConnection.
I would have just said MRC otherwise.
Every time I say something is MRC, you say it isn't.
Utill I provide a deep explenation
Why do I need to keep justifying my opinions.
 
3:31 PM
@pacmaninbw I appreciate that. I noticed you've added more to broken and stuff too.
 
:)
Need to go to the mini-mart to get some fags.
 
@pacmaninbw I'm sorry you feel that way. I won't ask why you think something is MRC. I ask because of my own ignorance and I want to know your POV / learn from you. For example you taught me about the stack in C yesterday which I'm sure will help me in the future.
 
1
Q: How to flatten the nested try-catch block in F#?

Harshal PatilHow to flatten the nested try-catch block in F# for the following code? I am using EF Core with F#. The nested is required because I need to Rollback the transaction if there are errors in saving or committing the transaction! let createTenant (ctx: AppContext) (tenant: Db.Tenant) (firstUser: Db....

1
Q: Validate Search Binary Tree

a.dibaccoI was looking to this exercise: Is Valid Binary Search Tree I tried to do the exercise by myself without looking to the solution and my code is "much simpler" than the code I found at the previous link. Is there anyone that can review this code or provide me some test cases for this problem? Gene...

 
4:20 PM
@Peilonrayz You might like this, by the same token, if you say something is MRC, I know it really has to be MRC.
@Peilonrayz I realized this in mid-rant, Code Reviews are about mentoring. Can you tell me what languages besides Python you have had a lot of experience with?
 
@pacmaninbw Thank you. I try my best for that to be true.
 
I'm weak in most of the scripting languages, I can work my way through PHP (limited to 5 at the moment), CSS some JavaScript, HTML 4.1 (a little 5). I don't know Python, Lua, or the Data Science languages. I write a fair amount of SQL these day. I could probably learn Java in 2 or 3 weeks.
I know enough Lisp to know I don't want to know it. I've done extensive programming in C, C++, C#, and VBA (extensive is more that 3000 lines of code for a working application in this case).
I don't like working on the front end because I really can't be bothered with pixels.
@Peilonrayz And I will continue to explain things.
 
@pacmaninbw In experience I'd say from most to least Python, HTML, CSS (SASS, Stylus), fish, Lua, JavaScript + TypeScript, C#. I'm sure you can tell if I'm saying my next best language is HTML.
you can tell I'm a noob if*
 
4:37 PM
Haven't even heard of fish.
You have the languages that are currently most in demand.
 
@pacmaninbw Wow, we're like polar opposites. You like typed + compiled languages and I like untyped + interpreted languages. I'm not a fan of the front end because I have to play with JavaScript.
 
I've worked in environments where millisecond, and nanoseconds matter so typed languages are better. That kind of work (system development) is what I really like to do.
@Peilonrayz Not a fan of jQuery or JavaScript.
 
@pacmaninbw It's a simplified shell language which is easy for me to pick up.
 
I've had to program in bash and CShell, prefer typed languages.
Of course when I learned bash it was the Borne Shell.
 
4:53 PM
@pacmaninbw That's probably some pretty interesting stuff to work with. I enjoy cutting milliseconds and microseconds in Python on Code Review at times. But relies on knowing what Python libraries are written in C and how you can duck tape it all together in as little Python as possible. Gets pretty boring when complexity genuinely has no correlation with performance.
And ofc it's not microseconds when $n$ is larger than say 3
@pacmaninbw Never heard of CShell. But yeah shell scripting is really weird, you don't return you only print.
 
5:08 PM
CShell was on BSD Unix, hasn't been around for a while. BSD is associated with Linux now and I'm not sure if CShell is still around.
 
Ah, I've only played with penguins never played with devils. The Unix family is just so large and after Arch I have a fear every distro also takes a day to just install.
 
5:34 PM
The devil is from BSD, not system V.
 
5:44 PM
You are right. I don't remember the other logos / anthropomorphisms (OS-tans) that are in the Unix family.
 
6:11 PM
0
Q: Is this the correct python code for AdaGrad?

Dhruv AgarwalThis is the python code: def do_adagrad(): w, b, eta = init_w, init_b, 0.1 v_w, v_b, eps = 0, 0, 1e-8 for i in range(max_epochs): dw, db = 0, 0 for x,y in zip(X,Y): dw += grad_w(w, b, x, y) db += grad_b(w, b, x, y) v_w = v_w + d...

 
6:39 PM
@CaptainObvious broken
 
7:06 PM
This question is very broad and open ended which isn’t the best fit for this site. You may be best asking this on codereview.stackexchange.com Instead. If you want to keep it here, I’d ask a much more closed question that can have a correct answer. — Rich Bradshaw 50 secs ago
 
7:45 PM
If your code is working, and you are looking for a review of your code (for efficiency, best practices, ...etc), then this question is more suited for Code Review. If however there is a problem with the code, then you are at the right place, but then specify what exactly the problem is. — trincot 47 secs ago
 
8:15 PM
 
8:35 PM
Since this is working, I think this question would rather fit codereview than StackOverflow — Cid 11 secs ago
 
9:30 PM
0
Q: ValueError: The truth value of an array with more than 1element is ambiguous. Use a.any() or a.all()

ChrisI don't have any idea with this error, import NumPy as np X = np.array([[1,2,3], [4,5,100], [-1,2,100], [3,8,9232020]]) print(X) print('\n Dimension of the array is:') print(X.shape) def getMax(X): this_max=X[0] for e in X: if e > this_max: ...

 
@CaptainObvious broken
 
 
1 hour later…
10:46 PM
0
Q: Translating a JSON query parameter into standard HTTP Query parameters

cyberquarksI'm making an API that stores an Entity of type "Account" with this: HTTP POST: /entities/Account Body: { "accountName" : "superSecretName", "isActive", true } At the same time making this API able to also do an "action" as part of the POST operation through a query parameter: HTTP POST...

0
Q: Decimal to Binary converter

Samuel OsehThis program might seem lazy, I also tried iterating through the vector but performance was poor so I used this lazy approach that has more performance #ifndef BINARY_HH #define BINARY_HH /************************************************************************** * Name: Binary.hh * Author: Sa...

 

« first day (2703 days earlier)      last day (1318 days later) »