Very annoying bugs in windows. Happen to me twice. Restart still wont be able to delete
How to delete? Lets say the problem folder is c:\parent\the_stubborn_child
1. Open command prompt
2. change directory to that particular parent folder using cd command
e.g:
cd c:\parent
3. type dir /x. this will show the dos short name
4. delete the folder with this command : rmdir <short file name>
5. feel good about it
suki journal
Thursday, August 28, 2014
Wednesday, August 20, 2014
sharing global variables between function guide matlab
There might be a situation where you need to share variables between functions callback in matlab gui for example using variables which are initiated during gui start. There are 2 ways to do this
1. using global variable
function gui_OpeningFcn(hObject, eventdata, handles, varargin) global x y z; x = 1; y = 2; z = 3; function pushbuttonNext_Callback(hObject, eventdata, handles) global x y z; x = x+1 y = y+1 z = z+1 function pushbuttonPrevious_Callback(hObject, eventdata, handles) global x y z; x = x-1 y = y-1 z = z-12. using guidata
function gui_OpeningFcn(hObject, eventdata, handles, varargin) x = 1; y = 2; z = 3; handles.x = x; handles.y = y; handles.z = z; guidata(hObject, handles); function pushbuttonNext_Callback(hObject, eventdata, handles) handles.x = handles.x + 1; handles.y = handles.y + 1; handles.z = handles.z + 1; guidata(hObject,handles); function pushbuttonPrevious_Callback(hObject, eventdata, handles) handles.x = handles.x - 1; handles.y = handles.y - 1; handles.z = handles.z - 1; guidata(hObject,handles);*note that line 10, 18, 25 is called to save the variable in guidata structure so we are able to access in from other function scope
http://suki.noip.me/ifelse/sharing-global-variables-between-function-guide-matlab/
Redirect subfolder outside htdocs in apache
Lets say you have a folder with path "D:\myfolder\abc" and you want the address "http://localhost/web" to redirect to this folder instead of "C:\xampp\htdocs" as usual Add these lines to "httpd.conf" (located in "C:\xampp\apache\conf\")
Alias /fyp D:\myfolder\abc <Directory D:\myfolder\abc> Require all granted Order allow,deny allow from all </Directory>and restart apache
http://suki.noip.me/ifelse/redirect-subfolder-outside-htdocs-in-apache/
fix phpmyadmin error #1146
For some reason in xampp version 1.8.3-3 in default installation you will face error #1146 ('phpmyadmin.pma_table_uiprefs' doesn't exist) when trying to query table in phpmyadmin.
To solve this issue : A. you can run create_tables.sql inside "phpMyAdmin\examples" folder OR B. comment the advanced features settings 1. Find these lines in config.inc.php and comment them
/* User for advanced features */ //$cfg['Servers'][$i]['controluser'] = 'pma'; //$cfg['Servers'][$i]['controlpass'] = ''; /* Advanced phpMyAdmin features */ //$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin'; //$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark'; //$cfg['Servers'][$i]['relation'] = 'pma_relation'; //$cfg['Servers'][$i]['table_info'] = 'pma_table_info'; //$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords'; //$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages'; //$cfg['Servers'][$i]['column_info'] = 'pma_column_info'; //$cfg['Servers'][$i]['history'] = 'pma_history'; //$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords'; //$cfg['Servers'][$i]['tracking'] = 'pma_tracking'; //$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig'; //$cfg['Servers'][$i]['recent'] = 'pma_recent'; //$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
2. restart apache
http://suki.noip.me/ifelse/fix-phpmyadmin-error-1146/
Subscribe to:
Posts (Atom)