otengkwaku 30 Newbie Poster

To download streaming videos on window is very easy after all there are so many softwares to do that for you but on linux it is not soo easy.
There is howevery this command line tool that helps you do this [youtube-dl](https://github.com/rg3/youtube-dl.
But this command line tool lacks some features that makes it a true download manager, at lest speeds up the downloading.
In an attempt to get what i need and also help others in my situation i have started a project called Ananse. It is fully written in python and hosted on github. It is based on youtube-dl.
I am inviting you to join me work on this project. For the new programmers out there this is a great opportunity to get your feet wet in an open source project. And for the experience programmers need you guys.
Thank you
For more information visit the projects page Ananse

otengkwaku 30 Newbie Poster

I think there is. most of these cloud services provide you with public url for accessing you file. so i think the way to go is manually generating these url and putting it in ur web page

<M/> commented: Yep. +10
otengkwaku 30 Newbie Poster

You have create the calcTaxes but you are not calling it.
i think you should do it like this:

var calculate_tax = function() {
    var total;
    var income = parseFloat( $("income").value );
    $("tax").value =  calcTaxes(income);
    console.log(tax);
    function calcTaxes(amount){
    var calculate = 0;
    if(amount > 85650){
        tax = (amount - 85650) * .28 + 870.0+(35350-8700)*.15+(89350-36900)*.25;
    }
    else if( amount > 35350){
    tax = (amount - 35350) * .25 + 870.0+(35350-8700)*.15;    
    }
    else if(amount > 8700){
    tax = (amount - 8700) * .15 + 870.0;
    }
    else{
       tax = amount * .10;
        }
    tax += amount * .153;
    return tax;
    /*
    10% on taxable income from $0 to $8,700, plus
    15% on taxable income over $8,700 to $35,350, plus
    25% on taxable income over $35,350 to $85,650, plus
    */
}
}
Blue_2 commented: thank you for the help bro +0
otengkwaku 30 Newbie Poster

first of all remove the '{}' at line 24 and 25 of the code since line 26 to 28 is part of the function calculatePtotal;
here is the corrected code

<script type="text/javascript">
function calculatePtotal() {
    var totalofptotal = 0;//initialise the accumulator
    var wholeqtty = 0; //initialise the acumulator of quantity
    var totalofweight = 0; //initialise the acumulator of weight
    $("tr.calc", "#myTable", "#panierform").each(function (i, row) {
        $row = $(row);
        var value = parseFloat($('.prix', $row).val());
        var quantity = parseFloat($(".quantity", $row).val()) || 0;
        var poid = parseInt($(".poid", $row).val());
        var shipping = parseFloat($(".shipping", $row).val());
        var ptotal = (value * quantity).toFixed(2);//calculate row total
        var weight = (poid * quantity) .toFixed(0);//calculate row weight
        $(".quantiy", $row).val(quantity);//display row total
        $(".ptotal", $row).val(ptotal);//display row total
        $(".weight", $row).val(weight);//display row total
        totalofptotal += parseFloat(ptotal);//accumulate the row totals to make a grand total
        wholeqtty += parseInt(quantity);
        totalofweight += parseInt(weight);
    });
    $("#wholeqtty") .val(wholeqtty.toFixed(0));
    $("#totalofweight") .val(totalofweight.toFixed(0));
    $("#totalofptotal").val(totalofptotal.toFixed(2));//display the product total
    var shippingtotal = parseFloat(shipping.value) * totalofweight
    $("#shippingtotal").val(shippingtotal.toFixed(2));//display row total
}
calculatePtotal();
$(".quantity, .shipping").change(function () {
    calculatePtotal();
});
</script>

for some strange reason the value is shipping at line 26 is still a dom element.
but the code should work

otengkwaku 30 Newbie Poster

U must remember that parseFLoat convert a string to a floating point number any thing else and it will return NaN [more on parseFloat ] ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/parseFloat) at line 18 of your code u are trying to convert to float a value that is already a float so remove the parseFloat at line 18 and it should work Also on line 20 u are doing the same thing with parseInt. Remove it and it will work

otengkwaku 30 Newbie Poster

As JorgeM said your best bet is to use session data. if the preson posting is a user them my advise to you is when a user login store a reference to the user's db in the users session data example will be the user's db id then you can use that to do querys and others on that use's data if the user is anonymos them you can generate a random token to reference that user during the session.

When solving these problems it is adviseable to think of them in terms of one user. Make sure it works for one preson them you can mover on to see if it works for two. Web servers are like any computer programs
they will handle one user at a time. even node which is async will still handle one user at a time (but will not wait for the user's action to finish before attending to an other user)

the request coming form the users contains every thing the server (you) need to handle the request even session data is not stored on the server it is stored in the request so if your logic works for one preson it will pretty well work for 100 users

mattyd commented: A great help! +7
otengkwaku 30 Newbie Poster

Not be living in God (Jesus) or heaven is a consure effort but the fact is there is a God and there is heaven and we know this because our heart tell us so. If there is know God or heaven why do we feel the need to do good and why do we feel guilty when we do bad thing. Because there is someone judging us call it consince, call it God, if there is no reward for our good why do we feel good for your good deeds

KushMishra commented: Indeed a very nice thinking +0
otengkwaku 30 Newbie Poster

this is a very simple app the helps yous to keep track of time. It says the time very 15 minits, by the way you can change it.

it uses pyttsx which can be dowloaded and install.
copy this code and save it as sayTheTime.pyw and double click it.
it also uses python2.7 you should also note that you have to start it every time the computer
reboots

try it and tell me what you think thanks

import pyttsx
import time

def getMom(_mouth):
    if _mouth == 1:
        return 'january'
    elif _mouth == 2:
        return 'february'
    elif _mouth == 3:
        return 'march'
    elif _mouth == 4:
        return 'april'
    elif _mouth == 5:
        return 'maye'
    elif _mouth == 6:
        return 'june'
    elif _mouth == 7:
        return 'july'
    elif _mouth == 8:
        return 'august'
    elif _mouth == 9:
        return 'september'
    elif _mouth == 10:
        return 'october'
    elif _mouth == 11:
        return 'november'
    elif _mouth == 12:
        return 'december'


def getTheTime(_time):
    hour = _time.tm_hour % 12

    if _time.tm_min == 0 and _time.tm_hour == 0:
        return 'the time is 12 midnite'
    elif _time.tm_min == 0 and _time.tm_hour == 12:
        return 'the time is 12 noon'
    elif _time.tm_hour < 12:
        if _time.tm_min != 0:
            return 'the time is %d: %d am' %(hour, _time.tm_min) 
        else:
            return 'the time is %d oklok am' %(hour)
    elif _time.tm_hour == 12:
        return 'the time is %d: %d pm' %(_time.tm_hour, _time.tm_min)
    elif _time.tm_hour > 12:
        if _time.tm_min != 0:
            return 'the time is %d: %d pm' %(hour, _time.tm_min) …
Gribouillis commented: thanks for showing pyttsx +13
otengkwaku 30 Newbie Poster

is char** val the same as char* val[ ] when is the formal ( char** val) used

otengkwaku 30 Newbie Poster

I have been around not very long. I learn pretty much every thing i know
about programing form the web and sites like daniweb helped a lot.

comparing a site like daniweb and an other popular site stack overflow ...
I will pick daniweb any day. for two main reason.

  1. Daniweb is newbies friendly. that is to say, you can ask all the stupide question and
    get someone help you arrive at the right question and the right answer.

  2. The people at Daniweb are welcoming and ready to help at any time. althought it takes some time
    to get your post answers compared to stack overflow. The help you get form Daniweb is more simple and explanin
    more so as to help you learn, Daniweb is a learning tool and i hope it will not be changed "by people who
    think they KNOW and forget some of as are now learning.

DANIWEB God bless you.
... so how is the founder of daniweb?

otengkwaku 30 Newbie Poster

@jville kip, i know it can be very deficulte when staring out with progarming but the fact is you will never know ontill you try.

we are here to help you but not to spoon feed you or do your work for you.

otengkwaku 30 Newbie Poster

as firstPerson said you can use google chart api to add a chart of successful stories to the site. you can also creat a page where jod seekers can offer short online course to inmprove their cv. also you can offer courses for employers also. by the way some of the courses must be free to attract more people. I am graphic designer and also the web designer i am intersed in your idea so if you want to use the site not only as your project work but also for real time busessnes i will like to partner you. if you are intered contact me.