128 questions
4 votes
1 answer
3k views
How do I make Pixel Perfect Camera scale like Normal Camera in Unity 2D
This is my scene Right now if I use resolutions that aren't 16:9 the Pixel Perfect Camera zooms out quite a lot showing parts that shouldn't be shown. How do I get it to scale like the Normal Camera ...
0 votes
1 answer
203 views
calling perfectly forwarded lambda
I have the following class which stores a perfectly forwarded reference to a function: template <class F> class Visitor { public: Visitor(F &&f) : _f(std::forward<F>(f)) {...
1 vote
0 answers
115 views
PerfectTemplate got "Fatal error: UnsafeMutablePointer.initialize overlapping range" under Relase Mode
I followed the instructions of "Getting Started with Perfect"(https://perfect.org/docs/gettingStarted.html) git clone https://github.com/PerfectlySoft/PerfectTemplate.git cd PerfectTemplate ...
0 votes
1 answer
89 views
Displaying perfect numbers and their adders
I need help with the program to display first 4 perfect numbers in the standard output and also funciton perfect(int,int*). Arguments of this function are natural number and the adress where you neeed ...
2 votes
1 answer
112 views
Making a route both intermediate and final?
In building an app with PerfectHTTP I've come up against a problem with routing: Routes that are used as intermediate routes cannot also be used as final routes. When set up as below, some URLs track ...
1 vote
0 answers
88 views
build perfect swift server side development No account for a team "ABCDEFGH"
I'm trying to create a web api using Swift Perfect. Every time I build the project file, my team name was changing to this ABCDEFGH name. For each and every dependency again I need to change the ...
1 vote
0 answers
212 views
Using Perfect-Markdown, tables are not rendering like GitHub's UI
I'm using the Perfect framework and importing Perfect-Markdown to render my README.md on the landing page of my REST service. Simply put, I'm attempting to render a table that looks something like: ...
1 vote
2 answers
187 views
PerfectSwift: swift package update runs endlessly
I do have an older Perfect Swift project where my package.swift looks the following: // Generated automatically by Perfect Assistant Application // Date: 2017-09-24 18:44:24 +0000 import ...
0 votes
1 answer
143 views
why is swift build failing on app engine?
I am running the tutorial from here but seem to be running in a build step that is likely just my inexperience with docker. I get the following build error 'Munger-API' /root/Munger-API: error: could ...
1 vote
1 answer
199 views
How to change process title in Swift on Linux?
Python: setproctitle How to do the same thing in Swift?
3 votes
1 answer
286 views
Location of webroot (for css file) in Perfect app
I've cloned the PerfectTemplate project and am using it to serve up html as follows… import PerfectHTTP import PerfectHTTPServer var routes = Routes() routes.add(method: .get, uri: "/test") { ...
1 vote
1 answer
358 views
Unable to redirect to url using Server Side Swift Perfect
I'm using Server Side Swift Perfect framework for web services. Mustache module for serving static/dynamic content. I want to implement login functionality following a redirect to the homepage on ...
-1 votes
2 answers
1k views
Finding the perfect pth power of a number using Java when the number is a fraction
We say p is the perfect pth power of a number x if x can be expressed as another number b^p. i.e if x=b^p , then p is the perfect pth power of x. I have few use cases where x can be either a ...
2 votes
0 answers
79 views
Perfect Assistant - Error in Importing Existing Package
Version: Perfect Assistant v 3.0.5 Swift: 4.1.2 Target: x86_64-apple-darwin17.7.0 I cloned, built and ran the PerfectTemplate package. Everything runs perfectly (pun intended). I have not (yet) ...
0 votes
0 answers
428 views
Couldn't bind Server Side Swift Perfect app to Port 80
I have launched my AWS ec2 instance and set up my Perfect Server side swift Project in remote machine- (Ubuntu 16.04). It's is working perfectly fine on developer ports, I mean other than port 80. ...