Comment by Dany on Get parameter passed to __call instance method( new...
I have added another solution to my question. For this study project i want to keep it as simple as possible and not go beyond my knowledge. You answer is much appreciated and will be studied and...
View ArticleComment by Dany on Does an instance of a php class get destroyed when you go...
Because he was talking about instantiating and it can be a pain. This can also help with that repetitive task.So that is why i am not wrong.
View ArticleComment by Dany on Python SQlite3 insert with params
I read about 10 tutorials, but not the docs. Thanks
View ArticleComment by Dany on Php recursive method getting products
Thank you. I assume i can autoload them from the APP_ROOT . '/app/models folder with the PSR-4 autoloading mechanism from Laravel itself?' I will try this solution and investigate the Eloquent models....
View ArticleComment by Dany on Find exact same string in multiple strings
Thanks. I was using google as well, but did not know the name of the problem, because my native language is not english. Thank you for the solution.
View ArticleComment by Dany on jquery plugin css opacity
So it should be $(this). That does not answer the second part of the problem which i don't understand, and which is not explained in the question you are referring to. Thank you for clearing up one part.
View ArticleComment by Dany on Jquery/JS: skip N items from siblings. error after holdng key
Good point. I will try on currentItem variable .
View ArticleComment by Dany on Jquery/JS: skip N items from siblings. error after holdng key
I have used this check and added it to my move up/down 1 function. Then I call that function with for(var i = 0; i < 10; i++) prevItem();. Now the problem has been solved, Thanks to everyone for the...
View ArticleComment by Dany on RequestAnimationFrame execute method only once
At this moment i am reading about JS promises. It seems promising ;) and might be the solution.
View ArticleComment by Dany on Convert RGBA to NRGBA
Thank you. It might be complex, because i am only used to python, ruby and php. The question also might seem to easy for some. Thank you for the help.
View ArticleAnswer by Dany for xmlstarlet sel output new line between values
I was looking at this for 2 days and i found the following page:http://www.geekfarm.org/wu/muse/XmlStarlet.htmlThis clarified a lot to meI have used the following command to achieve the line breaks...
View ArticleAnswer by Dany for .htaccess redirect for index.php
In your .htaccess file try to add DirectoryIndex decode.php index.php
View ArticleAnswer by Dany for Identify IE9/IE10 using jQuery
I know this is an old question. but in case you haven’t found an answer.Show a message if the browser is not internet explorer 9 or greaterbrowser={};if...
View ArticleAnswer by Dany for How to validate that input in textbox follows certain format
<input type="text" class="text" name="ticket" placeholder="Search by Ticket #" onchange="myFunction()" />myFunction(){ var value = $(".text").val(); if (/([0-9]{6}\-[0-9]{6})/.test(value)) {...
View ArticleAnswer by Dany for Rank system - Determine ranking of multiply objects...
Something like this maybe?$contestants; = array();array_push($array1);array_push($array2);array_push($array2);$places = array();foreach ($contestants as $index => $contestant) { $distance =...
View ArticleGet parameter passed to __call instance method( new Reflecction() ?)
General informationI have a class that has an instance.This instance has a __call magicc method definedThe magic method __call() defines the request method the instance will respond to.The php version...
View ArticleAnswer by Dany for Need Help in Div Management Please
I have been rtying to find a good resource for an example. These are good examples to learn from i think. http://code-tricks.com/simple-css-drop-down-menu/ ,...
View ArticleAnswer by Dany for How put a variable in a link
Interpolation is not standard in javascript. Maybe this can help you http://www.diveintojavascript.com/projects/javascript-sprintfContatination is your best option, but the methods below can also...
View ArticleAnswer by Dany for jQuery scrolling left and right event handler
From another question Is there a vertical scroll event in jQueryvar prevLeft = 0;$(document).scroll( function(evt) { var currentLeft = $(this).scrollLeft(); if(prevLeft != currentLeft) { prevLeft =...
View ArticleAnswer by Dany for PHP/Ruby captive portal first domain seems cached
Used rmtrack as described here : http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal/usr/sbin/conntrack -L \ |grep $1 \ |grep ESTAB \ |grep 'dport=80' \ |awk \"{...
View ArticlePHP/Ruby captive portal first domain seems cached
I have created a captive portal with iptables I use what many people seem to use : Users can request DNS, packet marked as 99. 99 means no internet else the user does have access.When a user visits a...
View Articlepython libtorrent save_state
I have a problem. I am not a C/C++ programmer and the libtorrent documentation is not really clear to me. There are no docs to find like the python docs for libtorrent.At this moment i have tried to...
View Articlekeepalived script makes failover go insane
What happens?When i start keepalived all works fine. When node01 fails and it cannot start postgresql anymore it will constantly try to force an election. Even if the postgresql cannot start. The...
View ArticleUbercart XML feed for google shopping
I am currently trying to create a product feed from Ubercart for Google shopping through views. I cannot find a suitable answer with Google or the other stack overflow questions.Has anyone done this...
View ArticleXML DOMDocument PHP - Get node where attribute value [closed]
Purpose :Create a method to retrieve a nested element with a specific "id".What I have tried :Retrieve the code with x path expressions via DOMXpath class query method. Every time an empty node list...
View ArticlePhp recursive method getting products
At this moment i am trying to get all products from the children of the specified category recursively.I am using laravel and created a class to handle this in App/Helpers so it will be autoloaded.The...
View ArticlePhp recursive method
I am trying to retrieve all my products of the current and child categories recursively, but unfortunatly it always returns an empty array. Here is my method.class Category { public static $products =...
View ArticleAnswer by Dany for Find exact same string in multiple strings
I finally got my own solutin to work.$names = array['vlakke lasflenzen PN6','vlakke lasflenzen PN10','vlakke lasflenzen PN16','vlakke lasflenzen PN25-40'];$name = [];$parts = [];foreach ($names as...
View ArticleFind exact same string in multiple strings
The following example.I have an array like this :Array( [0] => vlakke lasflenzen PN6 [1] => vlakke lasflenzen PN10 [2] => vlakke lasflenzen PN16 [3] => vlakke lasflenzen PN25-40)I do not...
View Articlepyvmomi retrieving vim.host.Summary.QuickStats
At this moment i am tryging to retrieve the quickstats of an ESXI host itself. This is the way i connect : context = ssl.SSLContext(ssl.PROTOCOL_TLSv1) context.verify_mode = ssl.CERT_NONE si =...
View ArticleConvert RGBA to NRGBA
I am trying to return the pixels that have changed and their color. The following func works fine, but it does not give me the 255,255,255 value i require. Is it possible to convert it to the format...
View ArticleRainTPL Template output incorrect
I am using RainTPL, Idiorm and Gluephp for a simple website driven by a sqlite database.When the front page is loaded everything is fine.http://home.techtic.infoWhen the other page is looaded i get the...
View ArticleAnswer by Dany for Show a message if the browser is not internet explorer 9...
I found the question interesting. So i worked out a script for myself, but maybe someone else can benefit from it. So that's why I posted it as an answer. It returns an object with browser and OS...
View Articlexmlstarlet sel output new line between values
I have the following XML<process id="test"></process><process id="test2"></process>I do get the correct values from the attributes but I want to have them separated on by a new...
View ArticleHow can I redirect to another page once an Electron app has started?
I have an electron app with multiple html files in the root directory.index.htmlpage1.htmlpage.htmlI cannot find a way to redirect from index.html to page1.html once Electro has started.Does anyone...
View Article
More Pages to Explore .....