tag:blogger.com,1999:blog-61751899737032118732024-02-19T13:17:15.788+05:30Learn and ShareLearn Code Write Code and Read CodeUnknownnoreply@blogger.comBlogger35125tag:blogger.com,1999:blog-6175189973703211873.post-26149957582571213552021-02-19T20:21:00.001+05:302021-02-19T20:38:28.984+05:30Add footer page number in Microsoft (Word) using PHP<p><span style="font-family: inherit;">Here is an example of adding a footer page number in a word document(<span style="color: #6fa8dc;">.docx, .doc</span>) using PHP in ProcessMaker tool. </span><span style="font-family: inherit;">Sometimes we would like to add the footer connect via styles or tag attributes to enable the footer on pages. </span></p><p><span style="font-family: inherit;"><b>View:</b></span></p><p><span style="font-family: inherit;"><span style="font-weight: bold;"> </span><b> </b>Below screen the output screen to display the custom footer with few lines of code<br /></span></p><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGB8C1kR8jsCSHxrLT9zX2DVRNayUyNB_6og-dxRZzXFVkO6EQ5Q1shId6RMOhh_x0kgBSqL15g_0_Aj5aW_RfRaepOhgwIHJdroVS1HoFup6t8_dmOnl8Dq_TvNAGa3MmXogUOo32pg4/s597/edit-footer-in-word.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="450" data-original-width="597" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGB8C1kR8jsCSHxrLT9zX2DVRNayUyNB_6og-dxRZzXFVkO6EQ5Q1shId6RMOhh_x0kgBSqL15g_0_Aj5aW_RfRaepOhgwIHJdroVS1HoFup6t8_dmOnl8Dq_TvNAGa3MmXogUOo32pg4/s16000/edit-footer-in-word.png" /></a></div><br /><span style="font-family: inherit;"><br /></span><p></p><p><span style="font-family: inherit;"><b>Example:</b></span></p><pre style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; -webkit-font-smoothing: auto; background: 0px 0px rgb(245, 247, 250); border: 0px; box-sizing: inherit; line-height: 1.25; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; padding: 0px; position: relative; vertical-align: baseline;"><code class="hljs sql" style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; -webkit-font-smoothing: auto; background: rgb(24, 35, 52); border-radius: 4px; border: 0px; box-shadow: rgba(36, 37, 38, 0.08) 4px 4px 15px 0px; box-sizing: inherit; display: block; line-height: 1.5em; margin: 0px; overflow-x: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; font-family: Operator Mono, Fira Code, menlo, monospace;"><span style="white-space: pre-wrap;"><table border="0" cellpadding="0" cellspacing="0" id="test" style="width: 100%;">
<tbody>
<tr>
<td>
<!--footer starts-->
<div id="f1" style="position: fixed; bottom: 5mm; left: 0mm; width: 100%; mso-element: footer;">
<table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
<tbody>
<tr>
<td class="footer">
<table style="width: 100%;">
<tbody>
<tr>
<td align="right" class="footer">
Page
<g:message code="offer.letter.page.label">
</g:message>
<span style="mso-field-code: PAGE;">
</span>
/
<span style="mso-field-code: NUMPAGES;">
</span>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<!--footer ends-->
</td>
</tr>
</tbody>
</table></span></span></code></pre>Unknownnoreply@blogger.com0India20.593684 78.96288-7.7165498361788458 43.80663 48.903917836178849 114.11913tag:blogger.com,1999:blog-6175189973703211873.post-19266801313515862552021-01-11T12:36:00.010+05:302021-02-19T20:34:16.212+05:30symlink(): protocal error in processmaker version 4<p></p><h2 style="clear: both; text-align: center;"><b>symlink(): protocal error in processmaker version 4</b></h2><br /><span style="font-size: medium;"> <span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; color: #24292e;">I have fixed this issue by following the steps</span></span><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC5TSL7Sz_JEDhccv1ih3kal2jtZ5eceMNy1GOvQApLyAO3DAnpIZVLzdTjMV0n8KZrh_WGFMHpZVnnY8-6l0ypSqICpK6YmBlR2Em0ZeZ46tTufTbqo0GGspRxgBZb3-SNIKzRnmzf78/s1418/102870375-f605ef80-4462-11eb-80be-287b4965a488.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="899" data-original-width="1418" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjC5TSL7Sz_JEDhccv1ih3kal2jtZ5eceMNy1GOvQApLyAO3DAnpIZVLzdTjMV0n8KZrh_WGFMHpZVnnY8-6l0ypSqICpK6YmBlR2Em0ZeZ46tTufTbqo0GGspRxgBZb3-SNIKzRnmzf78/s16000/102870375-f605ef80-4462-11eb-80be-287b4965a488.png" /></a></div><br /><span style="font-size: medium;"><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; color: #24292e;">Note: If you were using the </span><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; box-sizing: border-box; color: #24292e; font-weight: 600;">vagrant up</span><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; color: #24292e;"> already run command </span><span face="-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"" style="background-color: white; box-sizing: border-box; color: #24292e; font-weight: 600;">vagrant halt</span></span><div><span face="-apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji" style="color: #24292e;"><span style="font-size: medium;"><b><br /></b></span></span><div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b>1. Open the Windows command prompt(cmd) as an Administratoror </b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b><br /></b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b>2. Run vagrant up </b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b><br /></b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b>3. vagrant ssh </b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b><br /></b></span></span></div><div><span face="SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace" style="color: #24292e;"><span style="background-color: rgba(27, 31, 35, 0.05); font-size: medium;"><b>4. Run the php artisan processmaker:install command</b></span></span></div><div><span style="font-size: medium;"><b><br /></b></span></div><div><span style="font-size: medium;"><table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto;"><tbody><tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSx7BwA40Mlz0h7XRkVOd9ZBLzRLWa0uvPVv-FTrAcNI3vkrUg8AXqvHyE7s5Ni_FSSQQbnXFIEAIIpvKQ8nNP6JwPLedt8NzSgfuwBTUOQH4B87gYkra1vSFi2Msg56wpsoZBC-k85pk/s1958/sucess+installation.PNG" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="939" data-original-width="1958" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSx7BwA40Mlz0h7XRkVOd9ZBLzRLWa0uvPVv-FTrAcNI3vkrUg8AXqvHyE7s5Ni_FSSQQbnXFIEAIIpvKQ8nNP6JwPLedt8NzSgfuwBTUOQH4B87gYkra1vSFi2Msg56wpsoZBC-k85pk/s16000/sucess+installation.PNG" /></a></td></tr><tr><td class="tr-caption" style="text-align: center;">Successfully installed processmaker 4 version<br /><br /></td></tr></tbody></table><br /><b><br style="background-color: white; box-sizing: border-box; color: #24292e;" /></b></span><br /></div></div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-47780139332721548502021-01-11T12:18:00.002+05:302021-01-11T12:18:49.233+05:30Post Method in laravel throwing 302<h1 class="content-title" style="background-color: white; box-sizing: inherit; color: #031b4e; font-family: Sailec-Bold, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 44px; letter-spacing: -1px; line-height: 1.2; margin: 0px; padding: 0px; word-break: break-word;">All Post Method in laravel throwing 302</h1><div><br /></div><div>To fix the issue open the laravel config directory.<span style="background-color: #cccccc;"><b> config/session.php </b></span>file set in local server</div><div><br /></div><div><pre class="code-pre " style="background: rgba(0, 0, 0, 0.05); border-radius: 3px; box-sizing: border-box; color: #545454; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; font-size: 14px; hyphens: none; line-height: 1.4em; margin-bottom: 24px; margin-top: 0px; overflow-wrap: normal; overflow: auto; padding: 1rem; text-shadow: none; word-break: normal;"><code style="background: 0px 0px transparent; border-radius: 3px; box-sizing: inherit; direction: ltr; font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace; hyphens: none; line-height: 22px; margin: 0px; padding: 0px; text-shadow: none; word-break: normal; word-spacing: normal;"> </code>'secure' => env('SESSION_SECURE_COOKIE', false),</pre></div><div>It works well for me. hope it helps someone.</div><div><br /></div><div>Happy coding!</div><div><div><br /></div><div> </div></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-36340530272111268752020-12-18T17:00:00.003+05:302021-01-11T14:56:51.191+05:30vagrant up not working windows 10 | Stderr: VBoxManage.exe: error: Failed to get device handle and/or partition<h1 style="text-align: left;"> vagrant up not working windows 10</h1><div><br /></div><div><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">If you get an error message during <code style="background-color: #f9f2f4; border-radius: 4px; box-sizing: border-box; color: #c7254e; font-family: monospace, monospace; font-size: 1em; padding: 2px 4px;">vagrant up</code> or when starting a VirtualBox machine, telling you that VT-x is not available, a reason may be that you have enabled Hyper-V on your Windows 10 machine: VirtualBox and Hyper-V cannot share the VT-x CPU:</p><pre style="background: rgb(235, 234, 226); border-radius: 0px; border: none; box-sizing: border-box; color: #3f4551; font-family: monospace, monospace; font-size: 14px; line-height: 1.65; margin-bottom: 25px; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 27.125px 47.4688px; position: relative; word-break: break-all;">$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'thesteve0/openshift-origin' is up to date...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 8443 (guest) => 8443 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.
Command: ["startvm", "8ec20c4c-d017-4dcf-8224-6cf530ee530e", "--type", "headless"]
Stderr: VBoxManage.exe: error: <span style="box-sizing: border-box; font-weight: 700;">VT-x is not available</span> (VERR_VMX_NO_VMX)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole</pre><blockquote style="background-color: white; border-bottom-color: rgb(13, 164, 211); border-color: rgb(13, 164, 211); border-left-style: solid; border-left-width: 5px; border-left: 5px solid rgb(13, 164, 211); border-right-color: rgb(13, 164, 211); border-top-color: rgb(13, 164, 211); box-sizing: border-box; color: #232425; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.1em; font-style: italic; line-height: 1.5; margin: 0px 0px 25px; padding: 10px 20px;"><p style="box-sizing: border-box; margin: 0px;">Note: after the latest Windows 10 Pro update, the error message has slightly changed. It does not tell anymore, that VT-x is not avialable (an anti-improvement). However, the code E_FAIL remains the same.</p></blockquote><h2 style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 30px; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 10px; margin-top: 20px;">Resolution:</h2><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">found <a href="http://www.eightforums.com/virtualization/48077-hyper-v-vmware-same-machine.html" style="background-color: transparent; border-bottom: 2px solid rgb(146, 194, 28); box-sizing: border-box; color: #92c21c; text-decoration-line: none;">here</a>…</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">Step 1: prepare your Windows machine for dual boot with and without Hyper-V</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">As Administrator, open a CMD and issue the commands</p><pre style="background: rgb(235, 234, 226); border-radius: 0px; border: none; box-sizing: border-box; color: #3f4551; font-family: monospace, monospace; font-size: 14px; line-height: 1.65; margin-bottom: 25px; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 27.125px 47.4688px; position: relative; word-break: break-all;">bcdedit /copy "{current}" /d "Hyper-V"
bcdedit /set "{current}" hypervisorlaunchtype off
bcdedit /set "{current}" description "non Hyper-V"</pre><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">Step 2: Reboot the machine and choose the “non-Hyper-V” option.</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">Now, the <code style="background-color: #f9f2f4; border-radius: 4px; box-sizing: border-box; color: #c7254e; font-family: monospace, monospace; font-size: 1em; padding: 2px 4px;">vagrant up</code> command should not show the “VT-x is not available” error message anymore.</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">The problem with some Microsoft updates is, that they tend to set the „hypervisorlaunchtype“ to „auto“ in the default profile.</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;"><br /></p><h2 style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 30px; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 10px; margin-top: 20px;">This time it did not help: Trying a Re-installation of VirtualBox…</h2><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">I was sure the procedure would help, as it had helped several times before, but this time, it was different.</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">The exact error message looked like follows:</p><blockquote style="background-color: white; border-bottom-color: rgb(13, 164, 211); border-color: rgb(13, 164, 211); border-left-style: solid; border-left-width: 5px; border-left: 5px solid rgb(13, 164, 211); border-right-color: rgb(13, 164, 211); border-top-color: rgb(13, 164, 211); box-sizing: border-box; color: #232425; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.1em; font-style: italic; line-height: 1.5; margin: 0px 0px 25px; padding: 10px 20px;"><pre style="background: rgb(235, 234, 226); border-radius: 0px; border: none; box-sizing: border-box; color: #3f4551; font-family: monospace, monospace; font-size: 1em; line-height: 1.65; margin-bottom: 25px; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 25.3281px 44.3281px; position: relative; word-break: break-all;">Command: ["startvm", "8646a1bd-9371-4eb4-ad7c-9517419fb7ea", "--type", "headless"]
Stderr: VBoxManage.exe: error: The virtual machine 'ubuntu-trusty64-docker_2017-02_default_1496852974046_93388' has terminated unexpectedly during startup with exit code -1073741819 (0xc0000005)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine</pre></blockquote><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">Setting the hypervisorlaunchtype to off did not help this time. Instead, a <a href="https://www.virtualbox.org/wiki/Downloads" style="background-color: transparent; border-bottom: 2px solid rgb(146, 194, 28); box-sizing: border-box; color: #92c21c; text-decoration-line: none;">download of the latest VirtualBox software</a> (VirtualBox-5.1.28-117968-Win.exe) and re-installation of VirtualBox has improved the behavior in the sense, that VirtualBox GUI is working again:</p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;"><img alt="" class="alignnone size-large wp-image-3751 jetpack-lazy-image jetpack-lazy-image--handled" data-attachment-id="3751" data-comments-opened="1" data-image-description="" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="2017-09-30 18_35_46-Oracle VM VirtualBox Manager" data-large-file="https://vocon-it.com/wp-content/uploads/2017/09/2017-09-30-18_35_46-oracle-vm-virtualbox-manager.png" data-lazy-loaded="1" data-medium-file="https://vocon-it.com/wp-content/uploads/2017/09/2017-09-30-18_35_46-oracle-vm-virtualbox-manager.png" data-orig-file="https://vocon-it.com/wp-content/uploads/2017/09/2017-09-30-18_35_46-oracle-vm-virtualbox-manager.png" data-orig-size="1028,890" data-permalink="https://vocon-it.com/2017/09/30/resolving-the-virtualbox-code-e_fail-problem-caused-by-hyper-v/2017-09-30-18_35_46-oracle-vm-virtualbox-manager/" height="648" src="https://vocon-it.com/wp-content/uploads/2017/09/2017-09-30-18_35_46-oracle-vm-virtualbox-manager.png?w=748" style="border: 0px; box-sizing: border-box; height: auto; max-width: 100%; vertical-align: middle;" width="748" /></p><blockquote style="background-color: white; border-bottom-color: rgb(13, 164, 211); border-color: rgb(13, 164, 211); border-left-style: solid; border-left-width: 5px; border-left: 5px solid rgb(13, 164, 211); border-right-color: rgb(13, 164, 211); border-top-color: rgb(13, 164, 211); box-sizing: border-box; color: #232425; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 1.1em; font-style: italic; line-height: 1.5; margin: 0px 0px 25px; padding: 10px 20px;"><p style="box-sizing: border-box; margin: 0px;">Do not forget to reload your system at this point! If you do not reload the system, you will see error message similar to before.</p></blockquote><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">After a reload of the system, vagrant should work fine:</p><pre style="background: rgb(235, 234, 226); border-radius: 0px; border: none; box-sizing: border-box; color: #3f4551; font-family: monospace, monospace; font-size: 14px; line-height: 1.65; margin-bottom: 25px; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 27.125px 47.4688px; position: relative; word-break: break-all;">D:\veits\Vagrant\ubuntu-trusty64-docker_2017-02>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'williamyeh/ubuntu-trusty64-docker' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
default: Adapter 3: hostonly
==> default: Forwarding ports...
default: 4200 (guest) => 4200 (host) (adapter 1)
default: 8000 (guest) => 8000 (host) (adapter 1)
default: 8001 (guest) => 8001 (host) (adapter 1)
default: 8002 (guest) => 8002 (host) (adapter 1)
default: 8080 (guest) => 8080 (host) (adapter 1)
default: 8081 (guest) => 8081 (host) (adapter 1)
default: 8082 (guest) => 8082 (host) (adapter 1)
default: 8083 (guest) => 8083 (host) (adapter 1)
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 5.0.24
default: VirtualBox Version: 5.1
==> default: Setting hostname...
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => D:/veits/Vagrant/ubuntu-trusty64-docker_2017-02
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
</pre><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">Puh, that has taken 2 hours of my precious time again. Oh, Microsoft!</p><h3 class="g-type-display-4" style="border-bottom: 1px solid var(--gray-6); box-sizing: border-box; color: var(--gray-1); font-family: var(--font-display); font-feature-settings: "kern"; font-kerning: normal; font-size: 1.5rem; font-weight: var(--font-weight-bold); letter-spacing: -0.004em; line-height: 1.417em; margin: 40px 0px 8px; padding-bottom: 8px;"><a aria-label="windows virtualbox and hyper v permalink" class="__permalink-h" href="https://www.vagrantup.com/docs/installation#windows-virtualbox-and-hyper-v" style="box-sizing: border-box; display: inline-block; left: -0.7em; margin-right: -0.5em; opacity: 0; order: 1; position: relative; text-decoration-line: none; transition: opacity 0.2s ease 0s;">»</a><a aria-hidden="" class="__target-h" id="windows-virtualbox-and-hyper-v" style="box-sizing: border-box; color: var(--brand);"></a>Windows, VirtualBox, and Hyper-V</h3><p style="box-sizing: border-box; color: #323339; font-family: metro-web, Metro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 17.008px; letter-spacing: 0.17008px; margin: 20px 0px;">If you wish to use VirtualBox on Windows, you must ensure that Hyper-V is not enabled on Windows. You can turn off the feature by running this Powershell command:</p><pre class="language-powershell" style="border-radius: 3px; box-sizing: border-box; hyphens: none; line-height: 1.63em; margin-bottom: 1.5rem; margin-top: 1.5rem; overflow-wrap: normal; overflow: auto; padding: 16px; position: relative; tab-size: 2; text-shadow: none;"><code class="language-powershell" style="border-radius: 3px; box-sizing: border-box; color: var(--code-light); display: block; font-family: var(--font-monospace); font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; letter-spacing: 0.17008px; line-height: inherit; overflow-wrap: normal; padding: 0px; tab-size: 2; text-shadow: none; white-space: pre;"><span style="color: #323339; font-family: metro-web, Metro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 17.008px; letter-spacing: 0.17008px;">You can also disable it by going through the Windows system settings:</span></code><code class="language-powershell" style="border-radius: 3px; box-sizing: border-box; color: var(--code-light); display: block; font-family: var(--font-monospace); font-size: 1em; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; hyphens: none; letter-spacing: 0.17008px; line-height: inherit; overflow-wrap: normal; padding: 0px; tab-size: 2; text-shadow: none; white-space: pre;"><span style="color: #323339; font-family: metro-web, Metro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 17.008px; letter-spacing: 0.17008px;"><br /></span></code><code class="language-powershell" style="border-radius: 3px; box-sizing: border-box; display: block; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; hyphens: none; line-height: inherit; overflow-wrap: normal; padding: 0px; tab-size: 2; text-shadow: none;"><pre style="background: rgb(235, 234, 226); border-radius: 0px; border: none; box-sizing: border-box; line-height: 1.65; margin-bottom: 25px; margin-top: 0px; max-width: 100%; overflow-wrap: break-word; overflow: auto; padding: 25.3281px 44.3281px; position: relative; word-break: break-all;"><span style="color: #3f4551; font-family: monospace, monospace;"><span style="font-size: 14px;"><i>Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All</i></span></span><span style="color: #3f4551; font-family: monospace, monospace; font-size: 1em; font-style: italic; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; letter-spacing: normal; white-space: pre;">
</span></pre></code></pre><ul style="box-sizing: border-box; color: #323339; counter-reset: li 0; font-family: metro-web, Metro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 17.008px; letter-spacing: 0.17008px; list-style: none; padding-left: 1.3rem;"><li class="g-type-long-body" style="box-sizing: border-box; font-family: var(--font-body); font-size: 1.063rem; font-weight: var(--font-weight-reg); letter-spacing: 0.01em; line-height: 1.765em; margin-bottom: 12px; margin-top: 12px; position: relative;">Right-click on the Windows button and select ‘Apps and Features’.</li><li class="g-type-long-body" style="box-sizing: border-box; font-family: var(--font-body); font-size: 1.063rem; font-weight: var(--font-weight-reg); letter-spacing: 0.01em; line-height: 1.765em; margin-bottom: 12px; margin-top: 12px; position: relative;">Select Turn Windows Features on or off.</li><li class="g-type-long-body" style="box-sizing: border-box; font-family: var(--font-body); font-size: 1.063rem; font-weight: var(--font-weight-reg); letter-spacing: 0.01em; line-height: 1.765em; margin-bottom: 12px; margin-top: 12px; position: relative;">Unselect Hyper-V and click OK.</li></ul><p style="box-sizing: border-box; color: #323339; font-family: metro-web, Metro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif; font-size: 17.008px; letter-spacing: 0.17008px; margin: 20px 0px;">You might have to reboot your machine for the changes to take effect. </p><p style="background-color: white; box-sizing: border-box; color: #5a5b5c; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; margin: 0px 0px 25px;">At least, it is working again.<br style="box-sizing: border-box;" />🙂</p></div>Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-47180836090268707782020-08-11T19:23:00.001+05:302021-02-19T20:37:58.923+05:30HTML to Office Word header and footer generation<div dir="ltr" style="text-align: left;" trbidi="on">
Here is an HTML to Office Word header and footer generation code Below:</div><div dir="ltr" style="text-align: left;" trbidi="on"><br /></div><div dir="ltr" style="text-align: left;" trbidi="on"><pre style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; -webkit-font-smoothing: auto; background: 0px 0px rgb(245, 247, 250); border: 0px; box-sizing: inherit; line-height: 1.25; margin-bottom: 1em; margin-top: 1em; overflow-wrap: normal; padding: 0px; position: relative; vertical-align: baseline;"><code class="hljs sql" style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; -webkit-font-smoothing: auto; background: rgb(24, 35, 52); border-radius: 4px; border: 0px; box-shadow: rgba(36, 37, 38, 0.08) 4px 4px 15px 0px; box-sizing: inherit; color: white; display: block; font-family: "Operator Mono", "Fira Code", menlo, monospace; line-height: 1.5em; margin: 0px; overflow-x: auto; padding: 20px; vertical-align: baseline; white-space: pre-wrap;"><span style="font-size: 12px;"> </span>fwrite($oFile, <html xmlns="http://www.w3.org/TR/REC-html40" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word"></code><code class="hljs sql" style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; -webkit-font-smoothing: auto; background: rgb(24, 35, 52); border-radius: 4px; border: 0px; box-shadow: rgba(36, 37, 38, 0.08) 4px 4px 15px 0px; box-sizing: inherit; display: block; line-height: 1.5em; margin: 0px; overflow-x: auto; padding: 20px; vertical-align: baseline;"><span style="color: white; font-family: Operator Mono, Fira Code, menlo, monospace;"><span style="white-space: pre-wrap;"> <head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
</title>
<!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Print</w:View>
<w:Zoom>100</w:Zoom>
</w:WordDocument>
</xml><![endif]-->
<style>
<!-- /* Style Definitions */
p.MsoHeader, li.MsoHeader, div.MsoHeader{
margin:0in;
margin-top:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
}
p.MsoFooter, li.MsoFooter, div.MsoFooter{
margin:0in 0in 1in 0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
tab-stops:center 3.0in right 6.0in;
}
.footer {
font-size: 9pt;
}
@page Section1{
size:8.5in 11.0in;
margin:0.5in 0.5in 0.5in 0.5in;
mso-header-margin:0.5in;
mso-header:h1;
mso-footer:f1;
mso-footer-margin:0.5in;
mso-paper-source:0;
}
div.Section1{
page:Section1;
}
table#hrdftrtbl{
margin:0in 0in 0in 9in;
}
-->
</style>
<style media="screen,print" type="text/css">
body {
font-family: "Calibri", "Verdana","HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
font-size:12pt;
}
pageBreak {
clear:all;
page-break-before:always;
mso-special-character:line-break;
}
</style>
</meta>
</head>
<body style="tab-interval:.5in">
<div class="Section1">
Something page 1
<div class="pageBreak">
</div>
Something page 2
<div class="pageBreak">
</div>
<table border="1" cellpadding="0" cellspacing="0" id="hrdftrtbl">
<tr>
<td>
<div id="h1" style="mso-element:header">
<p class="MsoHeader">
<table border="0" width="100%">
<tr>
<td>
YOUR_HEADER IMAGE/TEXT
</td>
</tr>
</table>
</p>
</div>
</td>
<td>
<div id="f1" style="mso-element:footer">
<p class="MsoFooter">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="center" class="footer">
YOUR_FOOTER_TEXT
<g:message code="offer.letter.page.label">
</g:message>
<span style="mso-field-code: PAGE ">
</span>
of
<span style="mso-field-code: NUMPAGES ">
</span>
</td>
</tr>
</table>
</p>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>);
fwrite($oFile, $sContent);
fclose($oFile);</span></span><span style="color: white; font-family: Operator Mono, Fira Code, menlo, monospace;"><span style="font-size: 12px; white-space: pre-wrap;">
</span></span></code><div class="open_grepper_editor" style="--tw-ring-color: rgba(59,130,246,0.5); --tw-ring-inset: var(--tw-empty, ); --tw-ring-offset-color: #fff; --tw-ring-offset-shadow: 0 0 transparent; --tw-ring-offset-width: 0px; --tw-ring-shadow: 0 0 transparent; --tw-shadow: 0 0 transparent; background-attachment: initial; background-clip: initial; background-color: rgb(0, 0, 0) !important; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA8gBBAEG7NC6zAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAB3RJTUUH4wwNFQsGe+TrNQAAADxpVFh0Q29tbWVudAAAAAAAUHJvY2Vzc2VkIEJ5IGVCYXkgd2l0aCBJbWFnZU1hZ2ljaywgejEuMS4wLiB8fEIyejRLlgAAA0RJREFUOMuNlE0odG8Yxn/nOc+c+TCimCkUGYUmjLJgUtgqKQt2srC1sLextbak9EqyHktfO1G+lZIkGVOiTseMMfPMjOe/0IzXy9/7/pbn1NV1X/d9Pcbw8LDmG7TW5PN5DMPANE0MwwDAMAyUUry9vSGlREqJ1h8S4k8BgLe3NwzDYHR0lLGxsdI3gEwmQyQSYWpqimAwiFLqkxFZUhYCv9+P4zgIIZBS0tTUhGmauN1uXl9fUUpRX1/P+Pg4Qggsy/rkruQwm81SV1fH9PQ0ra2t5PN5UqkUu7u7pFIpMpkMQgjy+Ty9vb04jsPc3BzxeBzLsr4KGoZBJpPB7/fT29tLoVBACMHLywvPz8+k02kKhQKNjY2Ew2Hm5+eJx+OYpvklewFgWRb39/fs7OwQCoUIBAIopfB6vdi2XcpwaGiI1dVVbNvG5/N9t8sPh263m1gsRiKRIBqNks1mqaio4PHxkXw+T39/Pzc3N5yfn+N2u/k/hGmaaK3JZDJorfn16xft7e1UVVXh8/l4fHykpaWFcDjMxsYGXq/3yyJ+x5yZmZmdmJggmUySzWZ5enqivLycjo4O3G43tm0TjUbZ3t7Gtm2klPyEMTk5qTs7O2lubqasrIx0Oo3L5aK6uhqtNVJKtra2iMViSCkpFApIKT8d+yeHNTU1s5eXl+zv77O3t4fP56OtrQ2lFLlcDpfLVTr4wcFBAHK5HI7joJTCMAyEEAjx3hFZrE+xUicnJ/T09ODxePB6vVxcXLC+vo5SCq01oVCI7u5uDMPg4eGB6+tr4vE4juO81/H36mmt8Xg8SCmxLIuLiwsWFxdLDg4PDzk+PkZKSUNDA5FIhJGRESorK3Ech7W1NcyWlpbZomgulyMYDDIwMMDt7S1LS0vFMUp1NE0TIQS2bXN0dMTZ2RmBQICmpqZ3M3+GWlNTw/PzMwsLCyilvt2q1hohBOXl5SSTSZaXlzk9PeX+/v5DsBhuV1cXKysrJJNJPB4Pf8PlcgFwcHDwPknxh1KKcDiMbducnp7+2IbvsCzrPeviCAB9fX1sbm7i8/m+vbF/QQAUCgVqa2u5uroikUh8+4r8K7KYw8PDA3d3d3g8nh+7+jf+A6kWbVI0BmDOAAAAAElFTkSuQmCC") !important; background-origin: initial; background-position: 0px 0px; background-repeat: initial; background-size: 20px 20px !important; border: 0px; box-sizing: inherit; color: #4d545d; cursor: pointer !important; font-family: "Source Code Pro", Monaco, Inconsolata, monospace; font-size: 14px; height: 20px !important; margin: 0px; padding: 0px; position: absolute !important; right: 0px !important; top: 0px !important; vertical-align: baseline; white-space: pre-wrap; width: 20px !important;" title="Edit & Save To Grepper"><br /></div></pre></div><div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: red;"><b>Note: The table structure should be followed for adding header and footer</b></span></div>
Unknownnoreply@blogger.com0India20.593684 78.96288-7.7165498361788458 43.80663 48.903917836178849 114.11913tag:blogger.com,1999:blog-6175189973703211873.post-3539336315108325472019-08-29T14:08:00.001+05:302019-08-29T14:14:16.998+05:30Add a dynamic mouse over for each row in a data-table<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
<u>Try in Editor:</u></h3>
<div>
<a href="https://codepen.io/jemirisselvi/pen/YzKQxmw?editors=1010">https://codepen.io/jemirisselvi/pen/YzKQxmw?editors=1010</a></div>
<h3>
<u>Vue:</u></h3>
<div id="app"><br />
<v-app id="inspire"><br />
<div><br />
<v-data-table<br />
:headers="headers"<br />
:items="items"<br />
:search="search"<br />
:loading="isLoading"<br />
hide-default-footer<br />
item-key="name"<br />
class="elevation-1"<br />
><br />
<template v-slot:body="{ items }"><br />
<tbody><br />
<tr v-for="(item,index) in items" :key="item.name"><br />
<td><br />
<p @mouseover="item.show = true" @mouseleave="item.show = false"><br />
{{ item.name }}<br />
<v-icon v-show="item.show">delete</v-icon><br />
</p><br />
</td><br />
<td>CONTENT</td><br />
<td>CONTENT</td><br />
<td>CONTENT</td><br />
<td>CONTENT</td><br />
<td>CONTENT</td><br />
</tr><br />
</tbody><br />
</template> <br />
</v-data-table><br />
</div><br />
</v-app><br />
</div><br />
<br />
<script type="text/javascript"><br />
export default {<br />
return {<br />
data() {<br />
show: false<br />
}<br />
}<br />
}<br />
</script><br />
<br />
const desserts = [<br />
{<br />
name: 'Frozen Yogurt',<br />
calories: 159,<br />
fat: 6.0,<br />
carbs: 24,<br />
protein: 4.0,<br />
iron: '1%',<br />
show:false<br />
},<br />
{<br />
name: 'Ice cream sandwich',<br />
calories: 237,<br />
fat: 9.0,<br />
carbs: 37,<br />
protein: 4.3,<br />
iron: '1%',<br />
show:false<br />
},<br />
{<br />
name: 'Eclair',<br />
calories: 262,<br />
fat: 16.0,<br />
carbs: 23,<br />
protein: 6.0,<br />
iron: '7%',<br />
show:false<br />
},<br />
{<br />
name: 'Cupcake',<br />
calories: 305,<br />
fat: 3.7,<br />
carbs: 67,<br />
protein: 4.3,<br />
iron: '8%',<br />
},<br />
{<br />
name: 'Gingerbread',<br />
calories: 356,<br />
fat: 16.0,<br />
carbs: 49,<br />
protein: 3.9,<br />
iron: '16%',<br />
},<br />
{<br />
name: 'Jelly bean',<br />
calories: 375,<br />
fat: 0.0,<br />
carbs: 94,<br />
protein: 0.0,<br />
iron: '0%',<br />
},<br />
{<br />
name: 'Lollipop',<br />
calories: 392,<br />
fat: 0.2,<br />
carbs: 98,<br />
protein: 0,<br />
iron: '2%',<br />
},<br />
{<br />
name: 'Honeycomb',<br />
calories: 408,<br />
fat: 3.2,<br />
carbs: 87,<br />
protein: 6.5,<br />
iron: '45%',<br />
},<br />
{<br />
name: 'Donut',<br />
calories: 452,<br />
fat: 25.0,<br />
carbs: 51,<br />
protein: 4.9,<br />
iron: '22%',<br />
},<br />
{<br />
name: 'KitKat',<br />
calories: 518,<br />
fat: 26.0,<br />
carbs: 65,<br />
protein: 7,<br />
iron: '6%',<br />
},<br />
]<br />
<br />
<h3 style="text-align: left;">
<u>Javascript:</u></h3>
new Vue({<br />
el: '#app',<br />
vuetify: new Vuetify(),<br />
data () {<br />
return {<br />
enabled: null,<br />
items: desserts,<br />
search: null,<br />
slots: [<br />
'body',<br />
'body.append',<br />
'body.prepend',<br />
'footer',<br />
'header.data-table-select',<br />
'header',<br />
'progress',<br />
'item.data-table-select',<br />
'item.<name>',<br />
'no-data',<br />
'no-results',<br />
'top',<br />
],<br />
headers: [<br />
{<br />
text: 'Dessert (100g serving)',<br />
align: 'left',<br />
sortable: false,<br />
value: 'name',<br />
},<br />
{ text: 'Calories', value: 'calories' },<br />
{ text: 'Fat (g)', value: 'fat' },<br />
{ text: 'Carbs (g)', value: 'carbs' },<br />
{ text: 'Protein (g)', value: 'protein' },<br />
{ text: 'Iron (%)', value: 'iron' },<br />
],<br />
}<br />
},<br />
<br />
computed: {<br />
showSelect () {<br />
return this.isEnabled('header.data-table-select') || this.isEnabled('item.data-table-select')<br />
},<br />
hideHeaders () {<br />
return !this.showSelect<br />
},<br />
isLoading () {<br />
return this.isEnabled('progress')<br />
},<br />
},<br />
<br />
watch: {<br />
enabled (slot) {<br />
if (slot === 'no-data') {<br />
this.items = []<br />
} else if (slot === 'no-results') {<br />
this.search = '...'<br />
} else {<br />
this.search = null<br />
this.items = desserts<br />
}<br />
},<br />
},<br />
<br />
methods: {<br />
isEnabled (slot) {<br />
return this.enabled === slot<br />
},<br />
},<br />
})</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-1200751843764130482019-08-29T14:08:00.000+05:302019-08-29T14:15:11.963+05:30Load the dynamic datatable in vuejs<div dir="ltr" style="text-align: left;" trbidi="on">
<u><b>Try in Editor:</b></u><br />
<br />
<a href="https://codepen.io/jemirisselvi/pen/yLBXoxK?editors=1010">https://codepen.io/jemirisselvi/pen/yLBXoxK?editors=1010</a><br />
<br />
<u><b>Vue:</b></u><br />
<u><b><br /></b></u>
<div id="app"><br />
<v-app id="inspire"><br />
<div><br />
<v-data-table<br />
:headers="headers"<br />
:items="items"<br />
:loading="isLoading"<br />
class="elevation-1"<br />
><br />
<template slot="items" slot-scope"myprops"><br />
<td v-for="header in headers"><br />
{{ myprops.item[header.value] }}<br />
</td><br />
</template><br />
</v-data-table><br />
</div><br />
</v-app><br />
</div></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-88817427092978608052019-07-25T12:33:00.000+05:302019-07-25T12:41:31.224+05:30Updates were rejected because the tip of your current branch is behind in BitBucket<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<h1 class="border-bottom-0" style="background-color: white; border-bottom: 1px solid rgb(234, 236, 239); box-sizing: border-box; color: #24292e; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-weight: 500; line-height: 1.25; margin-bottom: 16px; margin-left: 0px; margin-right: 0px; margin-top: 0px !important; padding-bottom: 0.3em;">
Adding an existing project to GitHub using the command line</h1>
<ol style="background-color: white; box-sizing: border-box; counter-reset: li 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; list-style: none; margin-bottom: 16px; margin-top: 0px; padding-bottom: 10px; padding-left: 0px; position: relative;">
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
<a href="https://help.github.com/en/articles/creating-a-new-repository" style="background-color: transparent; box-sizing: border-box; color: #0366d6; text-decoration-line: none;">Create a new repository</a> on GitHub. To avoid errors, do not initialize the new repository with <em style="box-sizing: border-box;">README</em>, license, or <code style="background-color: rgba(27, 31, 35, 0.05); border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; margin: 0px; padding: 0.2em 0.4em;">gitignore</code> files. You can add these files after your project has been pushed to GitHub.</div>
<div class="procedural-image-wrapper" style="box-sizing: border-box; margin: 20px auto 0px; padding: 10px 0px;">
<img alt="Create New Repository drop-down" src="https://help.github.com/assets/images/help/repository/repo-create.png" style="border-radius: 5px; border: 2px solid rgb(238, 238, 238); box-sizing: content-box; height: auto; max-height: 500px; max-width: 100%; width: auto;" /></div>
<div style="box-sizing: border-box; margin-top: 15px;">
</div>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
Open <span class="platform-windows" style="box-sizing: border-box; display: inline;">Git Bash</span>.</div>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
Change the current working directory to your local project.</div>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
Initialize the local directory as a Git repository.</div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; color: #333333; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">$ git init</code></pre>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
Add the files in your new local repository. This stages them for the first commit.</div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; color: #333333; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">$ git add .
# Adds the files in the local repository and stages them for commit. To unstage a file, use 'git reset HEAD <em style="box-sizing: border-box;">YOUR-FILE</em>'.</code></pre>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
Commit the files that you've staged in your local repository.</div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; color: #333333; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">$ git commit -m "First commit"
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.</code></pre>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
At the top of your GitHub repository's Quick Setup page, click <span aria-label="The copy to clipboard icon" class="octicon octicon-clippy" style="box-sizing: border-box; vertical-align: text-bottom;" title="The copy to clipboard icon"><svg aria-hidden="true" class="octicon octicon-clippy" height="16" version="1.1" viewbox="0 0 14 16" width="14"><path d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z" fill-rule="evenodd"></path></svg></span> to copy the remote repository URL.</div>
<div class="procedural-image-wrapper" style="box-sizing: border-box; margin: 20px auto 0px; padding: 10px 0px;">
<img alt="Copy remote repository URL field" src="https://help.github.com/assets/images/help/repository/copy-remote-repository-url-quick-setup.png" style="border-radius: 5px; border: 2px solid rgb(238, 238, 238); box-sizing: content-box; height: auto; max-height: 500px; max-width: 100%; width: auto;" /></div>
<div style="box-sizing: border-box; margin-top: 15px;">
</div>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
In the Command prompt, <a href="https://help.github.com/en/articles/adding-a-remote" style="background-color: transparent; box-sizing: border-box; color: #0366d6; text-decoration-line: none;">add the URL for the remote repository</a> where your local repository will be pushed.</div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; color: #333333; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">$ git remote add origin <em style="box-sizing: border-box;">remote repository URL</em>
# Sets the new remote
$ git remote -v
# Verifies the new remote URL</code></pre>
</li>
<li style="border: 0px; box-sizing: border-box; color: #24292e; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><div style="box-sizing: border-box;">
<a href="https://help.github.com/en/articles/pushing-commits-to-a-remote-repository/" style="background-color: transparent; box-sizing: border-box; color: #0366d6; text-decoration-line: none;">Push the changes</a> in your local repository to GitHub.</div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; color: #333333; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;">$ git push origin master
# Pushes the changes in your local repository up to the remote repository you specif</code></pre>
</li>
<li style="border: 0px; box-sizing: border-box; margin-bottom: 5px; margin-top: 0.25em; padding: 8px 0px 8px 48px; position: relative;"><pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><code class="hljs language-shell" style="background: transparent; border-radius: 3px; border: 0px; box-sizing: border-box; display: inline; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 13.6px; line-height: inherit; margin: 0px; overflow-wrap: normal; overflow: visible; padding: 0px; word-break: normal;"><span style="color: red;"><b>Got Output like below Error</b></span></code></pre>
</li>
</ol>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuFI9yOp2EjMlHPFOYbtO4mJVFZ9nl4ZWhjwXhHxe4ALUssi0bYWt6-fpUVW1fqv524I0sxTw1eA173moKIaFAqf_GFUGuy5zNMYKDVPMsE-y7zk632ViWHroA-Uszh3XPxuO8mvrO4-A/s1600/error.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="111" data-original-width="567" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuFI9yOp2EjMlHPFOYbtO4mJVFZ9nl4ZWhjwXhHxe4ALUssi0bYWt6-fpUVW1fqv524I0sxTw1eA173moKIaFAqf_GFUGuy5zNMYKDVPMsE-y7zk632ViWHroA-Uszh3XPxuO8mvrO4-A/s1600/error.png" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<pre style="background-color: #f6f8fa; border-radius: 3px; box-sizing: border-box; line-height: 1.45; margin-bottom: 16px; margin-top: 10px; overflow-wrap: normal; overflow: auto; padding: 16px;"><span style="color: red; font-family: , "consolas" , "liberation mono" , "menlo" , "courier" , monospace; font-size: 13.6px;"><b> To Solve above the problem: </b></span><span style="color: #38761d; font-family: , "consolas" , "liberation mono" , "menlo" , "courier" , monospace;"><span style="font-size: 13.6px;"><b>git push --force origin master</b></span></span></pre>
<br /></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-46560041665485912812019-07-24T09:18:00.001+05:302019-07-24T09:18:46.900+05:30Extjs Dynamically Update Panel content html<div dir="ltr" style="text-align: left;" trbidi="on">
To add html to an EXTJS panel after it has been rendered you can use.<br />
<br />
Ext.getCmp(''the I.D of your panel'').body.update(''your HTML");<br />
<br />
new Ext.Panel({<br />
border: false,<br />
frame: false,<br />
width: 200,<br />
region: 'west',<br />
id: 'panel-id',<br />
bodyStyle: "background: #fff"<br />
}<br />
//and I want in another module change panel content... so use this:<br />
Ext.getCmp('panel-id').body.update('html content for example');<br />
Example 2:<br />
<br />
{<br />
xtype: 'panel',<br />
title: 'Testing',<br />
id: 'taskpanel',<br />
html: 'testing'<br />
}<br />
//to update the panel content. For html use body.update<br />
3 Ways to render HTML inside of a ExtJS container<br />
<br />
Ext.onReady(function() {<br />
new Ext.Panel({<br />
renderTo: Ext.getBody(),<br />
title: '3 Ways to render HTML inside of a ExtJS container',<br />
items: [{<br />
html: "<a href='#'>1. HTML property of a panel</a>",<br />
xtype: "panel"},<br />
{<br />
xtype: "panel",<br />
html: new Ext.XTemplate("<a href='#'>{value}").apply({<br />
value: '2. HTML property of a panel generated by an XTemplate'<br />
})},<br />
{<br />
xtype: 'box',<br />
autoEl: {<br />
tag: 'a',<br />
html: '3. Dom element created by a DomHelper and wrapped as Component',<br />
href: '#'<br />
}}]<br />
});<br />
});<br />
<br />
Config Options<br />
<br />
1. autoEl<br />
<br />
Ext.create('Ext.Component', {<br />
id: 'widget',<br />
renderTo: Ext.getBody(),<br />
autoEl: {<br />
tag: 'h3',<br />
html: '<span>My Content</span>'<br />
}<br />
});<br />
output:<br />
<h3 id="widget"><br />
<span>My Content</span><br />
</h3><br />
2. html<br />
<br />
Ext.create('Ext.Component', {<br />
id: "widget",<br />
renderTo: Ext.getBody(),<br />
html: '<span>My Content</span>'<br />
});<br />
output:<br />
<div id="widget"><br />
<span>My Content</span><br />
</div><br />
<br />
3. tpl<br />
var widget = Ext.create('Ext.Component', {<br />
id: "widget",<br />
renderTo: Ext.getBody(),<br />
tpl: '<span>Hello {name}</span>',<br />
data: {name: 'LeVeon'}<br />
});<br />
//Output:<br />
<div id="widget"><br />
<span>Hello LeVeon</span><br />
</div><br />
<br />
<br />
<br />
<br />
<br />
4, rendertpl<br />
Ext.create('Ext.Component', {<br />
id: "widget",<br />
renderTo: Ext.getBody(),<br />
renderTpl: '<span>Hello {name}</span>',<br />
renderData: {name: 'LeVeon'}<br />
});<br />
output:<br />
<div id="widget"><br />
<span>Hello LeVeon</span><br />
</div><br />
<br />
Example for Icon component using renderTpl<br />
<br />
IconComponent = Ext.extend(Ext.Component, {<br />
iconCls: 'myIcon',<br />
renderTpl: '<img alt="" src="{blank}" class="{iconCls}"/>',<br />
onRender: function() {<br />
Ext.applyIf(this.renderData, {<br />
blank: Ext.BLANK_IMAGE_URL,<br />
iconCls: this.iconCls<br />
});<br />
Ext.applyIf(this.renderSelectors, {<br />
iconEl: '.' + this.iconCls<br />
});<br />
IconComponent.superclass.onRender.call(this);<br />
},<br />
changeIconCls: function(newIconCls) {<br />
if (this.rendered) {<br />
this.iconEl.replaceClass(this.iconCls, newIconCls);<br />
}<br />
this.iconCls = newIconCls;<br />
}<br />
});</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-9225492451376845562019-05-20T18:56:00.005+05:302019-05-21T15:38:09.627+05:30Tricks and Tips<div dir="ltr" style="text-align: left;" trbidi="on">
<b>1. How to rename folders in Linux</b><br />
============================<br />
<b>mv</b> command syntax form is as follows:<br />
----------------------------------<br />
mv old-name new-name<br />
mv [options] old-name new-name<br />
mv [options] source target<br />
<br />
<b>2. How do I delete multiple lines in nano without affecting the clipboard?</b><br />
======================================================================<br />
nano of course can delete blocks, see this article😊<br />
<br />
<br />
<ul style="text-align: left;">
<li>use <b>CTRL+Shift+6</b> to mark the beginning of your block</li>
<li>move cursor with arrow keys to the end of your block, the text will be highlighted.</li>
<li>use <b>CTRL+K</b> to cut/delete the block.</li>
<li>To paste the block to another place, move the cursor to the position and the use of <b>CTRL+U</b>. You can paste the block as often as you want to.</li>
</ul>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-78057355805992675832019-05-20T18:52:00.004+05:302019-05-20T18:52:48.894+05:30proc_open(): fork failed - Cannot allocate memory<div dir="ltr" style="text-align: left;" trbidi="on">
<b>Error</b>:<br />
<br />
Installation failed, deleting ./composer.json.<br />
The following exception is caused by a lack of memory or swap, or not having swap configured<br />
Check <a href="https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors">https://getcomposer.org/doc/articles/troubleshooting.md#proc-open-fork-failed-errors</a> for details<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjocxDzjBvt3Uo971dO6lavvxvbEr-ineBZdXWv-lfJtlcwI-l0GuAVN7wLkk-RHFfXvUzKwf0HYdduFitLI-PtxsFl8hrz0PNNeGIUKeBOYJy4C3vkZrsYQ0ICAUPIXLatFcWPnPrKmVg/s1600/composer+error.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="536" data-original-width="1363" height="250" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjocxDzjBvt3Uo971dO6lavvxvbEr-ineBZdXWv-lfJtlcwI-l0GuAVN7wLkk-RHFfXvUzKwf0HYdduFitLI-PtxsFl8hrz0PNNeGIUKeBOYJy4C3vkZrsYQ0ICAUPIXLatFcWPnPrKmVg/s640/composer+error.PNG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<br />
<b>Follow Below steps:</b><br />
======================<br />
Troubleshooting#<br />
This is a list of common pitfalls on using Composer, and how to avoid them.<br />
<br />
<b>General#</b><br />
Before asking anyone, run composer diagnoses to check for common problems. If it all checks out, proceed to the next steps.<br />
<br />
When facing any kind of problems using Composer, be sure to work with the latest version. See self-update for details.<br />
<br />
Make sure you have no problems with your setup by running the installer's checks via curl -sS <b>https://getcomposer.org/installer | php -- --check.</b><br />
<br />
Ensure you're installing vendors straight from your composer.json via <b>rm -rf vendor && composer update -v</b> when troubleshooting, excluding any possible interferences with existing vendor installations or composer.lock entries.<br />
<br />
Try clearing Composer's cache by running composer clear-cache.<br />
<br />
Refer : <a href="https://getcomposer.org/doc/articles/troubleshooting.md">https://getcomposer.org/doc/articles/troubleshooting.md</a></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-59460011398549862432017-08-01T15:59:00.005+05:302019-04-09T17:30:54.605+05:30Getting Started with Laravel 5.4 with sample CURD<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #93c47d;">/*</span><br />
<span style="color: #93c47d;">|-----------------------------------------------------------------------------</span><br />
<span style="color: #93c47d;">| Getting Started with Laravel 5.4</span><br />
<span style="color: #93c47d;">|-----------------------------------------------------------------------------</span><br />
<span style="color: #93c47d;">|</span><br />
<span style="color: #93c47d;">| Laravel 5.4 has more features and Laravel is a free, open-source PHP web </span><br />
<span style="color: #93c47d;">| framework, created by Taylor Otwell and intended for the development of </span><br />
<span style="color: #93c47d;">| web applications following the model–view–controller (MVC) architectural pattern.</span><br />
<span style="color: #93c47d;">|</span><br />
<span style="color: #93c47d;">*/</span><br />
<h3 style="text-align: left;">
Database: Migrations</h3>
<span style="color: #f6b26b;"><span style="white-space: pre;"> </span>#Generating Migrations</span><br />
<span style="white-space: pre;"> </span>----------------------------<br />
<span style="white-space: pre;"> </span>To create a migration, use the make:migration Artisan command:<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">php artisan make:migration create_users_table</span><br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>The new migration will be placed in your database/migrations directory. Each migration file name contains a timestamp which allows Laravel to determine the order of the migrations.<br />
<span style="white-space: pre;"> </span>Example:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">vagrant@homestead:~/sample$ php artisan make:migration create_student_table</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> Created Migration: 2017_08_01_044007_create_student_table</span><br />
<span style="white-space: pre;"> </span>--------------------<br />
<span style="white-space: pre;"> </span><span style="color: #f6b26b;">#Running Migrations</span><br />
<span style="white-space: pre;"> </span>--------------------<br />
<span style="white-space: pre;"> </span>To run all of your outstanding migrations, execute the migrate Artisan command:<br />
<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span><span style="color: #cccccc;">php artisan migrate</span></span><br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>If you are using the Homestead virtual machine, you should run this command from within your virtual machine.<br />
<h3 style="text-align: left;">
<span style="white-space: pre;"> </span>#Tables</h3>
<span style="white-space: pre;"> </span>#<span style="color: #f6b26b;">Creating Tables</span><br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>To create a new database table, use the create method on the Schema facade. The create method accepts two arguments. The first is the name of the table, while the second is a Closure which receives a Blueprint object that may be used to define the new table:<br />
<br />
<span style="color: #999999;"><span style="white-space: pre;"> </span><span style="font-family: "courier new" , "courier" , monospace;">Schema::create('users', function (Blueprint $table) {</span></span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>$table->increments('id');</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>});</span><br />
<span style="white-space: pre;"> </span>Of course, when creating the table, you may use any of the schema builder's column methods to define the table's columns.<br />
<h3 style="text-align: left;">
Eloquent: Getting Started</h3>
<span style="color: #f6b26b;"><span style="white-space: pre;"> </span>#Defining Models</span><br />
<span style="white-space: pre;"> </span>------------------<br />
<span style="white-space: pre;"> </span>To get started, let's create an Eloquent model. Models typically live in the app directory, but you are free to place them anywhere that can be auto-loaded according to your composer.json file. All Eloquent models extend Illuminate\Database\Eloquent\Model class.<br />
<span style="white-space: pre;"> </span>The easiest way to create a model instance is using the make:model Artisan command:<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">php artisan make:model Models/Student</span><br />
<span style="color: #999999; white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>Example:<br />
<span style="color: #999999;"><span style="white-space: pre;"> </span><span style="font-family: "courier new" , "courier" , monospace;">vagrant@homestead:~/sample$ php artisan make:model Models/Student</span></span><br />
<span style="color: #999999;"><span style="font-family: "courier new" , "courier" , monospace;"> Model created successfully.</span><span style="white-space: pre;"> </span></span><br />
<h3 style="text-align: left;">
Controllers</h3>
<span style="color: #f6b26b; white-space: pre;"> </span><span style="color: #f6b26b;">#Resource Controllers</span><br />
<span style="white-space: pre;"> </span>----------------------<br />
<span style="white-space: pre;"> </span>Laravel resource routing assigns the typical "CRUD" routes to a controller with a single line of code. For example, you may wish to create a controller that handles all HTTP requests for "photos" stored by your application. Using the make:controller Artisan command, we can quickly create such a controller:<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="color: #999999;"><span style="white-space: pre;"> </span><span style="color: #cccccc; font-family: "courier new" , "courier" , monospace;">php artisan make:controller StudentController --resource</span></span><br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>This command will generate a controller at app/Http/Controllers/StudentController.php. The controller will contain a method for each of the available resource operations.<br />
<br />
<span style="white-space: pre;"> </span>Next, you may register a resourceful route to the controller:<br />
<br />
<span style="white-space: pre;"> </span>Route::resource('Student', 'StudentController');<br />
<span style="white-space: pre;"> </span>This single route declaration creates multiple routes to handle a variety of actions on the resource. The generated controller will already have methods stubbed for each of these actions, including notes informing you of the HTTP verbs and URIs they handle.<br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>Example:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">vagrant@homestead:~/sample$ php artisan make:controller StudentController --resource</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;">Controller created successfully.</span><br />
<h3 style="text-align: left;">
Validation</h3>
<span style="white-space: pre;"> </span>#Form Request Validation<br />
<span style="white-space: pre;"> </span>------------------------<br />
<span style="color: #f6b26b;"><span style="white-space: pre;"> </span>#Creating Form Request</span><br />
<span style="white-space: pre;"> </span>-----------------------<br />
<span style="white-space: pre;"> </span>For more complex validation scenarios, you may wish to create a "form request". Form requests are custom request classes that contain validation logic. To create a form request class, use the make:request Artisan CLI command:<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">php artisan make:request StoreBlogPost</span><br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>The generated class will be placed in the app/Http/Requests directory. If this directory does not exist, it will be created when you run the make:request command.<br />
<span style="white-space: pre;"> </span><br />
<span style="white-space: pre;"> </span>Example:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">vagrant@homestead:~/student$ php artisan make:request StudentRequest</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> Request created successfully.</span><br />
<br />
<h3 style="text-align: left;">
LaravelCollective</h3>
<span style="white-space: pre;"> </span>#Forms & HTML<br />
<span style="white-space: pre;"> </span>---------------<br />
<span style="color: #f6b26b;"><span style="white-space: pre;"> </span>#Installation</span><br />
<span style="white-space: pre;"> </span>--------------<br />
<span style="white-space: pre;"> </span>Begin by installing this package through Composer. Edit your project's composer.json file to require laravelcollective/html.<br />
<span style="white-space: pre;"> </span>Syntax:<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">composer require "laravelcollective/html":"^5.4.0"</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="white-space: pre;"> </span>Example :<br />
<span style="white-space: pre;"> </span><span style="color: #999999; font-family: "courier new" , "courier" , monospace;">vagrant@homestead:~/sample$ composer require "laravelcollective/html":"^5.4.0"</span><br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgRLFIPYXnDp5LwvSTquaSm8GHEIrlNhfuAzzlY-fkkw6DbHBwRfbS5MklGPSDTwuZkDTe6SnrgFVgNo6pMAk4G6q4j4CSNYKQS3ludm3OpkSRlDk-xRNVUNJYV0w0kshlAK29kiP00F8/s1600/laravel+collective+img.PNG" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="229" data-original-width="606" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgRLFIPYXnDp5LwvSTquaSm8GHEIrlNhfuAzzlY-fkkw6DbHBwRfbS5MklGPSDTwuZkDTe6SnrgFVgNo6pMAk4G6q4j4CSNYKQS3ludm3OpkSRlDk-xRNVUNJYV0w0kshlAK29kiP00F8/s1600/laravel+collective+img.PNG" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">fig:Laravel Collective installing via composer</td></tr>
</tbody></table>
<br />
Next, add your new provider to the providers array of config/app.php:<br />
<br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> 'providers' => [</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> // ...</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> Collective\Html\HtmlServiceProvider::class,</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> // ...</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> ],</span><br />
Finally, add two class aliases to the aliases array of config/app.php:<br />
<br />
<span style="font-family: "courier new" , "courier" , monospace;"> <span style="color: #999999;"> 'aliases' => [</span></span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> // ...</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> 'Form' => Collective\Html\FormFacade::class,</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> 'Html' => Collective\Html\HtmlFacade::class,</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> // ...</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> ],</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><br /></span>
<br />
<h3 style="text-align: left;">
Routing</h3>
The most basic Laravel routes simply accept a URI and a Closure, providing a very simple and expressive method of defining routes:<br />
<br />
Syntax:<br />
<span style="color: #cccccc; font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;">Route::get('foo', function () {</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"> return 'Hello World';</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;">});</span><br />
<br />
Example:<br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;">Route::group([ 'middleware' => 'auth'], function(){</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;"><span style="white-space: pre;"> </span>Route::resource('student', 'StudentController');</span><br />
<span style="color: #999999; font-family: "courier new" , "courier" , monospace;">});</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-77008747038908031572017-07-31T17:21:00.001+05:302017-07-31T17:28:23.267+05:30PHP Artisan Commands<div dir="ltr" style="text-align: left;" trbidi="on">
Laravel Framework 5.4.30<br />
<br />
<b>Usage:</b><br />
-------------------------<br />
command [options] [arguments]<br />
<br />
<b>Options:</b><br />
-------------------------<br />
-h, --help Display this help message<br />
-q, --quiet Do not output any message<br />
-V, --version Display this application version<br />
--ansi Force ANSI output<br />
--no-ansi Disable ANSI output<br />
-n, --no-interaction Do not ask any interactive question<br />
--env[=ENV] The environment the command should run under<br />
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug<br />
<br />
<b>Available commands:</b><br />
-------------------------<br />
clear-compiled Remove the compiled class file<br />
down Put the application into maintenance mode<br />
env Display the current framework environment<br />
help Displays help for a command<br />
inspire Display an inspiring quote<br />
list Lists commands<br />
migrate Run the database migrations<br />
optimize Optimize the framework for better performance<br />
serve Serve the application on the PHP development server<br />
tinker Interact with your application<br />
up Bring the application out of maintenance mode<br />
app<br />
app:name Set the application namespace<br />
auth<br />
auth:clear-resets Flush expired password reset tokens<br />
cache<br />
cache:clear Flush the application cache<br />
cache:forget Remove an item from the cache<br />
cache:table Create a migration for the cache database table<br />
config<br />
config:cache Create a cache file for faster configuration loading<br />
config:clear Remove the configuration cache file<br />
db<br />
db:seed Seed the database with records<br />
event<br />
event:generate Generate the missing events and listeners based on registration<br />
key<br />
key:generate Set the application key<br />
make<br />
make:auth Scaffold basic login and registration views and routes<br />
make:command Create a new Artisan command<br />
make:controller Create a new controller class<br />
make:event Create a new event class<br />
make:job Create a new job class<br />
make:listener Create a new event listener class<br />
make:mail Create a new email class<br />
make:middleware Create a new middleware class<br />
make:migration Create a new migration file<br />
make:model Create a new Eloquent model class<br />
make:notification Create a new notification class<br />
make:policy Create a new policy class<br />
make:provider Create a new service provider class<br />
make:request Create a new form request class<br />
make:seeder Create a new seeder class<br />
make:test Create a new test class<br />
migrate<br />
migrate:install Create the migration repository<br />
migrate:refresh Reset and re-run all migrations<br />
migrate:reset Rollback all database migrations<br />
migrate:rollback Rollback the last database migration<br />
migrate:status Show the status of each migration<br />
notifications<br />
notifications:table Create a migration for the notifications table<br />
queue<br />
queue:failed List all of the failed queue jobs<br />
queue:failed-table Create a migration for the failed queue jobs database table<br />
queue:flush Flush all of the failed queue jobs<br />
queue:forget Delete a failed queue job<br />
queue:listen Listen to a given queue<br />
queue:restart Restart queue worker daemons after their current job<br />
queue:retry Retry a failed queue job<br />
queue:table Create a migration for the queue jobs database table<br />
queue:work Start processing jobs on the queue as a daemon<br />
route<br />
route:cache Create a route cache file for faster route registration<br />
route:clear Remove the route cache file<br />
route:list List all registered routes<br />
schedule<br />
schedule:run Run the scheduled commands<br />
session<br />
session:table Create a migration for the session database table<br />
storage<br />
storage:link Create a symbolic link from "public/storage" to "storage/app/public"<br />
vendor<br />
vendor:publish Publish any publishable assets from vendor packages<br />
view<br />
view:clear Clear all compiled view files<br />
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-15590004812324882062017-07-31T13:30:00.003+05:302017-07-31T13:50:54.250+05:30Issues Fixed in Laravel<div dir="ltr" style="text-align: left;" trbidi="on">
--------------------------------------------------------------------------------------<br />
<div>
1. Missing routes.php File in New Laravel Project</div>
--------------------------------------------------------------------------------------<br />
The lastest version of Laravel doesn't have a routes.php file.<br />
<br />
This 'routes.php' file was located in \app\Http in the older versions.<br />
<br />
In the newer version, Laravel 5.3, we have a folder named 'routes', where we can find the following files:<br />
<br />
api.php<br />
console.php<br />
web.php<br />
For this new version, the routes for your controllers, you can put inside web.php file<br />
<br />
See the documentation about routing here<br />
<br />
https://laravel.com/docs/5.3/routing#basic-routing<br />
<br />
The video lesson you are watching may be outdated.<br />
<br />
--------------------------------------------------------------------------------------<br />
2. Could not open input file: artisan<br />
--------------------------------------------------------------------------------------<br />
You need to first create Laravel project and if you already have one you need to go to this project dir using cd command in terminal for example cd myproject.<br />
<br />
Now you will be able to run any artisan commands, for example running php artisan will display you list of available commands.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-39089104653422572352017-07-31T13:18:00.005+05:302017-07-31T13:38:57.359+05:30Difference between laravel and codeigniter<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div>
Yeah of course both languages are doing good. we have some advantages and the disadvantages too. It also need look based on the requirements from the user and satisfication. condeigniter has the version 3 and laravel 5.4 versions. It just goes on with the updates and features. Any how some differences should be down here!.<br />
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC1mn8jlAUfGeOKis2ADkZfbjaMBPoIi5iJ-Q5lp9fDQ03sHyCL1sd64qFR2uMIauI59Weis8B5-ZN03Z6c5GWUcCFaJIGe97WhciL0l157tPizh-1IzWOvWppoN8zAaEABbgohZVySZQ/s1600/difference+between+laravel+and+codeigniter.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="1024" data-original-width="465" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgC1mn8jlAUfGeOKis2ADkZfbjaMBPoIi5iJ-Q5lp9fDQ03sHyCL1sd64qFR2uMIauI59Weis8B5-ZN03Z6c5GWUcCFaJIGe97WhciL0l157tPizh-1IzWOvWppoN8zAaEABbgohZVySZQ/s1600/difference+between+laravel+and+codeigniter.jpg" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><i>The difference between laravel and codeigniter features</i></td></tr>
</tbody></table>
<br />
<span style="text-align: justify; white-space: pre;"> </span><span style="text-align: justify;"> </span><b style="text-align: justify;"> LARAVEL<span style="white-space: pre;"> </span>CODEIGNITER</b></div>
<div style="text-align: justify;">
1. ORM(Object Relational Mapper) <span style="white-space: pre;"> </span>- yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>-</div>
<div style="text-align: justify;">
2. Active record<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>- Yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>Yes<span style="white-space: pre;"> </span></div>
<div style="text-align: justify;">
3. Packaged module <span style="white-space: pre;"> </span>- yes<span style="white-space: pre;"> </span> -</div>
<div style="text-align: justify;">
4. Routing<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> - yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>Yes</div>
<div style="text-align: justify;">
5. Inbuild user auth<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> - yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>-</div>
<div style="text-align: justify;">
6. Inbuild captcha<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>- -<span style="white-space: pre;"> </span> yes<span style="white-space: pre;"> </span></div>
<div style="text-align: justify;">
7. Template engine<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>- yes<span style="white-space: pre;"> </span> -</div>
<div style="text-align: justify;">
8. Code generation <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>- yes<span style="white-space: pre;"> </span> -</div>
<div style="text-align: justify;">
9. Namespaces <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> - yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>-</div>
<div style="text-align: justify;">
10. Inbuild cli Support(Command-line)<span style="white-space: pre;"> </span> - yes<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>-</div>
<div style="text-align: justify;">
11. Memory Recommanded<span style="white-space: pre;"> </span>- 1GB<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>256MB</div>
<div style="text-align: justify;">
<br /></div>
------------------------------------------------------------------------------------------------<br />
<div>
<br /></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-43519967295249030582017-07-31T13:16:00.002+05:302017-07-31T13:40:33.162+05:30Laravel Installation and Configuration<div dir="ltr" style="text-align: left;" trbidi="on">
---------------------------------------<br />
<div>
</div>
<div>
</div>
<div>
</div>
<b>Installation</b><br />
---------------------------------------<br />
***If your using laravel then it's highly recommended that you use Homestead as your local Laravel <b>development environment:</b><br />
<b><br /></b>
1. The directory permissions will be set if your having the homestead<br />
2. Application key should be 32 characters long and it can be set in .evn file<br />
3. And need to rename the environment file (i.e) .evn.example file to .env<br />
Note: if the application key doesn't set, your user sessions and other encrypted data will not be secure!<br />
<br />
<span style="white-space: pre;"> </span>A). <b>Additional Configuration</b><br />
<b><br /></b>
<span style="white-space: pre;"> </span>cofiguration in config/app.php file It may contains serveral options such as timezone and locale<br />
<span style="white-space: pre;"> </span>a). The additional componants<br />
<span style="white-space: pre;"> </span>=> Cache<br />
<span style="white-space: pre;"> </span>=> Session<br />
<span style="white-space: pre;"> </span>=> Database<br />
<br />
4. <b>Web Server Configuration</b><br />
#Pretty URLs<br />
A). Nginx<br />
<span style="white-space: pre;"> </span>If you are using Nginx, the following directive in your site configuration will direct to the index.php frontend controller.<br />
<span style="white-space: pre;"> </span>Of course, when using Homestead, pretty url will automatically configured.<br />
<br />
---------------------------------------<br />
<div>
</div>
<div>
</div>
<div>
</div>
<b>Configuration</b><br />
---------------------------------------<br />
<div>
</div>
<div>
</div>
<div>
</div>
<span style="white-space: pre;"> </span><b>Introduction:</b><br />
<span style="white-space: pre;"> </span>a). All the laravel framework applications will be stroed in the config directory.<br />
<br />
<span style="white-space: pre;"> </span><b>Environment Configuration:</b><br />
<span style="white-space: pre;"> </span>a). If you are installing via composor, this file will renamed to .evn. Otherwise you need to rename manually.<br />
<span style="white-space: pre;"> </span>b). Your environment file should not be committed to your application source control. Since each developer/server using your application could require a different configuration<br />
<span style="white-space: pre;"> </span>Note : Any variable in your .env file can be overridden by by external environment variables such as server-level or system-level variables.</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-27350063188401178802017-07-12T20:04:00.000+05:302017-07-28T18:06:47.150+05:30Make the directory in php basic<div dir="ltr" style="text-align: left;" trbidi="on">
<b:if cond="data:blog.url == "https://jemiris.blogspot.com/2017/07/make-directory-in-php-basic.html"">
</b:if>
<br />
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
/********************************************************************************/<br />
/*<span style="white-space: pre;"> </span>TITLE<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>: Make the directory in php basic<br />
/*<span style="white-space: pre;"> </span>DESCRIPTION<span style="white-space: pre;"> </span>: To Make the directory in php basic<br />
/*<span style="white-space: pre;"> </span>CREATED BY <span style="white-space: pre;"> </span>: Jemiris Selvi S<br />
/*<span style="white-space: pre;"> </span>CREATED ON<span style="white-space: pre;"> </span>: 12-July-2017<br />
/*<span style="white-space: pre;"> </span>MODIFIED BY <span style="white-space: pre;"> </span>: Jemiris Selvi S<br />
/*<span style="white-space: pre;"> </span>MODIFIED ON<span style="white-space: pre;"> </span>: 12-july-2017<br />
/********************************************************************************/<br />
<br />
To make the directory dynamically if the directory exists it will not be created, otherwise it will create the directory dynamically where this code have been used.<br />
<br />
<?php<br />
<br />
// Desired folder structure<br />
$structure = "http://localhost:70/test";<br />
<br />
// To create the nested structure, the $recursive parameter<br />
// to mkdir() must be specified.<br />
<br />
if(!file_exists($structure))<br />
{<br />
<span style="white-space: pre;"> </span>die("Failed to create the floders");<br />
}<br />
else<br />
{<br />
<span style="white-space: pre;"> </span>mkdir('directory_name', 0777, true);<br />
<span style="white-space: pre;"> </span>echo "File created success";<br />
}<br />
<br />
?></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-57960709015685254982017-07-12T20:03:00.001+05:302017-07-13T10:10:09.615+05:30Fastest way to implode an associative array with keys<div dir="ltr" style="text-align: left;" trbidi="on">
/********************************************************************************/<br />
/*<span style="white-space: pre;"> </span>TITLE<span style="white-space: pre;"> </span> <span style="white-space: pre;"> </span>: Fastest way to implode an associative array with keys<br />
/*<span style="white-space: pre;"> </span>DESCRIPTION<span style="white-space: pre;"> </span>: To Get the details fastest way to implode an associative array with keys<br />
/*<span style="white-space: pre;"> </span>CREATED BY <span style="white-space: pre;"> </span>: Jemiris Selvi S<br />
/*<span style="white-space: pre;"> </span>CREATED ON<span style="white-space: pre;"> </span>: 11-July-2017<br />
/*<span style="white-space: pre;"> </span>MODIFIED BY <span style="white-space: pre;"> </span>: Jemiris Selvi S<br />
/*<span style="white-space: pre;"> </span>MODIFIED ON<span style="white-space: pre;"> </span>: 11-july-2017<br />
/********************************************************************************/<br />
<?php<br />
<br />
$attributes = array(<br />
'data-href' => 'http://example.com',<br />
'data-width' => '300',<br />
'data-height' => '250',<br />
'data-type' => 'cover',<br />
);<br />
<br />
$dataAttributes = array_map(function($value, $key) {<br />
return $key.'="'.$value.'"';<br />
}, array_values($attributes), array_keys($attributes));<br />
<br />
$dataAttributes = implode(' ', $dataAttributes);<br />
<br />
?><br />
<br />
<div class="image-box" <?= $dataAttributes; ?> ><br />
<img src="http://example.com/images/best-of.jpg" alt=""><br />
</div><br />
----------------------------------</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-83278952555529111942017-07-03T15:36:00.002+05:302017-07-03T15:36:41.495+05:30Parse associative array to url in php<div dir="ltr" style="text-align: left;" trbidi="on">
<table class="highlight tab-size js-file-line-container" data-tab-size="8" style="background-color: white; border-collapse: collapse; border-spacing: 0px; box-sizing: border-box; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 14px; tab-size: 8;"><tbody style="box-sizing: border-box;">
<tr style="box-sizing: border-box;"><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC1" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-pse" style="box-sizing: border-box;">
<?php</span><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="2" id="file-querystring-php-L2" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC2" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="3" id="file-querystring-php-L3" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC3" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"><span class="pl-smi" style="box-sizing: border-box;">$params</span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">=</span> <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">array</span>(</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="4" id="file-querystring-php-L4" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC4" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>query<span class="pl-pds" style="box-sizing: border-box;">'</span></span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">=></span> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>something<span class="pl-pds" style="box-sizing: border-box;">'</span></span>,</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="5" id="file-querystring-php-L5" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC5" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>page<span class="pl-pds" style="box-sizing: border-box;">'</span></span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">=></span> <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">1</span>,</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="6" id="file-querystring-php-L6" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC6" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>items<span class="pl-pds" style="box-sizing: border-box;">'</span></span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">=></span> <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">10</span></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="7" id="file-querystring-php-L7" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC7" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;">);</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="8" id="file-querystring-php-L8" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC8" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="9" id="file-querystring-php-L9" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC9" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"><span class="pl-smi" style="box-sizing: border-box;">$url</span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">=</span> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>http://someapi.com/search<span class="pl-pds" style="box-sizing: border-box;">'</span></span>;</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="10" id="file-querystring-php-L10" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC10" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="11" id="file-querystring-php-L11" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC11" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"><span class="pl-k" style="box-sizing: border-box; color: #d73a49;">if</span> (<span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">count</span>(<span class="pl-smi" style="box-sizing: border-box;">$params</span>) <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">></span> <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">0</span>) {</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="12" id="file-querystring-php-L12" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC12" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> <span class="pl-smi" style="box-sizing: border-box;">$url</span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">.=</span> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>?<span class="pl-pds" style="box-sizing: border-box;">'</span></span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">.</span> <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">implode</span>(<span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>&<span class="pl-pds" style="box-sizing: border-box;">'</span></span>, <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">array_map</span>(<span class="pl-k" style="box-sizing: border-box; color: #d73a49;">function</span>(<span class="pl-smi" style="box-sizing: border-box;">$item</span>) {</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="13" id="file-querystring-php-L13" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC13" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">return</span> <span class="pl-smi" style="box-sizing: border-box;">$item</span>[<span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">0</span>] <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">.</span> <span class="pl-s" style="box-sizing: border-box; color: #032f62;"><span class="pl-pds" style="box-sizing: border-box;">'</span>=<span class="pl-pds" style="box-sizing: border-box;">'</span></span> <span class="pl-k" style="box-sizing: border-box; color: #d73a49;">.</span> <span class="pl-smi" style="box-sizing: border-box;">$item</span>[<span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">1</span>];</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="14" id="file-querystring-php-L14" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC14" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"> }, <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">array_map</span>(<span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">null</span>, <span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">array_keys</span>(<span class="pl-smi" style="box-sizing: border-box;">$params</span>), <span class="pl-smi" style="box-sizing: border-box;">$params</span>)));</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="15" id="file-querystring-php-L15" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC15" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;">}</span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="16" id="file-querystring-php-L16" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC16" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="17" id="file-querystring-php-L17" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC17" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"><span class="pl-c1" style="box-sizing: border-box; color: #005cc5;">echo</span> <span class="pl-smi" style="box-sizing: border-box;">$url</span>; <span class="pl-c" style="box-sizing: border-box; color: #6a737d;"><span class="pl-c" style="box-sizing: border-box;">//</span> http://someapi.com/search?query=something&page=1&items=10</span></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="18" id="file-querystring-php-L18" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC18" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span></td></tr>
<tr style="box-sizing: border-box;"><td class="blob-num js-line-number" data-line-number="19" id="file-querystring-php-L19" style="box-sizing: border-box; color: rgba(27, 31, 35, 0.3); cursor: pointer; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; min-width: 50px; padding: 0px 10px; text-align: right; user-select: none; vertical-align: top; white-space: nowrap; width: 50px;"></td><td class="blob-code blob-code-inner js-file-line" id="file-querystring-php-LC19" style="box-sizing: border-box; font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace; font-size: 12px; line-height: 20px; overflow: visible; padding: 0px 10px; position: relative; vertical-align: top; white-space: pre; word-wrap: normal;"><span class="pl-s1" style="box-sizing: border-box;"></span><span class="pl-pse" style="box-sizing: border-box;"><span class="pl-s1" style="box-sizing: border-box;">?</span>></span></td></tr>
</tbody></table>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-69739741866341334642017-07-03T10:07:00.006+05:302019-04-09T17:34:41.339+05:30XAMPP - Port 80 in use by “Unable to open process” with PID 4! 12<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<table style="background-color: white; border-collapse: collapse; border-spacing: 0px; border: 0px; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><tbody style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
<tr style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"><td class="votecell" style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px 15px 0px 0px; vertical-align: top;"><div class="vote" style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; min-width: 46px; padding: 0px; text-align: center; vertical-align: baseline;">
<a class="vote-down-off" href="https://www.blogger.com/null" style="background-image: url("img/sprites.svg?v=1b3cdae197be"), none; background-position: 0px -220px; background-repeat: no-repeat; background-size: initial; border: 0px; color: #0077cc; cursor: pointer; display: block; font-family: inherit; font-size: 1px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; height: 30px; line-height: inherit; margin: 0px auto 10px; overflow: hidden; padding: 0px; text-indent: -9999em; vertical-align: baseline; width: 40px;" title="This answer is not useful">down vote</a></div>
</td><td class="answercell" style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: top;"><div class="post-text" itemprop="text" style="border: 0px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 1.3; margin: 0px 0px 5px; padding: 0px; vertical-align: baseline; width: 660px; word-wrap: break-word;">
<ol style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; list-style-image: initial; list-style-position: initial; margin: 0px 0px 1em 30px; padding: 0px; vertical-align: baseline;">
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px 0px 0.5em; padding: 0px; vertical-align: baseline; word-wrap: break-word;"><div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;">
Open a CMD prompt and type in the command: net stop was /y</div>
</li>
<li style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; word-wrap: break-word;"><div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; padding: 0px; vertical-align: baseline;">
Run Dialog Box (press keys <code style="background-color: #eff0f1; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">Win+R</code>) .. then type: <code style="background-color: #eff0f1; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 1px 5px; vertical-align: baseline; white-space: pre-wrap;">services.msc</code></div>
</li>
<li>I then scrolled down to World Wide Web Publishing Service Double clicked on it and clicked STOP) (if this service status is Started)</li>
<li>3. Start Apache again with XAMPP :)</li>
</ol>
<div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
Link Ref:</div>
<div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<a href="http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/" style="border: 0px; color: #005999; cursor: pointer; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; text-decoration-line: none; vertical-align: baseline;">http://www.sitepoint.com/unblock-port-80-on-windows-run-apache/</a></div>
<div style="border: 0px; clear: both; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<span style="font-size: 15px;"><a href="https://stackoverflow.com/questions/20558410/xampp-port-80-in-use-by-unable-to-open-process-with-pid-4-12">https://stackoverflow.com/questions/20558410/xampp-port-80-in-use-by-unable-to-open-process-with-pid-4-12</a></span></div>
<div style="border: 0px; clear: both; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<br /></div>
</div>
</td></tr>
</tbody></table>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-26266445644011926592017-06-30T16:28:00.003+05:302017-07-09T14:21:11.124+05:30Logging In with ProcessMaker's WSDL Web Services<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
<h3 style="background-color: white; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: border-box; font-family: "Open Sans", sans-serif; font-size: 17px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 20.4px; margin: 0px 0px 0.6em; overflow: hidden; padding: 0.5em 0px 0.14em; text-align: justify; vertical-align: baseline; width: auto;">
<span id="login.28.29_Web_Service" style="border: 0px; box-sizing: border-box; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 25.5px; margin: 0px; padding: 0px; vertical-align: baseline;"><code style="background: rgb(239, 239, 251); border: 0px; box-sizing: border-box; font-family: "Courier New", Courier, monospace; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: 25.5px; margin: 0px; padding: 0px; vertical-align: baseline;">login()</code> Web Service</span></h3>
<div style="background-color: white; border: 0px; box-sizing: border-box; font-stretch: inherit; line-height: 19.6px; margin-bottom: 10px; padding: 0px; text-align: justify; vertical-align: baseline;">
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;">After instantiating a SOAP client object, then use the login() function to start a web services session in ProcessMaker:</span></span><br />
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span>
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;">loginResponse login(string userid, string password)</span></span><br />
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span>
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;">The userid is the name of the user and password is the user's password. Note that the function parameters for web service functions have to be passed as an associative array within an array.</span></span><br />
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;"><br /></span></span>
<span style="font-size: 14px;"><span style="font-family: Verdana, sans-serif;">For instance, if the user ID is 'andy' and the password is 'foobar', then log in using the following script in PHP: </span></span><br />
<div style="font-family: "open sans", sans-serif; font-size: 14px;">
<br /></div>
</div>
Example:<br />
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span>
<span style="font-family: "courier new" , "courier" , monospace;"> ini_set("soap.wsdl_cache_enabled", "0");</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> </span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> $client <span style="white-space: pre;"> </span>= new SoapClient($params['clientUrl']);</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> $values <span style="white-space: pre;"> </span>= array</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> (array('userid'=> 'admin', 'password'=> 'pass2017!'));</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> $result </span><span style="font-family: "courier new" , "courier" , monospace; white-space: pre;"> </span><span style="font-family: "courier new" , "courier" , monospace;">= $client->__SoapCall('login', $values);</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> $sessionId = $result->message;</span><br />
<span style="font-family: "courier new" , "courier" , monospace;"> print_r($result->message);</span></div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-79953585765569587522017-06-30T16:23:00.003+05:302019-06-25T17:54:21.827+05:30Processmaker WSDL Web Services Functions<div dir="ltr" style="text-align: left;" trbidi="on">
<h3 style="background-color: white; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-image: initial; border-left-color: initial; border-left-style: initial; border-right-color: initial; border-right-style: initial; border-top-color: initial; border-top-style: initial; border-width: 0px 0px 1px; box-sizing: border-box; font-family: "Open Sans", sans-serif; font-size: 17px; font-stretch: inherit; font-variant-numeric: inherit; line-height: 20.4px; margin: 0px 0px 0.6em; overflow: hidden; padding: 0.5em 0px 0.14em; text-align: justify; vertical-align: baseline; width: auto;">
</h3>
<div>
<div>
userList() returns a list of the users. For privileges to see the list, the user logged must have the PM_USERS permission in their role.</div>
<div>
<br /></div>
<div>
userListResponse userList(string sessionId) </div>
<div>
<b>Parameters:</b></div>
<div>
<br /></div>
<div>
string sessionId: The session ID, which was obtained during login</div>
<div>
<br /></div>
<div>
<b>Example:</b></div>
<div>
<br /></div>
<div>
// get the users list</div>
<div>
<br /></div>
<div>
$user_values = array(array('sessionId'=> $sessionId));</div>
<div>
<br /></div>
<div>
$user_result = $client->__SoapCall('userList', $user_values);</div>
<div>
$data = $user_result->users;</div>
<div>
if(is_array($data))</div>
<div>
{</div>
<div>
foreach ($data as $user) {</div>
<div>
print "$user->name and $user->guid\n";</div>
<div>
}</div>
<div>
}</div>
<div>
else</div>
<div>
{</div>
<div>
print "$data->name\n";</div>
<div>
}</div>
<div>
<br /></div>
<div>
groupList() returns a list of the groups. For privileges to see the list, the user logged in must have the PM_USERS permission in their role.</div>
<div>
<br /></div>
<div>
groupListResponse groupList(string sessionId)</div>
<div>
Parameters:</div>
<div>
string sessionId: The session ID, which was obtained during login.</div>
<div>
<br /></div>
<div>
<b>Example: </b></div>
<div>
<br /></div>
<div>
// get the group list</div>
<div>
$user_values = array(array('sessionId'=> $sessionId));</div>
<div>
<br /></div>
<div>
$group_result = $client->__SoapCall('groupList', $user_values);</div>
<div>
$data = $group_result->groups;</div>
<div>
if(is_array($data))</div>
<div>
{</div>
<div>
foreach ($data as $group) {</div>
<div>
print "$group->name and $group->guid\n";</div>
<div>
}</div>
<div>
}</div>
<div>
else</div>
<div>
{</div>
<div>
print "$dara->name and $data->guid\n";</div>
<div>
}</div>
</div>
<div>
<br /></div>
<div style="text-align: justify;">
<span style="font-family: "open sans" , sans-serif;"><span style="font-size: 14px;"></span></span><br />
<div style="font-family: "open sans", sans-serif;">
<div style="font-family: "open sans", sans-serif; font-size: 14px;">
<div style="font-family: "open sans", sans-serif; font-size: 14px;">
</div>
</div>
</div>
<span style="font-family: "open sans" , sans-serif;"><span style="font-size: 14px;">
</span></span></div>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-81246450280777309182017-06-28T14:47:00.001+05:302017-06-28T14:47:25.327+05:30Calling a function within a Class method?<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="background-color: white; border: 0px; clear: both; color: #242729; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;">
<strong style="border: 0px; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">example 1</strong></div>
<pre class="lang-php prettyprint prettyprinted" style="background-color: #eff0f1; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;"><code style="border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;"><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">class</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">TestClass</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">public</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">function</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> __call</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$name</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$arg</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">){</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
call_user_func</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$name</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">,</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">$arg</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">);</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">class</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> test </span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">{</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">public</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">function</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> newTest</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(){</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">function</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> bigTest</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(){</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
echo </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">'Big Test Here'</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">function</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> smallTest</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">(){</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
echo </span><span class="str" style="border: 0px; color: #7d2727; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">'Small Test Here'</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$obj</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> </span><span class="typ" style="border: 0px; color: #2b91af; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">TestClass</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">return</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> $obj</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">}</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$rentry</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">=</span><span class="kwd" style="border: 0px; color: #101094; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">new</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;"> test</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">;</span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">
$rentry</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">-></span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">newTest</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">()-></span><span class="pln" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">bigTest</span><span class="pun" style="border: 0px; color: #303336; font-family: inherit; font-size: inherit; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline;">();</span></code></pre>
</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-30484162608092989302017-06-15T15:25:00.007+05:302017-06-15T15:25:55.945+05:30The Processmaker 2.0 Version Backup the workflow<div dir="ltr" style="text-align: left;" trbidi="on">
/*<br />
* The Processmaker 2.0 Version Backup the workflow<br />
*/<br />
<br />
D:\PM>cd processmaker<br />
<br />
D:\PM\processmaker>processmaker.bat workspace-backup workflow backup1.tar<br />
Backing up to D:/PM/processmaker/shared/backups/backup1.tar<br />
Backing up database...<br />
Saving database wf_workflow<br />
LOCK TABLES [OK]<br />
Dump of table additional_tables 819 Bytes Saved<br />
Dump of table app_cache_view 13513 Bytes Saved<br />
Dump of table app_delay 334 Bytes Saved<br />
Dump of table app_delegation 8498 Bytes Saved<br />
Dump of table app_document 21590 Bytes Saved<br />
Dump of table app_event 0 Bytes Saved<br />
Dump of table app_folder 5163 Bytes Saved<br />
Dump of table app_history 14396 Bytes Saved<br />
Dump of table app_message 8407 Bytes Saved<br />
Dump of table app_notes 0 Bytes Saved<br />
Dump of table app_owner 0 Bytes Saved<br />
Dump of table app_solr_queue 0 Bytes Saved<br />
Dump of table app_thread 941 Bytes Saved<br />
Dump of table application 18203 Bytes Saved<br />
Dump of table calendar_assignments 0 Bytes Saved<br />
Dump of table calendar_business_hours 106 Bytes Saved<br />
Dump of table calendar_definition 170 Bytes Saved<br />
Dump of table calendar_holidays 0 Bytes Saved<br />
Dump of table case_scheduler 0 Bytes Saved<br />
Dump of table case_tracker 96 Bytes Saved<br />
Dump of table case_tracker_object 0 Bytes Saved<br />
Dump of table configuration 7671 Bytes Saved<br />
Dump of table content 100824 Bytes Saved<br />
Dump of table dashlet 1008 Bytes Saved<br />
Dump of table dashlet_instance 1139 Bytes Saved<br />
Dump of table db_source 181 Bytes Saved<br />
Dump of table department 0 Bytes Saved<br />
Dump of table dim_time_complete 0 Bytes Saved<br />
Dump of table dim_time_delegate 0 Bytes Saved<br />
Dump of table dynaform 4953 Bytes Saved<br />
Dump of table event 15021 Bytes Saved<br />
Dump of table field_condition 797 Bytes Saved<br />
Dump of table fields 13616 Bytes Saved<br />
Dump of table gateway 1644 Bytes Saved<br />
Dump of table group_user 2756 Bytes Saved<br />
Dump of table groupwf 273 Bytes Saved<br />
Dump of table holiday 0 Bytes Saved<br />
Dump of table input_document 1197 Bytes Saved<br />
Dump of table iso_country 14834 Bytes Saved<br />
Dump of table iso_location 3988501 Bytes Saved<br />
Dump of table iso_subdivision 64199 Bytes Saved<br />
Dump of table language 11195 Bytes Saved<br />
Dump of table lexico 0 Bytes Saved<br />
Dump of table log_cases_scheduler 0 Bytes Saved<br />
Dump of table login_log 72133 Bytes Saved<br />
Dump of table object_permission 0 Bytes Saved<br />
Dump of table output_document 3165 Bytes Saved<br />
Dump of table pmt_attorney 229 Bytes Saved<br />
Dump of table pmt_county 1269 Bytes Saved<br />
Dump of table pmt_lien 365543 Bytes Saved<br />
Dump of table pmt_tax_collector 1319 Bytes Saved<br />
Dump of table process 2540 Bytes Saved<br />
Dump of table process_category 96 Bytes Saved<br />
Dump of table process_owner 0 Bytes Saved<br />
Dump of table process_user 0 Bytes Saved<br />
Dump of table report_table 0 Bytes Saved<br />
Dump of table report_var 0 Bytes Saved<br />
Dump of table route 7870 Bytes Saved<br />
Dump of table session 0 Bytes Saved<br />
Dump of table shadow_table 0 Bytes Saved<br />
Dump of table stage 0 Bytes Saved<br />
Dump of table step 4577 Bytes Saved<br />
Dump of table step_supervisor 328 Bytes Saved<br />
Dump of table step_trigger 3499 Bytes Saved<br />
Dump of table sub_application 1362 Bytes Saved<br />
Dump of table sub_process 2157 Bytes Saved<br />
Dump of table swimlanes_elements 1936 Bytes Saved<br />
Dump of table task 10701 Bytes Saved<br />
Dump of table task_user 2760 Bytes Saved<br />
Dump of table translation 258102 Bytes Saved<br />
Dump of table triggers 25916 Bytes Saved<br />
Dump of table users 1652 Bytes Saved<br />
Dump of table users_properties 320 Bytes Saved<br />
UNLOCK TABLES [OK]<br />
Saving database rp_workflow<br />
UNLOCK TABLES [OK]<br />
Saving database rb_workflow<br />
LOCK TABLES [OK]<br />
Dump of table authentication_source 0 Bytes Saved<br />
Dump of table permissions 3322 Bytes Saved<br />
Dump of table roles 709 Bytes Saved<br />
Dump of table roles_permissions 4068 Bytes Saved<br />
Dump of table systems 260 Bytes Saved<br />
Dump of table users 1193 Bytes Saved<br />
Dump of table users_roles 535 Bytes Saved<br />
UNLOCK TABLES [OK]<br />
Copying database to backup...<br />
+ D:/PM/processmaker/shared/upgrade/3F03.tmp<br />
Copying files to backup...<br />
+ D:/PM/processmaker/shared/sites/workflow<br />
<br />
ProcessMaker Version 2.5.0.1<br />
System (WINNT)<br />
PHP Version 5.2.14<br />
Server Address<br />
Client IP Address<br />
Plugins charts<br />
lmsReports<br />
openFlash<br />
pmosCommunity<br />
processTemplate<br />
<br />
Workspace Name workflow<br />
Workflow Database mysql://wf_workflow:mcf6bt2jwkhp@127.0.0.1:3307/wf_workflow<br />
<br />
RBAC Database mysql://rb_workflow:0fpxh8zcrb3j@127.0.0.1:3307/rb_workflow<br />
<br />
Report Database mysql://rp_workflow:hx2npv915jqb@127.0.0.1:3307/rp_workflow<br />
<br />
MySql Version MySql (Version none)<br />
Press any key to continue . . .<br />
//After Restoring in phpmyadmin<br />
-----------------------------------<br />
created the pm tables dynamically<br />
------------------------------------<br />
authentication_source<br />
permissions<br />
roles<br />
roles_permissions<br />
systems<br />
users<br />
users_roles</div>
Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-6175189973703211873.post-75135337718776461952017-06-15T15:25:00.004+05:302017-06-15T15:25:42.136+05:30Conncecting the Processmaker MYSQL using Command Prompt(windows server)<div dir="ltr" style="text-align: left;" trbidi="on">
/*<br />
* Conncecting the Processmaker MYSQL using Command Prompt(windows server)<br />
*/<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysql -u root -p<br />
Enter password: **<br />
Welcome to the MySQL monitor. Commands end with ; or \g.<br />
Your MySQL connection id is 865<br />
Server version: 5.5.53 MySQL Community Server (GPL)<br />
<br />
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.<br />
<br />
Oracle is a registered trademark of Oracle Corporation and/or its<br />
affiliates. Other names may be trademarks of their respective<br />
owners.<br />
<br />
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.<br />
<br />
mysql> show databases;<br />
+--------------------+<br />
| Database |<br />
+--------------------+<br />
| information_schema |<br />
| bitnami_pm |<br />
| mysql |<br />
| performance_schema |<br />
| test |<br />
| wf_backup1 |<br />
| wf_business |<br />
| wf_crm |<br />
| wf_finance |<br />
+--------------------+<br />
9 rows in set (0.00 sec)<br />
<br />
mysql> exit;<br />
Bye<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysqldump --user="root" --password="sa"<br />
DB_NAME > DBNAME.SQL<br />
mysqldump: Got error: 1049: Unknown database 'db_name' when selecting the databa<br />
se<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysqldump --user="root" --password="sa"<br />
wf_crm > wf_crm.SQL<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysqldump --user="root" --password="sa"<br />
bitnami_pm > bitnami_pm.SQL<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysqldump --verbose --user="root" --pas<br />
sword="sa" wf_finance > bitnami_pm.SQL<br />
-- Connecting to localhost...<br />
-- Disconnecting from localhost...<br />
<br />
C:\Bitnami\processmaker-3.1-1\mysql\bin>mysqldump --verbose --user="root" --pas<br />
sword="sa" wf_finance < bitnami_pm.SQL<br />
-- Connecting to localhost...<br />
-- MySQL dump 10.13 Distrib 5.5.53, for Win32 (AMD64)<br />
--<br />
-- Host: localhost Database: wf_finance<br />
-- ------------------------------------------------------<br />
-- Server version 5.5.53<br />
<br />
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;<br />
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;<br />
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;<br />
/*!40101 SET NAMES UTF8 */;<br />
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;<br />
/*!40103 SET TIME_ZONE='+00:00' */;<br />
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;<br />
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0<br />
*/;<br />
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;<br />
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;<br />
-- Disconnecting from localhost...<br />
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;<br />
<br />
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;<br />
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;<br />
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;<br />
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;<br />
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;<br />
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;<br />
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;<br />
<br />
-- Dump completed on 2017-06-14 13:16:07<br />
<br />
<br /></div>
Unknownnoreply@blogger.com0