Mim – Personal Portfolio WordPress Theme

Uncategorized
Mim – Personal Portfolio WordPress theme is a clean and modern WordPress theme for personal portfolio, resume web site. Built with the latest WordPress technology. Mim portfolio theme makes with responsive layout. So it looks great on all devices And also fastest page loading. It has predefined styling for represent your personal info. which can be imported form demo with one click.
Read More

Print all links that may contain any of the words from a list

Uncategorized
Question: How to print all links from a webpage that contains a word from a list of words. I got the list of links that contains the word 'contact' using Beautifulsoup and the code goes like below. soup = BeautifulSoup(html_page, "html.parser") for link in soup.findAll('a'):links = link.get('href') if 'contact' in links:print links But how can I print links with the following condition keywords = ("contact", "reach", "feedback", "address") if links contain any words from keywords: ## this is not actual code print links; Answer: This is likely a duplicate, though I'm on mobile so I'm having difficulty finding another question that answers yours. In brief, what you probably want is a list comprehension and any if any( [word in links for word in keywords] ) any returns True if there's…
Read More

Chrome not reachable Selenium WebDriver error

Uncategorized
Question: i am facing this issue, i know this question is already present and i have tried the solutions mentioned hence asking this with my configurations and code Earlier the scripts were running but now they aren't So i tried making a basic open browser script. Latest Version of Selenium WebDriver : http://selenium-release.storage.googleapis.com/3.5/selenium-java-3.5.0.zip Latest Version on ChromeDriver : http://chromedriver.storage.googleapis.com/index.html?path=2.31/ Basic Open browser code:`package Trial; import java.util.concurrent.TimeUnit; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class Trial_Class { public static void main(String args[]){ System.setProperty("webdriver.chrome.driver", "chromedriver.exe"); WebDriver driver = new ChromeDriver(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); driver.get("http://www.youtube.com"); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); } } ` But still i am getting the below error :Starting ChromeDriver 2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8) on port 43967 Only local connections are allowed. Exception in thread "main" org.openqa.selenium.WebDriverException: chrome not reachable (Driver info: chromedriver=2.31.488763 (092de99f48a300323ecf8c2a4e2e7cab51de5ba8),platform=Windows NT 6.3.9600 x86_64) (WARNING:…
Read More

Visual Studio development server unexpectedly executes Thread.Abort

Uncategorized
Question: The following code results in our Visual Studio 2012 development web server, or the alternative IISexpress, effectively killing the AppDomain of our WebApp by executing a Thread.Abort in all of it's constituent threads from the threadpool. What I do not understand is why? I cannot find anything documented which specifically states under what circumstances the web server would do this. Also, there is precious little from the "verbose" output of the web server itself. This took several days worth of effort to track down. Normal debugging techniques proved worthless. I eventually had to resort to the tried and tested method of commenting out method bodies until I reached that "ah-ha" moment. One of our developers had inadvertently created a temporary file and then closed it again deep within one…
Read More

Count of items with having common name (different index in the middle as Name)

Uncategorized
Question: I have a record on a list and is displayed on my page. they are named like name="detailList[0].category" name="detailList[1].category" name="detailList[2].category" how would I be able to count the number of elements having this NAME. "detailList[x].category" Note: I can't use id . because I am using jsp and it is automatically set to the name when I declared them using logic:iterate. Answer: If you mean detailList[x].category matches all three, i.e. x is any number var result = [].filter.call(document.querySelectorAll('[name^="detailList["]'), function(item) { return item.name.match(/^detailList[d+].category$/); }).length; console.log(result, 'matches'); Read more
Read More

is there an apollo site official , what is the correct name? graphql

Uncategorized
Question: is there an official site for apollo? I've found:http://dev.apollodata.com/ https://www.howtographql.com https://www.learnapollo.com/ https://www.apollodata.com/ what is complet name for apollo? nothing clear, it's confused. in wikiepdia nothing: https://en.wikipedia.org/wiki/Apollo_(disambiguation) Relay same, have 3 versions: very old , old, and new ( relay modern) and his official site is messy with tutorial with old versions. Answer: Read more
Read More

Can we live stream a song to other device while we are playing (iOS Swift)?

Uncategorized
Question: My project has a requirement to live stream an audio song when user playing only (not a VOD type), and when user pause it should pause on all streaming devices (Real Time) reference app - AMPME Following R&D done by me but still I haven't tested the core functionality. I used wowza stream engine for following experiments... VOD - Pasted audio / video in the content bucket and played in some RSTP and non-RSTP audio / video iOS players and it’s working successfully. LIVE - Streamed Live Video Feed and played in open player and other Video Players - non RSTP audio players having 1 - 2 Minutes of live streaming delays. LIVE - Tested live Shoutcast audio streams - its works perfect. Am I on right track to…
Read More

bootstrap carousel slider with text

Uncategorized
Question: I had not much knowledge in html and css,i am using a bootstrap carousel slider with text here i want to change the colour of the box random wise here is the code that i am using. Sed vel lectus by Merovingi Sed vel lectus. Donec odio urna, Proin porta auctor nisi by Merovingio in Jun 22, 2017 at 00:34 Proin porta auctor nisi in interdum. Aenean sodales by Merovingio in Jun 22, 2017 at 00:33 Aenean sodales, leo eu euismod tincidunt, felis odio aliquam velit, http://jsfiddle.net/ssoorajs/gbvscs64/ is it possible to write it in css or any script is needed. Answer: You need to add this CSS .item:nth-child(1){ background:green; overflow:hidden;} .item:nth-child(2){ background:blue; overflow:hidden;} .item:nth-child(3){ background:yellow; overflow:hidden;} .carousel { padding-bottom: 25px } .carousel img { padding-top: 20px; } .carousel h2…
Read More

Can we assign address of two nodes as a next of a one LinkedListNode in C#?

Uncategorized
Question: I am solving one program from linked list data structure in c#, where I need to check that given linked list is NULL terminated or ends with cycle. I want to check it with different test cases, but not able to pass cyclic linked list as an input. How to pass an cyclic linked list as an Input? Problem from hackerrank will give you an idea, what I am trying to achieve? Here is my code to achieve linked list showed in the image private static LinkedList InitializeLinkedList () { LinkedList linkedList = new LinkedList(); LinkedListNode item1 = new LinkedListNode(1); LinkedListNode item2 = new LinkedListNode(2); LinkedListNode item3 = new LinkedListNode(3); LinkedListNode item4 = new LinkedListNode(4); LinkedListNode item5 = new LinkedListNode(5); LinkedListNode item6 = new LinkedListNode(6); linkedList.AddLast(item1); linkedList.AddLast(item2); linkedList.AddLast(item3); linkedList.AddLast(item4);…
Read More

How do i mathematically apply a window function to a signal in matlab?

Uncategorized
Question: I am currently trying to make a plot of a windowed signal. The plot is currently been made in latex, but can't seem to recreate the plot generated in matlab in latex. %% Time specifications:Fs = 8000; % samples per second dt = 1/Fs; % seconds per sample StopTime = 60; % seconds t = (0:dt:StopTime-dt)'; % seconds %% Sine wave:Fc = 60; % hertz x = sin(0.9*pi*t) + sin(0.42*pi*t); %x = cos(2*pi*Fc*t) + cos(2*pi*Fc*5*t)+ sin(2*pi*Fc*10*t); % Plot the signal versus time:figure; %plot(t,x); %xlabel('time (in seconds)'); %title('Signal versus Time'); %zoom xon; %% window = hamming(length(t),'periodic'); %plot(window) windowed = x.*window; plot(windowed) This generates a plot like this But when i tries to recreate the plot in matlab.. I get something way different. What I am plotting is this :w= sin(0.9*pi*t)…
Read More

Quartz.NET 2.6 – Multiple Triggers Same Class Library

c#
Question: I really don't know if this is possible in Quartz.net but I was developing a class library to be registered in quartz.net as a crontrigger. This class library has two functions: It will read a table in a sql server db named DBx if the triggergroup is equal to the value "internal". This should occur every 1 minute. It will read a table in a sql server db named DBy if the triggergroup is equal to the value "external". This should occur every Mon-Fri from 8am to 5pm. I created 2 jobs (2 records appeared at jobs_detail table) and 2 triggers (2 records appeared at the triggers and cron_triggers table respectively) with different schedules and with the corresponding triggergroup associated but pointing to the same dll. What happen is…
Read More

Recursive mixin in Pug

Uncategorized
Question: We use Pug to produce a style guide, and have a mixin to generate a header and description for reusable elements. A simplified example is this: mixin sgitem(name) if !isnested - isnested = true h3=name block else block - isnested = false That means that if I write this:+sgitem('Foo') include partial with sgitem +sgitem('Baz') div Example here , the nested item should just return the block and not the name. Well, that works, but not if there's a second or third nested sgitem:+sgitem('Foo') include partial with sgitem include partial with sgitem +sgitem('Baz') div Example here That will generate this:Foo Nested example Nested title Nested example Baz Example here , while I would like this:Foo Nested example Nested example Baz Example here It probably is an issue not with Pug…
Read More

Passing one of the value to controller when clicking a button

Uncategorized
Question: I have a table like this: When I click the Delete! button, I want to pass the role ID to the controller. After looking for a lot of cases in stackoverflow. I've just succeeded to retrieve the role ID using JS. Code like this:$(".deleteButton").click(function() { var $row = $(this).closest("tr"); var $text = $row.find("td:first-child").text(); // Let's test it out alert($text); }); But the problem is, I don't how to pass it back to the button, so then the button can pass it to the controller. Is there any simple way to pass it to the controller? Maybe without retrieving the role ID first, and when click the button the value passed and the controller called at once? This is my code: ID Role Role Jumlah Member Edit! Delete! Answer: Do…
Read More

Which map should I use for my requirement?

Uncategorized
Question: I have two requirements and i can only use map. Duplicate keys are allowed.(for this i am using multimap) I have to search for a wild card. Example : if keyset contains "Dave" and "Dave bautista" it will return both. How to achieve both? Answer: // Returning Map Map filterObjects = new HashedMap(); // Input List Map Map map = new HashedMap(); map.put("Dave", null); map.put("Dave bautista", null); // User requesting Key Name String userInput = "Dave bautista"; for (int i = 0; i < map.keySet().size(); i++) { //KeyNames retrieve as element by element from the map String keyName = map.keySet().toArray()[i].toString(); //checks the availability of the userInput with element name if (keyName.contains(userInput)) { // If matched, then put it in to the return Map filterObjects.put(keyName, map.get(keyName)); } } return filterObjects;…
Read More