-
Gave Reputation to diafol in Remove array item by it's content
var i = exampleArray.indexOf( valueToCheck ); if( i != -1 ) exampleArray.splice(i, 1); Should remove your value from exampleArray. You can however create a prototype function, e.g. Array.prototype.remVal = function(){ … -
Edited Remove array item by it's content
`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 … -
Created Remove array item by it's content
`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 … -
Began Watching Remove array item by it's content
`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 … -
Replied To a Post in Element is misbehaving but falls back into place after a refresh
That's the problem, I don't know which part of CSS causes the thing to go bonkers and I'd rather not dump entire CSS (nothing special or secret, but still). The … -
Created Element is misbehaving but falls back into place after a refresh
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 … -
Began Watching Element is misbehaving but falls back into place after a refresh
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 … -
Replied To a Post in What's wrong with this line HTML?
Sorry, but your snippet returns 'Hey!', I don't need it to return anything, I need it to execute mentioned function and return nothing. That answer doesn't bring me closer to … -
Marked Solved Status for Can't change keyboard layout, some cryptic stuff I don't understand.
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 … -
Replied To a Post in Can't change keyboard layout, some cryptic stuff I don't understand.
Yep. In Kubuntu 16.04 LTS it's called "System Settings". Done, thanks. -
Edited Can't change keyboard layout, some cryptic stuff I don't understand.
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 … -
Edited Can't change keyboard layout, some cryptic stuff I don't understand.
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 … -
Created Can't change keyboard layout, some cryptic stuff I don't understand.
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 … -
Began Watching Can't change keyboard layout, some cryptic stuff I don't understand.
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 … -
Created What's wrong with this line HTML?
`<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 … -
Began Watching What's wrong with this line HTML?
`<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 … -
Marked Solved Status for Actual working method for checking integer
<?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 … -
Replied To a Post in Actual working method for checking integer
Indeed. That's why I'm seeking for alternative solution. How to detect `"10994234"` and `3242144122` as integers. Casting doesn't work as mentioned above (false positives). -
Replied To a Post in Actual working method for checking integer
That's the thing. I don't need it to return string or integer. I need it to return true if element is entirely integer (or integer within quotes `"12943"`), or false … -
Created Actual working method for checking integer
<?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 … -
Began Watching Actual working method for checking integer
<?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 … -
Replied To a Post in Couple questions about Assembly
> There are so many topics in your post that each one could take a session on its own. I was actually hoping for that. The more I know, the … -
Created Couple questions about Assembly
Couple statements, couple answers. I don't understand everything. If I'm wrong, correct me, but don't be mean about it. You weren't senior in your first steps either. Some of these … -
Began Watching Couple questions about Assembly
Couple statements, couple answers. I don't understand everything. If I'm wrong, correct me, but don't be mean about it. You weren't senior in your first steps either. Some of these … -
Replied To a Post in "On hover, when off"
Exactly that. Sometimes I bring back the idea to look up manual sometimes, instead of relying on own "knowledge". -
Marked Solved Status for "On hover, when off"
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 … -
Created "On hover, when off"
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 … -
Began Watching "On hover, when off"
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 … -
Marked Solved Status for See if all required keys are there in PHP
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 … -
Replied To a Post in See if all required keys are there in PHP
It's so hard, yet so easy. Exactly that. Thanks. -
Created See if all required keys are there in PHP
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 … -
Began Watching See if all required keys are there in PHP
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 … -
Replied To a Post in Sync local folder with FTP folder
No. I just want to upload project that I'm working on (HTML, CSS, JS etc.) to my FTP client. But I guess OneDrive would be nice application too. -
Marked Solved Status for How to burn ISO to USB with unsuccessful DD?
(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 … -
Replied To a Post in How to burn ISO to USB with unsuccessful DD?
I hoped that there were alternative ways to burn USB, but I bought DVDs and installed Windows this way, then I just installed grub back, and now I'm where I … -
Edited Sync local folder with FTP folder
I have a machine, I have a hosting with FTP. On my venture I found out about `lftp`. And the instructions are here: http://www.dangibbs.co.uk/journal/ftp-sync-usin-linux Snippet is this: open ftp://username:password@website.com mirror … -
Created Sync local folder with FTP folder
I have a machine, I have a hosting with FTP. On my venture I found out about `lftp`. And the instructions are here: http://www.dangibbs.co.uk/journal/ftp-sync-usin-linux Snippet is this: open ftp://username:password@website.com mirror … -
Began Watching Sync local folder with FTP folder
I have a machine, I have a hosting with FTP. On my venture I found out about `lftp`. And the instructions are here: http://www.dangibbs.co.uk/journal/ftp-sync-usin-linux Snippet is this: open ftp://username:password@website.com mirror … -
Replied To a Post in How to burn ISO to USB with unsuccessful DD?
Page you provided while interesting, shows only how to burn Linux on Linux, how to create multi-boot on Linux, how to create Windows PE on Linux and how to burn … -
Replied To a Post in How to burn ISO to USB with unsuccessful DD?
I'm sorry, but I don't know what to pull from your post. I'm on Kubuntu, I can't run the program from codeplex and virtual machines don't make partition changes to … -
Created How to burn ISO to USB with unsuccessful DD?
(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 … -
Began Watching How to burn ISO to USB with unsuccessful DD?
(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 … -
Replied To a Post in Need help with double INNER JOIN
> This is a self-join without a relation to either topics or members. Oh, didn't notice xD And yea, parenthesis is bad apparently. Thanks! I understand INNER JOIN now (I … -
Replied To a Post in Need help with double INNER JOIN
I have something like this: SELECT [SNAP!] FROM (topics INNER JOIN members ON topics.author = users.id) (INNER JOIN forums ON forums.id = forums.parent) But the query seems incorrect using a … -
Replied To a Post in Need help with double INNER JOIN
Maybe this way: I need to select all the data from: - `forums.id parentForumId, forums.name parentForumName from forums` where `forums.id = topics.parentForum`. - `members.id authorId, members.name authorName from members` where … -
Replied To a Post in Need help with double INNER JOIN
> First off, I'm very ignorant of the MySQL scene or it's jargon. I didn't really understand the premise, pecifically the "slam" part and the "[SNAP!]" part, or the "pocket" … -
Created Need help with double INNER JOIN
SELECT [SNAP!] FROM topics INNER JOIN members ON topics.author = members.id WHERE topics.parent = [variable from PHP] ORDER BY topics.id DESC LIMIT [variable from PHP], 10 Is what I have … -
Began Watching Need help with double INNER JOIN
SELECT [SNAP!] FROM topics INNER JOIN members ON topics.author = members.id WHERE topics.parent = [variable from PHP] ORDER BY topics.id DESC LIMIT [variable from PHP], 10 Is what I have … -
Marked Solved Status for SQL select between 10 to 20 last results by ID
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 … -
Replied To a Post in SQL select between 10 to 20 last results by ID
Here's the problem `DESC LIMIT (variable x 10)` in case of 5 it would be `DESC LIMIT 50`. It will give last 50 results, I need 10 results after these …
The End.