lundi 1 août 2016

Android/iOS standalone webapp

I want to create a standalone webapp for Android/iOS that work without browser. The app should work offline and other functionalities like native apps. An exemple of app that I mean is THIS (open with mobile browser and add to home screen) that has "add to homescreen button" and other features.

How framework should I use? There is a good tutorial for this? Could a webapp write/read file on the device? Thanks




Can you recommend servers I can use in eclipse java ee IDE

Is there any other servers(other than tomcat and glass fish) you recommand that I can use for dynamic web project in eclipse java ee IDE ?




Is Java actually used in Web Development over PHP and other languages?

Just as the title says it. Is Java actually used in Web Development? I have never really seen much Java built websites, most were built using PHP, Python, Ruby on Rails etc... And as far as i've seen, big websites and companies also use PHP, like Facebook and other corporations. Maybe I am completely in the wrong, and that's why I'm making this post. And if it is being used, could you please give some intel on why is it good to be used? Thank you in advance!




how to pass html arrtibute to python script

I have a python script which validates ID no. I have html form too which I want to pass string of one field to python script and return answer. my script look like :

 #!/usr/bin/python
 import sys, string, re
 def checkID():
 error=False
 if len(sys.argv) <> 2:
    print "Error: Missing argument (Usage: id ID_Number\n"
 else:
    idNumber=sys.argv[1]
    for oneDigit in idNumber:
        if not(oneDigit in string.digits):
            error=True
            break
    if error:
        print "Error: Illegal ID number: '%s'\n" % idNumber
    else:
        if len(idNumber) > 9:
            error=True
            print "Error: ID number too long: '%s'\n" % idNumber
return error

badNumber = checkID(sys.argv[1])
newID = ''
if not badNumber:
    if len(sys.argv[1]) < 9:
        missingDigits = 9 - len(sys.argv[1])
        while missingDigits > 0:
            newID=newID+'0'
            missingDigits = missingDigits - 1
        newID = newID + sys.argv[1]
    else:
        newID = sys.argv[1]

theSum = 0
indexRange=[0,2,4,6]
for i in indexRange:
    digit = newID[i]
    num= int(digit)
    theSum = theSum + num
    num= int(newID[i+1]) * 2
    if num > 9:
        num1 = num / 10
        num2 = num % 10
        num = num1 + num2
    theSum = theSum + num
theSum = theSum + int(newID[8])
lastDigit = theSum % 10
if lastDigit <> 0:
    print '\nID number: "%s" is wrong\n' % str(newID)
else:
    print '\nID number: "%s" is valid\n' % str(newID)

So the python will check the string passes from html and validate it. how can I do it?




How to store and retrive image data in MySQL database in Golang

How can I insert an image data in MySQL Database and then retrieve it using Golang?

Basically I want that task for upload profile picture of user in web application. According to the my knowledge,the best solution is save image as blob object in database.Is it best solution for upload image in webapplication in golang.?

Please help me find the best solution for that.I want to find the solution in golang.I am beginner for golang programming.




How to open webpage in full screen in running sketch at Processing?

I wonder how I open webpage in full screen mode in running sketch at Processing.

I am making a simple question/answer game but before solving question, I want users to register or login website first. And then when pressed a certain button on webpage it brings back to start to question.

state picture

I appreciate any suggestions. Thanks.




Get exam result from moodle in MVC Application

I am new to moodle. My requirement is , I want get the exam result of students from moodle using my MVC application.

How can I access the exam organized in moodle ?

How can I integrate the students & faculties in moodle with my mssql db ?

How can I integrate the exam name created in DB with the exam created in moodle.?

How I get the results from moodle using any API ?

It will be a great help for me, if any one can given an instruction.