97 Discussion / Question Topics
Remove Filter This is essentially a really long question **If I were to create a function without calling it's execution. Does PHP initialize it anyhow or is the entire function ignored entirely without even bothering to read it?** Another way to put it: **Is there any execution difference between code that does … | |
Since I totally F'd up entire topic. [Over here](https://www.daniweb.com/programming/software-development/threads/502281/verify-if-data-sent-by-servers-how-do-bigger-companies-do-that), where nobody has ever known what I meant, until I realized that I said a lot of things that didn't make sense at all, nor I could make up any reasonable statements from smart people out there. By suggestion of said … | |
I know that it's possible for speakers to repeat whatever sound comes into microphone. But, now I'm thinking. When I speak on Skype/TeamSpeak (VoIP software), would it be possible for me, to select audiofile and play it as if it was sent through microphone? To send music through my "microphone" … | |
Since I English no good. I picture send you. How do I do? Just kidding. How could I put div through another divs perimeter by 20 pixels, 100 pixels or perfectly within them both? I saw that on a website, but they have ultra-spaghetti code with 50 billion wrappers (no … | |
According to [this](https://github.com/nwjs/nw.js/wiki/Protect-JavaScript-source-code-with-v8-snapshot) link. V8 Snapshot of your JavaScript file, makes it somehow more protected. Notice: This is **V8 Snapshot** not just **V8**. Now I have couple questions, if you're familiar with this technology: 1) Is there a way to obfuscate it more? There are .NET obfuscators, there are C++ … | |
https://jsfiddle.net/fg1mfn2m/2/ I don't understand jQuery. Or any programming language for that matter. I'm trying to get to resize a child of a div, as soon as said DIV is clicked. Nothing is triggered. Except my nerves. Previous time I asked for help of jQuery, I got the right code (which … | |
https://jsfiddle.net/cr72vqhb/1/ Follow 2 scenario's. First Scenario: Click on **client-side**, get message, menu slides out. Click on **server-side**, get message, first menu hides, second slides out. Perfect, right? # Hard refresh the Fiddle # Second Scenario: Click on **server-side**, nothing. Absolutely nothing. It's as if I mistyped the selector. Why is … | |
As soon as I find out exact manner of communication between the server and the software. I realized how easy it is to use programs to intercept it, analyze it and then send malicious (or rather illegal) query through. So. I was wondering is there a way to make sure … | |
https://jsfiddle.net/cmvs815c/1/ Is there a way to make "Enter a tag...", red as well? | |
If I wrote a program which would `Console.WriteLine()` a base64 code, like an easter egg ("a hidden secret" in gaming jargon) or something, for example string EasterEgg = "dGhlYmlnc2VjcmV0"; Console.WriteLine(b64d(EasterEgg)); And I would let a good obfuscator run through it. Now I know that crackers with enough time and knowledge … | |
I've done some wonky research. So far I understood: *Particular questions that I'm asking are written in Italic hence Bold texts are not visible with this font.* "IPS is way better with color precision and contrast. But has problems with "ghosting", it generally looks like someone hasn't compiled video well. … | |
Website is exclusively built with `.click()`, `onclick=""` and alikes. I'd like to use a plugin that there is out in the world, which would allow me to use custom scrollbar to scroll content of a lengthy `<div>`. I've tested about 6, whom 1 didn't work (maybe I just can't read), … ![]() | |
<nav> <div id="main"> <div id="one"> A </div> <div id="two"> B </div> <div id="three"> C </div> <div id="four"> D </div> <div id="five"> E </div> </div> </nav> <style> #main { min-height: 175px; height: 27.5%; width: 100%; background-color: #222; position: fixed; bottom: 0; left: 0; } #navBackground { width: 100%; } nav div … | |
It might be obvious, but I can't seem to understand it. So don't laugh. Let's assume this scenario. My website has 5 themes, there are 5 buttons. Clicking each button changes theme respectively and uniquely. I use JavaScript to do that, so I set name of theme in a cookie, … | |
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my project. 4 out … | |
Is there a way to grab strings that match patterns `--*--` and `++*++` (two seperate queries) where `*` is a wildcard and `--`, `++`, are criteria to meet. I'd like to write matches within variable fully, like `--daniweb.com--` and `++this just an example++`. `preg_match()` provides solution on alphanumerical identities. And … | |
**Full error:** *xengine.js:2 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode* I have **no framework**. This is pure flat HTML, CSS and JavaScript. HTML goes on like this (up to relevant moment): http://pastebin.com/s8s2KLmt And the JavaScript (starting from line 1, no additional files, entire … | |
I just wanted to ask for help with understanding C++ code. Suddenly I realized, that I can't copy the code. Yes, my keyboard is working fine on every other program. After further inspection I found out, that every Ctrl usage (except Ctrl+Z, Ctrl+X) has been blocked. `\(<.<)/` what?! | |
I'm working on certain PHP-skill-teaser. No background is really needed as error is purely PHP-based. The [PasteBin](http://pastebin.com/N8UKt1JW). I have double do-while in there, however I can't modify variables from within that loop, they simply don't affect the variable anyhow. I have tried a lot of solutions, including those about `$GLOBALS` … | |
`$allowedForUniversalUsage = htmlEntities($_GET["potentially_super_malicious_code"], ENT_QUOTES);` Does script above help me against XSS and MySQLi injection? My thoughts would be: **Protection against XSS: Yes** I mean. XSS means that someone would be able to input code, which will be shown publicly and will be executed, the `htmlEntities()`. It converts actual code into … ![]() | |
For as long as DaniWeb allows us to edit posts, can we also edit the title, move the thread and remove the post (if we magically found our answers on 69th page of Google)? This would help stopping in forcing me to report my own topic to edit title or … | |
*Story happens in imaginary universe, but I'm using current time "relativation".* vmWare Player type of application (but for free). I consider adding it to Open Source because everybody is saying how great it is and how fast bugs can be fixed. There's couple stories to be told: **Side of Manager** … | |
Doesn't exist. But I would love that it did. 2 days ago, I made search for it, I found this one pearl of a function, you just called it and it would perform just that. Today, I can't find it for heavens. I have been through about 5 fiddle's, about … | |
Have you guys ever met process so stubborn? It wouldn't close, no matter which tools/programs/commands you might use regardless elevation? Talking about Windows and Firefox. This is kind of story that made me irritate, get mad and laugh like an idiot at the end. It goes like this: I go … | |
So, first the bug, numbers appear in vision of code field, "I spik no inglich good", so [here's the screenshot](http://oi61.tinypic.com/o5qsmh.jpg). I'm using Linux Ubuntu 14.04 LTS LiveCD (on USB 2.0) I'm using Google Chrome v45.0.2454.93. Screen resolution: 1366 x 768 Pixel-ratio: 1 Maybe a feedback: When I click [Code] button, … | |
var _tmp = 0; for (var i = 0; sys.cores()[i]["sn"] != null; i++) { _tmp++; alert(_tmp); } alert ("Pretty sure, you have " + _tmp + " virtual cores."); This is the code that I'm working on. The loop itself is very simple. The output is: 1, 2, 3, 4. … | |
Hi. Has anyone maybe found this miraculous software. That I could install on Windows/Linux machine (server) and client on my own computer let it be Windows/Linux. And have really great response time and quality? The server would be at 100Mbps, my connection would be at around 50Mbps. If my machine … | |
In forum: "Web Development Discussion Community". I sought for unanswered topics, one of them being [this one](https://www.daniweb.com/web-development/aspnet/threads/498270/mvc). What's weird is in the [forum view](https://www.daniweb.com/web-development/31), the content of post mentions *Create a realtime notification in mvc aplication. It can be an alert notification.*, while the [topic itself](https://www.daniweb.com/web-development/aspnet/threads/498270/mvc) says *How to create … | |
I made an API request using AJAX request, I received JSON, I tried my best to use JavaScript to parse it, but to no avail. Instead I used jQuery which made it as painless as 2 lines of code. Now I have JSON array translated into array-ish object in JavaScript. … | |
I'd like to create `/admin.php` page, which would have AJAX request, sent over to `/core/adm/index.php`, that's easy, basic AJAX request will do just that. But I don't want any direct access to `/core/adm/index.php`, I want it to be accessed only by AJAX request from `/admin.php`. Is there a way to … | |
I needn't even explain it, look it up. You needn't to click anything, just zoom-in 10%, then zoom out as far as you can, and notice how table cell and a div, go full on agression. View website itself under `5millionpixels-##.comlu.com`, (no I'm not a bot, but files are PHP, … | |
Is there something I could put onto Linux LiveCD and run that will defragment entire harddrive? I know there's a lot of softwares that do that, but it results in something like: > **Fragmentation before:** 25% > **Fragmentation after:** 24.5% Might there be an application, that I could run on … | |
$replacedString = str_replace(array_keys($array1), $array1, $externalVariableString); I have an entire array above that called `$championToIdConversionArray`, it has about 650 switches, it looks something like this $array1 = array( "1" => "Banana", "12" => "Monkey", "2" => "Apple", "121" => "Human" ); Now if I let script parse numbers "121", it won't … | |
When I started videogame on my computer, I used i3-3217U with Intel HD Graphics 4000. GPU works at 350MHz (1.05GHz with Turbo). Runned nicely on 50FPS. When I tried passing this game to a friend, from the very installer, the game has been installed and all it's requirements have been … | |
How can I verify if programs that I'm using, if their traffic is going through VPN? I know I can go to random website using browser and check-up my IP. But it's a browser, I don't know if "my VPN provider" also "censors" traffic for/from all other programs besides browser. … | |
I'm sitting in classroom, trying to find more advanced usage of pointers in C++, suddenly Googling, not suspecting a thing I almost fell of the chair in middle of class laughing like a donkey (I'm young adult, so "immature" jokes tend to be funnier for me than for you likely). … | |
Imagine this, (names made up or/and don't apply to current situation, names used/imagined only for purposes of explaination) There's server called `daniweb.com`, it's an API server. You can get quite chunk of data out of it. But for some reason, the one who orders the project, demands that we request … | |
I have been cuddling with OOP programming. JavaScript seemed like a good start. I went to w3schools.com. function person(first, last, age, eye) { this.firstName = first; this.lastName = last; this.age = age; this.eyeColor = eye; this.name = function() { return this.firstName + " " + this.lastName this.capitalize = function() { … | |
I tried playing with AJAX a bit. This is just the chunk of JavaScript I got. // FIRST TIME REQUIREMENT var interAction = new XMLHttpRequest(); var responseAJAX; interAction.onreadystatechange = function() { if (interAction.readyState == 4 && interAction.status == 200) { alert(interAction.responseText); responseAJAX = interAction.responseText; } } alert("inside"); interAction.open("GET", "ss-controller.php?req=freshStart", true); … | |
Up there I have constant **Messages (1)** counter, but when I click on it, no new message appears. I cleared cache, I cleared cookies, I cleared my browsing history, I logged out, I logged back in. It's still there, I checked my messagebox, no inbox messages that are new. @edit … | |
I don't trust my code. I really don't. I always have a feeling that something is wrong with it. Every variable looks like an enemy. Every loop, unfinished condition. Every input, possible injection. I'm kinda paranoid so to say. There's many white hat hackers out there which could make buck … | |
I get exactly this same error as [this Sir over here](http://askubuntu.com/questions/111959/what-is-a-bad-quality-package). There is solution given: cd ~/Downloads sudo dpkg -i *.deb sudo apt-get install -f What worries me more is that Brackets (by Adobe), Opera (by Opera), Chrome (by Google) are also considered bad quality. I could understand that sometimes … | |
When you need to create a login page using PHP and MySQL, the safety of this login page relies on - Your PHP scripting abilities - How well and securely has PHP been programmed in C++. - How well C++ compiler of interpreter of PHP has been programmed. - How … | |
On certain websites you can order laptops, and sometimes even they allow you to change certain parts of it. Let's take the example of HDD, the website offered quite an amount of types of HDD's. The largest HDD they can deliver to the laptop is 2TB, could I instead ask … | |
I tried to build really basic associative array but it turned out I don't have enough knowledge, so I tried something less, and less, and less, because I kept failing at it. Finally I just tried to set variables and print them in the command-line. But I can't even do … | |
Recently I got interested into dynamic execution of scripts. That is, user clicks the button and the JavaScript part (or any other library attached to it) will send a request to a file with `$_GET[]` or `$_POST[]` data. Then PHP (preference) would execute the function or anything that it has … | |
The code beneath, is one chunk of code (after "Three."), both `<?php` and `?>` are parts excluded from parsing. 1. One 2. Two. 3. Three. <?php $images = glob("*.png"); $folderRoot = "http://" . $_SERVER["HTTP_HOST"] . dirname($_SERVER["PHP_SELF"]); foreach($images as $imageName) { $imageUrl = $folderRoot . "/" . $imageName; echo "<a href=" … |
The End.