Posts
 
Reputation
Joined
Last Seen
Ranked #146
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
97% Quality Score
Upvotes Received
180
Posts with Upvotes
153
Upvoting Members
67
Downvotes Received
3
Posts with Downvotes
3
Downvoting Members
3
52 Commented Posts
9 Endorsements
Ranked #207
Ranked #219
~231.49K People Reached
Favorite Tags

351 Posted Topics

Member Avatar for pyeri

I think your discussion actually hits on two key areas - one being the programming work itself and the HR department. I think in any profession there is a tiered level of skill in it - the newer people usually take on the repetitive type roles to ease the workload …

Member Avatar for Reverend Jim
4
263
Member Avatar for Olena_2

Depends on the chain but Blockchains are immutable so it actually makes it very easy to work out - the data is actually public and is never lost. you need to scan through his wallet address transactions and get the FIAT value of each transaction at the time it occurred. …

Member Avatar for Biiim
0
28
Member Avatar for pritaeas

Yes I checked it out since I am pretty familiar with PHP so wanted to know what it was. it's an exploit targetting how PHP handles memory after a crash, the post I was reading, it was replicated on a page that did nothing except print "hello world" on the …

Member Avatar for himanshu777
1
101
Member Avatar for laradavies

I think people spend too much time saying which language is better than the other. Just get programming. most of your questions are flow line related which can be achieved with any language, they have physical strengths that make them better at things - but you can always work around …

Member Avatar for Reverend Jim
-2
45
Member Avatar for Dietrich_3

Sublime text for me, but i tend to just be very basic and use them like notepad++ with a file explorer

Member Avatar for Biiim
4
207
Member Avatar for OpenDesigns

I was involved a bit in the early days of when SEO got big - or at least when we first heard of it - and on the Google Webmaster forums for a year or so. Was around 2010 or 2011 I recall. While people were spinning up articles to …

Member Avatar for shanzysaleem
0
79
Member Avatar for Harlem88

From what i remember it's to do with the speed the browser renders the page. If you say "defer" you are telling the browser this script is not needed to render the page - so it can load this script after the page loads. If that script is used to …

Member Avatar for Biiim
0
52
Member Avatar for patk570

Sounds like the standard cluttered well established CRM becoming hard to maintain due to the massive amounts of "we need something so we can.." "we need a new section for..." I'm currently learning Laravel myself so I can definitely say it is the way to go forward with PHP. Make …

Member Avatar for Biiim
1
81
Member Avatar for Norm_3

I think you are being stumped by the security restrictions of client side browser javascript writing to disk. I assume you are trying to make some lightweight portable app, since you are not using a database. you could try a very simple python app that exposes an API to store …

Member Avatar for Biiim
0
119
Member Avatar for Mr.M

I was looking at [https://threejs.org/](https://threejs.org/) that looks pretty powerful. I think making a 3D object(as in it's full sense - a complete 3d model) is a bit out of scope for raw Javascript & CSS in a HTML page - sure you can make 3D images and geometric objects but …

Member Avatar for Mr.M
2
145
Member Avatar for Grace_26

Well I hate wordpress and for the specs you have given I would say use wordpress, wordpresses main strength in the day was hosting articles. Wordpress is only a problem when you need to add in some custom solution that wordpress has no functionality for, which was a lot when …

Member Avatar for mpt.x
1
87
Member Avatar for John_434

you could use any database or even a text file for this. I have written the concept of redis style logic below. The $cached_data needs to actually be a text file or from a database. Redis is an in-memory database so it empties when it turns off and on - …

Member Avatar for Biiim
1
69
Member Avatar for Joshua_54

> A few things I'd love input on: > > Has this been implemented in any programming language / library, and does it offer any computational advantage over standard schoolbook multiplication? > Is this used anywhere in practice — education, mental math training, or elsewhere — beyond being a visualization …

Member Avatar for rproffitt
0
46
Member Avatar for SCBWV

I saw this topic and I can't help but comment. I use AI all the time now - I used to go to Google with my questions but now I go to one of the AI's for any question. I was pretty skeptical of "AI doing all the programming and …

Member Avatar for rproffitt
3
156
Member Avatar for QuiltedAnger

Your script is not calling SendMail, that code just declares a function called SendMail - likely the actual email sending code is a separate PHP file called send_email.php or something like that. When the major Email Service Providers (ESP's) a few years back started implementing that you MUST have DKIM, …

Member Avatar for Biiim
0
50
Member Avatar for QuiltedAnger

it is `while(true)` and `.length` I believe [W3schools JS Loop](https://www.w3schools.com/js/js_loops.asp) you can do it in vanilla JS as well but I was using jQuery mostly, in jQuery it was `$.foreach(arr, function(k,v){});` JS has a built in function called `setInterval` which would likely be good for your game timer - you …

Member Avatar for Biiim
0
43
Member Avatar for QuiltedAnger

That looks like PHP not JS: <?php echo 'Your Items:'; foreach($loot as $k=>$v){ echo $v['item_name'].'-'.$v['other_field']."<br/>\r\n"; } ?> It is probably PHP, since JS doesn't usally connect to the database unless you are using nodeJS or some back-end implementation of javascript. I'd have to look up the syntax for JS since …

Member Avatar for Biiim
0
25
Member Avatar for complete

> Now, here is the bug. After a new user account is registered and the new user logs in, the web page is a mess. It looks as if the iframe nests an entire website so that it produces a look where the whole webpage has two navigation bars. I …

Member Avatar for Biiim
4
66
Member Avatar for Dani

Observation, see what is there, find out the facts - truth, understand it and then get it to do what is wanted. Pretty simple. If it's not working and you don't know why, you're missing some understanding - so find out what it is and miraculously you have no problem …

Member Avatar for jkon
2
162
Member Avatar for strangeday

> (Continued) (frustrating .. it's not letting me send links?) > There are also the open source astrology databases that are free, and again, this would be just like purchasing it. The buttons and the rendering are the 'easy' part, it seems to me. This could also be done in …

Member Avatar for Biiim
2
151
Member Avatar for eservices

I felt like some fun, so I just put together an example for you using CDN's and bootstrap 5. From what you are talking about you probably want to put some of that logic into the Javascript and not need to send a server request for each one, I usually …

Member Avatar for wrteam
0
107
Member Avatar for ianhaneybs

Since Dani did the best standard-correct answer I will do the botch-job answer: $('table#list tfoot .grand-total').text('£'+parseFloat(grand_total).toLocaleString('en-gb', {style:'decimal',maximumFractionDigit:2})); $('[name="amount"]').val('£'+parseFloat(grand_total)); may also want to use &pound; to display in html, but you need £ to display in basic text elements like <input> Also a simple trick to format currency is times it …

Member Avatar for gottaloveit
0
118
Member Avatar for juan_35

Emailing became more restrictive in the last year, so when you have a PHP server with no emailing setup the emails often fail completely now as there is so much wasted bandwidth on spam emails that these get turned down instantly. I solved it on my hosting with the [PHPmailer](https://github.com/PHPMailer/PHPMailer) …

Member Avatar for Biiim
0
516
Member Avatar for Mr.M

This is what i'm using for AJAX requests - it needs jQuery: var data = []; data.var = 'test'; $.ajax({ type: "POST", data: {data:data}, url: connectProtocol+"://"+currentHost+"/linkToAjaxFile.php", success: function(msg){ responseData = $.parseJSON(msg); console.log(responseData); if(responseData['status'] == 'success'){ //do something $('#someModalWindow').modal('hide'); }else{ alert(responseData['message']); } } }); I guess the direct answer would be …

Member Avatar for Dani
0
494
Member Avatar for Mr.M

Normally you would use the value property as well, I have actually never seen the id attribute being used like that before. <select class="form-control select2" style="width: 100%;" id="managsel"> <option value="" SELECTED>Select Department</option> <option value="opa">Accountant</option> <option value="opb">Training</option> <option value="opc">Operations</option> <option value="opd">IT</option> </select> and then in vanilla JS just use something like …

Member Avatar for Biiim
0
267
Member Avatar for rasputin009

Here's the code I've been using for about 15 years now - but a bit more simplified: function dbConnect($type = ''){ $conn = mysqli_connect( DBHOST, DBUSER, DBPASS, DBDB); if (!$conn) { echo "Error: Unable to connect to MySQL." . PHP_EOL; echo "Debugging errno: " . mysqli_connect_errno() . PHP_EOL; echo "Debugging …

Member Avatar for Biiim
0
116
Member Avatar for ianhaneybs

You got a `GROUP_CONCAT()` in the SELECT statement so the query will group everything as one, since no GROUP BY was specified. You don't want GROUP_CONCAT anything in tblorders if you want to view all the orders for that Customer. Add to the bottom after the WHERE clause: `GROUP BY …

Member Avatar for gottaloveit
0
115
Member Avatar for SolidSolutions

Wheres the function! function checkLastChar(string){ return string.charAt(string.length-1); } console.log(checkLastChar('testing')); function removeTrailingDot(string){ if(string.charAt(string.length-1) == '.'){ return string.slice(0, -1); }else{ return string; } } console.log(removeTrailingDot('something.')); console.log(removeTrailingDot('something')); If you find yourself repeating the same code your doing it wrong. Probably not an absolute truth but it is a pretty workable rule.

Member Avatar for Biiim
0
5K
Member Avatar for david.tigner

In your code where you write `mail($to,$subject,$message,$headers);` if you want to get error messages or "do something if it fails" you need to alter it a bit to something like: if(mail($to,$subject,$message,$headers)){ //if successful do something }else{ //if error do something else } //or var_dump(mail($to,$subject,$message,$headers)); //or $tmp = mail($to,$subject,$message,$headers); var_dump($tmp); I …

Member Avatar for Dani
0
474
Member Avatar for nander

logically, it would be because `WHERE variable_name = :variable_name` matches 1 row in your table maybe try a `var_dump(str_replace(':variable_name',"'some_value'",$sql));var_dump($records);`? run the sql on whichever way you use to access your DB directly I don't use PDO so i'm not too familiar on how it returns results, either way you will …

Member Avatar for Chris_103
0
198
Member Avatar for Dani

I realise this has been marked as solved, but I wanted to make it known that the HAVING clause runs on the returned result set of your query, which as you say has no indexes on it as it is just a temporarily created result set - but has the …

Member Avatar for toneewa
0
1K
Member Avatar for jayashree10

1. Your Hosting server (CPU, RAM, HDD) 2. Your Hosting server's internet bandwidth 3. Your Client computer(CPU, RAM, GPU, HDD) 4. Your Client computer's internet bandwidth Check the size of the files in your browsers developer tools - Network - should tell you how long it takes to download and …

Member Avatar for Biiim
0
110
Member Avatar for jayashree10

if you use javascript, or any programming language, you can cut out a lot of processor time by being smart in the program logic. eg. if you do a loop, work out data you can before the loop eg. $.each(myArray, function(item){ var now = moment(myDate); //do something with now }) …

Member Avatar for Biiim
0
95
Member Avatar for FarrisFahad

You can use an anchor tag still just use href="javascript:" so it doesn't do anything on click. <a href="javascript:" onclick="loadMore(this, '.Memes', 'ex/more.memes.php');">Load More Content</a> It will get some default styles added to it, so you might want to add style="text-decoration:none;" and overwrite the other defaults for an anchor tag. I …

Member Avatar for Dani
1
185
Member Avatar for tarun Nagar

Only ever heard of POST and GET. The others either have no use or is very specialised. a GET request puts the variables in the URL link - so the data is very visible. a POST request puts the data hidden in the headers of the request You use GET …

Member Avatar for Gulshan_6
0
189
Member Avatar for borobhaisab

How does this work for you? foreach($test as $v){ if (strpos($v, '_point') !== false) { echo $v; } } I didn't test it

Member Avatar for Dani
1
179
Member Avatar for borobhaisab

I use bcrypt passwords which look exactly like that. The first part of the string says how complex the hashing is, then followed by the salt then the hash. It generates completely different each time so you have to evaluate it with the verify function each time. Its designed to …

Member Avatar for Biiim
0
461
Member Avatar for riccardo.farabi

> I have this number 1726.16723958045672098127. How Can I register in my db MySql. Why is the number truncated? should be a column type decimal, DECIMAL(24,20) would store the number you just mentioned without truncating. 24 - how many digits in the number 20 - how many digits are after …

Member Avatar for riccardo.farabi
0
205
Member Avatar for larry29936

This should be what you are looking for: <div style='overflow-x:hidden;max-width:800px;'></div> Use bootstrap if it's not too complicated for you to get it set up. Bootstrap is very good [Bootstrap 5 Columns](https://getbootstrap.com/docs/5.0/layout/columns/) Bootstrap makes it responsive and is fully mobile compatible, so they stretch to fit the screen size and you …

Member Avatar for mtyide
1
915
Member Avatar for Intan Farizatul

I just use curly brackets around the variables, and you don't need \` marks in the array reference later on. You also want to screen the GET input to make sure someone isn't going to drop your database. I also try not to use key words for table names, like …

Member Avatar for Biiim
0
339
Member Avatar for Mr.M

a bit messy but you could use a subquery to filter it out, something like: SELECT user_id, message_time, status, message, `etc` FROM `table` t LEFT JOIN (SELECT user_id, MAX(message_time) last_message FROM `table` GROUP BY user_id) `sub_table` st ON t.user_id = st.user_id AND t.message_time = st.last_message WHERE st.user_id IS NOT NULL …

Member Avatar for Biiim
0
182
Member Avatar for KirovEli

If I was doing it I would use Google Analytics but if you really need to do it manually for your project you basically have to set up a database with a programming language - like PHP - that writes into the database when a user does a specific action …

Member Avatar for Arun_47
2
384
Member Avatar for emsanator

Missing a `</div>` at the end Document.getElementById("item_variation_size").innerHTML += '<div class="custom-control custom-control-inline custom-control-size mb-2"><input type="radio" class="custom-control-input" name="sizeRadio" id="sizeRadio_' + itemData.item.v.variationData.sizes + '" value="' + itemData.item.v.variationData.sizes[i] + '" data-toggle="form-caption" data-target="#sizeCaption"><label class="custom-control-label" for="sizeRadio_' + itemData.item.v.variationData.sizes[i] + '">' + itemData.item.v.variationData.sizes[i] + "</label>";

Member Avatar for Biiim
0
137
Member Avatar for timlab55

PHP is a server side script. It is a module attached to a web server, it takes the code and "Pre-processes" it and outputs the result hence PHP (Pre- Hypertext Processing or Hypertext pre-processor). The code executes linear, from top to bottom. The script dies if it hits a fatal …

Member Avatar for Biiim
0
122
Member Avatar for Member #1220283

This is a bit of a bootstrap question really, I hashed together a quick idea of what you could do. Keep in mind the concept behind bootstrap is RESPONSIVE - so you don't want to start defining exact sizes for the images etc as it scales with mobile devices and …

Member Avatar for ishu_1
0
258
Member Avatar for rabbit07

also could be `mysqli_fetch_assoc` instead of `mysqli_fetch_array`. `mysql_fetch_array` may not return the associative column names as the key values

Member Avatar for Biiim
0
515
Member Avatar for Battlecode10

function newgame() { writeOutput("I'm thinking of a number between 1 and 100..."); var answer = Math.floor(Math.random() * 100 + 1); var guessCount = 0; // TODO: use the randomNumber function to pick an answer for this game. } You need to remove the "var", this makes the variables local inside …

Member Avatar for Biiim
0
153
Member Avatar for cosmo13

My guess on it saying "Your Password is Incorrect!" is that when you refresh a page that has been "post"ed to it will ask if you want to confirm resubmitting the form data, if you say yes it will send the post data again. Otherwise based on your code it …

Member Avatar for Biiim
0
195
Member Avatar for Pocokos

The way I would do that is to have an array that stores the ID's of played songs then shuffle through finding the songs that have not played yet. I added the concept in jQuery as that is what I used to do it in my projects. var played_songs = …

Member Avatar for Biiim
0
189
Member Avatar for darkbox

Check out momentJS, I use [momentJS](https://momentjs.com/) for anything date & time related. You include the JS file in a script tag `<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment-with-locales.min.js">` you generally put this inside the `<head>` tag Then put the actual script AFTER the html divs where you want to do the conditional, as the …

Member Avatar for Biiim
2
420

The End.