preview

Preview site for Sitecore editors

走远了吗. 提交于 2020-01-15 19:15:05
问题 Our content editors would like to have a preview site that would point to the master database. The site can be used to preview how the web page would look on the live site. The users aren't really comfortable using the 'Preview' option inside Sitecore. This site would point to the CMS server and be separate from the CMS site (used for content editing). The reason we can't use the CMS site to preview data is that HTML caching comes into play and content is not updated right away when a page is

Preview site for Sitecore editors

我们两清 提交于 2020-01-15 19:12:02
问题 Our content editors would like to have a preview site that would point to the master database. The site can be used to preview how the web page would look on the live site. The users aren't really comfortable using the 'Preview' option inside Sitecore. This site would point to the CMS server and be separate from the CMS site (used for content editing). The reason we can't use the CMS site to preview data is that HTML caching comes into play and content is not updated right away when a page is

Update .NET Core Tools

荒凉一梦 提交于 2020-01-15 09:49:26
问题 I'm trying to use EntityFrameworkCore@3.1. In order to do this at this point I already have: - Installed Visual Studio 2019 Preview - Installed the .NET Core 3.1 Runtime - Installed the .NET Core 3.1 SDK Now I still can't run the command dotnet ef migrations add xxx . It's saying that I have to update the dotnet tools. So I run the following command in an administrator powershell: PS C:\WINDOWS\system32> dotnet tool update --global dotnet-ef Tool 'dotnet-ef' was reinstalled with the latest

Jquery image preview plugin issue

让人想犯罪 __ 提交于 2020-01-14 06:17:10
问题 I have a problem with an image preview that comes up when you hover over a thumbnail. I can change the distance between the preview and the cursor, but if a thumbnail is close to the side of the window, the preview cant fit and you only see part of it.. hope that makes sense... is there a way to make it so that if the preview doesnt fit, it will show up on the other side of the cursor?.... Here is the script... this.imagePreview = function() { /* CONFIG */ xOffset = 10; yOffset = 30; // these

Chrome -> Inspect element -> Network (XHR) -> Preview Tab (HTML) issue

江枫思渺然 提交于 2020-01-12 08:05:18
问题 I am having a problem with that preview tab in network section. When HTML is returned I am seeing the raw HTML in both preview and response. Sometimes, but very rarely, I HTML is rendered properly in Preview tab. Am I doing something wrong or it's just some Chrome bug? Thanks 回答1: I was testing this as well. What did it for me was adding the http header. header('HTTP/1.1 500 Internal Server Error'); Then of course some proper markup formatting. But the status code was what I needed to

Chrome -> Inspect element -> Network (XHR) -> Preview Tab (HTML) issue

与世无争的帅哥 提交于 2020-01-12 08:05:10
问题 I am having a problem with that preview tab in network section. When HTML is returned I am seeing the raw HTML in both preview and response. Sometimes, but very rarely, I HTML is rendered properly in Preview tab. Am I doing something wrong or it's just some Chrome bug? Thanks 回答1: I was testing this as well. What did it for me was adding the http header. header('HTTP/1.1 500 Internal Server Error'); Then of course some proper markup formatting. But the status code was what I needed to

Camera preview with a transparent image above

≯℡__Kan透↙ 提交于 2020-01-12 01:58:25
问题 I would like to see an image on top of Camera SurfaceView\preview. How do I do that? Any examples? 回答1: A great example can be found in ZXing library, Barcode Scanner application. What they do is they use FrameLayout for SurfaceView and their custom ViewfinderView so that both SurfaceView and ViewfinderView are covering full screen: <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"> <SurfaceView

Preview videos in HTML5 of type .mov

雨燕双飞 提交于 2020-01-06 23:41:27
问题 I'm trying to browse and upload videos using the code given in this fiddle. (function localFileVideoPlayerInit(win) { var URL = win.URL || win.webkitURL, displayMessage = (function displayMessageInit() { var node = document.querySelector('#message'); return function displayMessage(message, isError) { node.innerHTML = message; node.className = isError ? 'error' : 'info'; }; }()), playSelectedFile = function playSelectedFileInit(event) { var file = this.files[0]; var type = file.type; var

setPreviewSize does not work on Nexus 5 kitkat

一笑奈何 提交于 2020-01-05 13:12:37
问题 In my app i need to set the camera preview size at 640x480. I tried my code on different devices and different android versions (for example 2.3.6 on samsung galaxy S2, 4.0.3 on asus tf101g, 4.3 on galaxy nexus), and at the last on the new Nexus 5 with android kitkat(4.4). My code works perfectly in all devices, but doesn't work on Nexus 5. Why? In fact after this steps: int PREVIEW_WIDTH = 640; int PREVIEW_HEIGHT = 480; if(isSupportedSize(PREVIEW_WIDTH,PREVIEW_HEIGHT,mCamera)){ /

android image preview example for cropping

强颜欢笑 提交于 2020-01-05 04:12:12
问题 Many apps, such as Facebook, have this feature where after a user chooses an image from their device's gallery, the user is then brought to a preview where they can choose a cropped version of their image. After looking through SO (e.g. How to crop image on camera preview "Goggles style" - Android), I found this link to a an example, but the zip seems to be for sale ( CameraPreview.zip ). Since that post is a bit old, I was wondering if someone is aware of another example out there or if they