
I wanted to create a table of contents from the post's heading tags automatically without having to change the headings like adding an id or anchor. I started to look at existing solutions and came across this custom function on Stackoverflow by sjaak-wish function generateIndex($html) { preg_match_all('/<h([1-6])*[^>]*>(.*?)</h[1-6]>/',$html,$matches); $index = "<ul>"; $prev = 2; foreach ($matches[0] as $i => $match){ $curr = ...
ادامه مطلب
Give alteate rows of your tables a different colour ("color") to make it easier for your readers to distinguish which row is which. This article shows one way of doing this using CSS....
ادامه مطلب
And if yes, how can one set certain sets of cores (different in quantity) to different users? ...
ادامه مطلب
My Postfix server was working fine until last days but now, I can't receive emails from outside (I mean with an email of different domain name like gmail for example). I must make notice that I can send email from the server to gmail. From what I have seen, I think that issue may be my iptables rules : # iptables -L Chain INPUT (policy DROP) target prot opt source destination ACCEPT tcp -- anywhere anywhere tcp dpt:ssh ACCEPT all -- ...
ادامه مطلب
I'm struggling to understand a behavior I can't explain in a sample network. Basically I want to be able to switch some of my servers by redirecting to a different server (so that I can point my applications to some database server for example and then switch the database connections to another server without changing the applications). I'm probably going to use something like rinetd for that, but I'm curious why some iptables rules are not working as I would expect. The sample network had 3 ser...
ادامه مطلب
Typically I'm using MikroTik embeded routers, they're basing on Linux so their firewall settings feel pretty much 1:1 the same as iptables, just commands are a bit different but mechanics the same. Some more advance MTK firewall functionality with raw iptables can be achieved using -m extensions - like connection states or comments for example. I can't find disable option in raw iptables. Is there any iptables extension that allows to temporarily disable iptables rules? By temporarily I mean dis...
ادامه مطلب
On my iPhone, there is an app for Google Inbox, where I can swipe messages left or right to archive them or snooze them. Is there a way to get the web version to do the same thing on a touchscreen computer? If it helps, I'm currently using Google Chrome on a Microsoft Surface Pro 4, but I expect that this would be applicable to any touchscreen laptop / tablet running Windows 10. Let's block ads! بخوانید...
ادامه مطلب
I have a database of: File Number, Task Description, Date Completed, Who Completed it. Example: File Task Date Who C1023 Examined Property 01/01/2016 Jack C1023 Typed Property Report 01/02/2016 Sally C1023 Reviewed Report 01/02/2016 Jeff C1023 Sent Report to Client 01/03/2016 Mary C1025 Examined Property 01/02/2016 Jack C1025 Typed Property Report 01/02/2016 Amy C1025 Reviewed Report 01/03/2016 Jeff C1025 Sent Report to Client 01/04/2016 Mary I can figure out how to do report in Crystal where I ...
ادامه مطلب
I've created a bootable usb3 running an encrypted persistence version of the latest kali linux. I've successfully booted up from 2 other machines; 1 running windows 10 and a 2015 razer blade. When I try to boot using my 2016 Razer Blade Pro the install will hang mid boot, freezing the computer forcing me to do a hard shut down. Any idea what's causing this? Let's block ads! بخوانید...
ادامه مطلب
My server is under attacked by exim brute force with a fake ip: 2014-05-31 16:05:09 login authenticator failed for ([my_public_ip]) [178.41.179.50]: 535 Incorrect authentication data (set_id=grey) I have some rules to block the origin 178.41.179.50 ip but no success. I try to block the incoming traffic with fake source with my public ip like this: iptables -A INPUT -i eth0 -s my_public_ip -j DROP But it seem take resolve my public ip to DNS instead.So it does not work. Any help ? Let's blo...
ادامه مطلب
Since I have upgraded Windows 7 Pro to Windows 10 Pro, I notice that Windows would appear unstable immediately after unlocking. It doesn't happen right after a very recent restart, however as time passes by (I normally put it to sleep every evening and leave it running but locked during the day), it get progressively worse. At first, nothing out of ordinary happens - unlock the computer and everything is just the way you left it. Next day, after a night of sleeping, things start to flicker just ...
ادامه مطلب
I have a Samsung S7 for which I bought a 200GB microSD card. I formatted it as adoptable storage (using an adb shell workaround because Samsung has actually disabled the Marshmallow feature by default). Now, I can store all manner of things on it, including about 17GB of music which I manually copied over. However, I want to use DoubleTwist Sync as I have lots of iTunes playlists that don't get copied over when manually copying files. I installed both the DoubleTwist PC app as well as the Androi...
ادامه مطلب
So mine and my partners computer both connect to a wireless network. My partners connection are doing fine. My connections are very unstable. Both computer need to go through the same wifi repeater So computer -> 192.168.10.253 -> 192.168.1.1 -> google.com These are the screenshot of my computer The ping is 500 ms. It's not always like this. I used to connect just fine. I used to play games with low pings. Sometimes I got a strange message as if my computer should connect through a pro...
ادامه مطلب
I am using a Firefox Portable version and I am wondering how can I create multiple profiles? I used pathToFirefoxPortable.exe -CreateProfile profile, which start the firefox, but I don't think it created a profile for me. Any idea how can I achieve this? Let's block ads! بخوانید...
ادامه مطلب
Newbie PowerShell user trying to mess around with some very basic scripts. I've created a hash table with names and IP addresses. $hash = @{"Guy1"="192.168.1.10";"Guy2"="192.168.1.12";"Guy3"="192.168.1.14"} I know how to edit the value of a single entry but I'm not sure how to change one character in each value. How would I go about replacing every 1 (in the third octet) with a 2? Thanks in advance, looking forward to leaing and getting better at this. Let's block ads! بخوانید...
ادامه مطلب
MS Word - How to format numbers in table formulas with apostrophe? I want to format my numbers like that: 19'000 I tried something like that in NUMBER FORMAT dropdown: #'##0 or #"'"##0 There is an error, and nothing is displayed. ...
ادامه مطلب
I'm using httpd service on linux os. My result of iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination DROP tcp -- anywhere anywhere state NEW tcp dpt:http recent: UPDATE seconds: 10 hit_count: 3 name: http_flood side: source tcp -- anywhere anywhere state NEW tcp dpt:http recent: SET name: http_flood side: source DROP all -- 185.103.253.167 anywhere DRO...
ادامه مطلب
Experts: Need an help - i want the excel pivot table to show each logically independent columns next to each other instead of sub level/nested. I can surely create multiple pivot table but would be ending up having 10+. So is it possible and if yes how? (tried google and videos but no help, so finally writing a post) Image of how i want it to look is here : Excel Pivot table Let's block ads! بخوانید...
ادامه مطلب
I have a Borland Delphi 6.0 - 7.0 [Overlay] executable (file.exe) that I want to unpack to examine the contents. This file is from an untrusted source, I believe it to be some type of virus. Currently I have downloaded PEiD to identify the exe file as written in Borland Delphi 6.0 - 7.0. I have downloaded Sandboxie and I was planning on running PEiD unpacking tool whilst in the sandbox. PEiD states that if I choose to unpack the Delphi file that it will execute the file, obviously I don't want t...
ادامه مطلب
I have a tablet with dualboot, android and windows 10. For some reasons (eg. if my tablet becomes stolen), I'd like to encrypt my windows 10 partition. I know truecrypt and veracrypt but they add a bootloader in which I cannot use the touchscreen to enter the password. My windows version is Home then bitlocker is not installed. And I do not want to buy Win 10 Pro just to use bitlocker. Is there any alteative ? I read somewhere, win 10 Home could read bitlocker partition but not encrypt them. Sho...
ادامه مطلب