
When a project grows the migrations folder can contain a lot of migration, ever wanted to desperate them into folders? tus out it's easy to so. All you need to do is tell Laravel where to read the migrations from. In your AppServiceProvider.php boot call, you can call $this->loadMigrationsFrom() and give it a path of all the folder locations: $migrationsPath = database_path('migrations'); $directories = glob($migrationsPath.'/*', GLOB_ONLYDIR); $paths = array_merge([$migrationsPath], $directories); $this->loadMigrationsFrom($paths); Now when you run php artisan migrate all folders will be scaed. To migrate specific folders use --path for example for all migrat...
ادامه مطلب
I have a larger folder containing all my SVN files. I got attacked my a virus destroying some files but also corrupting SVN config files, so now TortoiseSVN caot recognize it as a SVN folder. I can redownload the repository to other location but there are some files I didn't commit to it. Is there some software that can tell me difference in contents between folders or should I write a batch script that can tell me which files were not commited? 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...
ادامه مطلب
Just like the title says, recently I've been noticing that when I'm selecting a group of items in a folder if I select some and click and drag over them again it deselects them. This never never happened before a couple weeks ago. I believe it started when I had an IT guy do a checkup on my PC. My System folders also have an aoying tag that says "System Folder" now but that can be easily overlooked. Examples: http://ptscr.com/cax3uc http://ptscr.com/cax3xp P.S: Never letting an IT guy touch my computer again unless it's something really serious, they always mess with something I don't want to be messed with Let's block ads! بخوانید...
ادامه مطلب
I have a print server hosted on a separate domain and I need to give access to users from a different domain to the shared folder without asking them to authenticate. I tried enabling the Guest account and didn't work. I enabled a GPO to deploy the printer but for some reason it's not working. I'd love your help on this issue. Let's block ads! بخوانید...
ادامه مطلب
The startup priority in Windows is as follows, listed from first to start to last to start: HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRunonce HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorerRun HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun HKEY_CURRENT_USERSoftwareMicrosoftWindows NTCurrentVersionWindowsRun HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRun HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionRunOnce SystemDriveDocuments and SettingsAll UsersStart MenuProgramsStartup SystemDriveDocuments and SettingsuseameStart MenuProgramsStartup The last two items relate to Windows XP days. Which relate to: %PROGRAMDATA%Microsof...
ادامه مطلب
I am ruing Ubuntu 16.04 LTS and am using Vagrant to run a Ubuntu 14.04 Server with a LAMP stack setup. I am working on a Laravel 5.2 project, but constantly have issues with the permissions in the storage folder/sub-folders. Currently, the folders are owned by my user/group. Anytime some file needs to be created or written too, I get a permission denied error. I can fix this with by chmoding the files to 777. This however does't fix the issue of having the problem when a new file is made (for sessions). I could set the files/folder to inherit permissions of 777. This is fine for a development server I suppose, but I would like to do this the right way, not just the fast way. What permissions...
ادامه مطلب
Is it not possible to make a permanent link to a bookmark folder? I want a URL which will take me to a specific folder, independently of which computer I am logged in at. Currently using e.g. "chrome://bookmarks/#2225", gives me the folder I want on one computer, but not on another. It is also not permanent, which is also a problem. Let's block ads! بخوانید...
ادامه مطلب
I have a vagrant box with Linux inside under Windows 10 (VirtualBox 5.1.4, Vagrant 1.8.5). Inside the vagrant box I caot create a symlink: /home/vagrant/my-shared-folder/ $ ln -s /any/path/to/linux/box/folder my-symlink-name Under Windows 7 it was working with: How do I create a link in Windows 7 home premium as a regular user? So, has anything changed under Windows 10? Let's block ads! بخوانید...
ادامه مطلب
The subject line could also read: "how to setup an email archiving system that preserves folder structure and tags". I am reaching the quota of my main email provider (imap1) and I would like to regularly move/migrate some emails to another imap server (imap2) that provides more space. However it took a lot of time to organize my emails into folders and labels in imap1, and I would like to preserve the folder structure after migration to imap2, so that I can easily locate emails in the archive server imap2. I found no easy way to do this with mode email clients in MacOS X (Apple Mail, PostBox, Thunderbird, Outlook, ...). The windows version of Microsoft Outlook used to have that feature when...
ادامه مطلب
I found script opening random files. I changed one thing and now it open random file from C:/ Can somebody tell me how to change it to open random file from C:/ and all subfolders? @echo off & setlocal :: start of main rem Set your path here: set "workDir=C:" rem Read the %random%, two times is'nt a mistake! Why? Ask Bill. rem In fact at the first time %random% is nearly the same. @set /a "rdm=%random%" set /a "rdm=%random%" rem Push to pushd "%workDir%" rem Count all files in your path. (dir with /b shows only the filenames) set /a "counter=0" for /f "delims=" %%i in ('dir /b ^|find "."') do call :sub1 rem This function gives a value from 1 to upper bound of files set /a "rdNum=(%r...
ادامه مطلب
Assume I have my general dropbox folder, and my Photo/Video files in an another folder: /mnt/myhd/Dropbox /mnt/myhd/MyPhotosVideos Now, how can I upload all files from MyPhotosVideos to Dropbox without the need to copy/move them inside the Dropbox folder? If I copy them this takes (a lot of) extra space. If I move them I risk deleting the files by the Dropbox daemon due to an (human) error. Can I solve this with hard links ? This allows me to make photos/videos available to Dropbox without taking extra space. If this is possible, what happens if the Dropbox deamon deletes a file represented by a hard link? Is then only the hardlink gone or also the underlying file? If hardlinks are a poss...
ادامه مطلب
I am trying to run vagrant 1.7.4 on a windows 7 machine. I have vagrant installed along with a few boxes. I am trying to delete all of my boxes and start fresh. Below is a list of my boxes: vagrant box list laravel/homestead (virtualbox, 0.4.2) ubuntu/trusty64 (virtualbox, 20151208.1.0) ubuntu/trusty64 (virtualbox, 20151217.0.0) This is what I have tried so far: vagrant box remove ubuntu/trusty64 You requested to remove the box 'ubuntu/trusty64' with provider 'virtualbox'. This box has multiple versions. You must explicitly specify which version you want to remove with the --box-version flag. The available versions for this box are: 20151208.1.0 20151217.0.0 box remove --box-versi...
ادامه مطلب
as I said in the title my problem it's with a shared hard drive over my home network. My aim is to share this hdd in a way that everyone in my family can put important files over this "backup drive". I have windows 10 and I have already actived the right option to enable it. My network is: me coected to the router over etheet, then wireless network (family pcs). I think the problem is my computer not recognized over the network or maybe my router that is a little bit old. If someone can help me would be grea, thank you! Let's block ads! بخوانید...
ادامه مطلب
I have a very specific directory tree on my music library. I would like to count all of the albums, excluding all the subdirectories. For instance, given this directory tree: /music/ /music/Davis, Miles/ (<--1. interpret) /music/Davis, Miles/Kind of Blue/ <--1. album /music/Davis, Miles/Tutu/ <--2. album /music/Hendrix, Jimi/ (<--2. interpret) /music/Hendrix, Jimi/Axis Bold As Love/ <--3. album /music/Hendrix, Jimi/Electric Ladyland/ <--4. album /music/Hendrix, Jimi/Electric Ladyland/Disk 1/music/Hendrix, Jimi/Electric Ladyland/Disk 2 I would like for the command to retu "4" . So basically I want the command to retu the number of albums, Or, bonus points if it retus "2" Int...
ادامه مطلب
Just noticed something as I was playing around with the Startup folder of the Default user in both Windows 8.1 and Windows 10: For some reason, on all of my installs of Windows 10, the Default user's startup folder does not exist where it should be, C:UsersDefaultAppDataRoamingMicrosoftWindowsStart MenuProgramsStartup, whereas in Windows 8.1 it exists. I've seen on the web that it apparently was replaced with C:ProgramDataMicrosoftWindowsStart MenuProgramsStartUp starting in Win7, but I have this path in Win8.1 but not Win10. Win10 goes up to the Programs folder, then Startup doesn't exist. If I manually create the Startup folder in C:UsersDefaultAppDataRoamingMicrosoftWindowsStart MenuProgr...
ادامه مطلب
OK. I know this question is really long but I wanted to be specific. Let me explain in more detail. I am using CoffeCup HTML editor software to edit a website. I have started a Website Project using the feature in CoffeCup (CC). I have also included a private FTP server as part of the project. I verified that CC is indeed coected to that server. I set the Website Project Path to my Desktop/Cyroot Stuff/CYROOT. Now when I use CC's Test Webpage feature to test an HTML page from my local source I get this address: file:///C:/Users/XXXXXXXX/Desktop/Cyroot%20Stuff/CYROOT/public/index.html but when I test a page using my server source, CC creates a folder called CYROOT inside the Website Project P...
ادامه مطلب
I have recently upgraded from 10.7.5 to 10.11.6 and have set up AMP. Although upon set up http://localhost did show a page with "It works!" message, now I get a forbidden message, but I can still run phpinfo.php from Sites folder as well as some other files stored in Sites directory. I have a useame.conf file with <Directory "/Users/useame/Sites/"> AllowOverride All Options Indexes MultiViews FollowSymLinks Require all granted </Directory> and I have also the following in httpd.conf in Users useame (my useame here) Group staff What can be the problem and how can I solve it? Please, note that I am just leaing and I am not an ...
ادامه مطلب
In linux root directory! there are some static shared directories ex:/usr & /opt;these directories can mount read-only device;There are some others like /etc & /boot they are static unshared directory;I konw these concepts but I really not get the difference between shared and unshared; Let's block ads! بخوانید...
ادامه مطلب
So, I have a laptop with Windows 10 Pro, a desktop with Windows 8.1 and an old machine with Windows 7 Ultimate. They are all coected to a wireless network. I know how to share a particular folder or directory in a LAN, but am clueless how to do it in a wireless network so that any of the above machines can access a partition or a folder on a particular machine. I read something about creating a Workgroup but I couldn't quite figure it out. All I want is to make a partition on any of the systems 'common' so that it could be used as a common data dump site. Any machine having the password of the wireless coection should be able to access that partition. Any pointers in that direction? Thanks! ...
ادامه مطلب