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 |
---|---|---|---|---|
Comment | Post #291257 |
I just tested it. I changed "restoreWindwos" using GUI in settings to "none" and upon restart I don't have any tabs or even a project open. Now, when I opened a project that also restored tabs (I used "Project Manager" extension). (more) |
— | 2 months ago |
Edit | Post #292777 |
Post edited: Original code in answer did not work because it was looking for .c files in current directory. I updated code to look for files in "lib" directory, according how it's spesified in my question. |
— | 2 months ago |
Comment | Post #292774 |
I've been reading almost a dozen tutorials/QAs, watching youtube videos and looking at that lengthy documentation. (I even printed out documentation into a PDF and sent it to my kindle app). Non were saying things which I needed to hear in order for my understanding to click. I was trying to piece to... (more) |
— | 2 months ago |
Comment | Post #292777 |
"Each rule in the Makefile represents a single target." - this was very helpful to my understanding. I have seen people in tutorials use % like a wildcard and that sent me on a wild goose chase in the wrong direction. Your original code was giving me "make: Nothing to be done for 'all'." output becau... (more) |
— | 2 months ago |
Suggested Edit | Post #292777 |
Suggested edit: Original code in answer did not work because it was looking for .c files in current directory. I updated code to look for files in "lib" directory, according how it's spesified in my question. (more) |
helpful | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 |
Post edited: |
— | 2 months ago |
Edit | Post #292774 | Initial revision | — | 2 months ago |
Question | — |
make: How to compile all files in a directory. []()I am learning how to write makefile to compile a c program. I have a directory structure like this: ``` . ├── include │ └── library.h ├── lib │ └── library.c ├── makefile └── obj ``` My makefile has this content: ```make DIRINC=include DIRLIB=lib DIROBJ=obj $(DIROBJ)/li... (more) |
— | 2 months ago |
Edit | Post #291175 | Initial revision | — | 9 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) |
— | 9 months ago |
Comment | Post #289871 |
Thank you. Didn't know I could do that. (more) |
— | 9 months ago |
Comment | Post #289871 |
That's what happened in my case. (more) |
— | about 1 year ago |
Edit | Post #289871 |
Post edited: |
— | about 1 year ago |
Edit | Post #289871 | Initial revision | — | about 1 year 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) |
— | about 1 year 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) |
— | over 1 year ago |
Edit | Post #289275 |
Post edited: Add more debugging info. |
— | over 1 year ago |
Comment | Post #289275 |
Maybe, thank you, I'll do some debugging. (more) |
— | over 1 year ago |
Edit | Post #289275 |
Post edited: Update with more details.. |
— | over 1 year ago |
Edit | Post #289275 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #289237 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288859 |
Post edited: |
— | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288859 |
Post edited: |
— | over 1 year ago |
Edit | Post #288859 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288531 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Comment | Post #288462 |
Good point, thank you. I updated my answer. (more) |
— | over 1 year ago |
Edit | Post #288462 |
Post edited: Add the fact that I use Eclipse editor. |
— | over 1 year ago |
Edit | Post #288463 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Comment | Post #278219 |
This is the wrong website for questions like that. You are looking for https://thedailywtf.com. (more) |
— | over 1 year ago |
Edit | Post #288438 |
Post edited: Added maven tag because that's where the problem was. |
— | over 1 year ago |
Edit | Post #288462 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |
Edit | Post #288438 |
Post edited: Added s. |
— | over 1 year ago |
Edit | Post #288438 |
Post edited: Finished adding info I forgot to add. |
— | over 1 year ago |
Edit | Post #288438 | Initial revision | — | over 1 year 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) |
— | over 1 year ago |