Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Vanity Slug ❤️‭

Type On... Excerpt Status Date
Edit Post #291175 Initial revision about 2 months ago
Question PHP - Why using "global" considered bad?
In PHP why is using `global` like in the example below considered bad? ``` $a = 1; class foo { public function bar() { global $a; // <-- Why is this considered bad? } } ``` I want a concrete example(s) of what can go wrong with this code.
(more)
about 2 months ago
Comment Post #289871 Thank you. Didn't know I could do that.
(more)
2 months ago
Comment Post #289871 That's what happened in my case.
(more)
8 months ago
Edit Post #289871 Post edited:
8 months ago
Edit Post #289871 Initial revision 8 months ago
Answer A: JavaScript redirect is getting "hijacked" and it is not onbeforeunload event.
Apparently, my form was inside an iframe. In order for me to redirect I had to change location of parent document, like so: ``` if (window.self != window.top) parent.document.location.href = "https://duckduckgo.com"; else location.href = "https://duckduckgo.com"; ...
(more)
8 months ago
Comment Post #289275 So, no, I could not find "onunload" that would get hit by breakpoint and do redirect. But I found [this answer](https://stackoverflow.com/questions/9298839/is-it-possible-to-stop-javascript-execution#answer-24582915) which allowed me to get redirect that I want, at least. It's not a solution but a ro...
(more)
9 months ago
Edit Post #289275 Post edited:
Add more debugging info.
9 months ago
Comment Post #289275 Maybe, thank you, I'll do some debugging.
(more)
9 months ago
Edit Post #289275 Post edited:
Update with more details..
10 months ago
Edit Post #289275 Initial revision 10 months ago
Question JavaScript redirect is getting "hijacked" and it is not onbeforeunload event.
My redirect in javascript somehow gets "hijacked" and I don't understand how. Previous developer (who is no longer working with the company) on page load initialized `onbeforeunload` event like so: ``` window.onbeforeunload = function() { if() } ``` Now I have a requirement...
(more)
10 months ago
Edit Post #289237 Initial revision 10 months ago
Question How to call static methods in ColdFusion?
How to use static functions in ColdFusion? - How to import component? - How to call a static function using both tag and script syntaxes? Adobe added support for static functions in ColdFusion. However, I can't find examples of how to use them neither on official Adobe website nor on CFDocs. ...
(more)
10 months ago
Edit Post #288859 Post edited:
11 months ago
Comment Post #288859 I have "Language Support for Java(TM) by Red Hat" installed. It's the only java related extension that I have.
(more)
11 months ago
Edit Post #288859 Post edited:
11 months ago
Edit Post #288859 Initial revision 11 months ago
Question Prevent vscode from inserting new lines in the middle of my code on format.
I am cleaning up java code in vscode to make it more readable. When I format my document there are instances when vscode inserts new line character when I don't want it. Here I show 2 examples of when it does that. 1. I write: ``` if(a == 1) b = true; ``` When I format document vscode i...
(more)
11 months ago
Edit Post #288531 Initial revision 11 months ago
Question How to use self referential N-M relationship to make 2 users friends using RedBean PHP ORM?
I am working with PHP and RedBean PHP ORM. I have a table `user` like so: ``` id | username |--------- 1 | Alice 2 | Bob ``` I want Alice and Bob to become friends. So I want to create M-M junction table `friend` that will look something like this: ``` id | friend1id | friend2id |--...
(more)
11 months ago
Comment Post #288462 Good point, thank you. I updated my answer.
(more)
11 months ago
Edit Post #288462 Post edited:
Add the fact that I use Eclipse editor.
11 months ago
Edit Post #288463 Initial revision 11 months ago
Question Should I delete my trivial, lack-of-research question?
I asked this trivial question recently: DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors. It turns out, my problem was because I did not do enough research before asking a question. I was new to Maven and did not know that I have to click "Update Project" to install dependenci...
(more)
11 months ago
Comment Post #278219 This is the wrong website for questions like that. You are looking for https://thedailywtf.com.
(more)
11 months ago
Edit Post #288438 Post edited:
Added maven tag because that's where the problem was.
11 months ago
Edit Post #288462 Initial revision 11 months ago
Answer A: DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.
I am new to Maven so I did not know that I have to "Update Project". If you are using Eclipse editor then you can right click on the project --> "Maven" --> "Update Project" to install dependencies to fix this problem.
(more)
11 months ago
Edit Post #288438 Post edited:
Added s.
11 months ago
Edit Post #288438 Post edited:
Finished adding info I forgot to add.
11 months ago
Edit Post #288438 Initial revision 11 months ago
Question DocuSign eSignature API SDK: java.lang.NoClassDefFoundError errors.
I am trying to implement DocuSign's eSignature REST API by using Java SDK. I am following instructions here: https://developers.docusign.com/docs/esign-rest-api/sdks/java/setup-and-configuration/ I created a java project, converted it to Maven, installed DocuSign's SDK (docusign-esign-java-4.3....
(more)
11 months ago