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('/]*>(.*?)/',$html,$matches); $index = ""; $prev = 2; foreach ($matches[0] as $i => $match){ $curr = $matches[1][$i]; $text = strip_tags($matches[2][$i]); $slug = strtolower(str_replace("--","-",p...
ادامه مطلبThis article answers a question from a visitor on how to display a sentence so that small (lowercase) letters are shown in capital letters, but have a height shorter than the actual capital (uppercase) letters....
ادامه مطلببخوانید I try to set a root password as follows: mysqladmin -u root password "root"; Then I make a coection to my MySQL server, the following command: mysql -u root -p Enter password: **** enter image description here...
ادامه مطلبI have a machine that has been damaged by some careless couriers, and want to replace the damage parts efficiently. I have limited opportunities to test components in other computers, so I'm trying to find out what is broken in other ways. I have two main issues: Graphical artifacts. These take the form of small grid-aligned squares which usually appear and then flicker form position to position. If the display driver doesn't crash, they often settle down to a final position, and sometimes the c...
ادامه مطلبHow to configure CIFS that local and domain users have fast transfer speeds? I do have massive performance issues using CIFS / SMB / Samba in combination with users. It's independent from Active Directory (AD) being enabled or disabled. Local as well as domain users transfer data really slow. There as guest user is fine. However I'm not able to figure out that causes the bottleneck for authenticated users? And how to configure samba to avoid the problem? CIFS / SMB Transfer Speeds User ---------...
ادامه مطلبNowadays in my classroom I show video tutorials that I made for my students related to CG-apps, Excel, etc. using a utility that shows keyboard and mouse combinations named Moukey. for some cases like on a projector in the classroom it doesn't detect my Windows 10 and I don't want to call the technician. Also, I mostly like using OSX (of my dual boot MAC), sometimes and I'm looking for an OSX El Capitan version of this Key and Mouse Stroke Displayer. In conclusion, I'm looking for an OSX Version...
ادامه مطلبUsing command prompt, how can I change my Gmail address useame on my local account back to Microsoft. It doesn't let me sign in. You see my Gmail address but when I put my password in, it said to change my Microsoft password to sign in. But it's not a Microsoft account. Somehow I ended up with my Gmail address as my sign in local account. I also don't see the option of changing my useame. I can only sign in as a built-in administrative. Let's block ads!...
ادامه مطلبI am preparing a sizable document in Microsoft Word 2013, and I want to use the MS Word functionality for references. Imagine I have a book that the bibliography, Chicago Style, looks like this: Fletch, Fletch F. 1985. *Important Quotes.* Los Angeles: Fake Publisher. I want to do a footnote citation automatically with MS word. It should look like this one that I entered manually: However, when I click "Insert Footnote" then "Insert Citation", it just sticks an inline-citation in the footnote. Ve...
ادامه مطلبHow are local ports determined The port number is chosen by the TCP implementation software from a range of port numbers called Ephemeral Ports. The exact mechanism for choosing the port number and the range to be used is Operating System dependent. Is there a way of forcing it to be 63999. Not without reprogramming the TCP implementation software. The Ephemeral Port Range A TCP/IPv4 coection consists of two endpoints, and each endpoint consists of an IP address and a port number. Therefore, whe...
ادامه مطلببخوانید And if yes, how can one set certain sets of cores (different in quantity) to different users?...
ادامه مطلبI have a VM with Remote Desktop access enabled. It runs a regular Windows 8.1 Pro setup. I want to be able to login on my laptop without having to create and login to a local account before I can do that. The laptop has Windows 8.1 Pro installed. Basically when I tu on my laptop I want to enable a screen with IP/Computer, Useame and Password. I would then use the VM RDP settings to login. Is that possible? I'm just a desktop user I don't have AD, a Windows server or anything like that configured...
ادامه مطلبMy site http://iosre.com is built upon discourse. It remains unreachable after setting up fail2ban. I've asked the question on their official forum, but their staff said it may be a general server problem and suggested superuser. I guess my website may be under attack, but since I'm not a server expert, I have no idea what to do the fix or track down the problem. Any ideas? Thanks! Let's block ads!...
ادامه مطلببخوانید Is that possible? Would it be possible to simply run the 1600 MHz module on a slower speed (e.g. 1333 MHz)?...
ادامه مطلبMy environment is like: I have two users 'user1' and 'user2' both are in same group(say group name is 'abc') in server 'server1'. Now I have another server 'server2' which have user 'user2'. user2 in both the servers are exchanged their public keys (I mean to say authentication configured properly). Now requirement is like : I have to perform a copy operation on server2 (both source and destination folders are in server2 only) from server1 as user2(because identity file configuration done succes...
ادامه مطلبI have a couple of DB servers that each run a RemoteApp that users launch to access said DB. The problem is that the application itself does not always exit gracefully when the user ends it, which leaves a remote session open and the user is unable to access said app again. What I am trying to create a script that would terminate any current existing coection to each specific server (i.e. Script A would terminate for RemoteApp A, Script B would terminate for RemoteApp B). Not sure if it adds an ...
ادامه مطلبI created the follwing service file in ~/.config/systemd/user to backup my work data when I'm logged in at work. [Unit] Description=Backup Work Related Files [Service] Type=oneshot ExecStartPre=/usr/bin/ping -c 1 -W 1 xxx ExecStart=/usr/bin/rsync -avzuhH --progress --delete --exclude=.Trash-1000 /some/folder/ xxx@xxx:Documents/backup ExecStart=/usr/bin/rsync -avzuhH --progress file xxx@xxx:Documents/backup/file I can find the service with systemctl --user list-unit-files and I can also start the...
ادامه مطلبI share a house with friends and one of them is very selfish, constantly downloading, streaming music and playing computer games at the same time. How can i cap his devices so the rest of us can use it for normal use? Extra Details We use a Netgear Router On Virgin Broadband P.S I have fair knowledge on Computers and programming but not with networks and server, I am happy to lea how to do this just want a pointer as I am lost when looking on google. Let's block ads!...
ادامه مطلبUse it in what capacity? Custom PCB design is out of scope for Superuser –Ramhound 1 min ago Sorry, this is totally off-topic here, and a very vague question to boot. It might be on-topic on electronics.stackexchange.com , if you describe in detail what you want to do, and where you are having problems. –sleske 31 secs ago Let's block ads!...
ادامه مطلبI'm playing around with my fresh Windows 2012 R2 VM and am following this guide to convert it to a 'workstation'. I have network discovery on and all the other advanced sharing settings necessary on my server-tued-workstation. I have a Win 8 VM that is hosting a shared folder and my win 10 machine that's hosting a shared folder. The majority of the time, I'm able to access the shared resources. The problem I've run into is that if I restart my Win2012 VM, my mapped coections break. I run into "T...
ادامه مطلبI have a pair of earbuds with a microphone that I would like to record with instead of the terrible inbuilt one. Unfortunately, when I plug it in it still uses the inbuilt one. The icon next to the jack indicates that it is speaker and microphone, and the end of my audio jack does have four rings. The microphone works fine on my Android phone, so I know it isn't the earbuds' fault. I remember when I first plugged them, there was a dialogue menu that asked what I wanted to coect it as, and I sele...
ادامه مطلب