• Register

Recent posts tagged solution

17 1 1 min.
employee schedule and attendance module work remarkably. It makes scheduling so easy and automates even the most complex tasks of workforce management (WFM). Efficient employee scheduling software allows employees to access the system using...
posted Jul 9 misentinel 103 points
29 2 1 min.
Solution:1. For Windows – Hold down + Ctrl key for selecting multiple option2. For Mac – Hold down command key for selecting multiple optionSTEP 1: Create a list of itemCode:<html> <body> <form method = "post...
posted Jun 16 Tushar Shuvro 31,696 points
0 0 7 min.
Q: Which of the following factors has helped Facebook build up trust among its users? A. Superior technology compared to rivals B. Mutual and reciprocal approval of friend requests C. Free nature of applications available to users D. Low switching co...
posted Jan 28 Sana Sabir 100 points
0 0 2 min.
This type of error mostly occurs when we do a large number of counting and multiplyingThe Following Example shows the error and solution below to show how to resolve this kind of problem.#include <bits/stdc++.h> using namespace std; string add...
posted Jul 21, 2020 zeeshan 170 points
0 0 2 min.
No, the Statement is a group of lines. One statement contains many lines For example:#include <stdio.h> int main() { int x, y; printf("enter the value of x:"); scanf("%d", &x); printf("enter the value of y:"); ...
posted Jul 21, 2020 zeeshan 170 points
0 0 2 min.
Solution:You can solve this problem in several ways. Here is the simpliest method to do this. Follw this below codeCode:String propFile = "/path/to/file"; Properties props = new Properties(); /* Set some properties here */ Properties tmp = new Prop...
posted Jul 20, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solution:To solve this problem you have to follw the below steps. First thing first, running with a SAX-style element parser and the XmlTextReader class built with XmlReader. Follw this below code carefullyCode:void ParseURL(...
posted Jul 20, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:You have to follow the Java runtime library supports validation. Previously i checked this was the Apache Xerces parser beneath the covers. You should possibly apply a javax.xml.validation.Validator.Follw this b...
posted Jul 20, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solution:The first thing you can do is lxml's validation. It will work for you properly. Follw the below program to do thisCode:from StringIO import StringIO from lxml import etree dtd = etree.DTD(StringIO("""<!ELEMENT foo EMPTY>...
posted Jul 20, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:Well naturally you can constantly extract the top-level elements . In C#, you'd apply the XmlDocument class. Example given-  in case your XML file looked something like this:<Document> <Piece> ...
posted Jul 20, 2020 Tushar Shuvro 31,696 points
6 0 2 min.
Solution:First thing first, you'll have to initialise a new hash as the value of the initial key, and put an Array as the value of the nested hash:Follw the below code:h = Hash.new { |hash, key| hash[key] = Hash.new { |k, v| k[v] = Arra...
posted Jul 19, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution: The default rails webpack server rebuild each .js(x) files alters and that took many time in development. You can solve it by applying gem foreman.Steps:1. Install foreman2. Make Procfile.dev in ...
posted Jul 19, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solution:Whereas you don't have a customers table, and you're attempting to abstract the concept of a guest customer out of the orders table, making a model is a reasonable method. Follw the below programCode:class Custome...
posted Jul 19, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solutuion:Follw this below program to solve this problemThe first thing you have to do set an array  for this it will perfectly works as like:Code:array = [] Dir.chdir "/path/to/dir" Dir.glob("**/*.{mo,txt}").each do |filename| File.open(file...
posted Jul 19, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:We can execute  a very basic ORM with some Ruby meta programming however please keep in mind that this is nothing you must use in production for security purposes. Executing a fully performing ORM is A LOT of wo...
posted Jul 19, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solution:Execute below PHP Code to solve this issueCode:function time_since($since) { $chunks = array( array(60 * 60 * 24 * 365 , 'year'), array(60 * 60 * 24 * 30 , 'month'), array(60 * 60 * 24 * 7, 'week'), array(...
posted Jul 18, 2020 Tushar Shuvro 31,696 points
0 0 1 min.
Solution:Follow this below program to solve this issueCode:function timeFunc($function, $runs) { $times = array(); for ($i = 0; $i < $runs; $i++) { $time = microtime(); call_user_func($function); $times[$i] = microtime() - $time...
posted Jul 18, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:First thing, you can  apply an Observer pattern. A easy functional method to accomplish this:Code:<?php /** Plugin system **/ $listeners = array(); /* Create an entry point for plugins */ function hook() { globa...
posted Jul 18, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:Follw the below steps to solve this issue.First thing you can do,  apply for an instance chr(10)Like This:$data=$_POST['fname'] . chr(10);In the second case, you can apply \n, PHP_EOL or as meanwhile s...
posted Jul 18, 2020 Tushar Shuvro 31,696 points
0 0 2 min.
Solution:You can easily obtain value of select-box and <h4> and include them and put total value to your div and hidden inputs . Follow the below steps for doing it.Code:$(document).ready(function() { //on cha...
posted Jul 18, 2020 Tushar Shuvro 31,696 points