This page is a NO-INDEX summary of comments posted in this blog.
Total 849 Comments (2/34 Pages) - Newer Comments - Older Comments
26. 2023-08-27 10:43:09 chris Comments on C++ Function to Compute Numerical Integral Using Function Pointers:
#include
#include
#include
using myFunc = std::function;
//
// definite integral for: interval a,b (with n steps)
//
double integral(myFunc f, double a, double b, int n = 100) {
const double step = (b - a) / n; // width of each small rectangle
double area = 0.0; // signed area
for (int i = 0; i < n; ++i) {
const double & width = step;
const double & height = f(a + (i + 0.5) * step);
area += width * height; // sum up each small rectangle
}
return area;
}
int main()
{
myFunc f =
[](double x) { return cos(x); } // our f(x)
;
std::cout.precision(7);
std::cout << integral(f, 0, M_PI / 2, 10);
return 0;
}
27. 2023-08-24 02:15:22 GishQj Comments on A Simple BASH Script to Search and Kill Processes By Name:
This thing killed my browser and said "Operation Not Permitted" like 2 times. I do not recommend using it. (because if you are logged in as admin it will probably kill something important)
28. 2023-08-11 13:20:05 Andy Globe Comments on What is LLVM? (Low-Level Virtual Machine):
Your effort in sharing this valuable information is truly appreciated. Please continue to provide us with more insightful content in the future.
29. 2023-07-11 10:30:58 ACMer Comments on How to use align-data-move SSE in Delphi XE3 ?:
Thank you very much for this. It has been a while since last time I coded in Delphi.
30. 2023-07-11 10:25:25 Dmytro Comments on How to use align-data-move SSE in Delphi XE3 ?:
// works fine in x86/x64
{$ALIGN 16]
type
Vector = record
case Integer of
0: (dw: array[0..4-1]of Single);
8: (a: Extended); // 10 byte field to use alignment of record field
end;
function add4(const a, b: Vector): Vector;
asm
movaps xmm0, [a]
movaps xmm1, [b]
addps xmm0, xmm1
movaps [@result], xmm0
end;
procedure test();
var
dump: Integer; // 4 byte
a, b: Vector;
begin
a.dw[0] := 1;
b.dw[0] := 1;
a := add4(a, b); // this works
end;
31. 2023-06-17 06:01:58 luqmaan s Comments on Teaching Kids Programming - Max Number of Connected Components in a Directed Graph (Detonate the Maximum Bombs) via Recursive Depth First Search Algorithm:
This is an interesting video tutorial on teaching kids programming. The example of finding the maximum number of connected components in a directed graph using recursive depth-first search algorithm is well explained. It's a great way to introduce graph algorithms and recursion to young learners. Well done!
32. 2023-05-22 21:55:05 ACMer Comments on Bruteforce Algorithm to Find the Unique Positive Integer Whose Square has the form 1_2_3_4_5_6_7_8_9_0 (Concealed Square):
Yes, in Python 3, we need // integer division, or we can convert to int by the int/floor/round function. Thank you!
33. 2023-05-22 20:45:34 Queneau Comments on Bruteforce Algorithm to Find the Unique Positive Integer Whose Square has the form 1_2_3_4_5_6_7_8_9_0 (Concealed Square):
Hi,
seems lack of '/' into line 9 and 10,
replace by
low = int(sqrt(1020304050607080900))//10
high = int(sqrt(1929394959697989900))//10
// are integer division
have nice time with python
34. 2023-04-24 20:43:55 ACMer Comments on 4 Reasons to Upgrade the CloudFlare Free Plan to Pro:
Yes, I have continued the Pro plans and even added one more for one of my domains.
35. 2023-04-24 20:06:43 igre Comments on 4 Reasons to Upgrade the CloudFlare Free Plan to Pro:
risk of hacking... i will buy pro
36. 2023-04-17 09:21:12 FunkyFlo Comments on PHP Function to Check if a String is a Valid Domain Name via Regex:
Thank You!
37. 2023-04-10 04:41:17 Rabi sansu Comments on Introduction to the Discord Cryptocurrency-Lookup-Bot!:
TSS.Eth6Coin is a scam platform. My 134400 USDT is not withdraw. My 6040000 INR stuck in TSS.Eth6Coin BSQ trading app. they asked 150000 tax to release 135000 USDT that showed completed but seek help from Rykabalan on TeleGram and my money was gotten for me . They also guide me to invest with a good company .
38. 2023-04-08 15:49:43 ACMer Comments on Introduction to the Discord Cryptocurrency-Lookup-Bot!:
Sorry for your loss. All Crypto are risky investment so Do Your Own Research before you dive in. And don't put all your eggs in a single basket.
39. 2023-04-08 13:56:39 Sanjay Pal Comments on Introduction to the Discord Cryptocurrency-Lookup-Bot!:
I loss $150k to TSS.Eth6Coin Fake unregulated binary investment after paying several fees to get my funds off that platform still I did not get a penny till I came across on telegram and I got my usdt back to my wallet account and they advice me to stay away from TSS.Eth6Coin
40. 2023-04-01 00:08:10 Mike F Comments on How to Determine the Type of Tree Nodes using SQL?:
would the entry for node 1 be this?
insert into tree (id, p_id) values ('1', null)
41. 2023-03-18 11:21:56 ACMer Comments on The Ubuntu Sub System (New Bash Shell) in Windows 10:
You can use "wsl -l -v" to check the versions of WSL installed on your system.
NAME STATE VERSION
* Ubuntu-22.04 Running 2
42. 2023-03-08 11:54:34 bluesum Comments on Freeware Chinese Chess Updated to 3.0.0.500 using XE8, 32-bit and UNICODE:
Can you share the source code (as GPL 3 license) ?
43. 2023-03-07 19:21:07 ACMer Comments on Freeware Chinese Chess Updated to 3.0.0.500 using XE8, 32-bit and UNICODE:
Nice, thanks!. I havn't used Delphi for a couple of years now...
44. 2023-03-07 18:52:12 bluesum Comments on Freeware Chinese Chess Updated to 3.0.0.500 using XE8, 32-bit and UNICODE:
I tested lazarus (free delphi ) only can do min\max in Parallel
https://wiki.freepascal.org/Parallel_procedures
Tested Delphi 11.2
My game with lazarus of anti Reversi game using parallel 's source
https://github.com/sum2012/sum-gnu-anti-Reversi-lazarus-windows
45. 2023-02-23 14:18:39 Stephane Pitteloud Comments on Set Up 8-bit Ultimate Famicom Game Console - BBG (BBK) - with Keyboard and Floppy Drive - USB Floppy Emulator - NES Game Console:
Hi, I just received a BBG Floppy1, and I'm trying to put some images on a gotek like you did. I can't find something relevant on the web, therefore I ask your help 🙂 Can you provide me some files to put on the usb stick for the gotek and the config file? Thanks!
46. 2023-02-16 12:18:50 ACMer Comments on Find the largest palindrome From the product of two 3-digit numbers:
Another idea is to go through all 6 digit product numbers which are also palindrome. And check if it could be expressed as two 3-digit product.
47. 2023-02-15 02:17:24 Eric Comments on Find the largest palindrome From the product of two 3-digit numbers:
Is there a better algorithm?
48. 2023-02-11 06:04:03 ACMer Comments on Script32: A Freeware to Convert VBScript/JScript/HTA to Executables:
You can CreateObject("WScript.Shell")
In function, you can return the Exit Code, then quit outside the function. For example,
Function Test()
Test = 1
Exit Function
End Function
If Test() = 1 Then
' Quit here
End If
49. 2023-02-11 03:03:47 Tom Comments on Script32: A Freeware to Convert VBScript/JScript/HTA to Executables:
Great tool! using MS Script Control, the WScript object is not available if you use WScript.Echo etc under WSH... So how do you quit your script if you need to inside of a function for example?
50. 2023-01-12 07:49:19 Jack Comments on Why and How to Turn Off Ping (ICMP) for Servers?:
Turning ICMP PING off is stupid.
There is nothing insecure about PING, you can't hack a computer by using ICMP commands.
The only thing you're doing is making it more difficult to trace network & server problems.
Newer Comments - Older Comments
–EOF (The Ultimate Computing & Technology Blog) — 46 words