Jump to content

Alef

Member
  • Posts

    33
  • Joined

  • Last visited

Everything posted by Alef

  1. Wow, I was so close I tried removing "+" from the expression thinking it might affect it, but never did try removing brackets. Thank you for your help
  2. I am trying to split a string on a matched regular expression but its not behaving as intended. It splits in weird spots. While if use the str.match function with the same regular expression it finds all the things I want to split on. So I am kind of baffled to whats going on. Trying to split using following expression. This matches for example "74017 - SOFE 3850U", "74019 - SOFE 3850U", "74020 - SOFE 3850U" ........ /([0-9]{5})+\s+-+\s+([A-Z]{3,4})+\s+([0-9]{4})+U/g Sample of the data I am attempting to split on using the regular expression above 74017 - SOFE 3850U,Lecture,11:10 am,12:30 pm,T,Lecture,11:10 am,12:30 pm,R,Lecture,74019 - SOFE 3850U,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,74020 - SOFE 3850U,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,12:40 pm,3:30 pm,W,Laboratory,74021 - SOFE 3850U,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,74283 - SOFE 3850U,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,12:40 pm,3:30 pm,T,Laboratory,74285 - SOFE 3850U,Laboratory,12:40 pm,3:30 pm,R,Laboratory,12:40 pm,3:30 pm,R,Laboratory,12:40 pm,3:30 pm,R,Laboratory,12:40 pm,3:30 pm,R,Laboratory,12:40 pm,3:30 pm,R,Laboratory,12:40 pm,3:30 pm,R,Laboratory,74022 - SOFE 3850U,Tutorial,2:10 pm,3:30 pm,M,Tutorial,74023 - SOFE 3850U,Tutorial,8:10 am,9:30 am,M,Tutorial EDIT: Found a suboptimal solution by using str.replace first then str.split. I was able to do "somestring".replace(regex, "^") then split on "^" . Still want to know why the split function inst working as intended though.
  3. Using LVM Check, dm-crypt Check, Samsung SSD check, Kernel 5.1 nope, running 4.9. Thanks for the heads up, could of been affected by this if I decided to update to a more recent kernel.
  4. I would avoid that cpu, while it may be powerful it's designed for multi socket systems, often quad cpu's. Which won't helpful with minecraft unless your running many servers. Also good luck sourcing a motherboard for that.
  5. Type "groups" to get the groups your a member of type "ls -l | grep filename" in the folder containing the file your trying to open. copy the line with the filename your trying to open and post it here. Note grep just filters results you can forgo it if your having issues.
  6. I don't think there is a way to default them per say. But you can change them. I am not familiar with the chgrp command I have always used chown but I think it just changes the group set on the files from what I have read. what user are you using to access the files, what group(s) is the user a member off, what is the owner & group set as on the files your trying to access (might need to be root to check). Also if your unsure on how to do anything above, a quick google should provide the results your looking for
  7. ln -s (source folder path) (destination path) ex "ln -s /mnt/cifs/Alef_Files /home/alexandre/Alef_Files"
  8. Try creating a symbolic link in a folder you know you have read write permissions with Plex, and point it to the mount point of the raid 1 drive
  9. I think they want to port forward on the client end so they can run some service ex web server
  10. I know you can do what your trying to do with a GRE tunnel using this as a rough guide https://wiki.buyvm.net/doku.php/gre_tunnel obviously some steps will be slightly different depending on your requirements/setup. Though if you figure out a VPN based solution I'd be interested to know Also is "net.ipv4.ip_forward" enabled on the server?
  11. You could create a spanned volume in windows. Allows the OS to view the two disks as one. It's not raid 0, so if one drive fails you won't lose everything.
  12. Running the Error-checking feature in windows, seems like its going to take a while, will report back later. EDIT: Running that Error-checking feature in windows helped, it no longer randomly disconnects when doing normal tasks though when I tried running HD Tune the test would get 25% of the way though before disconnecting, guess I am going to have to replace the disk sooner then I expected.
  13. Tried that, problem persists. Same though crossed my mind though never backed anything up as its just programs (mostly games) and a backup of some of my important stuff on my NAS. Is it possible that is keeps trying to read from a bad part of the disk and because it can't read it, it drops? If this is the case, is there a way to mark that section as bad? EDIT: Had it drop once a few months prior and it went away.
  14. My secondary drive, which I store almost all my programs on keeps disconnecting from the system. It can't been seen by the BIOS or the OS unless I restart my computer a few times or I disconnect and reconnect the SATA connector a few times. Starting Steam makes it disconnect from the OS every time and other times it just randomly disconnects after several hours. I have tried switching the power and SATA cables with my other HDD and the problem persists, so its not a cable issue.
  15. Long as you get at least a SAS-2 controller you should be able to support 2TB+ drives but don't quote me on this.
  16. I would not go out and buy one because if you have a 650watt PSU its never going to draw more then ~3A from the wall on 220v .
  17. Good luck getting anything new for that price but I have seen some used Quanta LB4M on ebay for under $100
  18. Try using take ownership its just a small registry change that allows you to right click on the folder and "take ownership" . It has worked for me in the past when I locked myself out of folders. You can get it here http://cdn9.howtogeek.com/wp-content/uploads/TakeOwnership.zip
  19. In the OpenVPN Configuration > Server Network Settings did you fill the "Hostname or IP Address" box with an external address? Also if your trying to connect within the same network it won't work unless you put in a internal IP Address in that same space or have the client OpenVPN config with the remote opinion pointing to the internal address.
  20. You already have a hardwired connection, why not just get a gigabit NIC?
  21. Most if not all of Lenovo's laptops these days have BIOS whitelists, so you can only put in cards that are on that list. You can get around these buy installing a de-whitelisted BIOS which I did on my W520.
  22. You could put Linux on the thing. Though you won't have a lot of space to do stuff (storage wise).
  23. Alef

    VPN for traveling

    Not a VPN but Tor works if you use bridges.
  24. I would check processor power management in power options to check the minimum processor state, system cooling policy and maximum processor state. To make sure they are set to 100%, Active, 100%.
×