« first day (3288 days earlier)      last day (814 days later) » 

 
5 hours later…
6:04 AM
0
Q: How to check JS data types by define a single method similar to C# Extension Methods?

RadmehrHow to check JS data types by define a single method similar to C# Extension Methods? Single method for all types in JS. For example, similar to this method with prototype. Object.prototype.isType = function (type) { return (typeof this === type); }; const var1 = {}; const var2 = "string"; ...

0
Q: C++ how to get spesific values from a JSON-like text file?

Tolga Dogan I have a .txt file that contains hundreds of book information. (The image shown is only one of them, it has multiple line of same info with different datas in the same .txt file) I only want to check for "unigramCount" values and find the top 3 most frequent words. So the program should look for...

-2
Q: While installing NASM on Windows, error: ‘osfname’ undeclared (first use in this function)

chrisdwellsI'm trying to install NASM on Windows, using Cygwin. I downloaded nasm-2.15.05.zip from https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/ , and unzipped. Following the README file, I ran sh configure, which seemed to work OK, but then when i run make, I get: In file included from nasmlib/file.c...

 
7:26 AM
const fs = require('fs')

let data = ""
fs.readFile("./static/file.json", 'utf-8',(err, file) => {
if(err){
console.log("Unable to read file.");
console.log(err)
}
else{
const data = file
}
})
console.log(data)
 
1 message moved from JavaScript
 
I am trying this code but it does not returns anything;

const fs = require('fs')

let data = ""
fs.readFile("./static/file.json", 'utf-8',(err, file) => {
if(err){
console.log("Unable to read file.");
console.log(err)
}
else{
const data = file
}
})
console.log(data)
 
1 message moved from JavaScript
 
7:46 AM
0
Q: dogecoin: error: couldn't connect to server: unknown (code -1)

Patrick CollinsI'm running a node with: dogecoin -daemon And when I run: dogecoin-cli getblockcount I get an error: error: couldn't connect to server: unknown (code -1) (make sure server is running and you are connecting to the correct RPC port) What is going on?

-1
Q: How to see dogecoin node logs?

Patrick CollinsI have a doge node running using: dogecoind -daemon And it looks like I'm unable to connect to the http port. Where can I see the logs?

 
8:09 AM
-1
Q: Create container without Bash

El Yousfi RachidI start using Digitalocean Kubernetes, and I would like to know if there is any way to create containers without using terminal each time, just with python code or PHP. otherwise what is the best option thank you

 
8:25 AM
0
Q: Trouble with variable declaration and assigning in conditional statements (Python)

Ashton ScottI'm currently writing some code for a project of mine, though I have been stuck on this for a good bit and It's getting to me. The idea is to have some code that will show the users previous input, ask them to validate it and see if what they typed is correct than proceed according to a 'yes' or ...

-4
Q: Page refresh after only a specific product is added to cart, woocomerce

Hussain ShahI want to refresh the page after a specific product is added to cart i.e (productid:2347 is added to cart then page reload) My website is https://Peshawar.speckpro.com. I have 3 deluxe bowls Chicken deluxe bowl Beef Deluxe Bowl Seafood Deluxe Bowl. when I select an add-on and add it to the cart ...

-4
Q: functioning of \n in python3

Gianfranco Marcocciai'm new in programming so maybe this question is a easy one for you all :) So as you can see in the code, when i print the messages it prints each message with the correct function of \n , but when i take all the messages and create a new one that has all of them called "totalMessages" when i pri...

 
 
2 hours later…
delete -----^
 
 
2 hours later…
 
2 hours later…
 
3 hours later…
9:37 PM
ahem
 

« first day (3288 days earlier)      last day (814 days later) »