Community Member Featured
Member Avatar
cereal 1,515 Replied To a Post in Use modulus operator to convert time
Topic by JHus00 in Software Development
c++
Hi Fabiana_1,

if you have a question then, please, start a new thread by clicking on **Contribute**. Reply by cereal
Member Avatar
cereal 1,515 Began Watching Use modulus operator to convert time
I need to convert hours into weeks, days, and hours.

My professor was hinting that there might be a way to
do this using the modulus operator but I can't seem to think of a way
that its possible. Can anyone help?

thanks! Topic by JHus00 in Software Development
c++
Member Avatar
Hello,
I am running a social app called Fakenamez. You can download in App Store or check www.fakenamez.com.
I am currently looking for a business partner who is good at coding. Your share will be 50/100.
Please contact me if you are interested. Topic by Anqi in Digital Marketing
Member Avatar
Featured cereal 1,515 Replied To a Post in Cross-Posting
Topic by AssertNull in DaniWeb Community Feedback
diafol! Why delete? Keep the account and allow us to keep a contact with you, I cannot imagine this forum without your posts :( Reply by cereal
Member Avatar
Featured cereal 1,515 Began Watching Cross-Posting
Is cross-posting against the rules? I believe it is not. I also believe that everyone here agrees with me that it's rude behavior. This thread, among others, causes me to believe this.

https://www.daniweb.com/community-center/threads/510095/need-help

Is anyone who answers questions NOT annoyed to answer a question, then find out that the verbatim … Topic by AssertNull in DaniWeb Community Feedback
Member Avatar
Featured cereal 1,515 Replied To a Post in PUP.Optional.ASK
Topic by Mag_1 in Microsoft Windows
Hi, try to follow the other suggested steps on their site:

* https://malwarefixes.com/threats/pup-optional-ask-a/ Reply by cereal
Member Avatar
Featured cereal 1,515 Began Watching PUP.Optional.ASK
Hello, this morning my desktop was completely different. I used Malware Bytes and it found PUP.Optional.ASK. I removed the two files, restarted the computer and it's still there. Any ideas on how to completely remove it? Topic by Mag_1 in Microsoft Windows
Member Avatar
Featured cereal 1,515 Replied To a Post in The Best Way to Store ipv4 & ipv6?
Topic by mattyd in Databases
> Right now I would focus much on the storage size issue.

Right now I would NOT focus much on the storage size issue.

Pardon :p Reply by cereal
Member Avatar
Featured cereal 1,515 Replied To a Post in The Best Way to Store ipv4 & ipv6?
Topic by mattyd in Databases
You can use `varbinary(16)` to store IPV4 (4bytes) and IPV6 (16bytes), MySQL has some functions to convert the IP from a string representation to a blob and reverse, see for `INET6_ATON()` and `INET6_NTOA()`, which deals with both IP types:

* https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_inet6-aton

Note, the `HEX()` function in the documentation example is … Reply by cereal
Member Avatar
Featured cereal 1,515 Began Watching The Best Way to Store ipv4 & ipv6?
I've been reseraching the best way(s) to store both ipv4 & ipv6 ip addresses.

Simply put, so far there seems to be much debate as to how to do so properly ranging from storing them as varchar or in a binary format.

I'm really not sure at this point.

I … Topic by mattyd in Databases
Member Avatar
Featured cereal 1,515 Replied To a Post in XAMMP - PHP not Displaying When Running File
Topic by mattyd in Web Development
The above would not be an inline code, which is defined by backticks. Here you should use a code block, when you want to do such and you have other text above, then hit Return two times, so that you go to a new line and set a line of … Reply by cereal
Member Avatar
Featured cereal 1,515 Began Watching XAMMP - PHP not Displaying When Running File
I have recently been using XAMPP for dev. Although I'm new to XAMPP, the recent issue sprung up surprisingly, the simple script running a day before.

The script is just being used to test the ability to capture/display an IP address; this will later be used in a larger project: … Topic by mattyd in Web Development
Member Avatar
cereal 1,515 Replied To a Post in password storage security
Topic by a_10 in Software Development
Hi,

see the recommendations made by the SANS Institute, pdf:

* https://www.sans.org/security-resources/policies/server-security/pdf/database-credentials-policy

it could help you, bye! Reply by cereal
Member Avatar
cereal 1,515 Began Watching password storage security
Hello Everyone,

I have developed a DBMS and I want to store the credentials for server, and user name securely so that the users don't have to enter the password to the database EVERY time they start the software. My question is, how would I go about doing this? I … Topic by a_10 in Software Development
Member Avatar
Featured cereal 1,515 Replied To a Post in Windows 10 Fall Creator's Update Fails to Install
Topic by Reverend Jim in Microsoft Windows
Hilarious & exhausting :)
Do you think it would possible to log the offending entry through Process Monitor, while running the update instance?

https://docs.microsoft.com/en-us/sysinternals/downloads/procmon Reply by cereal
Member Avatar
Featured cereal 1,515 Began Watching Windows 10 Fall Creator's Update Fails to Install
Today I tried to install the Windows 10 Fall Creator's Update. It failed with the message

![2017-10-18_161217.png](/attachments/large/3/837de23baab769b190bf69bbceed71ee.png "align-center")

I found this peculiar because I don't have that application installed. I **do** have Macrium Reflect (Free) version 6 but certainly not Drive Image 7 (Powerquest).

As usual, clicking the Support link … Topic by Reverend Jim in Microsoft Windows
Member Avatar
Featured cereal 1,515 Gave Reputation to Reverend Jim in Windows 10 Fall Creator's Update Fails to Install
Topic by Reverend Jim in Microsoft Windows
So I tried downloading the in-place upgrade. That got me the same error as the first time but in purple.

![2017-10-18_214805.png](/attachments/large/3/fab374313fefa0c362db123ed6f6b6b9.png "align-center")

So it's back to chat once again tonight. Reply by Reverend Jim
Member Avatar
Topic by Jim_21 in Software Development
You can add parameters to the selectCommand property, see these examples:

* https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.selectcommand(v=vs.110).aspx
* https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlcommand.parameters.aspx

In your case, in pseudo code, try something like:

sqlCommand.CommandText = "select StudentID from student where print like '%' + @template + '%'"
sqlCommand.Parameters.Add("@template", SqlDbType.NVarChar, 40, "Value Here")

Follow the examples in the documentation. Reply by cereal
Member Avatar
Featured cereal 1,515 Replied To a Post in PHP: Array_count_values is way too slow, better ideas?
Topic by Charles_25 in Web Development
Hi,

in addition, have you tried with SplFixedArray? It should be faster than standard arrays. Also if you want to open files from the script, than use `fopen()` instead of `file_get_contents()`, because the latter will load the entire file in memory before starting processing, while the former will read in … Reply by cereal
Member Avatar
My script merges 18 files and returns all numbers that occur >=13 times within the merger. I timed my script and array_count_values is so slow it accounts for 80% of the 2.35 sec time. The files are large, 200,000 numbers per file, so the merged array is well over 2 … Topic by Charles_25 in Web Development
Member Avatar
Topic by Jim_21 in Software Development
The error says:

> Additional information: There is no row at position 0.

So the query is not returning results, I read that [da.Fill() can return the number of rows found by the query statement,](https://msdn.microsoft.com/en-us/library/377a8x4t(v=vs.110).aspx?cs-save-lang=1&cs-lang=vb#code-snippet-1) so you can get that value and use a conditional statement to verify if the … Reply by cereal
Member Avatar
Topic by Jim_21 in Software Development
Hi,

`%bytes%` must be surrounded by quotes, because it's a string search, so change this:

sqlCommand.CommandText = " select CaseFileNumber from ecms.fingerprint where FingerP like %bytes% "

to:

sqlCommand.CommandText = " select CaseFileNumber from ecms.fingerprint where FingerP like '%bytes%' "

and see if it works. Reply by cereal
Member Avatar
Here is a sample of my code where I retrieve a fingerprint template stored in mysql database. I have stored the fingerprint template as BLOB type. I have a table with two fields or columns, CaseFileNumber and FingerP. I have stored the fingerprint template in the FingerP column and also … Topic by Jim_21 in Software Development
Member Avatar
Topic by cereal in Programming
Hmm, no, here I'm not accepting passwords from users. It's a server side configuration step to connect Solr with MySQL. Solr is a search engine service developed by Apache. Here I'm setting the credentials into a configuration file, named data-config.xml to access the database. This file can store the database … Reply by cereal
Member Avatar
Hello,

I hope not to scare you with this long post. I'm testing [Solr](https://lucene.apache.org/solr/) (read solar) and it works fine. I have an issue with the **DataImport** handler, it's set to get data from a MariaDB database, which works fine if I save the database credentials in plain text in … Topic by cereal in Programming
Member Avatar
Hello,

I hope not to scare you with this long post. I'm testing [Solr](https://lucene.apache.org/solr/) (read solar) and it works fine. I have an issue with the **DataImport** handler, it's set to get data from a MariaDB database, which works fine if I save the database credentials in plain text in … First Post in Topic by cereal in Programming
Member Avatar
Hello,

I hope not to scare you with this long post. I'm testing [Solr](https://lucene.apache.org/solr/) (read solar) and it works fine. I have an issue with the **DataImport** handler, it's set to get data from a MariaDB database, which works fine if I save the database credentials in plain text in … Topic by cereal in Programming
Member Avatar
cereal 1,515 Gave Reputation to pty in Github and Gitlab
Topic by davy_yg in Web Development
git
Github and Gitlab are both companies that do more or less the same thing; they provide a hosted Git service.

The main difference is that Gitlab is open source and you can download and run the [community edition](https://gitlab.com/gitlab-org/gitlab-ce) on any machine you want for free. This is why Gitlab's popularity … Reply by pty
Member Avatar
Featured cereal 1,515 Replied To a Post in What is the difference between 127.0.0.1 and 0.0.0.0
Topic by Reverend Jim in Hardware and Software
Just to support rproffitt's, on Ubuntu 16.04 it redirects to 127::1:

ยป ping -c 3 0.0.0.0
PING 0.0.0.0 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.055 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.029 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.048 ms

--- 0.0.0.0 ping … Reply by cereal
Member Avatar
I have been using my HOSTS file for years to dummy out ad sites by adding entries like

127.0.0.1 www.ukbanners.com

A while back I installed [Unchecky](https://unchecky.com/), a program which automatically unchecks all of those software extras that some installers like to enable by default (like McAfee). Today I noticed nthat … Topic by Reverend Jim in Hardware and Software