Community Member Featured
Member Avatar
cereal 1,524 Replied To a Post in Irregular Black Screen and random restarts
Topic by Siberian in Hardware and Software
> I've checked event log etc. If this helps, some programs that run in the notification area have occasional animated icons; when I must restart the computer those notification icons stop animating they stick.

I was asking about the event log to understand if there is a report of something … Reply by cereal
Member Avatar
Featured cereal 1,524 Replied To a Post in Execute GitHub existing Project on Visual Studio
Topic by SimonIoa in Mobile Development
I'm sorry but cannot help here, I don't have experience with Angular & co. Reply by cereal
Member Avatar
Topic by Jessica_16 in Information Security
@J

We have to tackle this step by step. Remember that ransomware does not always encode files. It appears that recent ransomware is just wiping out files and hope you pay. They keep the money and have no decoder.

-> You have now stepped into the disaster plan with both … Reply by rproffitt
Member Avatar
Topic by Jessica_16 in Information Security
Hi,

probably putting the server offline, removing the disk and accessing it in readonly mode from an OS that will not execute any of the code in that disk could be a starting point to backup what is still available.

It's important to make sure it cannot spread in your … Reply by cereal
Member Avatar
HELP!! I have a windows server 2012 r2 . I can still use my server until i fell asleep and now woke up, And can't log in to my administrator account. I didn't change password at all, i use the same password and i'd make sure that it is correct. … Topic by Jessica_16 in Information Security
Member Avatar
cereal 1,524 Gave Reputation to Rupsena in CORS on a single CodeIgniter Controller
Topic by Sammy_1 in Web Development
Your response headers are correct. Look for the extra space that you have added.

header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow- Methods: POST, GET, PUT, DELETE, OPTIONS');
(You have a space -> Access-Control-Allow-**(here)**Methods)
header('Access-Control-Allow-Headers: X-Requested-With, content-type, X-Token, x-token');

I was looking for these exact thing and it worked perfectly for me(after removing the space). … Reply by Rupsena
Member Avatar
Featured cereal 1,524 Replied To a Post in Execute GitHub existing Project on Visual Studio
Topic by SimonIoa in Mobile Development
Hi,

are you following his tutorial? https://www.9lessons.info/2017/06/ionic-angular-php-login-restful-api.html
The part in which he writes about how to *"Create an Authentication Service Provider"* explains how to connect to the api. Reply by cereal
Member Avatar
Featured cereal 1,524 Began Watching Execute GitHub existing Project on Visual Studio
Hello i just started to use Ionic and i have some questions. First of all i downloaded an existing ionic project on GitHub to start. I do these commands and works fine.

$ git clone https://github.com/srinivastamada/ionic-restful-authentication.git
$ cd ionic-restful-authentication
$ npm install
$ ionic serve

The project starts at localhost:8100 … Topic by SimonIoa in Mobile Development
Member Avatar
cereal 1,524 Replied To a Post in print data in columns
Topic by COKEDUDE in Software Development
c
In addition, you may want to try the cli-tools package:

* https://github.com/wp-cli/php-cli-tools

It's great to send formatted output in command line environments. Reply by cereal
Member Avatar
cereal 1,524 Began Watching print data in columns
I am trying to print my data in columns. For some reason every column but the last one lines up. Is there a way to fix this?

while ((row = mysql_fetch_row(result)))
{
//printf("198\n");
for(int i = 0; i < num_fields; i++)
{
//printf("----------\n");
printf("%25s ",row[i]);
if(row[i] == NULL)
{
printf("No … Topic by COKEDUDE in Software Development
c
Member Avatar
Topic by klaus.veliu in Web Development
I managed to change the code as suggest, for the moment it seems to be working.
All the uploaded images are storen in a hidden input divided by a **,**

Here is a simple version of the code to help everyone else in the future



<form id="appointment-form" class="box-body no-padding">
<input … Reply by klaus.veliu
Member Avatar
cereal 1,524 Replied To a Post in Dropzone JS get filenames of uploaded files
Topic by klaus.veliu in Web Development
In other words you want to return back the new name of the uploaded file? In the PHP script you can send a JSON response with the filename, so move line 12 to 11 and replace the `echo` with:

header('Content-type: application/json');
echo json_encode(['target_file' => $targetFile]);

and use the **success** event … Reply by cereal
Member Avatar
Hello,

In my project I have a form with many inputs and one object is using DropzoneJS to attach files.
Since I store all the inputs when I post the form I need somehow to read the file names of the uploaded files in my server,
currently I can only … Topic by klaus.veliu in Web Development
Member Avatar
Hi all. I need some help.

I want to display username after user has login. I am currently using Visual Studio and Javascript. Not using any PHP page.

What should i do?

This is my home.html page:

<!DOCTYPE html>
<html>
<head>
<!--Customize the content security policy in the meta tag … Topic by maylynn in Mobile Development
Member Avatar
cereal 1,524 Replied To a Post in Irregular Black Screen and random restarts
Topic by Siberian in Hardware and Software
And have you checked the contents of the event log? If you're using Windows see: https://www.howtogeek.com/222730/how-to-find-out-why-your-windows-pc-crashed-or-froze/ Reply by cereal
Member Avatar
I'm hoping someone can help. For a long time I've been having the computer randomly restart or freeze; especially when backing up my computer to a network drive the computer freezes. I was informed it was the PSU; and so as of recently I replaced it with a brand new … Topic by Siberian in Hardware and Software
Member Avatar
cereal 1,524 Replied To a Post in Call to undefined function routes()
Topic by davy_yg in Web Development
The name is well defined, otherwise you would get an exception:

Route [navcolor] not defined.

The error message says `Call to undefined function routes()`, which in other words means that the function you are trying to call does not exists. **Have you read the documentation?** I posted the link for … Reply by cereal
Member Avatar
cereal 1,524 Replied To a Post in Call to undefined function routes()
Topic by davy_yg in Web Development
Hi,

supposing you are not trying to load a user defined function named `routes()`, have you read the documentation? https://laravel.com/docs/5.5/routing#named-routes and the source in which this function should be defined? Does exists?

Use an editor that can autocomplete the code, in SublimeText for example, when you hover a method/function it … Reply by cereal
Member Avatar
cereal 1,524 Began Watching Call to undefined function routes()

Call to undefined function routes() (View: C:\xampp\htdocs\Julmarice\framework\resources\views\soulfy\apages.blade.php)

Why this is undefine?


apages.blade.php

<form action="{{ routes('navcolor') }}" method="post">
<div style="color: white;">Select Pages Navigation Color :</div>
{{ csrf_field() }}
<select name="NavColor">
<option value="black">Black</option>
<option value="blue">Blue</option>
<option value="gray">Gray</option>
<option value="brown">Brown</option>
</select>

<input type="submit" value="Submit"><br><br>
</form>

routes.php

Route::post('/home/navcolor', 'SettingController@postNavColor')->name('navcolor');

SettingController.php

public function postNavColor(Request $request) … Topic by davy_yg in Web Development
Member Avatar
Topic by navjot_2 in Community Center
php
You want to avoid:

1. overall repetition (i.e. if I connect I don't get your same questions) or
2. only for the current user (i.e. I never see the same questions anymore, but another user can repeat the path) or
3. only for the current user's session (i.e. if I … Reply by cereal
Member Avatar
hi, i m working on quiz portal in which different set of question were ask
there are 4 mutiple choice question in which one of the right answer.

i successfuly display the question by selecting using perticular** test id**(topic)

here is the query:**$rs=mysql_query("SELECT DISTINCT * FROM mst_question WHERE test_id ='$tid' … Topic by navjot_2 in Community Center
php
Member Avatar
cereal 1,524 Replied To a Post in How to read IP packets (hex) manually
Topic by random_1 in Networking
The extra bytes could be source port and destination port, see this:

* https://www.pacificsimplicity.ca/blog/reading-packet-hex-dumps-manually-no-wireshark

bye! Reply by cereal
Member Avatar
Hi, I'm trying to read IP packet headers manually from a hex file. From what I understand an IP header has 20 bytes: version, HL, TOS,total length, ID, flag, fragments,ttl, protocol, checksum, source ip and destination IP. In hex that would be something like this (20 bytes - double digits … Topic by random_1 in Networking
Member Avatar
cereal 1,524 Gave Reputation to happygeek in Data leak through ISP
Topic by Thomas_42 in Networking
I wrote a piece about such 'middleboxes' (either in hardware or software) on the network, and a draft IETF standard that proposes to bypass such things, just yesterday. It's at SC Magazine UK here: https://www.scmagazineuk.com/will-ietf-proposal-be-the-end-of-enterprise-middlebox-traffic-snooping/article/706437/ Reply by happygeek
Member Avatar
cereal 1,524 Replied To a Post in Data leak through ISP
Topic by Thomas_42 in Networking
Hi!

I remember reading that there was a failure point on SSL as antiviruses were performing a MITM against browsers to verify the contents of connected pages. In practice they used to replace certificates in the client machine. Is this still an issue? See: http://ieeexplore.ieee.org/document/6956558/

Anyway, just a drop in … Reply by cereal
Member Avatar
cereal 1,524 Began Watching Data leak through ISP
Hi,
I am looking for advice about internet service providers. My questions here may seem silly but please do reply. I am an entrepreneur. I am about to start a new business. This business handles a lot of confidential documents and if any of these are leaked it could bring … Topic by Thomas_42 in Networking
Member Avatar
Topic by Charles_25 in Web Development
> This board has been most helpful to me! I learned that the term "serial numbers", although not a big deal to me, can be taken very seriously by scammers and I need to simply change serial numbers to first and last names when asking for help, to weed out … Reply by cereal
Member Avatar
Topic by Charles_25 in Web Development
I believe this question may be part of this thread [Click Here](https://www.daniweb.com/programming/web-development/threads/510335/php-regex-remove-all-words-that-do-not-occur-exactly-3-or-1-time) Reply by benanamen
Member Avatar
Topic by Charles_25 in Web Development
Also, for which platform? And can you use something different from PHP? Reply by cereal
Member Avatar
**The Problem:** I have a long string of serial numbers, that looks like this:

"1_2_3_4_5 0_100_1_0_4 1_2_3_4_5 0_100_1_0_4 0_100_1_0_4
3_1_34_5_6";
I want to remove all serial numbers that do not occur EXACTLY 3 or 1 times in the string.

**The Result:** In this case the return string should be:

0_100_1_0_4 … Topic by Charles_25 in Web Development