javascript replace text in multiple HTML files with other text
◷
تاریخ انتشار: 1395/3/28 | ساعت: 18:43
Vote count: 0 I would like create a javascript that automatically find and replace a text variables with another ones in multiple HTML files, for instance: text to search (located as is in HTML files): %%LNG_SyndicateNewProducts%% %%LNG_SyndicateNewProductsAtom%% %%LNG_SyndicateNewProductsIntro%% %%...
Error publishing from visual studio
◷
تاریخ انتشار: 1395/3/28 | ساعت: 18:43
Vote count: 0 I am trying to publish my app online from visual studio. My app works fine locally but when I try to run it online it gives me the following error. Kindly see the image You can also refer to this link http://stmscheduler.azurewebsites.net/ asked 31 secs agoChaudhry Mohsin Ali Let's blo...
Prevent landscape view of the website in a mobile
◷
تاریخ انتشار: 1395/3/28 | ساعت: 18:43
Vote count: 0 I am loading a javascript widget in an iframe and would like to prevent it from rotating inside the iframe when orientation is changed to landscape mode. There are a lot of solutions on SO but those are for the website and not for one that is within an iframe. Any ideas? asked 31 secs ...
Hiding the nav-bar, while opening in the new window
◷
تاریخ انتشار: 1395/3/28 | ساعت: 17:42
Vote count: 0 I'm creating a web page where I'll display a table inside a div. I've a button called full view. When I click that button, only that div should be displayed in a new window. All others should be hidden. Only the div and the table inside it should be displayed. This is how I tried to di...
Javascript image slider transition
◷
تاریخ انتشار: 1395/3/28 | ساعت: 17:42
Vote count: 0 I'm looking for a code, which adds a transition after the picture changes. Here's my code: <script type = "text/javascript"> function displayNextImage() { x = (x === images.length - 1) ? 0 : x + 1; document.getElementById("img").src = images[x]; } function displayPreviousImage() { x = ...
Find values in a pandas dataframe containing a substring
◷
تاریخ انتشار: 1395/3/28 | ساعت: 17:42
Vote count: 0 I have a pandas dataframe with string values and I would like to be able to retu a subset of the dataframe where the values contain some substring. This is easy to do on a series in this way (example adapted from pandas documentation): import pandas as pd import numpy as np s4 = pd.Ser...
Video background banner (not full page)
◷
تاریخ انتشار: 1395/3/28 | ساعت: 16:40
Vote count: 0 I'm building a website with a video ba er from youtube but I don't know how to achieve this. For now I have this: #video-background { position: absolute; right: 0; top:135px; left:0; bottom: 0; width:100% !important; width: auto; height:50vh; min-height: 550px; z-index: 99; } <div id="...
pip install using proxy in a virtual environment
◷
تاریخ انتشار: 1395/3/28 | ساعت: 16:40
Vote count: 0 I work on a Ubuntu VM in my company's laptop which uses proxy server for co ecting to inte et. After some research I found out how to install modules using pip install with proxy. For example, using this command I can install my virtualenv module: sudo pip install --proxy=http://user:p...
How to redirect user to a page after login in .Net MVC?
◷
تاریخ انتشار: 1395/3/28 | ساعت: 16:40
Vote count: 0 I wanted User to write a generic post with image and location and then when he clicks on share post, he should be redirected to login screen. After he logs in, he should be directed on to the post/details/id page directly. Plz help. asked 1 min agoShalin Jirawla Let's block ads! (Why?)
How to know if a variable is in an attribute of an object in a list?
◷
تاریخ انتشار: 1395/3/28 | ساعت: 15:05
Vote count: 0 To check if a variable is in a list, I know that one can use if variable in list. In my instance, I have a list of objects, all of which have the attribute "id", I want to check if an object in a list has a specific ID, but I'm not sure how I would go about doing that. I already tried ...
How to install elasticsearch as a service using brew
◷
تاریخ انتشار: 1395/3/28 | ساعت: 15:05
Vote count: 0 I want to use brew to install elasticsearch but I don't succeed to install it as a service to be able to start it like: sudo service elasticsearch start and to be able to stop it like: sudo service elasticsearch stop Do you know how I can do it? asked 1 min agomel Let's block ads! (Why...
Read different xml Nodes with same names
◷
تاریخ انتشار: 1395/3/28 | ساعت: 15:05
Vote count: 0 for the following xml <Student> <Name>Marc</Name> <Age>20</Age> </Student> <Student> <Name>Peter</Name> <Age>30</Age> </Student> I'm trying to run a code to go throught all the objects Student. What I did so far is (taking into account xmldoc is my xmlDocuemtn variable) Dim AllStudentN...
Differentiate between default image and user image from google/FB response
◷
تاریخ انتشار: 1395/3/28 | ساعت: 12:45
Vote count: 0 Is there a way to differentiate between default image and user image from google/FB response? what I want is to display it(the image) as a profile pic of that user only if a user has one in Google/FB (not the default pic provided by them like this one) thanx in advance any help will be...
extract unique value into a file in R
◷
تاریخ انتشار: 1395/3/28 | ساعت: 12:45
Vote count: 0 I wish it could output unique values into a file "output.txt", my code sink("output.txt") d=as.factor(c("a","b","c","c")) unique(d) sink() It output as Levels: a b c But I wish it as one element in one line like: a b c asked 1 min agoDaniel YC Lin Let's block ads! (Why?)
Camel FTP with pollStrategy fails
◷
تاریخ انتشار: 1395/3/28 | ساعت: 12:45
Vote count: 0 I have a standard route with a ftp uri as a consumer endpoint with a pollStrategy defined and added to the registry. However, I am getting the following error: Caused by: java.lang.IllegalArgumentException: Could not find a suitable setter for property: pollStrategy as there isn't a se...
How do I create a new dataframe using grouped output from another dataframe?
◷
تاریخ انتشار: 1395/3/28 | ساعت: 11:42
Vote count: 0 I have tick data containing symbols, bid prices, and ask prices. I was able to find the average spread and standard deviation of each symbol. I'd like to create a confidence interval for each symbol and have the final DataFrame output have the columns ticker symbol average spread lower...
How to toggle a UITextField secure text entry (hide password) in Swift?
◷
تاریخ انتشار: 1395/3/28 | ساعت: 11:42
Vote count: 0 I currently have a UITextfield with an eye icon in it that when pressed is supposed to toggle the secure text entry on and off. I know you can check mark the secure text entry box in the attributes inspector but how to do it so it toggles whenever the icon is pressed? asked 2 mins agoS...
Web Design And Web Development
◷
تاریخ انتشار: 1395/3/28 | ساعت: 11:42
Vote count: 0 This is so silly question but I am new in web design .I want to know the languages I will have to lea in order to become a decent web developer and web designer. Thanks in advance asked 2 mins agoINDRESH KHANDELWAL Let's block ads! (Why?)
PHP buffering outputting in chunks
◷
تاریخ انتشار: 1395/3/28 | ساعت: 10:35
Vote count: 0 I have a function called getSiteMapIndex() which retu s a pretty large string (4000 lines). So I store the output inside the buffer and then echo the buffer. But it seems like the page is still loading the text in chunks... My code: ob_start(); echo getSiteMapIndex(); $sitemap = ob_get...
How can I correct this error in mfc?
◷
تاریخ انتشار: 1395/3/28 | ساعت: 10:35
Vote count: 0 My code is: CString testArray[5]; for (int i = 0; i < 5; i++) { testArray[i].Format("%d", i*4); } memmove(testArray[2], testArray[3], sizeof(testArray)-2*sizeof(testArray[0])); for (int i = 0; i < 5; i++) { MessageBox(testArray[i]); } I compiled it in visual studio 2010, and I can see ...