
When you have a CSV generated how do you test it runs. Take this extract: public function export() { $actions = $this->getData()->get(); $columns = [ 'User', 'Start Date', 'End Date', ]; $data = []; foreach ($actions as $action) { $data[] = [ $action->user->name ?? '', $action->due_at, $action->completed_at, ]; } $now = Carbon::now()->format('d-m-Y'); $filename = "actions-{$now}"; retu csv_file($columns, $data, $filename); } The above collects data and sends it to a helper function called csv_file which in tu will export a CSV file. For completenes...
ادامه مطلب
Losing your social security card might not seem like a big deal right now, but it becomes a pain if you need to apply for benefits. It’s always best to report the missing card as soon as possible and ...
ادامه مطلب
I am able to download videos one by one on a certain website that hosts some hundred or so videos. I am a paid subscriber to the website so I'm not doing anything illegal. (and no, it's not po). The process is labor-intensive for each video. I have to click on each link to get to where the player shows up. Then (in chrome) I open up the webpage developer, go to the network tab, play the video until i see where it shows up on the developer network tab, right click to open up in new page, then once it opens up i right click to save the video to my hard disk. Is there anything out there that will do this all automatically for the entire website for me? Each iteration takes about 5 minutes, and ...
ادامه مطلب
I'm looking at a section of a website with the following URN/directory structure: http://www.domainNameA.net/site/www.domainNameA.net/files/dynamically%generated%URN_539.docx Why does the site have the domain name listed again in the URN? What is this likely to indicate? Let's block ads! بخوانید...
ادامه مطلب
I've windows 7 64bit and Installed vagrant 1.8.4 and virtualbox 4.3, Now I need to load linux based 64bit box on machine but getting below error : Note: another 32bit linux box ruing... D:projectsvagrant-setup>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'goobing-base'... ==> default: Matching MAC address for NAT networking... ==> default: Setting the name of the VM: vagrant-setup_default_1472733158731_6244 ==> default: Preparing SMB shared folders... ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat d...
ادامه مطلب
A lot of solutions to zipping the contents of a folder, Excluding the folder, look like this: zip -r contents.zip * But I need to do this WITHOUT cd'ing into the directory, I want to use an absolute path. But this command includes the parent directory: zip -r everything.zip /some/path/to/folder/* So how can I zip the contents ONLY using an absolute path? Let's block ads! بخوانید...
ادامه مطلب
I have a room full of machines that I have been upgrading from home to pro (Windows 10). All machines that are NOT aiversary update 1607 can be joined to a domain with no issues. All that are the aiversary update will allow me to join to the domain and it restarts and asks for the useame and password. Put in my credentials and it provides a generic "caot log you in" error message. I've also noticed lusrmgr.msc is missing (Local users and groups) in all of these 1607 upgrades. The earlier build -- no issues and lusrmgr is available. It's my understanding pro should be able to be joined to a domain. Is this not the case? Thanks ahead of time! :) Let's block ads! بخوانید...
ادامه مطلب
Most web browsers will allow the user to specify: https://superuser.com/ or https://superuser.com But which is technically appropriate, and why? ...
ادامه مطلب
Used this AMI ami-b7418dd7 followed this guide: https://docs.openvpn.net/how-to-tutorialsguides/virtual-platforms/amazon-ec2-appliance-ami-quick-start-guide/ Now, when a user coects to the VPN I want all of their normal inteet traffic to go through the public inteet, but when they are trying to access one of our inteal systems I want that traffic to go through the VPN. How? I've seen a lot of other answers, and I've found very few of them helpful. On this official AMI from openvpn, I can't find any server.conf or client.conf files that so many answers seem to point toward. Any help appreciated, this is the single stupidest task to be given as a software engineer, not an IT / systems-administ...
ادامه مطلب
I need a small script to download some programs. The URL's never change but the files do. Like when you download malwarebytes. Example: "https://downloads.malwarebytes.com/file/mbam_current/" The address doesnt change but the file name downloaded does. Every script i see, requires that you specify a file name. I dont want to do that, I want the script to pull the filename from the sites header which would include the version name of that file in that filename. I cant seem to find any way of doing this. Please help me o wonderful smart people. It needs to work on any version of Windows 7 and up. Let's block ads! بخوانید...
ادامه مطلب
I hope this is the right place to ask this. My University lets students download a preconfigured executable of OpenVPN, where the settings are already branded in. Once you installed it, you just enter your credentials and you are coected. However, I noticed that it doesn't work anymore after the system is has been installed on is rebooted. If I install it, I get a successful coection with the VPN and can use it. If I restart my Laptop, it does not work anymore, but the Icons in the Tray still show a green screen. If I then uninstall it and reinstall it, without rebooting, it works again. The only difference in the log window when it's coecting, I notice when it does not work, one of the line...
ادامه مطلب
I have a Windows 10 PC with 8GB of RAM that frequently generates "low memory" waings, even when barely any applications are open. Example: Can anyone explain what is going on, and what can be done to fix this? ...
ادامه مطلب
I've got 2 Windows installations which are identical, the same settings, the same programs. The only difference is that the Windows architecture is different, the one is 32bit and the other one is 64bit. When having sysprepped my 32bit installation with the following answer file: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="u:schemas-microsoft-com:unattend"> <settings pass="oobeSystem"> <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance...
ادامه مطلب
I find it very tedious to scroll to the page I am currently reading whenever I open a PDF document. Is there a way for example to dogear page 20 and have the document open at that very page the next time? ...
ادامه مطلب
I have a Synology NAS (DSM 5.4) on which I run an OpenVPN server (on port tcp/1194, IP is 192.168.1.10). I have forwarded the port 64666 on my exteal IP to that address and port on my access router (a TP-Link AS1200). The problem: I caot coect with an OpenVPN client from an inteet host: Tue Aug 23 15:05:37 2016 Attempting to establish TCP coection with [AF_INET]myip:64666 [nonblock] Tue Aug 23 15:05:47 2016 TCP: coect to [AF_INET]myip:64666 failed, will try again in 5 seconds: Coection timed out (...) When ruing an nmap from within the inteal network (the one the NAS is on) I get a correct reply: C:WindowsSystem32>nmap 192.168.1.10 -p 1194 -sV Starting Nmap 7.12 ( https://nmap.org ) ...
ادامه مطلب
I just installed ionic following this guide. http://stackoverflow.com/questions/31041366/how-to-install-ionic-framework-on-ubuntu and also installed ionic / cordova using the command from ionic framework but when I start the app using this command ionic start todo example this message keep on showing up giving errors. I searched up and only found two threads talking about it but both of them just said restart the terminal. I even restarted my machine but still giving me this error. Can someone please give me a hand? Creating Ionic app in folder /home/et-ubuntu-pc/todo based on example project Downloading: https://github.com/driftyco/ionic-app-base/archive/master.zip [========================...
ادامه مطلب
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 "The useame or password is incorrect" error. If I try to map the resources again, the same error pops up. I know that I'm using the correct credentials. The temporary fix for me is that I would have to ...
ادامه مطلب
I have a Dell Inspiron 15 laptop with factory-installed Windows 8, upgraded to Windows 8.1, and later to Windows 10. Since I have purchased a new computer, I decided to perform a factory reset on the laptop (using the Remove files and clean the drive option) in order to repurpose it. It reset flawlessly on the first try in about 5-6 hours, and runs perfectly now, but with only one issue introduced after the reset that wasn't present before: the laptop now powers itself on from a shut-down state upon opening the lid, as opposed to opening the lid and then pressing the power button (this occurs on both battery and power). To add on to that, there was even an instance where the lid was already ...
ادامه مطلب
I'm signing up for a service that needs to verify my IP. I'm using an azure remote server and I'd like to keep using the service long-term. The problem is that if I want to make changes on the server and later need to reboot or re-size the vm I will lose my IP and get a new one. Is there away around this? Let's block ads! بخوانید...
ادامه مطلب
I've got problem with mapping network drive when I'm coected to VPN(use OpenVPN). I get this error: System error 1231 has occurred. The network location caot be reached. For information about network troubleshooting, see Windows Help. I'm a newbie in this, so I don't know how to fix it. Can someone help me with that ? P.S.: Don't know exactly which informations should I mention. Let's block ads! بخوانید...
ادامه مطلب