What is the difference in .embeddedframework.zip and .framework?

Uncategorized
Question: I am attempting to extend some functionality to a plugin designed for use in Unreal Engine 4. Using the documentation available and reviewing the solution I've encountered something I do not understand and cannot figure out a way to research it. In this plugin, the original developer has 2 different files *.embeddedframework.zip, in each of these files there are some binary files, module maps, and *.h files. These *.h files are able to include iOS modules. I have been able to create .framework builds using Xcode, unfortunately, the do not seem to contain the same format as the *.embeddedframework.zip file. I apologize for the vague question; I'm new to iOS and I'm quite stumped, any leads whatsoever would be appreciated! (code available on request but it's really quite boilerplate)…
Read More

Lane detection in a most-shadowed image with some light

Uncategorized
Question: Currently I'm working on finding lane lines in an image with OpenCV and C++. However, I encountered a big problem utilizing a good threshold on the following picture. original image I have tried using some thresholding methods below, but none of them worked. sobel x filter with min threshold 10 and max threshold 60 sobel y filter with min threshold 10 and max threshold 60 R channel in BGR color space with min threshold 30 and max threshold 60 S channel in HLS color space and U channel in YUV color space. No matter what threshold I took in these 2 color spaces, it looks like disaster. Take BGR-R as example, the lane lines are clear but the bright part is also obvious. I have tried Histogram equalization to…
Read More

Visual Studio need to rebuild solution for every change

Uncategorized
Question: I am currently working on a game engine in c++. As I have progressed further into the project, I have noticed that the resulting executable often does not reflect the latest code changes. But completely cleaning the solution and rebuilding it, fixes the problem. Unfortunately a complete rebuild is not a viable option for a larger code base anymore. I have already checked different solutions on stackoverflow:I have checked that my "Build and Run" setting is set to "Always build" The Configuration Manager is also set to "Build" Additional information:It is an OpenGL project with GLFW and glad in c++ I use Visual Studio Community 2017 Version 15.2 This is a really annoying issue that causes a lot of productivity loss, since I have to completely rebuild the entire…
Read More

Not able to load images on Github pages Blog post

Uncategorized
Question: I wanted to publish a blog post, which contains a plot. I am perfectly able to view and load the image in markdown, but when I try to publish to on my github pages, I can see everything perfectly except for the plot. Here is my Github repo for my blog and here is the markdown file I wish to post online. In the above post I am trying to display the image with: ![](DV_files/figure-html/unnamed-chunk-2-1.png) having the image located at _posts/DV_files/figure-html/unnamed-chunk-2-1.png. Answer: Create a folder to hold your posts images at root level mkdir images Move the directory structure containing the images to the above folder mv _posts/DV_files/ images/ Use the new path and use absolute_url to generate the full url ![]({{"/images/DV_files/figure-html/unnamed-chunk-2-1.png"|absolute_url}}) Now your images will appear in the…
Read More

webkit-filter changing z-index stacking order

css
Question: Why does applying a webkit filter changes the layers order? See this minimal example: setInterval(function(){ t.classList.toggle('grayed'); }, 1000) .floater { position: fixed; top: 5vh; left: 5vw; width: 90vw; height: 90vh; z-index: 99; background: yellow; display: none; } td:hover .floater{ display: initial; } .grayed td{ -webkit-filter: grayscale(0.5); } td{ padding: 1em; text-align: center; background: blue; } 1 2 3 4 5 (Mouse over this) HELLO 6 7 8 9 Answer: Child's z-index is set to the same stacking index as its parent, hence why it's not working. If you are willing to take the floater out of it's table parent, you could try the below JS approach with mouseover & mouseout (to close). setInterval(function() { t.classList.toggle('grayed'); document.querySelector('.floater').classList.toggle('grayed'); }, 1000) document.querySelector('.toHover').addEventListener('mouseover', function() { document.querySelector('.floater').classList.add('open'); }) document.querySelector('.floater').addEventListener('mouseout', function() { document.querySelector('.floater').classList.remove('open'); }) .floater…
Read More

Powerapps – get stuck with UpdateContext

Uncategorized
Question: I am trying to build a PowerApp to log setup times of our machines by our fitters. This is what my app looks like: There are buttons named "Uhrzeit". Pressing these will write the current date and time into the Date/Time fields. I am using the following code:UpdateContext({Total8:(Text( Now(); "[$-de-DE]dd/mm/yyyy hh:mm:ss" ))}) The Date/Time field is named Total8. The code is working well but after saving the form and opening a new record the old data is still available in the fields. By clicking on the button "Zeiten zur├╝cksetzen" I can "delete" the old data. UpdateContext({Total8:""}) Problem: When I open one of the older records the old data is not available in the form. There is only the value of the last record. In the Common Data Service where…
Read More

How to remove a special character in a single word/variable

Uncategorized
Question: my $var= "File/"; $var=~ /w/; print "$var"; The expected outcome is File but it doest work. Answer: You are using the wrong operator. The match operator (m/.../ or, as you are using it, /.../) is for matching text. It tells you if your string matches the regex. It does not change the string at all. What you want is the substitution operator (s/.../.../). That replaces the matching text with something new. In this case, you want to replace the matching string with an empty string. my $var= "File/"; $var =~ s/w//; # // is an empty replacement string print "$var"; But that's still not correct as w matches any word character (alphanumerics and the underscore). What you need is W, which matches any non-word character. my $var= "File/"; $var…
Read More

What are the effectst If I Change Bundle Indentifier In Unity After Publishing Alpha Or Beta Testing?

Uncategorized
Question: I have a created a game with bundle identifier ex : com.idea2infinity.farmbarter The game was uploaded to the playstore in alpha closed testing. It is mean that i have already set up all google play console to be able to upload and publish in alpha testing. The game also use facebook sdk from facebook developer to be able login using facebook login and gamesparks. Also i set up a google plus login using google play game sdk and gamesparks. So there are two ways login. But because of changing the product name, i need to change the bundle indentifier name too so it will match as it product. My question is if i change the bundle indentifier from ex : com.idea2infinity.farmbarter TO com.idea2infinity.farmviral What should be changed at the…
Read More

Check if value matches mask

Uncategorized
Question: I have a input that has a mask of date like __/__/____. I stored it in a variable. Is there a way to detect if it matches the mask properly? The event is binded on blur, so sometimes it is returning values like 22/12/___. Is there a way to detect if it definitely fits the scheme with integers and slash only or doesn't? $('#btn').click(function() { value = $('#my-input').val() // should be in this format 99/99/9999 and not 12/12/12__ // here I need to check if it is in right format. if (checkFormat(value)) { } } Answer: You can use regex to validate this. var regex_check = /^d{2}/d{2}/d{4}$/ ; //Edit - Vanilla JavaScript function foo(date) { var regex_pattern = /^d{2}/d{2}/d{4}$/ ; var check = new RegExp(regex_pattern); var res = check.test(date);…
Read More

App algorithm – what kind of expert do I need? [on hold]

Uncategorized
Question: I'm not a coder, and am planning my own app. My profile explains more. Basic question is whether a coder/developer is what I need, or a mathmatician/statistician, and how to know. The app is basically a progress tracking app, and we need to create ONE progress graph, out of the data/answers to MULTIPLE questions. We have various questions to ask the user, some yes or no, some % values, and we would have two side by side progress graphs. One is unchanging - i.e. What your progress would be, best case scenario, based on following all instructions. The second is where you actually are on the progress graph based on what you've actually done (your answers to the questions). My guess is that we need a math/stats/actuary person to…
Read More

How to repeat an action N times without using a for loop [on hold]

Uncategorized
Question: Pardon me for my bad english. I am working on a Lotto system, the idea is to have positions like 1st Position, 2nd Positon and each position has a prize and number of winners needed for that position, so we can have like 5 winners for a given position, these positions are kept in an arrayList, issues comes in when you want to start the draw. Here is the structure of the position Object public class Position implements Serializable{ private int id; private String name; private String prize; private int numOfWinners; private int winnerId; } So I put a finite number of positions in an arrayList ArrayList positions; Then when a user clicks on a button the system gets the a position using this code currentPosition++; if(currentPosition < draw.getPositions().size()…
Read More

python else if and equality test

Uncategorized
Question: I cannot figure out in python language why the following code shows an error. The two codes both show an error, for me, them really do the same function. else if(sentenceSplitted[0] == 'What'):Next is different way for the same "function". else if(sentenceSplitted[-1] == '?'): Answer: Python has no else if. You should use elif. Read more
Read More

Fabric.js editing text via inputs

Uncategorized
Question: i am working on online print media application like 'vistaprint.in' where user can modify premade designs on fabric js canvas. in fabric.js object there is no unique identifier for objects...all the text objects create a input for each them so that user can directly change desired text by just changing in input...you can see in screenshot in right side of canvas there are input for each text object...what i am doing now is when input changes i loop through all text objects and match input text and text object text if it matches then i update new text to that object..this works fine for first time but not after that...i tried but unable to find what to do to solve this. This is how canvas and input looks like…
Read More