-
Replied To a Post in mysql base64 decoding?
The reason I ask is because something we use here at DaniWeb is: // Convert from Base 10 to Base 36 function encrypt_id($id = 0) { return base_convert($id, 10, 36); … -
Replied To a Post in PHP and MYSQL: unable to update records in database.
I suspect it's failing because of a 500 error. Line 14 has $$key instead of $key. That's probably a typo. Also, that loop doesn't do anything since you're not passing … -
Replied To a Post in mysql base64 decoding?
> Is there a better way to python-encode data that's consistently reversible using mysql for processing? I suppose the first question I would ask is *why* does the data need … -
Began Watching mysql base64 decoding?
Hey! I've been asked to store some data from a client in mysql in an encoded format using python. Nothing could be easier, right? I will later need to decode … -
Edited How would you write this into pseudo code?
How would you write this into pseudo code #include<cstdio> #include<cstdlib> #include<iostream> using namespace std; int main(int nNumberofArgs, char* pszArgs[]) //variables string var, var1; float cm, mile, kilometer, inch, meter, AU, … -
Replied To a Post in AI + Micro Transactions + Big Data = A Perfect Dystopia?
This sounds to me like [Rehoboam](https://westworld.fandom.com/wiki/Rehoboam) in Westworld Season 3. -
Began Watching AI + Micro Transactions + Big Data = A Perfect Dystopia?
**Step into a future where every action has a price and algorithms decide your societal value: As technology evolves at an unprecedented pace, this dystopian vision postulates that our every … -
Liked / Shared AI + Micro Transactions + Big Data = A Perfect Dystopia?
**Step into a future where every action has a price and algorithms decide your societal value: As technology evolves at an unprecedented pace, this dystopian vision postulates that our every … -
Liked / Shared AI + Micro Transactions + Big Data = A Perfect Dystopia?
**Step into a future where every action has a price and algorithms decide your societal value: As technology evolves at an unprecedented pace, this dystopian vision postulates that our every … -
Liked / Shared AI + Micro Transactions + Big Data = A Perfect Dystopia?
**Step into a future where every action has a price and algorithms decide your societal value: As technology evolves at an unprecedented pace, this dystopian vision postulates that our every … -
Liked / Shared AI + Micro Transactions + Big Data = A Perfect Dystopia?
**Step into a future where every action has a price and algorithms decide your societal value: As technology evolves at an unprecedented pace, this dystopian vision postulates that our every … -
Replied To a Post in PHP and MYSQL: unable to update records in database.
Can you try adding a bunch of debug code to this? Firstly, after line 10, try echo'ing out something like: echo "ID found: " . $_POST['id']; Perhaps the entire block … -
Began Watching PHP and MYSQL: unable to update records in database.
Hey guys, so I've been trying to create a website that allows users to update and delete records through the database I've set up in SQLyog. In my update confirmation … -
Edited grep result append problem
#!/bin/bash v="test" result=`grep 'Dir=' /home/xtend/Videos/file.ini | cut -d'=' -f 2`; foo="$result" foo+="$v" echo $foo answer expecting(/home/file/test) answer getting(teste/file) (In "/home/xtend/Videos/file.ini" "Dir=/home/file/") ... how it is outputing like this? -
Replied To a Post in Confused by JS async for script tag in HTML head
I have a slightly different attitude towards this stuff than you have. I honestly don't care at all about achieving 100% in PageSpeed Insights. To me, those are just numbers … -
Replied To a Post in Confused by JS async for script tag in HTML head
Also, I thought about it some more, and I'm leaning towards *not* switching from async to defer for the Google Ad Manager tag. Firstly, when I tried adding it and … -
Replied To a Post in Confused by JS async for script tag in HTML head
> That's great (it would be even greater if you had to files for the critical css that loads with the page and one for the non critical (e.g. hover) … -
Replied To a Post in Confused by JS async for script tag in HTML head
> One of the things I find so difficult when it comes to trying to figure out what works best is that no two page requests are the same. Exact … -
Replied To a Post in Confused by JS async for script tag in HTML head
One of the things I find so difficult when it comes to trying to figure out what works best is that no two page requests are the same. I tried … -
Replied To a Post in Confused by JS async for script tag in HTML head
My last post was from my mobile phone, so here's a more thought out response: > In my opinion it is extremely useful to create a Tracker js function object … -
Replied To a Post in Confused by JS async for script tag in HTML head
Also, we don’t have a lot of trackers or third party JS on DaniWeb. Just Google Analytics and Google DFP (ad server). Just those two above. That’s all. Which leads … -
Replied To a Post in Confused by JS async for script tag in HTML head
That makes a whole lotta sense. What about Google ads? This goes in the document header: <script async src="https://securepubads.g.doubleclick.net/tag/js/gpt.js"></script> <script> window.googletag = window.googletag || {cmd: []}; googletag.cmd.push(function() { googletag.defineSlot('/86406173/ArticleLeaderboard', [[970, … -
Gave Reputation to jkon in Confused by JS async for script tag in HTML head
> How does the page know not to call any of the gtag() calls until after the async JS has completed loading? Short answer , it doesn't . What you … -
Created Confused by JS async for script tag in HTML head
The Google Analytics javascript tag we use in our HTML <head> is: <script async src="https://www.googletagmanager.com/gtag/js?id=G-3BQYMGHE7E"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-3BQYMGHE7E'); </script> Then, … -
Began Watching Confused by JS async for script tag in HTML head
The Google Analytics javascript tag we use in our HTML <head> is: <script async src="https://www.googletagmanager.com/gtag/js?id=G-3BQYMGHE7E"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-3BQYMGHE7E'); </script> Then, … -
Replied To a Post in Upgrading our platform
OK, all updated! Let me know if you spot any issues or things that don't seem to be working the way they're supposed to. -
Replied To a Post in Hi everyone, I'm Cornelius89
What are your interests? Is there a specific web development language or set of technologies you’re focused on learning right now? -
Began Watching Hi everyone, I'm Cornelius89
I'm newbie in this industry but I'm willing to learn the fastest way is possible and to learn others when I'm going to be good on web development -
Replied To a Post in how about odoo development, is worth to do
A little bit late but ... My googling shows the opposite. I'm seeing that Odoo developers are high in demand because there are more job offers than people with the … -
Began Watching how about odoo development, is worth to do
is ok to focus ? -
Replied To a Post in Upgrading our platform
Thank you! P.S. This is not just a thank you but also a test of the new system in the development environment. -
Created Upgrading our platform
We are in the process of upgrading both the version of Codeigniter PHP framework we are using, as well as the version of PHP we're on. We are just putting … -
Began Watching Upgrading our platform
We are in the process of upgrading both the version of Codeigniter PHP framework we are using, as well as the version of PHP we're on. We are just putting … -
Replied To a Post in Assigning "Usage" DB Permissions, Postgres
I'm a fan of the [Percona flavor of MySQL](https://docs.percona.com/percona-server/8.0/index.html). DaniWeb used to do a lot of work with Percona back when they were a small startup and I had the … -
Began Watching Assigning "Usage" DB Permissions, Postgres
More programming fun! OK this time around I'm trying to create a table with the statement, CREATE TABLE tablename ( recnumber SERIAL PRIMARY KEY, recordvalues VARCHAR ( 500 ) NOT … -
Replied To a Post in simplehtmldom Failing
> Do you mind removing my confusion which I asked Dani ? Hi, Sorry about the long hiatus. Do you still have a question here? -
Began Watching simplehtmldom Failing
Hello, I do not understand why the simplehtmldom is failing. This is the code: <?php ini_set('display_errors',1); ini_set('display_startup_errors',1); error_reporting(E_ALL); //--- include_once('simplehtmldom_1_9_1/simple_html_dom.php'); //--- $url = "https://victoriousseo.com/sitemap_index.xml"; $html = new simple_html_dom(); $html->load_file($url); //-- … -
Edited How to use Numlock in VB 6 for design a tiny calulate project
Dim s, op, op1, op2 As String Private Sub cmd0_Click() s = s & cmd0.Caption txtresult = s End Sub Private Sub cmd1_Click() s = s & cmd1.Caption txtresult = … -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and … -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and … -
Undeleted a Post in Hi everyone, My Name is Somsak and I'm a SEO-Specialist
**Dear members of Daniweb.com,** Allow me to introduce myself: I'm **Somsak Döppers**. With extensive expertise in WordPress, PHP, web design, Python, MySQL, and SEO since 2007, I serve as a … -
Replied To a Post in As a coder how do you know when to split a source segment off into a lib?
I code in PHP with MVC architecture. Each model and controller are their own class and there is one per file. Views are PHP templates, also one template (which typically … -
Began Watching As a coder how do you know when to split a source segment off into a lib?
I'm working on an application, certainly not my first. Some aspects of my coding background are quite informal, for example I have only a rudimentary understanding of source code repositories. … -
Replied To a Post in How to increase traffic fast
Share it on your social media (Facebook, etc.) with friends and family and get their input on it. -
Began Watching How to increase traffic fast
I have built a website and I want it to rank now what I should start work with first? -
Edited How to increase traffic fast
I have built a website and I want it to rank now what I should start work with first? -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and … -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and … -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and … -
Liked / Shared This Halloween: Are You Brave Enough to Face Roko's Basilisk?
**Warning: This article discusses theories concerning A.I. advancement that might be disturbing for some readers. Please only read if you are comfortable exploring potentially disquieting scenarios surrounding artificial superintelligence and …
The End.