Webmasters › Re: Website design promo! by thewebcraft(m): 11:46am On Apr 06, 2015 |
drone99: Yeah, show us what you can do for 10k. Lolz...  |
|
Programming › Re: Mentorship For Young Programmers by thewebcraft(m): 9:38pm On Apr 05, 2015 |
Programming is never easy.. My number is 08102064720 |
Programming › Re: Lack Of Startup Ideas by thewebcraft(m): 10:58am On Apr 04, 2015 |
pcguru1: I will like to be straightforward as keep it simple and short, the summary is I have no ideas or clues when it comes to Startups, I have made plans to setup a company since I've handle alot of Projects Backend and Frontend and mobile, sadly because of the nature of the contract I'm never able to mention them even when the softwares are so popular that I want to say I actually created that.
I've tried to get ideas and read on Startups but the issue is am too technical. All I can think of is Servers, Threads, writing this code unit test, I have spent an unhealthy amount of time always reading and playing with codes, right now I can honestly say I almost have no business sense in a way. am not asking you to tell me ideas but asking how I can easily find problems and create solutions for them. Sometimes maybe am cut out to be a CTO and not a CEO. Business is not my thing ...........to think i studied business administrator. Thanks guys Hi search and download the full version of this book - The Lean Startup. By Eric Rice. It changed my life |
Programming › Re: Which Is The Best Programming Langauge For Creating A Pinterest Clone? by thewebcraft(m): 8:12am On Apr 03, 2015 |
sigoje: Is your product on the web? Had like to see it Just a pet project do you need the script? |
Programming › Re: Using Html To Create A Form In Your Website by thewebcraft(m): 4:58pm On Mar 31, 2015 |
phatjoe50: Anyway he decided to design his site its his choice... Okay oh! |
Webmasters › Re: don't try it by thewebcraft(m): 4:56pm On Mar 31, 2015 |
Just to be clear for other people who is confused with this scam. The program is .NET framework based so I decompiled it with .NET Reflector. I got the source and trust me, there is no ADB related code. It is picture and text popping out. Also if you try to rename one of its .DLL file, it is the text "changemysoftware" spamming around to make hundreds kilobytes file. |
Webmasters › Re: don't try it by thewebcraft(m): 4:42pm On Mar 31, 2015 |
proxy23: I will show you how to create an app for calculations with Excel . Go to Microsoft Excel write down the variables. Put the data there and make sure the values gives you an answer. Next you have to save the document, after saving the document convert it to apk file for android devices using this link Or this http://changemysoftware.org/exe_to_apk.php download the software to convert exe to apk. U have created an app for android devices . Try it, no code is required . U just have to be good in Excel. Source : proxy "Try it, no code is required"All this "so-called no code is required software" makes you limited.... If you want to create a real App learn a language like java, c++ or Swift..... |
Programming › Re: New Android App: PN Gates by thewebcraft(m): 4:32pm On Mar 31, 2015 |
directonpc: Okk. Webviews ain't too cool for social networking! If you plan to utilize all the power of a device. Even if it will take time to make a native app. I now understand what you mean by web-view..... but thats not what I'm talking about what I'm saying is building apps with html, css & js (Hybrid) ... I built a camera app with basic Html5, CSS and Javascript... Also building an app same as yours but its just a news app. Good Luck with your project.  |
Programming › Re: New Android App: PN Gates by thewebcraft(m): 4:12pm On Mar 31, 2015 |
|
Programming › Re: New Android App: PN Gates by thewebcraft(m): 11:48am On Mar 31, 2015 |
directonpc: Yeah sure! Na App just that by using Web view u don't get to enjoy all the power android API features. *Your user interface is so poor (worst than a web-view app)..... Do you know that the current diamond bank app is built with html, css n js... and yet its has features like login with touch id (finger print)  ..... don't brag because you have access to all the java libraries for android.... all I'm saying is be good at what you know.. |
Webmasters › Re: Mobile Apps Developer by thewebcraft(m): 2:14pm On Mar 30, 2015 |
orionsolutions: Can you build mobile apps Name: Location: Mobile line: Lagos. 08102064720 lucky@chroniclesoft.com |
Programming › Re: Please Help With Java Code For This Simple App.. by thewebcraft(m): 2:02pm On Mar 30, 2015 |
dhtml18: Mehn, if this is the place you are stuck, I am having doubts that you might not be able to complete the app yourself! I might be wrong though, but this one looks like beginners stuffs to me. . . .and writing data-driven applications (aka business applications) is a bit of advanced stuff (in any programming language). Sure. |
Programming › Re: Test your word knowledge in this new game called "words countdown" by thewebcraft(m): 1:54pm On Mar 30, 2015 |
its nice..(please work on the UI) |
Programming › Re: Using Php To Create A Form by thewebcraft(m): 1:42pm On Mar 30, 2015 |
proxy23: en by James RichardsonViews: 76,749Published: Jan 14, 2015Comments: 46 PHP is a great scripting language that allows many dynamic functions in your site. You can create custom forms, form validation, and email responses using PHP. This article will explain the basics in creating an email form that validates the inputs, produces errors when inputs are typed incorrectly, and send an email to you when submitted. This section of the code will validate the form inputs Below is the code you will use to validate whether the inputs have valid data or not. This can be customized for different form field validations. Note! You can paste the entire code directly in the body section of your webpage to get it working.
<?php if (isset($_REQUEST['submitted'])) { // Initialize error array. $errors = array(); // Check for a proper First name if (!empty($_REQUEST['firstname'])) { $firstname = $_REQUEST['firstname']; $pattern = "/^[a-zA-Z0-9\_]{2,20}/";// This is a regular expression that checks if the name is valid characters if (preg_match($pattern,$firstname)){ $firstname = $_REQUEST['firstname'];} else{ $errors[] = 'Your Name can only contain _, 1-9, A-Z or a-z 2-20 long.';} } else {$errors[] = 'You forgot to enter your First Name.';} // Check for a proper Last name if (!empty($_REQUEST['lastname'])) { $lastname = $_REQUEST['lastname']; $pattern = "/^[a-zA-Z0-9\_]{2,20}/";// This is a regular expression that checks if the name is valid characters if (preg_match($pattern,$lastname)){ $lastname = $_REQUEST['lastname'];} else{ $errors[] = 'Your Name can only contain _, 1-9, A-Z or a-z 2-20 long.';} } else {$errors[] = 'You forgot to enter your Last Name.';} //Check for a valid phone number if (!empty($_REQUEST['phone'])) { $phone = $_REQUEST['phone']; $pattern = "/^[0-9\_]{7,20}/"; if (preg_match($pattern,$phone)){ $phone = $_REQUEST['phone'];} else{ $errors[] = 'Your Phone number can only be numbers.';} } else {$errors[] = 'You forgot to enter your Phone number.';} if (!empty($_REQUEST['redmapleacer']) || !empty($_REQUEST['chinesepistache']) || !empty($_REQUEST['raywoodash'])) { $check1 = $_REQUEST['redmapleacer']; if (empty($check1)){$check1 = 'Unchecked';}else{$check1 = 'Checked';} $check2 = $_REQUEST['chinesepistache']; if (empty($check2)){$check2 = 'Unchecked';}else{$check2 = 'Checked';} $check3 = $_REQUEST['raywoodash']; if (empty($check3)){$check3 = 'Unchecked';}else{$check3 = 'Checked';} } else {$errors[] = 'You forgot to enter your Phone number.';} } //End of validation Sends the email if validation passes The following code is what sends the email. The inputs must pass the previous validation in order for the email to send. You will need to replace the "to" email address with the email address you want to receive the email to. if (isset($_REQUEST['submitted'])) { if (empty($errors)) { $from = "From: Our Site!"; //Site name // Change this to your email address you want to form sent to $to = "your@email.com"; $subject = "Admin - Our Site! Comment from " . $name . ""; $message = "Message from " . $firstname . " " . $lastname . " Phone: " . $phone . " Red Maple Acer: " . $check1 ." Chinese Pistache: " . $check2 ." Raywood Ash: " . $check3 .""; mail($to,$subject,$message,$from); } } ?> Error Reporting Code This code will print any errors that occurs such as an empty input. <?php //Print Errors if (isset($_REQUEST['submitted'])) { // Print any error messages. if (!empty($errors)) { echo '<hr /><h3>The following occurred:</h3><ul>'; // Print each error. foreach ($errors as $msg) { echo '<li>'. $msg . '</li>';} echo '</ul><h3>Your mail could not be sent due to input errors.</h3><hr />';} else{echo '<hr /><h3 align="center">Your mail was sent. Thank you!</h3><hr /><p>Below is the message that you sent.</p>'; echo "Message from " . $firstname . " " . $lastname . " <br />Phone: ".$phone." <br />"; echo "<br />Red Maple Acer: " . $check3 . ""; echo "<br />Chinese Pistache: " . $check2 . ""; echo "<br />Raywood Ash: " . $check3 . ""; } } //End of errors array ?> Prints the contact form This is the form that will display for the visitor to fill out. <h2>Contact us</h2> <p>Fill out the form below.</p> <form action="" method="post"> <label>First Name: <br /> <input name="firstname" type="text" value="- Enter First Name -" /><br /></label> <label>Last Name: <br /> <input name="lastname" type="text" value="- Enter Last Name -" /><br /></label> <label>Phone Number: <br /> <input name="phone" type="text" value="- Enter Phone Number -" /><br /></label> <label>Red Maple Acer: <input name="redmapleacer" type="checkbox" value="Red Maple Acer" /><br /></label> <label>Chinese Pistache: <input name="chinesepistache" type="checkbox" value="Chinese Pistache" /><br /></label> <label>Raywood Ash: <input name="raywoodash" type="checkbox" value="Raywood Ash" /><br /></label> <input name="" type="reset" value="Reset Form" /><input name="submitted" type="submit" value="Submit" /> </form> You can paste the entire code directly in the body section of your webpage to get it working. We have more tutorials with other methods to send email from your website at the following links. cool.. nice to know you got this from http://www.inmotionhosting.com. |
Programming › Re: Using Html To Create A Form In Your Website by thewebcraft(m): 1:39pm On Mar 30, 2015 |
proxy23: m name="htmlform" method="post" action="html_form_send.php"> <table width="450px"> </tr> <tr> <td valign="top"> <label for="first_name">First Name *</label> </td> <td valign="top"> <input type="text" name="first_name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top""> <label for="last_name">Last Name *</label> </td> <td valign="top"> <input type="text" name="last_name" maxlength="50" size="30"> </td> </tr> <tr> <td valign="top"> <label for="email">Email Address *</label> </td> <td valign="top"> <input type="text" name="email" maxlength="80" size="30"> </td> </tr> <tr> <td valign="top"> <label for="telephone">Telephone Number</label> </td> <td valign="top"> <input type="text" name="telephone" maxlength="30" size="30"> </td> </tr> <tr> <td valign="top"> <label for="comments">Comments *</label> </td> <td valign="top"> <textarea name="comments" maxlength="1000" cols="25" rows="6"></textarea> </td> </tr> <tr> <td colspan="2" style="text-align:center"> <input type="submit" value="Submit"> ( <a href="http://www.freecontactform.com/html_form.php">HTML Form</a> ) </td> </tr> </table> </form> There's no php part (html_form_send.php) and besides you are using a table as a form layout. |
Webmasters › Re: Please Help Me With Php Code To Submit Picture To Database by thewebcraft(m): 9:23am On Mar 30, 2015 |
OPEYEMIAD: HERE IS MY SCRIPT
<?php mb_http_input("iso-8859-1" ; mb_http_output("iso-8859-1" ; ?> <?php require_once('Connections/SIMSDatabase.php'); ?> <?php if (!function_exists("GetSQLValueString" ) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "" { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; }
$theValue = function_exists("mysql_real_escape_string" ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) { case "text": $theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "" ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "" ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "" ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "" ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } }
$editFormAction = $_SERVER['PHP_SELF']; if (isset($_SERVER['QUERY_STRING'])) { $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']); }
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1" ) { $insertSQL = sprintf("INSERT INTO photograph (RegNo, Passport, Undertaking, Sorigin, Addletter, declaration, Olevel) VALUES (%s, %s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST['RegNo'], "text" , GetSQLValueString($_POST['Passport'], "text" , GetSQLValueString($_POST['Undertaking'], "text" , GetSQLValueString($_POST['Sorigin'], "text" , GetSQLValueString($_POST['Addletter'], "text" , GetSQLValueString($_POST['Declaration'], "text" , GetSQLValueString($_POST['Olevel'], "text" );
mysql_select_db($database_SIMSDatabase, $SIMSDatabase); $Result1 = mysql_query($insertSQL, $SIMSDatabase) or die(mysql_error());
$insertGoTo = "congratulation.php"; if (isset($_SERVER['QUERY_STRING'])) { $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?"; $insertGoTo .= $_SERVER['QUERY_STRING']; } header(sprintf("Location: %s", $insertGoTo)); }
mysql_select_db($database_SIMSDatabase, $SIMSDatabase); $query_photograph = "SELECT * FROM photograph"; $photograph = mysql_query($query_photograph, $SIMSDatabase) or die(mysql_error()); $row_photograph = mysql_fetch_assoc($photograph); $totalRows_photograph = mysql_num_rows($photograph); ?>
</style> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> <meta name="save" content="" /> <meta name="keywords" content="adeleke" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="description" content="" /> <script src="jQueryAssets/jquery-1.8.3.min.js" type="text/javascript"></script> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> </head>
<body> <div id="Layer19"> <table width="100%" border="1"> <tr> <td><form action="<?php echo $editFormAction; ?>" id="form1" name="form1" enctype="multipart/form-data" method="POST"> <p> NOTE: All your document should not be more than 60kb</p> <p> </p> <p> <label for="Passport">Passport</label> <input name="Passport" type="file" id="Passport" size="40" /> </p> <p> <label for="Undertaking">Letter of Undertaking</label> <input name="Undertaking" type="file" id="Undertaking" size="40" /> </p> <p> <label for="Sorigin">Certificate of Origin</label> <input name="Sorigin" type="file" id="Sorigin" size="40" /> </p> <p> <label for="Addletter">Admission Letter</label> <input name="Addletter" type="file" id="Addletter" size="40" /> </p> <p> <label for="Declaration">Certicate of birth/declaration of age</label> <input name="Declaration" type="file" id="Declaration" size="30" /> </p> <p>O Level Result <input name="Olevel" type="file" id="Olevel" size="30" /> </p> <p> <label for="RegNo">Reg No</label> <span id="sprytextfield1"> <input type="text" name="RegNo" id="RegNo" /> <span class="textfieldRequiredMsg">Please Insert Your Registration Number.</span></span></p> <p> </p> <p> <input type="radio" name="radio" id="radio" value="radio" /> <label for="radio"></label> I hereby certify that to the best of my knowledge and belief, that the information given as above are correct. </p> <p> </p> <p> <input name="Submit" type="submit" class="style15" id="Submit" value="Upload" /> </p> <input type="hidden" name="MM_insert" value="form1" /> </form></td> </tr> </table> <p> </p> <p> </p> <p> </p> </div> <div class="style12" id="Layer1"> <marquee> <span class="style12"> <span style="font-size: 24px; color: #0000FF;">.::::STUDENTS INFORMATION MANAGEMENT SYSTEM::::.</span></span> </marquee></div> <p><img src="Picture/p1.jpg" width="1200" height="242" alt="PORTAL" /></p> <p> </p> <div id="Layer21"><a href="homepage.php">LOG OUT</a> </div> <script type="text/javascript"> var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1" ; </script> </body> </html> <?php mysql_free_result($photograph); ?> Can write this code in 20 lines..Na wa oh! for Image Upload?........ and besides you dont comment your code. |
Webmasters › 5 Web Development Solutions To Common Marketing Problems by thewebcraft(op): 5:02pm On Mar 27, 2015 |
The root of many common marketing problems may stem from poor web development. Understanding which challenges can be remedied by smart development techniques could mean the difference between a successful campaign, and a failed one. Twenty years ago, if you told people that you were marketing your business online, they might have called you crazy. Today, if you told people that you weren’t marketing your business online, you might expect the same reaction.
As of 2015, more than 91 percent of B2B marketers use content marketing, 48 percent of marketers build a new landing page for each marketing campaign, and 40 percent of US companies use blogs for marketing purposes.
Digital marketing is now king, and everyone wants an audience with his excellency.
But getting online is the easy part. Maintaining a strong and effective online presence is a different story, one in which the web developer gets to be the hero.
Web development is the machinery on which digital marketing runs, and if the machinery is broken, so is everything else.
Not every digital marketing problem can be fixed with proper web development, but many of them can. If you’ve experienced any of the following issues, smart web development practices may be the remedy.
Problem: Poor Search Ranking
If you consistently put out unique, keyword-rich content, but aren’t seeing the desired results, the problem may lie with the website’s architecture.
A good web developer can optimize the search engine optimization (SEO) by ensuring a company’s web presence is built on solid design principles and technical fundamentals.
They can guarantee that all content is well-formatted and well-presented for search engine crawling.
A website that loads quickly and displays accurately across a variety of desktop and mobile devices is more accessible to users and will see more traffic. More traffic influences search rankings. Also, more traffic is great all by itself. Traffic a la mode, if you will. Problem: Infrequent Content Consistent, unique content such as articles, blog posts and infographics drives traffic and increases customer conversions, but without an integrated content management system (CMS) in which to easily post this content, many businesses struggle to stay up-to-date.
This is where a web developer has the chance to shine by either integrating a pre-existing CMS (WordPress, Joomla) into a website’s backend or building a custom CMS for a specific company.
A CMS streamlines the process of publishing and updating content because it doesn’t require any knowledge of programming to operate.
No more wasting manhours updating content by tracking down the company’s one developer so they can rewrite the code, with a CMS, the English majors of the company can post their work with just a few clicks.
Problem: Not Enough User Data
Your average marketing maven might not see the difference between asking users to login with a username versus an email address, but a savvy web developer does.
Asking users to submit their email address via a registration page is a no-hassle way to build your email list and one of many minimally invasive methods of acquiring valuable user data.
But a web developer’s role extends beyond simply knowing these methods. He or she must also know how to integrate elements like registration forms, social media plugins and modal windows so they don’t disrupt the user experience. Problem: Insufficient Web Analytics Good marketers understand how to translate web analytics into actionable marketing solutions, but what if there isn’t sufficient analytic data to go on?
Good web developers know how to align an analytics strategy with business objectives to provide comprehensive, accurate and targeted data for marketers to work with.
Inserting a Google Analytics code into your homepage is amateur hour. A developer can put a company in a position to receive data regarding:
Sales conversions Banner ad performance Email campaign performance Social media referrals and activity Video interaction and engagement Mobile websites and apps
Problem: Stale Marketing Techniques
A web developer is likely to be one of the most Internet-savvy people on the team, making them a valuable resource when it comes to staying on the industry’s cutting-edge.
Developers are plugged in (in every sense of the word) and may be the first to learn of a new social networking tool, content curation widget or user engagement strategy, as well as recent changes to SEO best practices or the most recent trend in web analytics.
For example, a trend-savvy developer might clue a marketing team into the following: did you know that:
It’s no longer effective to base digital marketing campaigns on impressions or clicks. These days it’s all about conversion rates. Base-level social media metrics (number of followers, likes, shares) are inadequate for making data-driven decisions, and should be augmented with conversion and relative metrics for more accurate insight. Impersonal, keyword-saturated content is much less effective than useful, compelling and well-written content. Your website can be penalized for violating the best practices of many major search engines. Avoid shady tactics like blackhat SEO, IP-spoofing and redirects.
To maximize the impact of your digital marketing efforts, incorporate web development into your strategy from the beginning. The root of many digital marketing problems such as infrequent content, insufficient analytic data and disappointing search rankings may stem from development issues and committing to quality web development can mean the difference between a successful campaign and a failed one. |
Webmasters › Re: Need To Partner With A Programmer by thewebcraft(m): 4:49pm On Mar 27, 2015 |
aikfrank: As a programmer I will like to partner with any programmer in house, for a longer relationship. To partner with me on one of my site.
I will offer 30% ownership to him/her.
You can drop your contact details if interested. I'm Lucky, A Developer you can send me a mail whebcraft@gmail.com or 08102064720 |
|
Webmasters › Re: Please Help Me With Php Code To Submit Picture To Database by thewebcraft(m): 4:42pm On Mar 27, 2015 |
OPEYEMIAD: I am currently working on my project Studeñt information management system. Have created other entries and they all submited to my database successfully using Dreamweaver, phpmyadmin and aphache.
Now remain to submit passport, my data type is blob on mysql but I can't submit as blob from dreamweaver. I can only submit as text.
please help me out gurus in d house Submit Image path to db or full Image? |
Webmasters › Re: A Nairalander Is Startingup Webdesign(wordpres)tutorial Free.join And Become Pro by thewebcraft(m): 4:41pm On Mar 27, 2015 |
oskaaay: Hello Fellow Nairalanders,
Am Olasunkanmi Ayomide Fakeye, Web Designer, Developer (Microsoft Certified Solution Developer -MCSD certification in View), Consultant and Digital/Social marketer. With my love for web design and all it encompases am starting up a free blog to focus on it and help interested individuals move from newbie to professional and also Earn with the skill.
Therefore if you are interested it is FREE, and all you need to do is to visit www.WebDesignWealth.com . Am just starting and will be revealing how I will transform the website to a professional one live via posts, you can ask questions per stage and comment.
Thanks and will be expecting you at www.WebDesignWealth.com
It a rear opportunity Wow thats nice. |
Programming › Re: I Want To Be Able To Creat A Game by thewebcraft(m): 4:21pm On Mar 27, 2015 |
jacksam567: Hello I want to be a game designer, i have tried learning C++ but I stil can't still do any reasonably program with. I don't know if C++ is the right programing language or do I need any addition programming language to learn. If so can anyone tell me what to do. Thanks Have you read any book on c++? |
Programming › Re: Guys You Need To See This...sooo Funy (pics) by thewebcraft(m): 4:15pm On Mar 27, 2015 |
|
Programming › Re: Which Is The Best Programming Langauge For Creating A Pinterest Clone? by thewebcraft(m): 3:59pm On Mar 27, 2015 |
sigoje: With the proliferation of programming languages which programme should I use (in some cases first learn) to develop a Pinterest clone? I know instagram was created with HTML 5 and Facebook uses C++, but now you have python, ruby on rails etc. That's a few too many..  I used PHP to build something similar. |
Programming › Re: The 3 New Javascript Apis You May Want To Follow by thewebcraft(op): 3:54pm On Mar 26, 2015 |
|
Webmasters › Re: Adsense Click Exchange Group by thewebcraft(m): 3:13pm On Mar 26, 2015 |
scoory: If you wish to learn HTML, CSS, Javascript, Php and MySQL, I am willing to teach you one on one depending on your location. If you are interested contact me @ scoory1993@gmail.com then I will give you my phone number so we can call or chat on whatsapp. It is not going to be free of course. Lol.....  |
Programming › The 3 New Javascript Apis You May Want To Follow by thewebcraft(op): 2:48pm On Mar 26, 2015*. Modified: 4:17pm On Apr 19, 2015 |
Today I’ll break this habit by giving you a preview of some APIs that are still at a very early stage. To give you an idea of how cutting edge these APIs are, consider that 2 out of 3 were announced just few days ago. Because of this, the bad news is that none of them can be used right now. However, if you’re interested in what they do, you may want to follow the development of the specifications and maybe provide your feedback. Without further ado, let’s start! Web Alarms API The Web Alarms API provides access to the device alarm settings, which can schedule a notification or for an application to be started at a specific time. The typical use case for this API involves applications like alarms, calendars, or any other software that needs to perform an action at a specific time. Starting from last year, this API is a W3C Working Draft. So, the specifications are at the first stage of the process to become a W3C Recommendation. This API is exposed through the alarms property of the window.navigator object. The alarms property offers three methods: getAll(): Retrieves all the alarms added to the device as an array of Alarm objects. add(): Registers an alarm based on a Date object and returns an AlarmRequest object. remove(): Removes a previously added alarm based on the unique ID (unique within the application origin). Just to give you an idea of how you could ideally call these methods, here is an example that adds an alarm (remember that at the moment this code won’t work in any browser): var alarmId; var request = navigator.alarms.add( new Date("June 29, 2012 07:30:00" , "respectTimezone", ); request.onsuccess = function (e) { alarmId = e.target.result; }; request.onerror = function (e) { alert(e.target.error.name); };Then, if you want to remove the same alarm, you can write: var request = navigator.alarms.remove(alarmId); request.onsuccess = function (e) { alert("alarm removed" ; }; request.onerror = function (e) { alert(e.target.error.name); };
If you want to learn more about the Web Alarms API, take a look at the specification. Presentation API The aim of the Presentation API is to make secondary displays such as a projector or a connected TV available to the web, and takes into account displays that are attached using wired (HDMI, DVI or similar) and wireless technologies (MiraCast, Chromecast, DLNA, AirPlay or similar). What this API does is to enable an exchange of messages between a requesting page and a presentation page shown in the secondary display. Please note that the specifications aren’t a W3C Standard, nor on the W3C Standards Track. This API is exposed through the presentation property of the window.navigator object. The property provides one method, called requestSession(), and two events, present and availablechange. requestSession() is used to launch or resume a presentation on a secondary screen. It returns a session object which represents a handle to the current presentation session. When the content denoted by the url passed to requestSession() is loaded, the page on the presentation screen receives the present event. Finally, availablechange is fired when the first secondary display becomes available or the last secondary display is removed. An example, taken from the specifications, that employs this API is shown below: var presentation = navigator.presentation, showButton = document.querySelector('button'); presentation.onavailablechange = function(e) { showButton.disabled = !e.available; showButton.onclick = show; }; function show() { var session = presentation.requestSession('http://example.org/'); session.onstatechange = function() { switch (session.state) { case 'connected': session.postMessage(/*...*/); session.onmessage = function() { /*...*/ }; break; case 'disconnected': console.log('Disconnected.'); break; } }; }In case you want to learn more about the Presentation API, take a look at the final report. Standby API The Standby API allows you to request a screen wake lock on a top-level browsing context. This prevents the device from entering a power-saving state (e.g, turning off the screen). This ability is crucial for several web applications. For example, imagine you’re driving your car and you’re using a web-based navigator (not a native application) on your smartphone. If you don’t interact with the screen, unless otherwise specified in the settings, the screen of your device will turn off. In such cases, however, you do want your screen to stay awake. This is exactly where this API comes into play. The Standby API is exposed through the wakeLock property of the window.navigator object. It provides two methods: request: Causes the underlying platform to keep the screen in active state. release: Releases the wake lock, so the screen will no longer be kept awake. Both these methods accept just one argument that can be either "screen" or "system". The former is used to target the device screen, while the latter to target other device resources like the CPU or the radio (but not the screen). An example that shows how to use this API to request the screen to stay awake is shown below: navigator.wakeLock.request("screen" .then( function successFunction() { // do something }, function errorFunction() { // do something else } );To allow the screen to turn off, we can write the following statement: navigator.wakeLock.release("display" ;If you want to learn more about the Standby API, take a look at the unofficial draft. In this post I’ve introduced you to some brand new JavaScript APIs. Once again I want to highlight that because they are all in a very early stage, no browsers support them. Therefore, we can’t play with them. However, being so new you have the chance to follow their development and even contribute to the specifications. The future of web development is bright, be part of it!. |
Programming › Re: Who Needs Joomla Multivendor Extension by thewebcraft(m): 1:26pm On Mar 26, 2015 |
odicity: I am offering hikashop and hikamarket, both valued at about 30k in naira, u can comfirm from there official website for just #5000. With video tutorial on how to set it up. Text. I need. Hika to 08115801276. And I will send my account details. This few lucky persons because it is commercial software. I have a face check one of my pages on. Fb.com/epignosisconsult Also offering Jomsocial 3.9, Easysocial or Widget Kit 3 (Check the prices) or any premium template from Garvick, JoomlaRT or Yootheme or your own built template, moduel or compoment at affordable prices |
Programming › Re: Public API For Nigerian Newspapers by thewebcraft(m): 1:06pm On Mar 26, 2015 |
uchdollar111: I'm writing code for a newspaper app, and i'm almost done with the app,so I'm asking, is there a public online API for Nigerian newspapers that is auto updated with news articles without you having to do the updating yourself? I could help you with one which am also using for the app I'm building |
Programming › Re: Learn Php Mysql The Wordpress Way by thewebcraft(m): 11:53am On Mar 26, 2015*. Modified: 12:58pm On Mar 26, 2015 |
seunoni34: The fact that top organizations use cms Frameworks doesn't make it a good idea. Most of this companies put up those websites in a haste. They weren't patient enough, this is why they had to settle for less. They have no knowledge of how much power and control coding from scratch gives you. I agree. As a software developer Using a CMS built by 3,000+ software developer community and building from *scratch* has a difference most times it saves time and even most security features you have not heard of are already built-in in most of the CMS but that doesn't mean I can't re-structure it the way I want. That's what *web designers* don't know. All they know how to do is to google " *free* joomla templates, modules or components". But even we know most of the so called built from scratch is not really done as at now, most developer's just add a popular backend and frontend framework and brag they built from scratch. What really matters is your UI/UX and Features. Thanks. |
Programming › Re: Learn Php Mysql The Wordpress Way by thewebcraft(m): 1:16pm On Mar 18, 2015 |
kayplus33: "LEARN PHP/MySQL THE WORDPRESS WAY FOR JUST N20,000.00 ONLY" This is an opportunity for you to be a programmer and a professional website developer. If you are dreaming to be a professional programmer and you want to make money developing a professional website for companies then, here is an opportunity for you. Just visit www.orlanditconcepts.net/register.php to get started.
COURSE OUTLINE 1. The WordPress Website Introduction 2. How to install and setup WordPress 3. A simple survey of WordPress dashboard 4. Building a blog from scratch 5. Learning how to use plugins to improve the functionalities of a website 6. Building a standard website with WordPress 7. SEO- Search Engine Optimization 8. Website security on WordPress How to create login and registration page with PHP MySQL (Extra Training Course)
For more details and inquiries please call kayode on 08109563891, 08187880644, 08081552348. Hurry now limited space available  No offense but your website looks like it was codded in 2001.....please try re-designing because if I was interested in your courses I wound'nt want to learn how to create a site like yours... |