PHP Autoloading in Namespaces

I have had a slight problem with autoloading in my namespace. As shown on the PHP manual here: http://us.php.net/manual/en/language.namespaces.rules.php you should be able to autoload namespace...

Core Data Model Design

Let's assume I have an app about cooking recipes with two fundamental features: The first one involves the CURRENT recipe that I'm preparing The second one stores the recipes that I've decided to...

Reformatting data imported from an excel file in pandas

I am trying to import data from an excel file. The data is arranged through several spreadsheets within the file. The data looks like this: sheet1: Names Values pvalues Bread 3 0.001 ...

sql database design for multiple restaurants

I'm storing all orders from multiple restaurants.(not a chain) These restaurants have unique items which may or may not be in the same category(sweet, salty, drinks, entrees, appetizers, etc)...

Dependencies problems in downloading and installing packages in Ubuntu 12.04LTS and held broken packages

I am a newbie in Ubuntu. I have installed 12.04 LTS in my laptop and it was moreover all fine. I want to install packages like wine,VLC,Chromium Browser,etc I was getting various error...

WebDriver Firefox driver not working

package org.openqa.selenium.example; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import...

Google API works with less JSON data - but not with more?

I used Google API to create a map of places to drink for a project. It works when I tested a couple of data items, but it stopped when I added more? I'm wondering where to start to fix this...

Setting up Models for related data MVC 5/EF6

I have been trying to work this out for a while now and can't find an answer that makes sense to me. The concept is very common, so I must be totally misunderstanding a basic concept. If I have a...

Count letter frequency in PDA

I'm trying to construct a PDA or a CFG that accepts all words where E is the most common letter. Cheese and tee would be in the language for example. I'm pretty sure this language is context free...

Python 3: Is not JSON serializable

TypeError: b'Pizza is a flatbread generally topped with tomato sauce and cheese and baked in an oven. It is commonly topped with a selection of meats, vegetables and condiments. The term was first...

Integrity constraint violation: 1048 Column 'taggable_id' cannot be null

I am trying to set up laravel-tagging, which seems to be the most popular tagging system for Laravel out there. But unfortunately it doesn't come with any front-end features. There is a guide for...

Most common value from multiple colums in Pandas

I have a series of data in an irregular number of columns and I need to determine the most common value from split sections across multiple columns using pandas. An example of what I mean is if I...

How to get the json from a text file in python

def calculateStats(): pattern = "Online_R*.txt" for root, dirs, files in os.walk("."): for name in files: if fnmatch.fnmatch(name, pattern): if(fName in root): ...

finding pattern within csv file

I have a CSV Excel file example: Receipt Name Address Date Time Items 25007 A ABC pte ltd 4/7/2016 10:40 Cheese, Cookie, Pie . . 25008 B CCC pte ltd 4/7/2016 12:40 Cheese,...

How to obtain/parse JSONObject data with GSON

I am trying to use retrofit with android, which is kind of forcing me to use gson. I am trying to get the data from the payload["response"]["docs"][0]["web_url"] in my code. Issue : the key...

How to fix broken apt-get on debian wheezy?

I'm using a debian wheezy at work. Packages are held in specific versions. My /etc/apt/sources.list contains lines like : deb http://mycompany.com/debian/debian-main/ wheezy main non-free...

Trouble with ggplot2 position = "fill"

I am having trouble with creating a position = "fill" graph and was wondering where I was going wrong. I found some data from a wikipedia page and created a dataframe out of it: #Vitamin Contents...

Polymorphism with Spark / Scala, Datasets and case classes

We are using Spark 2.x with Scala for a system that has 13 different ETL operations. 7 of them are relatively simple and each driven by a single domain class, and differ primarily by this class...

Ansible logging

I am having difficulty getting Ansible to perform logging. A simple YAML named demo5.yml spins up AWS EC2 instances (below). The following entry has been added into the ansible.cfg...

Getting Selenium-WebDriver Example to work

I am completely new to Selenium, and just want to install & run the example to begin with, as described here: http://www.seleniumhq.org/docs/03_webdriver.jsp I have installed the Java SE 9.0.1...

use formControl in angular code

I'm not able to use formControl in my mat-select. I'll remove all innecessary data from files. this is my package.json "dependencies": { "@angular/cdk": "5.0.4", "@angular/common": "~5.2.0", ...

NXOS Ansible "Connection failure: timed out"

I am very new to Ansible and am trying to run my first playbook against a nexus 5600. I am using the cisco-programmable-fabric playbook I have connectivity to the N5K, and can ping it from the...

Image Picker - Ionic Native Component

I am trying to use this image picker source to select multiple images(25+) from the devices camera roll but am receiving errors when I try to access the gallery. So, I essentially just have a...

How to convert Json array to List<string>?

Here's the JSON I'm parsing. <item>{\"name\":{\"mainName\":\"Ham and cheese sandwich\",\"alsoKnownAs\":[]},\"placeOfOrigin\":\"\",\"description\":\"A ham and cheese ...

Escaping exclamation marks with delayed expansion

I have a batch file I'm using to search for a piece of text and replace it with another. It works, but what's happening is that when the 'new' file is created, anything after an exclamation mark...

Add Column when using rowFormatter (Cheese Example)

I feel I am missing something simple... The cheese example of how to use the rowFormatter is exactly how I want to implement something, except I'd like to add various additional columns... I've...

Hunchentoot Handling Checkbox Post Requests

I am developing a web application in Cl-who, Hunchentoot, and Common Lisp that will need to process customer orders. Since they could obviously order more than one item, I figured a Checkbox would...

Java program is not terminating when using Selenium Webdriver

As described in the question, when i initialize an instance of selenium web driver, my java program does not close after the main method has finished running. I am using the sample code from the...

changing the remote tmp path in ansible.cfg (Windows client)

Good day everyone, I am having some issues any task on a Windows machine i ran the following: ansible -m ping Windows -u ansible -kK -vvv 192.168.140.147 | UNREACHABLE! => { "changed":...

Strange file permission/authentication error with Ansible

I am having issue running any playbook on Windows Machine, i am prompted with an error (kindly refer below) I have no issues establishing an SSH connection from my Host to the windows remote...