70 Solved Topics

Remove Filter
Member Avatar for Aeonix

`<hat type="tin-foil" mode="on">` What does Google have from serving us with Google Fonts? Typical Google could start sending up custom JavaScript from JavaScript repository. But what about fonts? What does Google get from it? You can't tell me they just have well-doing spree and are sharing to help. Corporations are …

Member Avatar for cereal
0
474
Member Avatar for Aeonix

Time for a real challenge. https://jsfiddle.net/u6n3dq9m/4/ Is what I've got. I'd like the red portition to spread over the div, and fill entire height, while You can't/Tried but failed: - Use `overflow: hidden`, because it doesn't work (I thought it will render some overflow and stuff, I don't know). - …

Member Avatar for Aeonix
1
441
Member Avatar for Aeonix

I deleted my recently made post in: https://www.daniweb.com/hardware-and-software/information-security/threads/506745/why-does-google-offer-free-fonts-to-use-online Now when I'm in "Articles I'm Watching", it says about it: "0 votes; 0 replies; 25 views", despite thread having 7 replies. Edit 1: Also title got encoded and not decoded: `After deleting of a recent post, &quot;Articles I'm Watching&quot; shows 0 …

Member Avatar for Dani
0
357
Member Avatar for Aeonix

https://jsfiddle.net/n0260s1L/3/ Is what I have. Text of `div.summary` goes outside of it's planned content. Even when told not to. The only solution to this is `overflow: none;` in "super-parent" `div.mail`. But it ignores: `text-overflow: ellipsis;`. How can I limit content of this div (`div.summary`) **and** have `text-overflow: ellipsis` working at …

Member Avatar for Aeonix
0
652
Member Avatar for Aeonix

I've been Googling this one, and I've come across solutions, but they don't seem to work for me. The code is as follows: <?php $name1 = "Jack Random"; // true $name2 = "JackRandom"; // true $name3 = "Jack;Random"; // false $name4 = "JackRand;om"; // false // Accept only A-Z, a-z, …

Member Avatar for pritaeas
0
391
Member Avatar for Aeonix

Each years our computers are getting faster, games more demanding, which fuels better computers. We develop more memory in lesser spaces. We develop processors that calculate more than super-computers 20 years back. We had 56k modems, 1M, 2M, 5M networking, just recently there is possibility to get 1.5G at your …

Member Avatar for rubberman
0
347
Member Avatar for Aeonix

https://jsfiddle.net/rw2894fe/2/ I don't need to explain the issue, it's visible the second you look at it. Red anchors seem to have "unexplained" padding on bottom and right side. Removing it with "padding: 0; margin: 0;" doesn't affect it. Could someone tell me how to remove that unwanted padding and make …

Member Avatar for Aeonix
0
285
Member Avatar for Aeonix

I have two items that look like this span.left { float: left; display: inline-block; /* Take space neccessary */ } span.middle { /* Take free space only, do not push unless allowed */ /* Contains couple lines of text */ text-overflow: ellipsis; overflow-x: hidden; white-space: nowrap; } span.right { /* …

Member Avatar for rproffitt
0
344
Member Avatar for Aeonix

https://jsfiddle.net/c9jmjcy0/3/ The reason that it doesn't work is because for some reason `<a>` denies wrapping `<div>`. Probably specification. The only solution is to wrap it around other item. Do we have any other item that would say "it's a link/dropdown". There's also `<button>`. But it doesn't wrap it either, it …

Member Avatar for Aeonix
0
302
Member Avatar for Aeonix

I already tried couple solution from Google, but some of them didn't work (at all), others resulted in weird bug, where HTML page was loaded, but assets (CSS and images) didn't. Other times there were too many redirects and page freaked out. I have account on Cloud Flare, but both …

Member Avatar for Dani
0
497
Member Avatar for Aeonix

Imagine a mailbox. You're about to write to a friend. From staff perspective, someone wants to email Dani, her mail is dani@daniweb.com, but has her in contacts list. You type in "Da", and little tool-tip informs you that it knows this mail, tooltip shows her full name "Dani" and her …

Member Avatar for Dani
0
328
Member Avatar for Aeonix

<?php if (!defined("include")) { header ($_SERVER["SERVER_PROTOCOL"]." 404 Not Found", true, 404); die; } I want to include this file, as if it's not included, it should send browser `404 Not Found` and end executing script (without true and 404 doesn't work either). While Opera fools itself, Firefox doesn't. It shows …

Member Avatar for Aeonix
0
346
Member Avatar for Aeonix

At the end of the day, I end up in: `menu div#memberArea div#dropdown-trigger div#dropdown-content div#form div#authSubmitButtons input#authRegisterButton`. And now many people recommend shortening it down, sure! But as soon as I drop out elements I don't feel like the code explains itself as good. This very long nasty string, as …

Member Avatar for diafol
0
308
Member Avatar for Aeonix

https://jsfiddle.net/mvuy7q60/ Using JavaScript (and jQuery). How can I assure that there's only one line shown (instead of entire content of item), and if it's longer than one line, end first line on "..."? Something like this: https://jsfiddle.net/tt9psxz3/

Member Avatar for Dani
0
292
Member Avatar for Aeonix

No jQuery! This is script that I got from [Chris Buttery](http://www.chrisbuttery.com/articles/fade-in-fade-out-with-javascript/) website. Or at least part of it: function fadeOut(el){ el.style.opacity = 1; (function fade() { if ((el.style.opacity -= .05) < 0) { el.style.display = "none"; } else { requestAnimationFrame(fade); } })(); } The problem is that when I run …

Member Avatar for ryantroop
0
496
Member Avatar for Aeonix

$(document).ready(function () { var a, b, c d = new RegExp("/^[a-z0-9]*$/"), e = true, f = [ "g": false, "h": false, "i": false, "j": false, "k": false ], I changed names of variables for reasons. *Uncaught SyntaxError: Unexpected token :* Line 7. Which is `"g": false,`. Am I missing something?

Member Avatar for diafol
0
1K
Member Avatar for Aeonix

`exampleArray.push("this is an item");` I a thing. But there are also 10 other items within. So I never truly know where that item is (which enumeration). Is there a way of saying `exampleArray.delete("this is an item");` where it will remove item with "that" content? (JavaScript question)

Member Avatar for diafol
0
228
Member Avatar for Aeonix

I don't know if I'm even posting in the right section. When I open a new tab (after closing all other tabs) and I input address of project site. Elements pops out of parent element (it's 50% of bottom is visible, while rest is through the top of the window). …

Member Avatar for diafol
0
262
Member Avatar for Aeonix

`<input id="aaa" onclick="scrollTo('registerBox'); return false;" formaction="register.php" type="submit" value="Register" />` If JavaScript is enabled (which it is, and it's working on other functions and triggers). Shouldn't it execute `scrollTo("registerBox");` and don't do anything (`return false;`). Am I missing something? I don't want it to `formaction` if JavaScript is enabled.

Member Avatar for gentlemedia
0
373
Member Avatar for Aeonix

I'm on latest Kubuntu. Here I am with English US keyboard input. But I'd like to install say Norwegian, Polish, Japanese, whatever. I decide the easiest step. Which is to search "input". "Input Method" sounds promising. I run it. Then I get window. That says: Current configuration for the input …

Member Avatar for Aeonix
0
2K
Member Avatar for Aeonix

<?php $not_an_int = "sa';';';'sd12340asd"; $actual_int = "12341234"; var_dump(is_int((int)$not_an_int)); echo "<br />"; var_dump(is_int((int)$actual_int)); echo "<br />"; echo "<br />"; var_dump(is_int($not_an_int)); echo "<br />"; var_dump(is_int($actual_int)); ?> Returns: true true false false Without casting, real integer is seen as false. With casting, a non-integer is seen as true. What would be a real …

Member Avatar for diafol
0
328
Member Avatar for Aeonix

Typical code works like this: `$(...).hover(function () {});`. But it also needs to go away when it's loses it's hover. Is there a shorter way to do that than: `$("#x").hover(function () { troll(); });` `$("#x").mouseout(function () { untroll(); });` I just feel that smart people over at jQuery have thought …

Member Avatar for Aeonix
0
211
Member Avatar for Aeonix

User gives me a `$_POST`, I want to check whether keys (not the values) are there. `$_POST` keys need to be `newemail`, `firstPassword` and `secondPassword`. What I have tried: `if (in_array(array_keys($_POST), array("newemail", "firstPassword", "secondPassword"))) echo "Everything in order".`. How to make it actually work?

Member Avatar for Aeonix
0
242
Member Avatar for Aeonix

(short version of the story) I'm using Kubuntu in BIOS Legacy State as this was the only way I could see USB option in Boot Menu (F12). And it was the only way I could install Kubuntu from USB, from boot. I "burned" USB using OEM Windows 10 and told …

Member Avatar for Aeonix
0
564
Member Avatar for Aeonix

SELECT blabla FROM a INNER JOIN b ON a.a = b.b Is what I have. However I'd like to sort the results DESC by ID. I'd like to select last [`variable` x 10] of items sorted by ID DESC. Variable provided by PHP (I'll sort things out, I just need …

Member Avatar for hielo
0
317
Member Avatar for Aeonix

`Unknown column 'topics.id' in 'field list'` `SELECT topics.id topicId,` [...] `topics.id` DOES exist.

Member Avatar for cereal
0
4K
Member Avatar for Aeonix

I don't think it's code-bound, but here's the code: http://pastebin.com/yWJ5qpwN What happens is... I input 2 different passwords, line 22 is for some reason entirely skipped. The script passes every verification, the SQL record is added, and further execution of code happens. User gets logged in and moved to `index.php` …

Member Avatar for cereal
0
253
Member Avatar for Aeonix

I need to create about 1000 users, with random (but normal looking names not "293dsaf81s234" but "Blue Air" (can be random dictionary words)). And I need to generate topics and posts, and many others things. Does anybody know a good way on how to generate dummy content in PHP? What …

Member Avatar for Aeonix
0
167
Member Avatar for Aeonix

$city = "Amersfoort"; if ($stmt = $mysqli->prepare("SELECT District FROM City WHERE Name=?")) { $stmt->bind_param("s", $city); $stmt->execute(); $stmt->bind_result($district); $stmt->fetch(); printf("%s is in district %s\n", $city, $district); $stmt->close(); } This brings many questions: - What is `s` on the line 4? Do I need to bother with that? - What if I …

Member Avatar for diafol
0
239
Member Avatar for Aeonix

`INSERT INTO 'members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')` - `#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''members' ('username', 'password', 'email') VALUES ('axe', 'axe', 'weql')' at line 1`

Member Avatar for cereal
0
161
Member Avatar for Aeonix

I think this is called "foreign key" and "local key" ? I have a table `users`, these users have `rank`. It's an `int`. There is a table named `rank`, this table has field where hexadecimal string is placed `FF0000`. Is there a way to `SELECT * FROM users` and `SELECT …

Member Avatar for Aeonix
0
453
Member Avatar for Aeonix

I'm trying to do something, but it doesn't work out, the primary suspect is incorrect query, but I don't know whether it's correct or not. I could try running it in phpMyAdmin, but then I don't know how these are escaped. The result is: `array(5) { ["current_field"]=> NULL ["field_count"]=> NULL …

Member Avatar for RudyM
0
249
Member Avatar for Aeonix

Link is: `/example.php?id=1`, no space after `1`. if (isset($_GET["id"])) { $id = $_GET["id"]; echo !is_int($_GET["id"]); // yields "1" (true) !!! } Ask me whatever you need. I check to make sure that my system didn't go crazy `!is_int(1)` yields false. So... I don't know... Maybe `$_GET` passes `"1"` instead of …

Member Avatar for cereal
0
275
Member Avatar for Aeonix

Connection is successful. No typo's were made (look below). If read it from top to bottom, some of the tests that I show you will seem stupid. Until you look at the end (still keep reading from top to bottom) and find out that it's one of the indicators. SQL …

Member Avatar for makaijohn9
0
442
Member Avatar for Aeonix

This is element that I'm trying to achieve: http://i.imgur.com/9XmGXkt.png This is "template" of what I have to work with: https://jsfiddle.net/hcgpyutj/ I tried floating, staticing, absoluting, relativizing, tables, transform. I changed file about 10 times and of each situation something went wrong one way or another. I cannot use flexbox. I …

Member Avatar for diafol
0
194
Member Avatar for Aeonix

CSS file: http://pastebin.com/tBvGjhTX HTML file: http://pastebin.com/r5YUTHgp I have a div with following rules: { width: 75%; margin: 5% auto; } Obviously works everywhere except Microsoft Internet Explorer 0.5 to Edge. While in every normal browser, box takes 75% of width and is centered horizontally. But Microsoft be like "screw that", …

Member Avatar for gentlemedia
0
353
Member Avatar for Aeonix

Example. I have parent div of 1000px width. I have 4 children divs that each have been told to have "some size" (for example 300px). I would like to put 3 children in first row and then put the fourth in the second row below the 1st child. Something like …

Member Avatar for mblan180131
0
209
Member Avatar for Aeonix

My first problem was. "I have this box, I need this box to be 230px, and I have second box, that needs to take entire space remaining". My solution to this was, `float`. So I floated both boxes, `float: left;` and `float: right`. That looked nice, until I noticed that …

Member Avatar for Aeonix
0
175
Member Avatar for Aeonix

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 …

Member Avatar for ryantroop
0
395
Member Avatar for Aeonix

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 …

Member Avatar for ryantroop
0
295
Member Avatar for Aeonix

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 …

Member Avatar for jkon
0
375
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
154
Member Avatar for Aeonix

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 …

Member Avatar for ryantroop
0
457
Member Avatar for Aeonix
Member Avatar for gentlemedia
0
325
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
450
Member Avatar for Aeonix

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), …

Member Avatar for Sanchit_Sahu
0
430
Member Avatar for Aeonix

<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 …

Member Avatar for gentlemedia
0
1K
Member Avatar for Aeonix

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, …

Member Avatar for Aeonix
0
505
Member Avatar for Aeonix

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 …

Member Avatar for cereal
0
135
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
270

The End.