• Member Avatar for jkon
    jkon

    Gave Reputation to JamesCherrill in Java MVC and multiple objects

    To me that seems like a violation of everything that OO is about. A Circle should know how to tell you its radius, circumference, area etc. Which of those is …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Java MVC and multiple objects

    To make it clearer you have a Circle POJO object with only rand as property and getter and setter to it. Should the getPerimeter method be inside that or should …
  • Member Avatar for jkon
    jkon

    Gave Reputation to JamesCherrill in Java MVC and multiple objects

    I agree with jkon, with the very minor exception that I would be happy to see other methods (more than just get/set) in the Student class, if that's where they …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Java MVC and multiple objects

    As I wrote there are many approaches , here is mine in the example you gave above. Why an object that has properties and methods for a student is called …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Java MVC and multiple objects

    There are many MVC implementations and there is not “right” or “wrong” here. But I also find trivial the second point of JamesCherrill , also in my point of view …
  • Member Avatar for jkon
    jkon

    Created What is your current favorite hobby (besides technology) ?

    Some years ago I was in fishing , then Mountain biking and almost one year now I am in gardening ( I still go for fishing or a biking ride in …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Passing values to jQuery Click function

    If localData is a JS object that has a public property Id then localData.Id or localData["Id"] will do the same thing ( not localData[Id] ). There are many things we …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Trump

    I really can't understand what the “one event” bombing in Syria regime air base (that it wasn't fatal for the capacity of the base) could offer other than that it …
  • Member Avatar for jkon
    jkon

    Gave Reputation to cereal in PHP7 and how you've adapted

    > Has 7 made any difference to the way you code? A bit. To be honest, a part personal code, I have used PHP 7 only for one client's project …
  • Member Avatar for jkon
    jkon

    Replied To a Post in PHP7 and how you've adapted

    This is a very interesting topic. I was one of early adapters of PHP 7 and even in one of our production servers. That was due to: The default PHP …
  • Member Avatar for jkon
    jkon

    Gave Reputation to Latrell_vie in Embedding html into php

    jkon thank you , very clear and good explanation !
  • Member Avatar for jkon
    jkon

    Edited I up voted an down voted answer , my comments don't show

    Ok today I figured out that the new DaniWeb UI has major problems , I just up voted a comment leaving a comment that someone else down voted. What happened …
  • Member Avatar for jkon
    jkon

    Created I up voted an down voted answer , my comments don't show

    Ok today I figured out that the new DaniWeb UI has major problems , I just up voted a comment leaving a comment that someone else down voted. What happened …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Where are the format btns in reply or post went ?

    Where are those Reverend Jim ? I only have "Preview" and a question mark ... (I can't even share an image of this screen)
  • Member Avatar for jkon
    jkon

    Edited Where are the format btns in reply or post went ?

    Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then …
  • Member Avatar for jkon
    jkon

    Edited Where are the format btns in reply or post went ?

    Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then …
  • Member Avatar for jkon
    jkon

    Edited Where are the format btns in reply or post went ?

    Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then …
  • Member Avatar for jkon
    jkon

    Created Where are the format btns in reply or post went ?

    Today I wanted to post an example , I realized that I didn't had buttons to insert code or to define code lines. I had to read https://www.daniweb.com/welcome/syntax and then …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Embedding html into php

    PHP isn't complex . Everything outside PHP tags will consider it as direct output. Let's see an example : <?php function hello() { echo "hello"; } hello(); ?> Is the …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Tight CSS

    Dani I must admit that you impressed me with your answer (you don't have +1 hehehehe). Just some thoughts , I will refer to Google and the practices it promoted …
  • Member Avatar for jkon
    jkon

    Gave Reputation to Dani in So what's next?

    > You know that dissolving the programming languages oriented structure was a disaster. We can bring it back. I already did bring back the old-style navigation menu last night.
  • Member Avatar for jkon
    jkon

    Replied To a Post in Tight CSS

    Actually not , every operation / css namespace has its own two files , the e.g. cart.css and the nc.cart.css what minify does is minifying the non nc.* files and …
  • Member Avatar for jkon
    jkon

    Replied To a Post in So what's next?

    --I'm absolutely certainly not saying Google is the bad guy. That's not the message I'm trying to get across AT ALL. // If so , then Google has a reason …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Responsive Website

    any other advertiser to daniweb corpse ?
  • Member Avatar for jkon
    jkon

    Replied To a Post in So what's next?

    Dani Google is not the bad guy here … someone else is. What is the really interesting content of any thread here the last months ? Its not interesting for …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Tight CSS

    Hello Dani, although as I have wrote many times I am pro adaptive – first / responsive - second architecture in front end , your subject make sense in every …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Responsive Website

    http://google.com/#q=responsive+vs+adaptive Its not like the adaptive view can't be responsive. For example if you expose only one view for tablets and mobiles its reasonable that this view will be responsive …
  • Member Avatar for jkon
    jkon

    Replied To a Post in RESTFul API actions

    Dani what are you really doing ? Where is the WSDL that will describe those services ?
  • Member Avatar for jkon
    jkon

    Replied To a Post in PHP GET parameter

    @jkon what should i use to securely pass parameter to other page? Do you have any reason to use the old Get post with "?" sign ? is that url …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Dazah

    Dani you seem to really believe in Dazah. That's great , just don't mess it with DaniWeb till Dazah will have its own critical amount of users. Don't expect to …
  • Member Avatar for jkon
    jkon

    Replied To a Post in PHP GET parameter

    Every time you don't use prepared statements , a beaver dies in Narnia ( The case pro prepared statements made long ago many many many … many times no need …
  • Member Avatar for jkon
    jkon

    Replied To a Post in jQuery animate opacity, doesn't animate or change opacity.

    Hello Aeonix as I can see you already use jQuery so what is the point of all these : document.getElementById , *.style.opacity ?
  • Member Avatar for jkon
    jkon

    Replied To a Post in AM/PM in ASC MYSQL

    AntonyRayan it is possible , just create a new field in the table with the type you like , a batch to copy data appropriately from the old field to …
  • Member Avatar for jkon
    jkon

    Replied To a Post in 1 to 1 chat script using php mysql websocket

    I admire the people that created Ratchet and gave it to the community , because they tried and maybe it is the best published PHP tool for WS that we …
  • Member Avatar for jkon
    jkon

    Replied To a Post in 1 to 1 chat script using php mysql websocket

    Hello hrushi9, Your original question about MySQL and WebSockets only proves the phrase “Looks like you are trying to do something much harder than you can chew.” that Taywin used. …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Join 3 tables and match them column by rows in mysql

    You ask help for what ? The title of the topic says that it has something to do with joining three tables , your message doesn't says anything like this. …
  • Member Avatar for jkon
    jkon

    Replied To a Post in getting “mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean

    Of course , other two (three counting comments) great programmers have spend their time to help others and responded . The creator of the message didn't spend even a minute …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Comparing Mysql 2 Tables in 2 different databases with PHP

    Hello Henryu, Although in the PDO DB connection object constructor you define the default schema there is nothing stopping you from selecting from other one or using JOIN with two …
  • Member Avatar for jkon
    jkon

    Replied To a Post in rewrite rule to extract affiliate link from url

    Hello Douglas , (I had daniweb open but I wasn't here) . The browsers never send what part comes after the pound symbol in a URL inside the request they …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Mouse over on hyperlink that shows what was selected on previous page

    http://google.com/#q=ajax I don't even know what language you use server side , read some things first and make your own experiments and if you have any specific question here we …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Mouse over on hyperlink that shows what was selected on previous page

    Hello Marcus_3, Of course and it can be done through AJAX calls. Have you used AJAX in the past ?
  • Member Avatar for jkon
    jkon

    Replied To a Post in rewrite rule to extract affiliate link from url

    Hello Douglas, It is very difficult to built a generic method to get only the subdomain part because the way gTLDs are constructed. For example in http://example.co.uk there isn't any …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Getting the “after root URL” with PHP

    Hello cereal , Well actually it is not like parse_url , lets see an example but many more can be made, Lets say that you have this .htaccess and this …
  • Member Avatar for jkon
    jkon

    Replied To a Post in Getting the “after root URL” with PHP

    Of course if there is a chance to have special UTF8 characters (e.g. spaces or non Latin letters) in URL you should url decode the $afterRootUrl $afterRootUrl = urldecode($afterRootUrl);
  • Member Avatar for jkon
    jkon

    Replied To a Post in rewrite rule to extract affiliate link from url

    Hello Douglas, First of all let me thank you also because you read the answers , reply to those and you study them (that is the reason for writing those …
  • Member Avatar for jkon
    jkon

    Replied To a Post in rewrite rule to extract affiliate link from url

    Hello showman13, I started to answer but realizing that I have answered that question more times in the past I decided to create a code snippet with the answer to …
  • Member Avatar for jkon
    jkon

    Created Getting the “after root URL” with PHP

    I found myself starting to answer a question that I have answered many times , so I thought why not making a code snippet and just reference this. This is …
  • Member Avatar for jkon
    jkon

    Gave Reputation to spluskhan in Generating Bills

    i'm not well known familiar with cron job but cron job is not an solution for my task.
  • Member Avatar for jkon
    jkon

    Gave Reputation to JamesCherrill in Generating Bills

    Maybe that is overkill, maybe not, but in any case, starting with OP's tables, they need at least some kind of foreign key to relate Bills to Consumers. Without that …

The End.