www.nuneworld.net

March 29, 2016

The transaction log for database is full due to LOG_BACKUP

Filed under: Software — sage @ 8:26 am

Solution

You can truncate the transaction log file size using below SQL command sequence in SQL 2012.
Login in database server.
Select the database
Click on new query
Execute following SQL commands (replace the ‘databasename’ with your database name at all places in below commands.

ALTER DATABASE [databasename] SET RECOVERY SIMPLE
GO
DBCC SHRINKFILE ([databasename_Log], 5)
GO
ALTER DATABASE [databasename] SET RECOVERY FULL
GO

March 18, 2016

ROBOCOPY network UserName/Password

Filed under: Software — sage @ 8:55 am

If you need to copy something using robocopy to remote host where additional authentication is required you should send username/password somehow. Robocopy.exe does not provide network authentication by itself. So to provide username and password for robocopy.exe we can use NET USE to open IPC$ share to destination host and execute our robocopy code.
Note: There is UNC path used, so keep in mind to have source and destination folders shared.


NET USE \\RemoteServerName\IPC$ /u:server\user *password*
robocopy \\Source\ \\RemoteServerName\DestinationDir\ /XD * /Z /MIR /LOG+:c:\temp\log.log
NET USE \\RemoteServerName\IPC$ /D

February 17, 2016

More submit buttons on submit form

Filed under: Software — Tags: , , — sage @ 3:27 pm

If you have more submit buttons on one form, If you give each one a name, the clicked one will be sent through as any other input. And you can do Form.Request["Button"] and you will get only clicked button.

February 10, 2016

Command line error MIDL1005 : cannot find C preprocessor cl.exe

Filed under: Software — Tags: , , — sage @ 10:00 am

Visual Studio 2015 doesn’t install C++ by default. You have to rerun the setup, select Modify and then check Programming Language -> C++

February 2, 2016

Windows Locale Codes

Filed under: Software — sage @ 5:10 pm
Locale Language
code
LCID
string
LCID
Decimal
LCID
Hexadecimal
Codepage
Afrikaans af af 1078 436 1252
Albanian sq sq 1052 1250
Amharic am am 1118
Arabic - Algeria ar ar-dz 5121 1401 1256
Arabic - Bahrain ar ar-bh 15361 1256
Arabic - Egypt ar ar-eg 3073 1256
Arabic - Iraq ar ar-iq 2049 801 1256
Arabic - Jordan ar ar-jo 11265 1256
Arabic - Kuwait ar ar-kw 13313 3401 1256
Arabic - Lebanon ar ar-lb 12289 3001 1256
Arabic - Libya ar ar-ly 4097 1001 1256
Arabic - Morocco ar ar-ma 6145 1801 1256
Arabic - Oman ar ar-om 8193 2001 1256
Arabic - Qatar ar ar-qa 16385 4001 1256
Arabic - Saudi Arabia ar ar-sa 1025 401 1256
Arabic - Syria ar ar-sy 10241 2801 1256
Arabic - Tunisia ar ar-tn 7169 1256
Arabic - United Arab Emirates ar ar-ae 14337 3801 1256
Arabic - Yemen ar ar-ye 9217 2401 1256
Armenian hy hy 1067
Assamese as as 1101
Azeri - Cyrillic az az-az 2092 1251
Azeri - Latin az az-az 1068 1254
Basque eu eu 1069 1252
Belarusian be be 1059 423 1251
Bengali - Bangladesh bn bn 2117 845
Bengali - India bn bn 1093 445
Bosnian bs bs 5146
Bulgarian bg bg 1026 402 1251
Burmese my my 1109 455
Catalan ca ca 1027 403 1252
Chinese - China zh zh-cn 2052 804
Chinese - Hong Kong SAR zh zh-hk 3076
Chinese - Macau SAR zh zh-mo 5124 1404
Chinese - Singapore zh zh-sg 4100 1004
Chinese - Taiwan zh zh-tw 1028 404
Croatian hr hr 1050 1250
Czech cs cs 1029 405 1250
Danish da da 1030 406 1252
Divehi; Dhivehi; Maldivian dv dv 1125 465
Dutch - Belgium nl nl-be 2067 813 1252
Dutch - Netherlands nl nl-nl 1043 413 1252
Edo 1126 466
English - Australia en en-au 3081 1252
English - Belize en en-bz 10249 2809 1252
English - Canada en en-ca 4105 1009 1252
English - Caribbean en en-cb 9225 2409 1252
English - Great Britain en en-gb 2057 809 1252
English - India en en-in 16393 4009
English - Ireland en en-ie 6153 1809 1252
English - Jamaica en en-jm 8201 2009 1252
English - New Zealand en en-nz 5129 1409 1252
English - Phillippines en en-ph 13321 3409 1252
English - Southern Africa en en-za 7177 1252
English - Trinidad en en-tt 11273 1252
English - United States en en-us 1033 409 1252
English - Zimbabwe en 12297 3009 1252
Estonian et et 1061 425 1257
Faroese fo fo 1080 438 1252
Farsi - Persian fa fa 1065 429 1256
Filipino 1124 464
Finnish fi fi 1035 1252
French - Belgium fr fr-be 2060 1252
French - Cameroon fr 11276
French - Canada fr fr-ca 3084 1252
French - Congo fr 9228
French - Cote d’Ivoire fr 12300
French - France fr fr-fr 1036 1252
French - Luxembourg fr fr-lu 5132 1252
French - Mali fr 13324
French - Monaco fr 6156 1252
French - Morocco fr 14348
French - Senegal fr 10252
French - Switzerland fr fr-ch 4108 1252
French - West Indies fr 7180
Frisian - Netherlands 1122 462
FYRO Macedonia mk mk 1071 1251
Gaelic - Ireland gd gd-ie 2108
Gaelic - Scotland gd gd 1084
Galician gl 1110 456 1252
Georgian ka 1079 437
German - Austria de de-at 3079 1252
German - Germany de de-de 1031 407 1252
German - Liechtenstein de de-li 5127 1407 1252
German - Luxembourg de de-lu 4103 1007 1252
German - Switzerland de de-ch 2055 807 1252
Greek el el 1032 408 1253
Guarani - Paraguay gn gn 1140 474
Gujarati gu gu 1095 447
Hebrew he he 1037 1255
HID (Human Interface Device) 1279
Hindi hi hi 1081 439
Hungarian hu hu 1038 1250
Icelandic is is 1039 1252
Igbo - Nigeria 1136 470
Indonesian id id 1057 421 1252
Italian - Italy it it-it 1040 410 1252
Italian - Switzerland it it-ch 2064 810 1252
Japanese ja ja 1041 411
Kannada kn kn 1099
Kashmiri ks ks 1120 460
Kazakh kk kk 1087 1251
Khmer km km 1107 453
Konkani 1111 457
Korean ko ko 1042 412
Kyrgyz - Cyrillic 1088 440 1251
Lao lo lo 1108 454
Latin la la 1142 476
Latvian lv lv 1062 426 1257
Lithuanian lt lt 1063 427 1257
Malay - Brunei ms ms-bn 2110 1252
Malay - Malaysia ms ms-my 1086 1252
Malayalam ml ml 1100
Maltese mt mt 1082
Manipuri 1112 458
Maori mi mi 1153 481
Marathi mr mr 1102
Mongolian mn mn 2128 850
Mongolian mn mn 1104 450 1251
Nepali ne ne 1121 461
Norwegian - Bokml nb no-no 1044 414 1252
Norwegian - Nynorsk nn no-no 2068 814 1252
Oriya or or 1096 448
Polish pl pl 1045 415 1250
Portuguese - Brazil pt pt-br 1046 416 1252
Portuguese - Portugal pt pt-pt 2070 816 1252
Punjabi pa pa 1094 446
Raeto-Romance rm rm 1047 417
Romanian - Moldova ro ro-mo 2072 818
Romanian - Romania ro ro 1048 418 1250
Russian ru ru 1049 419 1251
Russian - Moldova ru ru-mo 2073 819
Sami Lappish 1083
Sanskrit sa sa 1103
Serbian - Cyrillic sr sr-sp 3098 1251
Serbian - Latin sr sr-sp 2074 1250
Sesotho (Sutu) 1072 430
Setsuana tn tn 1074 432
Sindhi sd sd 1113 459
Sinhala; Sinhalese si si 1115
Slovak sk sk 1051 1250
Slovenian sl sl 1060 424 1250
Somali so so 1143 477
Sorbian sb sb 1070
Spanish - Argentina es es-ar 11274 1252
Spanish - Bolivia es es-bo 16394 1252
Spanish - Chile es es-cl 13322 1252
Spanish - Colombia es es-co 9226 1252
Spanish - Costa Rica es es-cr 5130 1252
Spanish - Dominican Republic es es-do 7178 1252
Spanish - Ecuador es es-ec 12298 1252
Spanish - El Salvador es es-sv 17418 1252
Spanish - Guatemala es es-gt 4106 1252
Spanish - Honduras es es-hn 18442 1252
Spanish - Mexico es es-mx 2058 1252
Spanish - Nicaragua es es-ni 19466 1252
Spanish - Panama es es-pa 6154 1252
Spanish - Paraguay es es-py 15370 1252
Spanish - Peru es es-pe 10250 1252
Spanish - Puerto Rico es es-pr 20490 1252
Spanish - Spain (Traditional) es es-es 1034 1252
Spanish - Uruguay es es-uy 14346 1252
Spanish - Venezuela es es-ve 8202 1252
Swahili sw sw 1089 441 1252
Swedish - Finland sv sv-fi 2077 1252
Swedish - Sweden sv sv-se 1053 1252
Syriac 1114
Tajik tg tg 1064 428
Tamil ta ta 1097 449
Tatar tt tt 1092 444 1251
Telugu te te 1098
Thai th th 1054
Tibetan bo bo 1105 451
Tsonga ts ts 1073 431
Turkish tr tr 1055 1254
Turkmen tk tk 1090 442
Ukrainian uk uk 1058 422 1251
Unicode UTF-8 0
Urdu ur ur 1056 420 1256
Uzbek - Cyrillic uz uz-uz 2115 843 1251
Uzbek - Latin uz uz-uz 1091 443 1254
Venda 1075 433
Vietnamese vi vi 1066 1258
Welsh cy cy 1106 452
Xhosa xh xh 1076 434
Yiddish yi yi 1085
Zulu zu zu 1077 435

January 27, 2016

How to prevent HTML5 audio control from predownload

Filed under: Software — Tags: , — sage @ 10:21 pm

in your Html5 audio control element add: preload=”none”

<audio controls="controls" preload="none">
  <source src="song.ogg" type="audio/ogg" />
  <source src="song.mp3" type="audio/mpeg" />
  Your browser does not support the audio element.
</audio> 

January 26, 2016

Javascript window.open , then print and close

Filed under: Software — Tags: , , — sage @ 2:26 pm
		   function PrintThisFrame() {
				var htmlInner=document.getElementsByTagName('html')[0].innerHTML;
				var myWindow=window.open('','Print','width=0,height=0');

				  myWindow.document.write(htmlInner);
				  myWindow.document.close();
                                  myWindow.focus();
                                  myWindow.print();
                                  myWindow.close();
            }

January 19, 2016

If you wonder what value return true/false in MS SQL

Filed under: Software — Tags: , , , — sage @ 10:15 am

SELECT CAST('TRUE' as bit) -- RETURN 1
SELECT CAST('FALSE' as bit) --RETURN 0

December 30, 2015

Internet Explorer – Automation Server Can’t Create Object

Filed under: info — Tags: , , — sage @ 10:17 am

Internet Explorer 8, 9, 10 and 11 all error with:
Automation server can’t create object
I found that to fix the Automation server error:

  • Go to IE -> Options and click on the Security tab
  • Select the zone that the website with the Automation server error is in
  • Click Custom Level…
  • Enable Initialize and script ActiveX controls is not marked safe for scripting
  • You should no longer get the Automation server can’t create object error.

Or  try this:

  • a) Go to Tools–>Internet Options
  • b) Select security tab
  • c) Click on Trusted Sites (or Local Intranet depending on whether your site is trusted or not)
  • d) Click on Custom Level
  • e) Ensure that “Initialize and script active x controls is not marked safe for scripting” is enabled - this comes under Activex controls and plug-ins section towards 1/4th of the scroll bar.
  • Click OK, OK.

Once this is completed, clear the browser cookies and cache. Close all your browser sessions. Reopen the IE to launch your site.
Try to disable the setting in step (e) to see if the problem comes back - that should give more insight to the problem.

August 20, 2015

Windows 8: Enable/Disable Hibernate via PowerShell

Filed under: Software — Tags: , , , — sage @ 10:41 pm

Run command promt as administrator and to enable run:

powershell -Command "Start-Process 'powercfg.exe' -Verb runAs -ArgumentList '/h on'"

To disable run:

powershell -Command "Start-Process 'powercfg.exe' -Verb runAs -ArgumentList '/h off'"

March 7, 2015

Cisco AnyConnect Failed to initialize connection subsystem

Filed under: Software — admin @ 12:09 am

I use Cisco AnyConnect Secure Mobility client version 3.1.01065, when i click to connect on WIndows 8.1 i receive error :

Failed to initialize connection subsystem

Microsoft has released a fix-it patch providing a workaround for this issue. See KB# 3023607

Just run the patch, after install from your system tray close cisco anyconnect, and start again now should promt for user name and password. Another solution is to set your  vpnui.exe  from C:\Program Files (x86)\Cisco\Cisco AnyConnect Secure Mobility Client\ to run in compatibility mode   you can read more here

March 4, 2015

VB6 cdate() type mismatch

Filed under: Software — Tags: , , , — admin @ 12:48 pm

Check if your sytem locale settings for date separators are equal with date in Cdate() expression, if your system locale is set  04/03/2015 and your cdate expresion is Cdate(”01.01.2015″) will raise error type mismatch.

If there is a mismatch between your system’s locale setting and the format of your date strings, you can transform those date strings to yyyy-mm-dd format to avoid problems with CDate()

February 9, 2015

Server Error in XXX Application.

Filed under: Software — Tags: , — admin @ 4:26 pm

Could not load file or assembly ‘blabla’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.blabla: Could not load file or assembly ‘blabla’ or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly ‘blabla’ could not be loaded.

First thing to do is to open your IIS and to change to the newer ASP.NET version for your asp application.

An error occurred loading a configuration file: Access to the path ‘web.config’ is denied.

Filed under: Software — Tags: , , , , — admin @ 3:36 pm

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: An error occurred loading a configuration file: Access to the path ‘web.config’ is denied.

Source Error:

[No relevant source lines]

This error will occur if the ASPNET user does not have read permission to web.config.

The proper solution to this issue is to grant the ASP.NET Worker process FULL permissions to the the root directory.

If you are installing on Windows 2000 or XP the account you need to grant permissions to is ASPNET, if you are on Windows 2003 or Vista it is NETWORK SERVICE

The root directory it didn’t inherit the default security settings, Right Click on the folder where web.config is then “Security” tab, button “Advanced”
check at the bottom “Replace permission entries….”

And hit OK button.

Then all files in that folder will inherit permissions of that folder.

Usually newly created files inherit parent’s folder permissions. But if you
created file some other folder and then move it to another folder then
permissions stay and not get inherited.

November 14, 2014

link: absolute, relative, root

Filed under: info — Tags: , , , , — admin @ 1:25 am

There are three ways to define the destination of a hyperlink (where “destination” is a webpage, image, css…).

absolute link
An absolute link is created when the href value is a fully qualified URL, including:
the transfer protocol: http://
domain name: e.g. www.nuneworld.net
and filename: e.g. yourpage.html
An absolute link to the Nune homepage looks like this:

<a href="http://www.nuneworld.net/index.php">NUNE homepage</a>

An absolute href value must be used when linking between websites; when the source and destination anchors are under different domain names.

relative link
A relative link is created when the destination href value is relative to the location of the current webpage or source anchor.
A relative link to the Nune homepage, from this webpage, looks like this:

<a href ="../index.php">Nune homepage</a>

The ../ directs the browser to move (up) out of the current directory and open the file index.php.
A relative link can only be used when linking within a website; when the source and destination anchors are under the same domain name.

DIRECTORY INDEX/DEFAULT FILE
When the path does not include a filename, for example: href=’../’, the server attempts to open the directory index, or default file.
To determine which file to open, the server compares names of the files in the current directory with a prioritised list of default filenames. For example, a server may be set up (configured) to look for a file named (in order): index.htm, index.html, or default.htm. If a file named index.htm cannot be found, it will attempt to open index.html; if index.html cannot be found, it will attempt to open default.htm, etc.
If a default file match is not made, then either all files in the directory will be listed, or access to the directory will be denied (Forbidden).
A relative link to the Nune contact information, from this webpage, looks like this:

<a href ="../about/contact.php">Nune contact details</a>

The browser moves (up) out of the current directory, (down) into the about directory and opens the file contact.php.
Relative links may need to be updated if a website’s structure is changed. For example, if the about directory were renamed about-us, or contact information was moved to a new, separate contact directory, then the href value above would need to be changed.

root-relative link/root link/web-root relative link
A root-relative link is created when the href value is relative to the website root.
On the Nune website, a root-relative link to the homepage (from any webpage) is:

<a href ="/index.php">Nune homepage</a>

Beginning the href value with / (forward slash) begins the path from the root directory of the current website. The forward slash is automatically replaced with the transfer protocol and domain name of the current website. For the Nune website, the forward slash is replaced with http://www.Nuneworld.net

Root-relative href values are often used to link to files that are common to a number of webpages. For example, a root-relative href value may be used to link to a stylesheet or include file. A destination link specified using root-relative href values will continue to work, even if the source webpage is moved.

A root-relative link can only be used when linking within a website; when the destination anchor is under the same domain name.

Older Posts »

Powered by WordPress