• Breaking News

    Thursday, February 28, 2019

    Does all web based JS code run on a "javascript engine"? Ask Programming

    Does all web based JS code run on a "javascript engine"? Ask Programming


    Does all web based JS code run on a "javascript engine"?

    Posted: 28 Feb 2019 07:19 PM PST

    I used the term javascript engine today when talking to a co-worker to describe how javascript gets run in a browser. Is that the correct term? Or is it interpreted in doesn't technically run in an engine?

    I know Chrome uses Google's V8 JS engine. Is that what all JS coming from the internet runs on? Or something different for developers to use if they want extra performance/features?

    submitted by /u/skytbest
    [link] [comments]

    A Facebook Pages notification is trying to run AddressBookUrlForwarder on my MacOS hard drive

    Posted: 28 Feb 2019 07:35 AM PST

    I might have discovered something suspicious about Facebook deep linking and I'm looking for help from people smarter than me. Please excuse any language that is incorrect; I have researched the issue as best I can, but this is very advanced for my skill level.

    Background: I manage Facebook Pages for our business. Earlier this week, I clicked on a notification that wanted me to update a page description and the following Facebook protocol link tried to open AddressBookUrlForwarder, a MacOs app contained in Services>Library>CoreServices, on my machine. I was using Chrome, so I was shown a popup, and that's how I found out that Facebook was trying to access my hard drive. I did not allow AddressBookUrlForwarder to run.

    fb://nt_screen/FB:SCREEN:FB?a=%7B"analytics_module"%3A"crowdsourcing"%2C"title"%3A"Update%20Page%20Info"%2C"hide-search-field"%3Atrue%7D&p=pages%2Finfo%2Fupdate%2Fcomplete_profile&q=%7B"page_id"%3A1104803789541822%2C"tip_section"%3A"profile_completion_blurb"%2C"entry_point"%3A"completion_notification_blurb"%7D&b=[]

    I opened a chat with Facebook's support team and they provided no help, so they escalated to their Development or IT team, and they provided no help either. I was sent an open-ended feedback form and the ticket was closed. No answers.

    Today: I see the same type of notification, "add a short page description," and clicked it to see if the bug was still there. Yes, it is. New notification for a different page, but the same type of protocol link trying to run an app from my machine. I was still using Chrome on MacOs, but a different machine. Below is that link; all that is different is the page ID.

    fb://nt_screen/FB:SCREEN:FB?a=%7B"analytics_module"%3A"crowdsourcing"%2C"title"%3A"Update%20Page%20Info"%2C"hide-search-field"%3Atrue%7D&p=pages%2Finfo%2Fupdate%2Fcomplete_profile&q=%7B"page_id"%3A235309286851713%2C"tip_section"%3A"profile_completion_blurb"%2C"entry_point"%3A"completion_notification_blurb"%7D&b=[]

    I open another chat, explain my concerns, and they ask me to try it in Safari. I open Safari, make sure my pop-up notification settings are safe, and I get the same result. They still have no answers about why this is happening.

    Questions: What is happening? What is AddressBookUrlForwarder? What does Facebook have to gain by accessing and running this app on my machine? Is this a phishing attempt to access my contacts? Or is it just a bug? I have exhausted Google search looking for more info on this app and what it does or why Facebook would be trying to access it, and I've had very little luck. Interestingly enough, someone did ask the Facebook Help Team here, but the Facebook Help Team member writes it off as a scam even though it sounds like he clicked an official Facebook button, notification or link.

    I'm hoping you can help. This is, compared to most things I end up searching, a largely undocumented app. And I am embarrassingly undereducated on the subject. So I am happy to provide more info if needed. Most of all – it would be amazing if this thread could make its way to search results so that this discussion can be a resource for future cases. Thank you for your time.

    submitted by /u/sloecrush
    [link] [comments]

    How do you run dwitter animations outside of the site?

    Posted: 28 Feb 2019 08:02 PM PST

    I wanted to try them in maybe codepen.io or even better, in my browser. How would I go about that?

    submitted by /u/Vendredi46
    [link] [comments]

    I need help with a basic coding problem

    Posted: 28 Feb 2019 06:51 PM PST

    print('Welcome to a fun word replacement game.') fileName = input('Enter the name of the file to use:\n') try: file = open(fileName) fileRead = file.read() fileList = fileRead.split() for x in fileList: if ("[" in x) or ("]" in x): newstr = x[1:len(x)] if newstr[0] in 'aeiou': givenWord = input("Please give an:", newstr) else: givenWord = input("Please give a:", newstr) except: print('Error Bad File Name') sys.exit(0) 

    How do I replace the word with [example] to givenWord in the above script?

    submitted by /u/Fayarager
    [link] [comments]

    Best place/way to brush up on C# skills?

    Posted: 28 Feb 2019 05:17 PM PST

    So after finishing a two-year degree in Computer Information Systems, I have a job interview in a week for a Junior Web Developer position. I know that the job will require mostly C#. Only problem for me, is that C# was something I learned my very first semester, and I feel like I didn't quite learn as much as I should have. I no longer have the textbook for that class, so I was curious what would be the best way to place or way to enhance my knowledge of C# before my job interview? Any help or advice is greatly appreciated!

    submitted by /u/oreov1
    [link] [comments]

    Find a combination of numbers that when added or subtracted equal to 0

    Posted: 28 Feb 2019 04:25 PM PST

    Hi. My friend was asked this question during a coding interview, we are in 2nd year Computer Science and I'm wondering what type of logic would some of you guys use to go about this problem.

    What I know I need to use is Recursion, what I don't know is how you'd go about testing the values to see each combination.

    Any help would be great!

    submitted by /u/Basilzubs
    [link] [comments]

    Curved line using graphics.py? [python]

    Posted: 28 Feb 2019 04:16 PM PST

    I downloaded the Zelle graphics library for and I'm trying to create a curved line (a semi-circle would work too) but there isn't one built in to the module. I think some sort of loop would work but I'm not sure. Any advice?

    submitted by /u/breakthe_wheel
    [link] [comments]

    Leading Zeros in integer c++

    Posted: 28 Feb 2019 03:18 PM PST

    I just had a first year midterm and one of the questions asked to display the first digit of a integer. This included 0 if it was the first digit. ie user entered x=04, then the leading digit was to be 0. Is it even possible to find this as the template was

    int x, Firstfound, temp;

    cin >> x;

    Wouldn't the number lose its leading zeros as soon as it is entered like this and then making it impossible to find?

    submitted by /u/gh0st5erpent
    [link] [comments]

    Can I mod a game with closed source?

    Posted: 28 Feb 2019 02:03 PM PST

    The game has 1 huge file, 1 gb where all the compressed game assets are apparently.(its the only big file, the next biggest is the game .exe itself). I assume the item database is there too. I'd love to just add new items at least but i assume that means i'd have to know how to open this file.

    But i should be able to find out how to read the file based on the code from the game .exe right? Idk anything about this, i'm just assuming things. That's why i want to ask.

    The reason why i wanna mod it is cus game failed badly, company was disbanded and we'll never get any updates or new game like it.. and i feel like just spending a week adding some items could make the game a billion times better which makes me feel bitter as hell.

    Game is Dawn of Magic btw.

    Maybe this will help. It seems some useful info is there.

    FMOD Sound System Copyright © Firelight Technologies Pty, Ltd., 1994-2005. zlib compression library Copyright © 1995-2005 Jean-loup Gailly and Mark Adler Lua language Copyright © 1994-2005 Lua.org, PUC-Rio. Bink Copyright © 1997-2007 by RAD Game Tools, Inc. libogg, libtheora, libvorbis Copyright © 2002-2005 Xiph.org Foundation The Engine Copyright © 2002-2007 Skyfallen Entertainment © 2007 Koch Media GmbH, Austria. Deep Silver, a Division of Koch Media © 2007 1C Company. Developed by Skyfallen Entertainment. All rights reserved. 

    I'd like to know how hard would this be and is my theory true? (learning how to open a file by how the code in the .exe does it?)

    submitted by /u/OrdinaryNameForMe
    [link] [comments]

    How to extract personal WeChat chat history for analytics

    Posted: 28 Feb 2019 02:02 PM PST

    I want to find out some stuff like most sent stickers, frequency of messages by day/month/time and other random statistics like that. How do I import my iPhone WeChat data into a format that I can parse with python?

    submitted by /u/TinyTulu
    [link] [comments]

    i cant fix this stripe API communication error

    Posted: 28 Feb 2019 05:05 AM PST

    i tried to google but it seems pretty unique to certain environments

    Fatal error: Uncaught Stripe\Error\ApiConnection: Unexpected error communicating with Stripe.

    i put 'XXXXXXXXXXXXXXXXXXXXXXXXX' in place of key for obvious reasons

    <?php require_once('vendor/autoload.php'); \Stripe\Stripe::setApiKey('pk_test_xxxxxxxxxxxxxxxxxxxxx '); // sanitize POST array $POST = filter_var_array($_POST, FILTER_SANITIZE_STRING); $first_name=$POST['first_name']; $last_name=$POST['last_name']; $email=$POST['email']; $token=$POST['stripeToken']; //create custoemr in stripe $customer = \Stripe\Customer::create(array( "email"=>$email, "source"=>$token )); $charge = \Stripe\Charge::create(array( "amount"=>5000, "currency"=>"usd", "description"=>"intro to react course", "customer"=>$customer->id )); print_r($charge); ?> 

    and here is the php form page

    <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <link rel="stylesheet" href="./css/style.css"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> <title>Pay Page</title> </head> <body> <div class="container"> <h2 class="my-4 text-center">intro to react [$50]</h2> <form action="./charge.php" method="post" id="payment-form"> <div class="form-row"> <input type="text" name="first_name" class="form-control mb-3 StripeElements StripeElements--empty" placeholder="First Name"> <input type="text" name="last_name" class="form-control mb-3 StripeElements StripeElements--empty" placeholder="Last Name"> <input type="Email" name="email" class="form-control mb-3 StripeElements StripeElements--empty" placeholder="Email"> <div id="card-element" class="form-control"> <!-- A Stripe Element will be inserted here. --> </div> <!-- Used to display form errors. --> <div id="card-errors" role="alert"></div> </div> <button>Submit Payment</button> </form> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script src="https://js.stripe.com/v3/"></script> <script src="./js/charge.js"></script> </body> </html> 
    submitted by /u/hildrisking
    [link] [comments]

    Failing the first round of graduate jobs tests running out of time due to dyslexia

    Posted: 28 Feb 2019 01:22 PM PST

    Hi guys

    So long story short I have a few learning disabilities. I have been applying to a grad positions and get given a online test to do all the ones I have done so far have been timed. When I am given the test I struggle to understand the question and by the time I've understood the question a lot of time has been wasted.

    My question is: Can you request extra time due to having dyslexia or will they(the recruiters) just write me off and move onto a more suitable candidate

    Any advice would be great

    Thanks

    submitted by /u/dyslexicBook
    [link] [comments]

    What is a network issue?

    Posted: 28 Feb 2019 12:05 PM PST

    I can't find any definitions on google

    submitted by /u/Gaiwn
    [link] [comments]

    Creating XLST but XML has changing Child Element

    Posted: 28 Feb 2019 09:47 AM PST

    I am working on trying to create an XLST for Vectorworks to Sync with a program I plan on building in FileMaker, I am not sure if this is the right place but I am new to XLM and Stylesheets so any advice would be appreciated.

    I am trying to create the stylesheet off of this XML (it is only the first part because it it terribly long, however I am confused as to how I am supposed to call out <xsl:for-each select="xxxxxxxxx'> in order to retrieve the information when it appears the element changes in each set of information. To my understanding it should be <xsl:for-each select="UID\_xxxx\_x\_x\_x\_x'>

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <SLData> <ExportFieldList> <AppStamp>Vectorworks</AppStamp> <TimeStamp>20181230172256</TimeStamp> <Address>Address</Address> <Inst_Type>Inst Type</Inst_Type> <Unit_Number>Unit Number</Unit_Number> <Template2>Gobo 2</Template2> <Template>Gobo 1</Template> <Color>Color</Color> <Circuit_Name>Circuit Name</Circuit_Name> <Circuit_Number>Circuit Number</Circuit_Number> <Dimmer>Dimmer</Dimmer> <Channel>Channel</Channel> <Position>Position</Position> <Wattage>Wattage</Wattage> <Purpose>Purpose</Purpose> <User_Field_1>User Field 1</User_Field_1> <User_Field_2>User Field 2</User_Field_2> <User_Field_3>User Field 3</User_Field_3> <User_Field_4>User Field 4</User_Field_4> <User_Field_5>User Field 5</User_Field_5> <User_Field_6>User Field 6</User_Field_6> <System>System</System> <Mark>Mark</Mark> </ExportFieldList> <VWFieldList> <AppStamp>Vectorworks</AppStamp> <TimeStamp>20181230172256</TimeStamp> <Inst_Type>Inst Type</Inst_Type> <Wattage>Wattage</Wattage> <Purpose>Purpose</Purpose> <Position>Position</Position> <Unit_Number>Unit Number</Unit_Number> <Color>Color</Color> <Dimmer>Dimmer</Dimmer> <Channel>Channel</Channel> <Universe>Universe</Universe> <U_Dimmer>U Dimmer</U_Dimmer> <Circuit_Number>Circuit Number</Circuit_Number> <Circuit_Name>Circuit Name</Circuit_Name> <System>System</System> <User_Field_1>User Field 1</User_Field_1> <User_Field_2>User Field 2</User_Field_2> <User_Field_3>User Field 3</User_Field_3> <User_Field_4>User Field 4</User_Field_4> <User_Field_5>User Field 5</User_Field_5> <User_Field_6>User Field 6</User_Field_6> <Num_Channels>Num Channels</Num_Channels> <Frame_Size>Frame Size</Frame_Size> <Field_Angle>Field Angle</Field_Angle> <Field_Angle_2>Field Angle 2</Field_Angle_2> <Beam_Angle>Beam Angle</Beam_Angle> <Beam_Angle_2>Beam Angle 2</Beam_Angle_2> <Weight>Weight</Weight> <Gobo_1>Template</Gobo_1> <Gobo_1_Rotation>TemplateRot1</Gobo_1_Rotation> <Gobo_2>Template2</Gobo_2> <Gobo_2_Rotation>TemplateRot2</Gobo_2_Rotation> <Mark>Mark</Mark> <Lamp_Rotation_Angle>Lamp Rotation Angle</Lamp_Rotation_Angle> <Focus>Focus</Focus> <X_Rotation>xRot</X_Rotation> <Y_Rotation>yRot</Y_Rotation> <FixtureID>FixtureID</FixtureID> <Use_Vertical_Beam>Use Vertical Beam</Use_Vertical_Beam> <Address>Address</Address> <Voltage>Voltage</Voltage> <BreakerID>Breaker ID</BreakerID> <Time>Time</Time> <Cost>Cost</Cost> <Vertical_Focus_Angle>Focus Angle Vertical</Vertical_Focus_Angle> <Horizontal_Focus_Angle>Focus Angle Horizontal</Horizontal_Focus_Angle> <Angle_To_Face>Angle To Face Plane</Angle_To_Face> <Off_Axis_Angle>Off Axis Angle</Off_Axis_Angle> <Throw_Distance>Throw Distance</Throw_Distance> <Fixture_Mode>Fixture Mode</Fixture_Mode> <Enable_Z_Rotation>EnableZRot</Enable_Z_Rotation> <Z_Rotation>zRot</Z_Rotation> </VWFieldList> <InstrumentData> <Action>Entire Plot</Action> <AppStamp>Vectorworks</AppStamp> <VWVersion>2302</VWVersion> <VWBuild>401138</VWBuild> <AutoRot2D>False</AutoRot2D> <UID_4627_1_1_0_0> <Action>Update</Action> <TimeStamp>20181230172256</TimeStamp> <AppStamp>Vectorworks</AppStamp> <UID>4627.1.1.0.0</UID> <Lightwright_ID>8735EE:380C:1E:14:Vecto</Lightwright_ID> <Use_Legend>CH. + U#</Use_Legend> <Device_Type>Light</Device_Type> <Symbol_Name>ChromaQ Colorforce 72</Symbol_Name> <Focus/> <Class>//LX-esFixtures-Symbol</Class> <Layer>Deck Units</Layer> <Accessories/> <Address/> <Inst_Type>Chroma Q Color Force 72</Inst_Type> <Unit_Number>4</Unit_Number> <Template2/> <Template/> <Color/> <Circuit_Name/> <Circuit_Number/> <Dimmer/> <Channel>314</Channel> <Position>Bounce Groundrow</Position> <Wattage>720W</Wattage> <Purpose>Bounce</Purpose> <User_Field_1/> <User_Field_2/> <User_Field_3/> <User_Field_4/> <User_Field_5/> <User_Field_6/> <System>A</System> <Mark/> <X_Location_mm>0.105357</X_Location_mm> <Y_Location_mm>9678.532512</Y_Location_mm> <Z_Location_mm>0.000000</Z_Location_mm> <Rotation>0.000000</Rotation> </UID_4627_1_1_0_0> <UID_4628_1_1_0_0> <Action>Update</Action> <TimeStamp>20181230172256</TimeStamp> <AppStamp>Vectorworks</AppStamp> <UID>4628.1.1.0.0</UID> <Lightwright_ID>56D03B:37F4:1E:14:Vecto</Lightwright_ID> <Use_Legend>CH. + U#</Use_Legend> <Device_Type>Light</Device_Type> <Symbol_Name>ChromaQ Colorforce 72</Symbol_Name> <Focus/> <Class>//LX-esFixtures-Symbol</Class> <Layer>Deck Units</Layer> <Accessories/> <Address/> <Inst_Type>Chroma Q Color Force 72</Inst_Type> <Unit_Number>3</Unit_Number> <Template2/> <Template/> <Color/> <Circuit_Name/> <Circuit_Number/> <Dimmer/> <Channel>315</Channel> <Position>Bounce Groundrow</Position> <Wattage>720W</Wattage> <Purpose>Bounce</Purpose> <User_Field_1/> <User_Field_2/> <User_Field_3/> <User_Field_4/> <User_Field_5/> <User_Field_6/> <System>A</System> <Mark/> <X_Location_mm>1905.105357</X_Location_mm> <Y_Location_mm>9678.532512</Y_Location_mm> <Z_Location_mm>0.000000</Z_Location_mm> <Rotation>0.000000</Rotation> </UID_4628_1_1_0_0> <UID_4629_1_1_0_0> <Action>Update</Action> <TimeStamp>20181230172256</TimeStamp> <AppStamp>Vectorworks</AppStamp> <UID>4629.1.1.0.0</UID> <Lightwright_ID>F4EFC:37DC:1E:14:Vecto</Lightwright_ID> <Use_Legend>CH. + U#</Use_Legend> <Device_Type>Light</Device_Type> <Symbol_Name>ChromaQ Colorforce 72</Symbol_Name> <Focus/> <Class>//LX-esFixtures-Symbol</Class> <Layer>Deck Units</Layer> <Accessories/> <Address/> <Inst_Type>Chroma Q Color Force 72</Inst_Type> <Unit_Number>2</Unit_Number> <Template2/> <Template/> <Color/> <Circuit_Name/> <Circuit_Number/> <Dimmer/> <Channel>316</Channel> <Position>Bounce Groundrow</Position> <Wattage>720W</Wattage> <Purpose>Bounce</Purpose> <User_Field_1/> <User_Field_2/> <User_Field_3/> <User_Field_4/> <User_Field_5/> <User_Field_6/> <System>A</System> <Mark/> <X_Location_mm>3810.105357</X_Location_mm> <Y_Location_mm>9678.532512</Y_Location_mm> <Z_Location_mm>0.000000</Z_Location_mm> <Rotation>0.000000</Rotation> </UID_4629_1_1_0_0> 

    submitted by /u/Atterpac
    [link] [comments]

    [C++ Socket] How can I make sure that my data has been sent to the server? (UDP Socket programming)

    Posted: 28 Feb 2019 08:54 AM PST

    I have an assignment where I have to create a UDP client (the server has already been made for us) for a chat server. I'm using the send() method to send my message to the server, but there are almost no resources out there that helped me figure out how to either receive and acknowledgement from the server. The current state of my program is that it successfully sends the message, but I'm receiving nothing back (I'm assuming it's because the data wasn't received, as it is a UDP server). How can I receive an acknowledgement from the server?

    submitted by /u/piecaldera
    [link] [comments]

    An explanation of Abstraction in OOP without using the concept of users?

    Posted: 28 Feb 2019 08:27 AM PST

    I'm really struggling to get a concrete grasp of what the four pillars are and the differences between them.

    In my research it looks like many explanations of Abstraction refer to hiding complexity away from the user. With examples of drivers not knowing the complexity of how their car functions, or Coffee machines.

    This focus on user interfaces has thrown me through a loop. When people talk about hiding non-essential information from the user, that doesn't always mean an end user something like a MVC structure, right? Because that would just be good user interface design - which has nothing to do with programming.

    There is also no mention of users or hiding anything by Benjamin C. Pierce's definition

    "Each significant piece of functionality in a program should be implemented in just one place in the source code. Where similar functions are carried out by distinct pieces of code, it is generally beneficial to combine them into one by abstracting out the varying parts."

    To me this just sounds like abstraction is simply not repeating code and letting using inheritance do it's thing. Which also confuses me as I have been taught that inheritance is one of the four pillars. Given this I must have misunderstood something.

    submitted by /u/Alunnite
    [link] [comments]

    Why don't we use a markup language for UIs other than web?

    Posted: 27 Feb 2019 11:57 PM PST

    It seems like it would make sense to use something like HTML for the GUI of native applications, but historically (before Electron/Webviews) they've been done completely in one "real" (C++, Python, Java, etc) language. Why has it always been like this, rather than using something like the web where layout/content is built in HTML while functionality is coded in JavaScript?

    submitted by /u/actualsnek
    [link] [comments]

    I want to simulate IoT environment. What is the best approach?

    Posted: 28 Feb 2019 03:02 AM PST

    Purpose:

    I have designed a high level architecture, and want to create a proof of concept simulation. The components of this architecture shall be encoded in JSons according to which different services change their behaviour.

    A service should take a json as an input, and according to the json parameters, it should output another json file.

    submitted by /u/NobleSiks
    [link] [comments]

    Projects/Challenges.

    Posted: 28 Feb 2019 06:43 AM PST

    Hi,

    So i've recently started learning Java and I'm looking for Project ideas I can make or challenges you have in mind for me, I have a little project that I'm doing in order to teach myself, that I'm keeping adding features to it but now I'm stuck with something I can't figure out, and I want to come back to it later since i've tried a lot of others combinations of code that don't work properly.

    So, do any of you have any challenge or a cool project in mind that I could start coding? Not anything too hard, but also something that would challenge me.

    submitted by /u/ImFlashing
    [link] [comments]

    Web application automatically aggregating users data from different websites they use.

    Posted: 28 Feb 2019 04:30 AM PST

    Hi, web development is a new area for me. I started a few weeks ago and I've been slowly progressing learning HTML, CSS, FLASK and most recently SQL (have some experience in Python). However, the main feature of the project I want to develop is based on allowing users to automatically aggregate data from a few specific websites they use (to be exact - data from MOOC providers such as Coursera or EdX regarding the progress someone's making in their courses) . Unfortunately, as you may know by now, I'm not sure how to approach developing the feature. I have a few questions:

    - is it possible without directly working with these websites? I was thinking about a web browser plugin

    - if so, what are the tools I need to know to build it and implement it into a web application?

    submitted by /u/echoes2165
    [link] [comments]

    What is the most slow and inefficient way to print « Hello World » in Java ?

    Posted: 28 Feb 2019 12:24 AM PST

    Parsing through My Clipping.txt from Kindle

    Posted: 28 Feb 2019 03:42 AM PST

    Hi,

    I recently got into Python and my first project has been to create a script that can parse through My Clippings.txt and output it in bullet format on a word doc, which I'll then copy over to OneNote, so I can have all my notes on my non-fiction reading electronically.

    I am at a point where I can create a word doc with each highlight being a bullet. However, none of the bullets are nested. Now on my kindle when I go to notes, I can see the section of the book where I highlighted. This information is not present on My Clippings.txt (only gives me location). I'm hoping to use these "section" titles to nest the corresponding bullets which would make my output file prettier without having to manually correct it.

    Is there a way or a module that I can use to extract that information from my kindle?

    submitted by /u/purple-cows
    [link] [comments]

    Looking to sort a Dict object, (Pyspark)

    Posted: 27 Feb 2019 11:41 PM PST

    Hi, I am learning pyspark and am trying to implement a way to sort a Dict object.

    https://imgur.com/0o9dEMk

    https://imgur.com/2mQbJ3j

    I have a dataset with 560 variables and am looping through each column looking for outliers via iqr method, and returning boolean variabes and converted to numeric type. 0 for false if obs is not an outlier and true as 1 if it is, hence why i put "cast('int') in the code. This made it easier to sum the columns for me and get the amount of ouliers for each column, hence the last piece of code.

    I would like to go about sorting the Dict object so that the column names with the largest amount of outliers shows ontop with following the second largerst outlier variable etc. I tried making it into a df and using operations on it but not really working and no idea how to go about it.

    submitted by /u/oBlackPlasmao
    [link] [comments]

    No comments:

    Post a Comment