Posts

Showing posts from July 28, 2018

Amazon RDS: I follow all the instructions for creating a new RDS instance and setting my inbound rules correctly and yet cannot connect

Image
Clash Royale CLAN TAG #URR8PPP Amazon RDS: I follow all the instructions for creating a new RDS instance and setting my inbound rules correctly and yet cannot connect What I'm looking for is a better step by step explanation, as I followed Amazon's and the instance is available, the security group has inbound and outbound all traffic allowed at my IP (I also tried "anywhere" and that didn't work either). I also added my public whoami IP address to the CIDRs in the vpc I'm using with /24 after it as instructed by Amazon. Is there another step that I'm unaware of? Something else that could be causing me to be unable to connect? By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Remove only half of specific adjacent duplicates in python list

Image
Clash Royale CLAN TAG #URR8PPP Remove only half of specific adjacent duplicates in python list I have a tool which is outputting some data . It is known that whenever '10' comes in the data it is added with extra '10' I.e new data becomes ... '10', '10', . Sometimes there can be 4 '10' in consecutive series which means that there is actually 2 '10'. While reading the data I am trying to remove the duplicates . Till now I have learnt how to remove duplicates if only two adjacent duplicates are found but at the same time if even number of duplicates are found , I want to return half of the duplicates . x = [ '10', '10', '00', 'DF', '20' ,'10' ,'10' ,'10' ,'10', ....] Expected output [ '10', '00' , 'DF', ' 20', ' 10', '10' ..] What code have you written so far? – Henry 1 hour ago @ Henry 28 Using list comprehe...

How to set image slider on header in android

Image
Clash Royale CLAN TAG #URR8PPP How to set image slider on header in android I am new in android developing please help me. I want to set image slider at the top on page and image are dynamic come through web service. example of image slider like below:- just like a slider show in this image (Back Story shop fro Backpacks) same i also want and remember image are dynamic. My activity.main.xml: <RelativeLayout xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:custom="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:id="@+id/linear_layout_outer" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="ver...

Convert uint16 array to string

Image
Clash Royale CLAN TAG #URR8PPP Convert uint16 array to string I have an array of uint16 coming from WinAPI PROCESSENTRY32.szExeFile that I wanna convert to a string. PROCESSENTRY32.szExeFile Here's my var type var hello [260]uint16 now I need to convert hello to a string. How can I do that? Edit Here's what I've tried: func szExeFileToString(ByteString [260]uint16) string b := make(byte, len(ByteString)) for i, v := range ByteString b[i] = byte(v) return string(b) However, this returns pretty weird strings... result (the function should convert Windows process names in the PROCESSENTRY32.szExeFile (-> [260]uint16 ) type to string) PROCESSENTRY32.szExeFile [260]uint16 What format should the string take? What have you tried? Show your code. What problems did you encounter? – Flimzy 9 hours ago @Flimzy question edited. – Micheal N. 8 hours ago Why downvoting my question? I don't see what's wrong with it. – Micheal N. 8 h...

Rail Clearways Program

Image
Clash Royale CLAN TAG #URR8PPP CityRail ticket with Rail Clearways promotional material Berowra additional platform completed in October 2006 Hornsby additional platform completed in April 2009 Kirrawee additional platform built as part of Cronulla line duplication completed in April 2010 Lidcombe turnback platform completed in November 2010 Extra track at Riverwood laid as part of Kingsgrove to Revesby quadruplication completed in April 2013 The Rail Clearways Program was a program of public works on Sydney's suburban railway network conceived in 2004 with the aim of easing congestion by reducing the amount of infrastructure shared by multiple services. The disparate projects at pinch points throughout the network were designed to increase capacity and improve reliability. All projects were delivered by the Transport Construction Authority until it was subsumed in November 2011 by Transport for New South Wales. Following the introduction of a new timetable in October 2013 that ...

C++ Vector not displaying contained object's data [duplicate]

Image
Clash Royale CLAN TAG #URR8PPP C++ Vector not displaying contained object's data [duplicate] This question already has an answer here: I'm new to C++. I've searched around a bit but cannot find something that helps. Very simple program, just trying to store 'Person' objects in a Vector and access those objects. My Vector, as of now, holds one object of type 'Person'. 'Person' objects have a 'name' field. I'm simply trying to display that 'name' field. But when the program runs, nothing prints to the console. I'm still getting comfortable with Vectors and pointers, so my vector setup may be the cause. My 'getName()' function is setup correctly. Can someone please let me know if the way I'm declaring and inserting objects into my vector, as well as the vector declaration/iteration, is correct? #include <iostream> #include <string> #include <ctime> #include <vector> #include "Person.h...

PHP Magento SOAP-ERROR: Parsing WSDL: Couldn't load from urlpath

Image
Clash Royale CLAN TAG #URR8PPP PHP Magento SOAP-ERROR: Parsing WSDL: Couldn't load from urlpath I am trying to create a soap client by passing a url that is hosted on my local machine, my dev environment and I keep getting this error. I use to be able to make this call and it worked just fine. Basically all I am doing is this $client = new SoapClient('http://virtual.website.com:81/api/?wsdl'); If I go to the url in a browser it comes up, so I know it is the right location. On the Magento forums there are some similar posts but I don't know that this is a Magento specific problem. Everything they mention as a solution I already have. They say to edit the hosts file for example 127.0.0.1 website.com I already have this since it is setup as a virtual host. Here is the error in my error_log [Fri Jun 04 12:30:37 2010] [error] [client 127.0.0.1] PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://virtual.website.com:81/api/soap/?wsdl' : XM...

Jenkins can't open make

Image
Clash Royale CLAN TAG #URR8PPP Jenkins can't open make I have recently installed Jenkins 2.89.2 on Ubuntu 17.10 and I am trying to set up my first project. So far I've managed to get Jenkins to download the source code from my repository but I'm having trouble calling make. I configured to call make in the Project > Configure > Build Environment > Build (Execute Shell) with the command make . After calling make it returns the error make: not found . make make: not found I have tried the solution to related questions below relating to adding the correct directory to the $PATH environment variable. I have tried adding it to the system settings under Manage Jenkins > Configure System > Environment variables, as well as under Project > Configure > Build Environment > Build (Execute Shell), setting PATH to $PATH:/usr/bin . I was sure that I managed to set the Path correctly, as I was echoing $PATH before calling but then tried calling make with its ful...

Printing ASCII-like chars and there is a bug I can't find in char's drawing

Image
Clash Royale CLAN TAG #URR8PPP Printing ASCII-like chars and there is a bug I can't find in char's drawing The following code prints the big letter with shadows (with : chars). If a user provides only 1 letter as input, everything is fine. But if the user inputs more than 1 letter, something goes wrong. The letters look strange (shadow is incorrect too). : #include <iostream> using namespace std; // A~Z and some symbols int main() int A[6][6]=0,1,1,1,1,0, 1,1,1,1,1,1, 1,1,0,0,1,1, 1,1,0,0,1,1, 1,1,1,1,1,1, 1,1,0,0,1,1; int B[6][6]=1,1,1,1,1,0, 1,1,1,1,1,1, 1,1,0,0,1,1, 1,1,1,1,1,1, 1,1,0,0,1,1, 1,1,1,1,1,0; //int C[6][6]........... int k; string input; cin >> input; // a user inputs the symbols k = input.length()*8; // total length for define sum cout << k << endl; // debug output int sum[k][8]; // the final array prepare to print // make all the space 0. Didn't sure if it's necessary. for (int i = 0; i < 8; i++) for ...

Erskineville, New South Wales

Image
Clash Royale CLAN TAG #URR8PPP Suburb of Sydney, New South Wales, Australia Erskineville Sydney, New South Wales Erskineville Town Hall on Erskineville Road. Population 13,627 (2016 census) [1]  • Density 5,246.4/km 2  (13,588/sq mi) Postcode(s) 2043 Area 1.6 km 2 (0.6 sq mi) Location 6 km (4 mi) south west of Sydney CBD LGA(s) City of Sydney State electorate(s) Heffron Newtown Federal Division(s) Sydney Suburbs around Erskineville: Newtown Macdonaldtown Redfern Newtown Erskineville Alexandria St Peters Alexandria Alexandria Erskineville is an inner-city suburb of Sydney, in the state of New South Wales, Australia. It is located 6 kilometres south west of the Sydney central business district and is part of the local government area of the City of Sydney. Erskineville is known for its infamous block, the Swanson Street mews. Erskineville is a diverse suburb homing to a wide variety of ethnicity from its varying Southeast E...