Wednesday, 15 September 2010

asp.net mvc - Illegal characters in path. while bundles javascript files -


I am trying to bundle my javascrip files and CSS files into the My MVC project. Throwing an exception while adding it. Illegal characters in the path

 : An uncontrolled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where the code has originated from it. Exception description: System. Archive Exception: Illegal characters in path source error: line 9: public static void RegisterBundles (BundleCollection bundles) Line 10: {Line 11:. Include Bundles.Add (New ScriptBundle ("~ / bundles / jQuery") ("~ / script / jquery- {version} .js", line 12: "~ / js / bootstrap.js", line 13: " ~ / Js / jquery.flexslider-min.js "~ / js / jquery.isotope.js" "~ / js / jquery.fancybox.pack.js? V = 2.1.0" "~ / RS-plugin / js / Jquery.themepunch.plugins.min.js "" ~ / RS-plugin / js / jquery.themepunch.revolution. Min.js "" / / js / revolution.custom.js "" / / js / custom.js ")); Stack trace: [ArgumentException :. Illegal characters en] System.IO.Path.CheckInvalidPathChars (String path, Boolean checkAdditional) 10,631,190 System.Security.Permissions.FileIOPermission.CheckIllegalCharacters (String [] str) using +30 System.Security.Permissions .FileIOPermission.AddPathList (FileIOPermissionAccess , AccessControlActions control, string [] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList) using 97 System.Security.Permissions.FileIOPermission..ctor (FileIOPermissionAccess, string path) 63 System.Web. InternalSecurityPermissions.PathDiscovery (String path) +29 System.Web.HttpRequest.MapPath (VirtualPath virtualPath, VirtualPath baseVirtualDir, Boolean allowCrossAppMapping) 149 System.Web.HttpServerUtility.MapPath (String path) 104 System.Web.Optimization.BundleTable. & Lt; Get_MapPathMethod & gt; b__0 (string virtualPath) 67 System.Web.Optimization.ItemRegistry.Include (String [] virtualPaths) [644 System.Web.Optimization.Bundle.Include (Strin C] Virtual path) +64 IntensifyTech.IntensifyTechConfig.RegisterBundles (bundled compilation bundles ) c: \ users \ sxxx \ SkyDrive \ Trunk \ IntensifyTech \ IntensifyTech \ App_Start \ IntensifyTechConfig.cs: 11 IntensifyTech.MvcApplication.Application_Start () in C: \ users \ sxxxx \ SkyDrive \ Trunk \ IntensifyTech \ IntensifyTech \ Global.asax. cs: 24 [HttpException (0x80004005): illegal character in the path.] System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode (HttpContext context, HttpApplication app) + 9 859725 System.Web. HPAPCirmation Registrar Avent Subscriptions IIS (ITPPR App CONTAx, HTTP Contact Reference, Methodindia [] Handler) +118 System Web. HTTP application. Init Special (HTTPPTecution State, MathDinfo [] Handlers, Interpet App Contact, HTTP Contact Reference) +172 System. Web. Hpapitalizationfitter Gate Special Application (IntPtr appContext, HttpContext References) 336 System.Web.Hosting.PipelineRuntime.InitializeApplication (IntPtr appContext) 296 [HttpException (0x80004005): Invalid character tracer in path.] System.Web.HttpRuntime.FirstRequestInit (HttpContext Reference) + 9873912 System.Web.HttpRuntime.EnsureFirstRequestInit (HttpContext Reference) +101 System.Web.HttpRuntime.ProcessRequestNotificationPrivate (IIS7WorkerRequest wr, HttpContext Reference) +254    

Yes, of course this item:" ~ / js / jquery.fancybox.pack.js? V = 2.1.0 ". This is a virtual path, not a URL, so '?' Characters in this context are invalid.

NSError error code -11819 on iOS when trying to play media using AVPlayer -


When you are trying to run media url using AVPlayer, then I got Epiphalerstats error code -11819 please Give advice.

  - (void) View VariablePath: (NSSTING *) The object of the pipe: (ID) Object changes: (NSDragment *) Convert Reference: (Zero *) Reference {if (References == & Amp ; AVPlayerItemStatusContext) {AVPlayerItem * playerItem = (AVPlayerItem *) object; NSInteger position = [player dead position]; Switch (position) {case AVPlayerStatusFailed: {NSError * error = [playerItem error]; NSLog (@ "% s% d \ n", __FUNCTION__, [error code]); .....}   

}

I found in AVError.h that the AVFoundation error code -11819 corresponds to AVErrorMediaServicesWereReset ("Media operation unavailable because the operation could not be completed").

osx - Can't print mpdf generated pdf files on mac -



It's really weird. I am using PDF MPdF, I did not have any problem in printing PDFs but this problem suddenly came out. It is not certain that there is something in place for updating my code or updating my operating system or wireless printer printer.

System ------------- Application --- ---- Results
OS X 10.8.2 ----- ---- Preview ---------- Can not Print - OS X 10.8.2 - ---- Acrobat ---------- OS X 10.7.x Can print ---------- Reader ---------- Can not print - Windows XP ----- Reader / Address ---- Can print OS X 10.XX --------- Preview -------- Can not Print

Some Information: We were able to print PDF first. There was no complaint from any OS / person. I was working on some SQL query changes. But I refresh my things is still not working.

Then it says that when someone tries to print using "preview" - according to my MacBook pro, it is (printing - connected to print and stays like this) - this Others show something like being on the Mac ... but nothing happens. FYI has not confirmed any such as .... The printing is complete .... It is like printing and printing.

An application was PDF Repere. And with this application I can print my PDF after repair but the problem is not its freeware and the quality is not good

Perhaps this is a broken / damaged material problem.

Target: The target "PDF files" is printed with "Preview"

Any kind of help or suggestion is highly appreciated.

screenshot of my pdf

Finally resolved. MPdf had something like that with CMAP processing stuff but it happens only with the old version of MPDF, in my case it was MPDF 5.0 beta.

The latest version of the MPDF will solve this problem Now I can print my export PDF from any OS and any application. Cheers

c - calculating the no of steps in insertion sort -


Here are two versions of the inclusion sort, which I apply to one with the pseudo code and straight one. I want to know which version takes more steps and space (in some places too complicated)

  zero entry_art (int a [], int n) {int key, i, j ; For (i = 1; i & lt; n; i ++) {key = a [i]; J = i - 1; While (j> = 0 & a [J]> key) {a [j + 1] = a [j]; J--; } A [J + 1] = key; }}   

and this is a

  entry_source (item S [], int n) {int i, j; (I = 1; i & lt; n; i ++) for {J = I; While ((j> 0) & amp; amp; amp; (s [j]   

Here the sample classification array is a = {5, 2, 4, 6, 1, 3}. In my opinion, the second version takes more steps because it swaps the number one by one, while the first loop swaps more numbers in the loop and then swaps the smallest number. For example: to index = 3, both versions take the same steps, but when the index = 4 arrives, to take the number 1 swap, takes more than 1 phase in 2. What do you think?

"Number of numbers" is nothing useful.

Is one step one line? a statement? an expression? An assembler directive? A CPU micro-op?

That is, your "steps" are converted into assembler and then optimized, and the resultant instructions can be different (and potentially variable) runtime costs.


Wise questions you can ask:

1 algorithmic complexity is it?

As noted in response to the comments and arpit of rifle kettler, it aligns algorithm scales as to how the input size

2 how to do

If you want to know which is faster (for some set of input), you should measure it.


If you want to know what more swap does, then why not just type a swap function every time it is called , And detects, then enhances a global counter?

oracle11g - Oracle shared memory realm does not exist -


I'm running Oracle 11 on a Windows 7 machine. This morning I have this strange problem when I try to connect to the database, then it says 'Shared memory area is not present' However, when I use the Database Configuration Assistant, select a database and click the Next Do this, retrieving 'database information'. During that time, when I connect to the database, after 'getting information of database' once in the 'Oracle shutdown in progress' message (and I do not exceed that step in database configuration assistant) I'm able to connect to the database without issue.

I used to compare environmental variables and windows before and after the services and all of it were the same.

The question is, what does 'retrieve database information' in the Database Configuration Assistant, determines that 'shared memory area is not present' problem?

Any suggestion will be useful

PS I have examined other questions related to this topic in StaxHowFlow and found nothing useful or I did not understand it properly. Please do not close this question as a duplicate.

thanks guys

I solved the issue below.

1) Select & gt; Program & gt; Oracle - HOME_NAME & gt; Configuration and Migration Tool & gt;

2) Select the Startup / Shutdown option. 4) Select the Oracle instance tab.

Select starting example when the service is started, the service is stopped, or the two are closed.

I restarted the machine and it worked.

iphone - iOS - Best way to select an area of an image -


I'm looking for the best way to select an image area. Actually I want to load some jpgs, and let the user scale or move it, and get the coordinates on the image of a predecessor in the center of the picture. What is the best way to do that ? Does anyone know a library? Thank you in advance

The best way is to use the UIImagePickerController class.

You can navigate in this way:

  - (zero) Choose Photoform Library {UIImagePickerController * cameraUI = [[UIImagePickerController alloc] init]; CameraUI.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; // Shows controls for moving & amp; Scaling photos // To hide the control instead, use NO. CameraUI.allowsEditing = Yes; CameraUI.delegate = self; [Self-present ViewController: cameraUI animated: yes complete: zero]; }   

and then get the edited image like this:

  - (zero) imagePickerController: (UIImagePickerController *) Picker didFinishPickingMediaWithInfo: (NSDictionary *) information {UIImage * Basic = Info [@ "UIImagePickerControllerEditedImage"]; // whatever you want with the image, [self-sharpening visual controller; unlimited: yes complete: zero]; }    

javascript - HTML Select Tag and changing values in the drop box -


I have a select box, I want to drop down the text to show one thing and when it is selected in the box If it goes, then this one else does not show my value tag either I would appreciate all the help. For example:

For example:

Select the selection box when it is not left below, should say and value is selected:

T2 <

T1: (includes T1A, T1B, and T1C): Tumor 2 cm (3 inches) 4 inches) or less.

T2: The tumor is more than 2 cm but not more than 5 centimeters (2 inches).

T3: The tumor is more than 5 cm.

Option labels are not fully supported (even if they think they are :))

To trick and work it , Add a first blank & lt; Options & gt;
We will use jQuery

  • Hold the selected option value,
  • copy that value to text and empty & lt; Options & gt; Tags

    Value for jQuery

      $ .fn SelectLabelize = function () {var v = $ (': selected', this) .val (); $ ('Option', this) .eq (0) .text (v) .val (v) .prop ('selected', true); }; $ ('Select'). Each (function () {$ (this) .selectLabelize ();}); $ ('Choose'). ('Change', function () {$ (this) .selectLabelize ();});   

    In view of such a HTML :

      & lt; Select & gt; & Lt; Options & gt; & Lt; / Options & gt; & Lt; Optgroup label = "T1" & gt; & Lt; Option value = "T1a" selected & gt; A - Tumor is 2 centimeters (3/4 inches) or less. & Lt; / Option & gt; & Lt; Option value = "t 1b" & gt; B - Tumors are 2 cm (3/4 inches) or less. & Lt; / Option & gt; & Lt; Option value = "t 1c" & gt; C - Tumors are less than 2 cm (3/4 inches) or less. & Lt; / Option & gt; & Lt; / Optgroup & gt; & Lt; Optgroup label = "T2" & gt; & Lt; Option value = "T2" & gt; The tumor is more than 2 cm but not more than 5 cm (2 inches). & Lt; / Option & gt; & Lt; / Optgroup & gt; & Lt; Optgroup label = "T3" & gt; & Lt; Option value = "T3" & gt; The tumor is more than 5 cm & Lt; / Option & gt; & Lt; / Optgroup & gt; & Lt; / Select & gt; Pure JS must be used:  

       code> select function label ( ) {Var v = this.value; this. Options [0]. WinnerHTML = v; this. Option [0] .value = v; this. Options [0]. Selected = true; } Var sel = document.getElementsByTagName ('Select'); Var ev = document.createEvent ('Event'); Ev.initEvent ('change', true, false); (Var i = 0; i & lt; sel.length; i ++) {cell [i] .addEventListener ('change', select label); Sel [i] .dispatchEvent (EV); }