« first day (951 days earlier)      last day (3068 days later) » 

12:00 AM
RELOAD! There are 1638 unanswered questions (94.4482% answered)
 
But don't depend on them for 100% safety
Always validate twice
When in doubt, validate 5 times
 
@Mat'sMug ping me next time you're around, I'd like to run a certain SQL challenge by you that I need help formulating (to possibly propose to implement), I'd like to pick on your business expertise a bit
 
possible answer invalidation by Meldum on question by Meldum: codereview.stackexchange.com/posts/113506/revisions
 
@Duga rolled back and commented
 
12:22 AM
@Phrancis not if the website is in php thinks it knows what's good for you
 
So, I'm running it multithreaded now.
foreach (var decryptor in CharList.Select(t => new DecryptPassword(CharList, t + "  ", t + "~~~")))
{
    tasks.Add(new Task(() => decryptor.CalculatePassword()));
    tasks.Last().Start();
}
 
@Phrancis I'm sort-of around (phone chat)
 
Now, I need to figure out how to get the password returned from the task.
 
@Hosch250 you'll need a Task<Password>
Then you can return await thatTask.Run(); to return the result
 
@Mat'sMug Let's just wait until you're "around" around (on a PC), I'm not in a hurry
 
12:26 AM
OK.
Thanks.
 
@Hosch250 (assuming the method is some async Task<Password> Foobar()
And... that's not multithreaded, it's asynchronous ;-)
My understanding is that the TPL decides whether or not to spawn a thread for a task
I could very well be wrong though
 
What is the TPL?
 
The Task Parallel Library
Basically an acronym for a namespace in the .net framework
using System.Threading.Tasks;
 
Bother, it isn't running asynchronously anymore.
OK, fixed.
 
12:44 AM
Hello.
 
Hi.
 
How's it going?
 
OK.
I can program again, but I forgot a lot of stuff.
 
@Hosch250 it's like riding a bicycle :-)
 
Yeah, it is coming back.
 
12:50 AM
By the way, @Hosch250, I remember you were a PPCG person. What do you think of this:
9
Q: Minimum number of numbers to sum to exactly n

TheCoffeeCupFirst question here, don't yell at me if this is a duplicate or a bad challenge. Introduction I thought of this challenge myself, and it seems to be a good basic puzzle for beginner code-golfers. It also might help me decide which code-golfing language to learn. Challenge Given an array of in...

 
Looks good, but might be a duplicate.
 
Well, it has not been closed for about 2-3 days now, so I think not.
 
Is there any better way of telling my program to wait until all threads are completed than this?
foreach (var task in tasks)
{
    while (!task.IsCompleted)
    {

    }
}
 
I kept wondering why my IDE was telling me "divised" and "divized" were spelling errors in my documentation. Damn Frenchie.
 
@Hosch250 Task.WaitAll(Task[])
 
12:55 AM
OK.
 
else
begin
    begin try
        --autocomplete code ftw
    end try
    begin catch
    end catch
end;
 
Right
 
And that reminds me.. there's a RD issue I need to open
 
So, it is running asynchronously.
Now, I need to find when one task finishes if it returned a value other than null and stop all the rest, rather than waiting for the whole thing to finish.
Whoops, was checking for a 4 character password. No wonder it was taking so much longer than I thought it should for just three characters.
 
1:04 AM
Try the first tip
Create a volatile variable
 
I know how to stop them.
 
Then store there the returned value of the thread, if it isn't null
If it isn't, each thread terminates on it's own
Or am I giving bad advices?
 
Not really.
I just need to know when a thread terminates.
 
That gave me a load of results
 
Sorry if interrupting, but related to cancelling multiple threads at a point have you looked into using msdn.microsoft.com/en-us/library/…
That is CancellationToken's?
 
1:09 AM
Yeah, I know I need to use those.
 
man, I wish there was a way to declare real constants in SQL.
declare /*CONSTANT*/ @ITERATIONS_ALLOWED int = 100;
If anyone got better ideas for formatting/declaring I'm all ears
 
@Hosch250 At a previous firm we've used the combination of TaskCompletionSource and CancellationToken to properly get results from tasks, and let that affect other tasks in the program.
 
OK.
Thanks for the tips.
 
I wouldn't use volatile as a first resort
I mean, it has implications beyond my understanding, so I'd do anything to get my code to work without it
 
1:18 AM
Another good advice is to use ContinueWith, as the accepted answer here: stackoverflow.com/questions/14801317/task-completion
 
ContinueWith with a little more details and references: stackoverflow.com/questions/3462104/…
 
@Mat'sMug Ooooo, auto getters and setters in Rubberduck, makes me wish I was a VBA dev. Maybe. :D
 
@Phrancis If the language doesn't support it, don't try to implement it. Ruby and Python don't enforce constants either.
 
1:35 AM
@Mast Do you think naming and small bit of documentation like I did is decent, to indicate to the maintainer that the values shouldn't ever be changed?
 
@Hosch250 Task.WaitAny?
 
(in this case 100 recursions is a built-in constraint enforced by Transact-SQL)
(why did I name it iterations and not recursions?)
 
Yeah, I'll wait any and loop until I can cancel them.
 
@Phrancis Definitely clear enough, and quite decent.
I usually put comments around like # DON'T EVEN THINK ABOUT TOUCHING THESE
 
/* @numberOfIterations
 * SQL Server limits recursive CTEs to a maximum of 100 iterations before raising the following error:
 *   `The statement terminated. The maximum recursion 100 has been exhausted before statement completion.`
 * Hence, if we know that 100 or fewer iterations are needed we can use a simple recursive CTE to generate the series.
 *   Note: `+ 1` is added to the divided result to prevent off-by-one error due to rounding.
*/
declare /*CONSTANT*/ @MAXIMUM_RECURSIONS_ALLOWED int = 100;
That ^ is how that section reads
 
1:38 AM
I think SCREAM_CASE is a good convention when the language doesn't support if.
 
Yup.
That's the best practice in many of such languages.
 
@RubberDuck You mean SHOUTY_SNAKE_CASE? :)
 
IM_A_CONSTANT
 
I wish, I wish it didn't need to try to create the file before it tests the password.
 
Lol. Yeah. Shouty snake case..
 
1:39 AM
I'm getting a gizzilion errors about files already having the same name in the same directory :(
 
@Hosch250 I feel certain they made it this way on purpose, to prevent (or at least mitigate) exactly what you're trying to do
 
Possibly.
 
@Hosch250 Can't you skip that part? I assume you first create the file and read it a fraction later. Just keep it in memory.
 
@Mast I'm using a third-party library for the extraction.
 
Doomed.
 
1:41 AM
If your code is functional but you wish to improve it, this is not the place to ask. You better head over to Code Review Stack Exchange. On Stack Overflow it's considdered off topic. — icecub 26 secs ago
 
@mjolka I'm in the process of doing the puzzle and I just realised it's a QR code! So cool!
 
Problem solved!
They have a CheckZipPassword method built in :)
 
0
Q: Rewriting function to get rows from database

jessicaI have a function that returns rows from my database, and it works fine, but I was told that it was poorly written, and there is a lot of unnecessary code in it. I'm wondering if there is a simpler, easier way to rewrite this function. function gd($query) { global $connect; $fetch = mysqli_quer...

0
Q: Return the Euler Cycle for a graph with es6

Daniel JacobsonMy algorithm for finding an Euler tour of a digraph, G⃗, if such a tour exists, starting from some vertex, v. 'use strict'; var graph = { 1: [{val: 2}], 2: [{val: 3}], 3: [{val: 5}, {val: 4}], 4: [{val: 1}], 5: [{val: 6}], 6: [{val: 3}] }; var EulerCyle = (function(G,...

 
2:01 AM
 
It is working!
Takes a minute or so, though :(
But, I'm not quitting when I find it.
 
@SimonForsberg ^^
 
lol
 
@Quill Does that amount to a working QR code?
 
2:11 AM
not yet
once it's done
it's a picross game
cross the empty spaces, color the filled spaces
 
I need to use a better algorithm for creating threads and ensuring passwords are not checked twice.
@Quill Looks good.
 
at the end you color all the filled spaces (blue) black and empty all the crossed spaces (red) and it'll show a qr code
 
I'm trying to decide whether to post this early version or try it a bit more myself.
 
depends on how much more polishing you can do
 
I don't know. It takes a few minutes to calculate a 3-character password.
It should just take a couple seconds, but I'm not sure how to improve it at this point.
 
2:17 AM
then it's probably best to post the early version
 
@Hosch250 sounds like you're about ready for a CR :)
 
It takes about 1:45 minutes.
I need to work on the other algorithm by myself, I can't just have you guys walk me through it.
With a three digit password and 95 possible characters, there are a total of 850490 possible permutations.
That is a total of about 8100 passwords per second.
At this rate, a 6-digit password will take 894 days.
I don't have time to sit around and wait for it.
 
2:41 AM
Well, I'm going to post the processing class.
I can work on the other algorithm separately.
Title: IZ IN YR ZIPS CRACKIN YR PASSWRDS
Everyone will thing LOLCODEZ! and click it.
 
lol
That would probably work.
 
but if it's not in LOLCODE, it would be misleading
 
I'm about to upload a Ruby question.
 
Wuby?
 
Don't worry, I'm posting a normalized version of it.
> I'm in your .zips crackin' your passwords
 
2:45 AM
@Mat'sMug Handling data structures this time. But don't worry, there will be a follow-up in wabbit style later.
 
That'll do it :)
 
Maybe you should try posting this in Code Review — Ruchir Baronia 38 secs ago
 
0
Q: Solitaire Game implemented with React + Redux

PeterI am looking to enter the web development workforce and want to gauge my skills; I have created a game of solitaire to demonstrate my understanding of JavaScript/CSS/HTML, and the node/npm environment. I focused on readability, and showing familiarity with well known tools like github, webpack, ...

 
Yeah, I've used order by for so long in opposite ways, now that the opposite way is the correct way in my mind. — jessica 1 min ago
Facepalm.
 
Man, my code is so broken
 
2:59 AM
0
Q: Proper Use of Keep Alive For Loop

AirbornzI'm working to make a thread that monitors a web api to get the latest announcement via JSON. I cannot test this currently, so I'm unsure if anything needs to be changed with this. I've read through other questions but everyone else doesn't seem to be using a loop to keep getting a response. pub...

 
is it giving any problems? if not and you want to review your code submit it at codereviewdavejal 22 secs ago
No, it does not have any problem. Ok I will submit it at codereview. — To Panitan 12 secs ago
 
@CaptainObvious Unwritten code?
if (!(lastAnnouncement == (long) jsonResponse.get("time"))){
    //String announcement = (String) jsonResponse.get("message");
    //TODO What to do with announcement...
}
 
Why isn't this working...
 
you're looking for code reviewroippi 34 secs ago
I'm voting to close this question as off-topic because it belongs on Code Reviewroippi 34 secs ago
 
3:09 AM
I got an array of hashes. I want to access all values of one of the keys in those hashes. It can't be that hard.
For some reason I only get blank lines though.
 
OK, all you C# geniuses, I've posted my question.
 
We have a stack exchange site for Code Reviews, if your code works and you just want to figure out how to make it better. — Roddy of the Frozen Peas 51 secs ago
 
@Hosch250 nice title
 
numbers.each { |number| puts number[:Prime] } Y U \N ?!
Just gimme my value.
</rant>
 
3:17 AM
1
Q: I'm in your .zips crackin' your passwords

Hosch250As an attempt to learn multithreading better, I wrote a program to crack the password of a ZIP file. It is sort of slow, processing a three-digit password of the 95 printable ASCII characters in about 1:45 minutes. This is my class that actually handles the cracking: class DecryptPassword { ...

0
Q: Proving even-ness in Agda

cauliflowerI've been just getting started with Agda. I tried to prove, as exercise, evenness. even : â„• → Bool even 0 = true even 1 = false even (suc (suc x)) = even x x : even 12 ≡ true x = refl But asserting truth using _≡_ seems like a really bad way. What would be the best way...

0
Q: How to fully make use of oop in python and and use __init__(self)

Jay GorioI have this project about using oop in python. Can someone please check my code and offers me a good revision for my code.I just want to revise my code and get advantage of oop. Below are my code: class Parent: name = "Player" lives = 3 #display player running def run(self, name): self.name...

 
@Mods If you need me to stop skipping reviews in the First Posts queue because it is getting out of control, just let me know.
I've been skipping to let other people get the badge.
Dishes time, TTYL.
 
Do you really use names like $myArray and $count in production code? I hope not. — Phrancis 41 secs ago
 
@Hosch250 Cleaned them up, I don't have my 1000 yet.
 
-1
Q: Flowcharts and pseudocode

SHsttlr1Conversion problem....A Rose by Any Other Name. Paulette has just planted a large rose garden that she wants to fertilize. She knows the area of her rose garden in square feet, but the fertilizer is measured by the square yard. ...........How do you write a program that converts square feet to sq...

0
Q: Proper code writing this equation in latex

TopI start writing my note in latex and am trying to write a pseudo code based on this equation as attached in this link below: http://s17.postimg.org/5p3rwbzcf/equation.jpg Here is my code I have tried so far. \begin{addmargin}[10mm]{0mm} \textbf{Repeat until convergence:} \ \{ \[ ...

 
3:34 AM
@CaptainObvious Really testing what qualifies as code.
 
@200_success At least the pseudo-code VTC reason is unambiguous, for once
 
The fact that it happens to represent pseudocode is irrelevant. The question is about LaTeX typesetting.
If we can review just HTML, then is really worse?
 
gosh and I was going to edit/replace the formula picture with MathJax
 
I guess it depends how you define "code", I do understand your point @200_success
I honestly don't know how to go about it, though
It's "code" for some values of "code", whereas "code" is defined as language meant for computers... But it's also "not code" in that it doesn't do anything...
 
I was going to make a CR post, turns out I needed a SO post first:
0
Q: Retrieving values from corresponding keys in Ruby hash

MastThe following only prints white lines. If this isn't the way to retrieve values from keys in Ruby, what is? numbers = [] for i in 1..100 do hash = { :FizzBuzz => 1, :Prime => 3, :Fibonacci => 5 } numbers << { i => hash } end numbers.each do |number| puts...

 
3:48 AM
it's enough of a different mindset of "code" that there's another SE site for it :)
 
It produces a certain output, and it's possible to write it better (e.g. more semantically).
 
@Phrancis So, how does it differ from HTML?
realizes he has been wasting an hour on a stupid mistake
 
@Phrancis it's not a programming language
it's a styling language
like CSS
 
4:15 AM
0
Q: Filtering a layer on a WebGIS using ArcGIS JavaScript API

iledBackground I am working on a WebGIS application using JavaScript and ArcGIS JS API. I am new with js, so please bear with me. While learning and developing with js, I am trying to follow some rules, such as Asynchronous Module Definition (which ArcGIS JS API encourages), Revealing Module Patter...

 
Well, made it a CR question after all.
0
Q: Data-structure exploration

MastOn my quest to learn Ruby I figured exploring the proper usage of different data-structures would be invaluable, including strings, arrays and hashes. I decided to build a hash containing the numbers 1 till 100 inclusive. These hashes would contain: Whether the number is prime What it's FizzBu...

 
I ended up adding 1, 2 etc as keys on the same level as :FizzBuzz et al. Works like a charm. — Mast 55 secs ago
 
0
Q: Data-structure exploration

MastOn my quest to learn Ruby I figured exploring the proper usage of different data-structures would be invaluable, including strings, arrays and hashes. I decided to build a hash containing the numbers 1 till 100 inclusive. These hashes would contain: Whether the number is prime What it's FizzBu...

0
Q: How can I make this code functional?

JireHow can I adjust the following code to make it use functional programming? Java: boolean isValidMask(ByteBuffer data, int offset, byte[] pMask) { for (int i = 0; i < pMask.length; i++) if (pMask[i] != 0 && pMask[i] != data.get(offset + i)) return false; return true; ...

 
5:33 AM
Who killed the music room?
 
wut
 
There hadn't been any posts for 58 minutes.
 
@Mast what @Quill said. <body>Hello</body> is "code", technically, but it's not really, because it doesn't "do" anything
 
@Phrancis Markup, not code.
 
But it does, really, "do" something, which is display "Hello" in the body, it's just that's mostly uninteresting
Hey look, I have 16 0 Facebook messages
 
5:53 AM
0
Q: Multithreaded tests not warrantable?

Peter RaderMy platform for visual modeling processes accepts 3rd-party-plug-ins. Unfortunately the 3rd-party-plug-ins are usually programmed standalone, not in combination with other plug-ins. A combination of multiple plug-ins may freeze the application, this is perspectivly a growing problem. In the pla...

 
Finally i think programmers.stackexchange.com would be a better place. — Peter Rader 54 secs ago
^ wat?
 
6:17 AM
@mdfst13 @Mast @QPaysTaxes Please apply extra scrutiny when approving very negatively scored questions with broken code for reopening.
@Mast @QPaysTaxes @RubberDuck What is unclear or too broad about this question?
 
6:43 AM
Monking
 
6:54 AM
 
7:17 AM
 
7:41 AM
0
Q: simple calculation solves equations(no array)

duliteleI have to do a simple calculator for decimal fraction with no array as the user input an equation and the calculator gives the result. when I try to run the program it doesn't show the result when I insert the equation.what is wrong with the code? //contains the operation between two continueo...

 
Zak
Monking @all
 
hey @Zak
 
8:04 AM
@CaptainObvious broken code
 
Yeah it seems to work. I think you should post this on codereview.stackexchange. That is the correct place — Shreyans Sheth just now
 
That guy only drives an alkaline car to overcompensate for his highly acidic penis.
3
 
@RMunroe In some other chat rooms that would be flagged !
2
nevertheless its great ;-)
 
8:38 AM
1
Q: Unfair semaphore in Java

Daniel JourI'm tutor for a university operating systems course, and part of my work is creating exercises for them. Those exercises are mostly about concurrency and synchronization issues. For the next exercise I intend to show them the finished implementation of an unfair counting semaphore, and their job ...

 
Monking
 
8:59 AM
0
Q: A simple todo list in ReactJS

Mark VizcarraI have a working useless todo app created with ReactJS. I'm just wondering if my code can be improved. This app can add a todo item and it can display editable list of todo items. This is my ReactJS code. var TodoApp = React.createClass({ getInitialState: function() { return {items...

 
9:17 AM
0
Q: how can i iterate a list which is from action class in struts2 using getjson in jsp

user92006how can i iterate a list which is from action class in struts2 using getjson in jsp for (Object[] objects2 : arrlist) { commonBean=new CommonBean(); commonBean.setArrno1(objects2[0].toString()); commonBean.setArrno2(objects2[1].toString()); arrListMain.add(commonBean); } <s:iter...

 
possible answer invalidation by user3487990 on question by user3487990: codereview.stackexchange.com/posts/113501/revisions
 
9:35 AM
Monking
 
Zak
@Duga Needs rolling back. Left a note explaining procedure for selfies and follow-ons
 
Done. You still don't have edit privileges?
 
Zak
They're at 2k
 
Ah, I keep thinking 1.5k for some reason.
 
Zak
I've doubled from 800 to 1,600 in the last fortnight, so another week or so :)
@SuperBiasedMan IIRC, they're one of the levels that *didn't* change with graduation.
 
9:47 AM
"I wonder if anyone knows of a more efficient way to do this?" codereview.stackexchange.com will help — Shreyans Sheth 26 secs ago
Seems reasonable, except you need to call the get functions, not just name them. Change getReal to getReal(), and similarly getImag to getImag() in operator<<. Other than that, you may be better asking this over at CodeReview.SEBoBTFish 52 secs ago
 
@Zak Really? Oh that's rough. Having to suggest edits is the worst.
Every time I'm on another SE site I'm reminded of the pain.
 
Zak
@SuperBiasedMan I don't really mind very much.
Plus, I reckon we could *all* get run over by a bus tomorrow and @Jamal would still somehow manage to edit the entire site.
3
 
I'm an obsessive editor. I like making tiny changes. Which is fine with privileges, but otherwise not.
Hahah, yes.
 
10:08 AM
My god, trying to upgrade from Angular 1.2 to Angular 1.4.8 is proving a challenge in this project.
If only people would adhere to semver so it would immediately flag up any breaking changes :\
This is why semver is important people
 
10:41 AM
If you would like a code review this isn't really the place: you might want to look at this: codereview.stackexchange.com Here they will evaluate , give advice and offere improvements on the code you have written. — Chris Spittles just now
There's a special site for code reviews. — Joachim Pileborg 50 secs ago
 
1
Q: Modifying the response object for creating and downloading a document

lusocodingI've been looking at some code done in C# ASP .NET WebForms and for some reason I really don't like the below code. What is the best alternative for creating a document and downloading it in Webforms, on the click of a button? Should the developer be messing with the Response at all, in this way?...

2
Q: Detect how long a html button is pressed

kometenI recently had the need to detect how long a button is pressed and perform different actions based on that. I found some examples on stackoverflow but the ones I looked at showed how to use timeout(). So I came up with this. There are probably other ways to solve this. While searching I found an...

 
possible answer invalidation by kometen on question by kometen: codereview.stackexchange.com/posts/113587/revisions
 
@Duga handled
 
10:57 AM
Question should rather be posted on codereview.stackexchange.com. — Raidri 13 secs ago
You might want to try codereview.stackexchange for 'suggestions' — Shreyans Sheth 24 secs ago
@ShreyansSheth Code Review doesn't offer suggestions to change how the code works, it's just for reviewing code that already works as intended. — SuperBiasedMan 57 secs ago
 
0
Q: Anisotropic Diffusion

Ishank GulatiI have converted this Matlab Anisotropic Diffusion code to C++ but I am not getting the desired output. All I am getting is a black image. Can someone please check my code and give any suggestions? Below is my code: void anisotropicDiffusion(Mat &output, int width, int height) { //mat initialis...

 
11:13 AM
Monking
 
11:27 AM
Monking Vogel
This is a great succinct answer: superuser.com/a/1011292/442758
 
Zak
@SuperBiasedMan +1 for formatting as a key
 
They even used whitespace to size it.
 
11:51 AM
@200_success I must have read he was trying to do it without any sort at all, which I deemed a strange request. If that makes sense. The question I voted to re-open had fixed an obvious bug which was mentioned here in The 2nd. It looked OK, but as you said, extra scrutiny could well be a good idea.
 
12:11 PM
This... is a terrible question. But where can I do advanced searches? Where I can search for questions that contain [tag1] but not [tag2]? I know there was a page somewhere but I can't find it.
 
@SuperBiasedMan um I think there's a search format for it
like in the actual search box
 
Oh, ok I just need to perform a search then it has the advanced search tips on the right.
It shows you all the special syntax there.
 
Please create a MWE (stackoverflow.com/help/mcve); the code above contents local images as well as non-standard tex packages. This question, however, seems more of code review type rather than a technical one. What have you tried? Have your tried disabling one of your other packages on by on to see if one of them possible is the cause of your footnotes being left out? This is something you could do yourself, and thereafter ask a more specific question; e.g. "Why does the ... package seemingly remove my footnote texts? <include MWE>". — dfri 50 secs ago
 
12:48 PM
I was suspended for a week. Apart from that, it looks like my karma was reset to its minimum. Is it permanent?
 
0
Q: Show status images according to background worker

demoI work with WPF and have application which try to take data from server. This logic is inside background worker Do_Work event. protected async void syncWorker_DoWork(object sender, DoWorkEventArgs e) { ProductsOverviewBtn.IsEnabled = false; SetSyncStatus(SyncStatusConnecting); var ...

0
Q: What type to declare properties inheriting base class and implementing different interfaces

heltonbikerI have a class using a group of properties in similar ways (only two shown in the example, for brevity). The general behavior is defined on a base class, while the specific behavior is defined in specific interfaces The problem is: If I declare them as base class, I have to cast them to interfac...

 
Turns out there are two versions of the Fibonacci sequence, a modern version starting at 0 and the original version starting at 1. — Mast 24 secs ago
Things I learn.
@coderodde Usually it's for as long as the ban holds.
Blame caching.
 
Questions like this are more suited for Code Review. — Gerald Schneider 49 secs ago
 
1:06 PM
0
Q: Javascript make code cleaner with reusing variables

JavaJavaScriptI am fairly new to Javascript.I have to count some values and my current vairable looks like this : var mainObj : { "main1":{ "var1":0, "var2":0, "var3":0 }, "main2":{ "var1":0, "var2":0, "var3":0 }, "main3":{ "var1":0, "var...

 
belongs to codereview stack exchange — Sulthan 36 secs ago
 
0
Q: I am trying to write C#'s analog of setTimeout, setInterval and clearInterval, is this the right approach?

serge1peshcoffSo I got tired of starting timer every time I need to do something simple as running some function 5 seconds after something in my code happens. So I tried to write a function (actually, 3 of them: setTimeout, setInterval and clearInterval) to write one line of code when I need it instead of, say...

0
Q: Script to POST form with various types of inputs to MySQL

user92031I'm trying to submit a form with text, calendar, range, checkboxes, radios inputs into a mysql db, but hitting a wall. snippet to show errors doesn't show any extraordinary error, after clicking submit button, the page just blinks and refreshes and nothing is stored in the db. The script includ...

 
1:23 PM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comIridium 55 secs ago
 
strange revision
@CaptainObvious to the close voter of this: it's fine
 
@Quill No, it's not. It's example code.
 
it's the pattern they want reviewed, not the callback functions provided
 
I think you are not used to python, in python indentation level is what matters to define blocks. Your indentations are messy. You've put an elif block after an else block. You should post this code to Code Reviewcaiohamamura 57 secs ago
 
I don't know why Joseph would delete his answer
 
1:31 PM
@Quill Doesn't matter. For all we know he oversimplified things, he gets answers, OP doesn't like the answers because they aren't applicable and all of a sudden there's drama.
Say no to example code.
 
I agree that some more of the code, or actual names of the keys would be nice, but not necessary for the code to be on-topic
JavaJavaScript, your code seems very hypothetical/exemplar, some adding some more information or a little more of how/what this object is used for would help reviewers write you better reviews. :-) — Quill 14 secs ago
 
possible answer invalidation by rabbit.aaron on question by rabbit.aaron: codereview.stackexchange.com/posts/113486/revisions
 
@Duga That's odd.
 
@Duga It doesn't look like it directly invalidates the answer but it's probably pretty suspicious
 
It kind of did? It added the solution that holroy suggested as an alternative in the question.
It still creates confusion because now it seems like holroy's suggesting something the OP already has.
 
1:42 PM
1
Q: jQuery replace text with HTML plugin

DaenuI've written a jQuery Plugin which searches text & replaces it with other text or HTML. Now everything works quite well but recently I came across this SO question where the OP could have use of my plugin. That's why I linked to the github repo & asked him for critics and/or contribution. Soon ...

 
yes you're right, I will roll it back
Unfortunately, updating the code in your questions after receiving answers is against site policy. See What do after receiving answers for more information. — Quill 10 secs ago
 
Morning!
 
Monking @TopinFrassi
 
-1
Q: Checking for the permissions?

Ruchir BaroniaI asked this question on stackoverflow: http://stackoverflow.com/questions/34223393/will-this-app-show-up-in-the-play-store The answer I got tells me to check whether the device has telephony manager by using the following code...but he refuses to explain what the code does after asking: static...

 
-1
Q: rbtools post-review command fails for git repository code review

loganI typed following command to post-review my changes against production branch "prod_branch" post-review --parent prod_branch but it failed with following. Failed to execute command: ['git', 'merge-base', 'origin/master', 'refs/heads/dev'] fatal: Not a valid object name origin/master I belie...

 
1:52 PM
Monking!
 
@CaptainObvious Wow. He's asking for explanation about code he didn't write.
Guys (and girls, and whoever else is lurking here), don't forget you have till midnight to sign-up for Secret Santa:
23
Q: Code Review's Secret Santa 2015

TopinFrassiTo celebrate our first graduated Christmas (and because we feel like it), some regulars in The 2nd Monitor thought it would be a good idea to make a Secret Santa between members of Code Review! The rules are quite simple : You will send an email to secret-santa@lambdaexpression.io to register...

 CR Secret Santa 2015

Room for preparation to the Code Review Secret Santa 2015 event
 
@Mast s/whoever/whatever :p
 
If your code works but you are trying to get someone to review it for improvements, post at CodeReview. — takendarkk 44 secs ago
 
I think even Duga is allowed to sign-up.
 
@EthanBierlein Would you have forgotten to register for Secret Santa? :P
 
1:56 PM
@RoboSanta is allowed to sign-up as well of-course ^^
 
Feels like a Code Review issue rather than stackoverflow. — misha130 35 secs ago
 
@TopinFrassi it's 5am over there, he's probably sleeping
 
@Quill Oh, ahah. Well he'll see the message when he wakes up :p Otherwise I'll forget to ping him
What are you doing up at such a disgusting hour of the day?
 

« first day (951 days earlier)      last day (3068 days later) »