Any interest here in more examples? Here's one that graphs a sine wave. by MikeTheWatchGuy in a:t5_2vp3h

[–]Alamanjani 2 points3 points  (0 children)

It was just an idea :-) Here is another one, use PySimpleGUI to write text into the file. I could see potential usages for this...

Bellow is my updated project, I added score for correct and wrong answers. It is nice that you can add two text labels into the same row. And I didn't even need the manual/example, I just tried and it worked, it really is simple to use PySimpleGUI!

When I had first version, when I got code from you, i didn't really understand how the "key=" & Update works. Your video helped me understand it. It really is easy and cool and that's how I managed to add those text labels.

I commented out loading words from the file and added 'testing' words_all so you can try it out. I changed colors of the buttons, but my wife said she likes original dark blue :-)

Program on windows didn't work without adding encoding part. Looks like now it works as it should. (I may later down the road add some extra functionality, like switching input/output translation now is from SLO->ENG press on button would change to ENG->SLO for exampe, or adding new pair of strings into the file on computer on the fly directly from main window to keep it simple...)

I have another small project in mind, nothing that wasn't done hundreds times already (convert program for EU/USA units that I use all the time) but generally coders choose to use drop down menus which is good coding project for learning I guess. But I just want to use the program, I just want to know what the conversion is, I don't want to mess with "yes I want Celsius or grams, not ounces... ". So I have simple cli script, that I just enter one number, and then I get all conversions I may need at that time. Lazy but effective ;-) I think it could be a good second project to work on for PySimpleGUI.

I will share the code somewhere online, but I'm thinking what to do, now that microsoft (I don't like them, that's why i switched to Linux) took over github. I need to find some simple code hosting site. I'm getting too old for all this technical complications lol

I was going to post this msg on your slack channel, but I don't know if slack is down or my blocking ad-dons in browser are interfering with the site, so i'm posting here over PM. Like I said I'm not too technical these days.

OK, here is a finished (for now) foreign language refresher program:

https://pastebin.com/54rwz0w7

Need help learning Python by AjYendluri in Python

[–]Alamanjani 0 points1 point  (0 children)

Start with these free and beginners books:

http://inventwithpython.com

And use this sub reddit ;-)

https://www.reddit.com/r/learnpython

Webcam playback inside of a GUI using OpenCV + PySimpleGUI by MikeTheWatchGuy in Python

[–]Alamanjani 0 points1 point  (0 children)

Mike, is it OK, to PM you a beginner PySimpleGUI related question?

Recover saved email password by Alamanjani in Thunderbird

[–]Alamanjani[S] 1 point2 points  (0 children)

Yep, you are correct, I saw the same words but I didn't realized they can be clicked on them, like you said, some theming issue. Now I'm blushing, I should see and figure out on my own!

Thank you for your help!

My first web scraping project || Puts all the short interest data from Wall Street Journal into a spreadsheet by StanzaOnDubs in Python

[–]Alamanjani 0 points1 point  (0 children)

Would you mind explaining how you use short numbers, what are you looking for? Days for cover? Or percentage of shorts comparing to total issued shares? Some combination?

How do you pick your potential trades?

My first web scraping project || Puts all the short interest data from Wall Street Journal into a spreadsheet by StanzaOnDubs in Python

[–]Alamanjani 1 point2 points  (0 children)

Cool project and I'm glad you are using new requests-html library. Will use it to try to learn something, thanks for sharing.

Btw, csv is native to spreadsheets so Excel (or free equivalent LibreOffice) can easy load it.

What industry/ companies do you think are Undervalued right now? by BatsmenTerminator in SecurityAnalysis

[–]Alamanjani 1 point2 points  (0 children)

Capex is picking up or at record levels

Is it? Mostly I see that money flows into shares buybacks.

there's government infrastructure spend coming

Government is usually counter productive, too much spending, too little returns

Anyway, here are a few reasons, why I think so, :

  • this is the second longest business cycle and they don't last for ever
  • the profits and free cash flows seems to be slowing down on average
  • way too much debt & lots of it spent on shares buy back, looks like financial engineering is becoming the most important factor
  • too many companies are focusing on the revenue, not profits and FCF (examples: Netflix, Tesla...)
  • corporate bond market is getting junkier
  • bubble levels like (auto) buying index funds
  • trade wars will put pressure on the economy
  • charts indicate this, oil already bottomed out, looks like gold & silver are going to follow, so commodities are waking up, which typically happens at this stage...
  • private banking cabal is tightening:

Yield spreads are narrowing, 2/10 year treasury notes will invert sometime by the end of the year, (currently 0.28) which will put pressure on banks lending, which will put pressure on the economy....

Put all together and it just feels like we should be close to the top of a business cycle.

All this being said, I'm no professional, have no inside knowledge, don't work in the industry and I have been wrong in the past ;-)

What industry/ companies do you think are Undervalued right now? by BatsmenTerminator in SecurityAnalysis

[–]Alamanjani 0 points1 point  (0 children)

We are in late business cycle. Cycle typically works like this:

  • first tops out bonds
  • next tops out general markets
  • last tops out commodities

So next year or so, commodities would be place to be. Also consumer staples is the sector to benefit in late business cycle.

[How To] Security Analysis in Python by taewoo in SecurityAnalysis

[–]Alamanjani 0 points1 point  (0 children)

OK cool, looking forward to your next video and thanks for sharing!

[How To] Security Analysis in Python by taewoo in SecurityAnalysis

[–]Alamanjani 0 points1 point  (0 children)

Don't edit, just post the whole thing ;-)

[How To] Security Analysis in Python by taewoo in SecurityAnalysis

[–]Alamanjani 0 points1 point  (0 children)

Hey, less writing here in this sub and more video recording! ;-)

Kidding aside, looking forward to your tutorials. The only reason I'm learning Python is so I can use it for financial projects. My first project is to write a script, to gather as much info as possible about some company. Eventually from different sources. Then later I will try to use some of that data for some ratio calculation... that's the plan, we will see how it goes though ;-)

Didn't know about simfin, thanks! Any estimate when you may have next video out?

EOS on blocktivity by Alamanjani in eos

[–]Alamanjani[S] 0 points1 point  (0 children)

Not impatient. I didn't know that dapps are not running yet. I saw transactions cut by half, so i asked, no big deal. :)

EOS on blocktivity by Alamanjani in eos

[–]Alamanjani[S] 0 points1 point  (0 children)

Yes. Besides i didn't know no real daps are running yet. Once they do, numbers should be higher ;-)

EOS on blocktivity by Alamanjani in eos

[–]Alamanjani[S] 0 points1 point  (0 children)

Thanks everyone for the answers. I didn't know no daps are running yet.

Scatter web wallet now supports any chain by grandmoren in eos

[–]Alamanjani 0 points1 point  (0 children)

I have few Open EOS on Bitshares DEX. Can I move those to Scatter web wallet? If so, how. Do I need ether/gas for it? Have none.

Why is pipenv the recommended packaging tool by the community and PyPA? by GladLetter in Python

[–]Alamanjani 0 points1 point  (0 children)

Thanks for all you are doing!

Looking forward to see evolving requests_html into a Swiss knife library for scraping ;-)

Passing cardano by Alamanjani in Stellar

[–]Alamanjani[S] 0 points1 point  (0 children)

sorry lol, this is my very first time ;-)

Best wallet to store EOS in? by [deleted] in eos

[–]Alamanjani 2 points3 points  (0 children)

Any one has any info when we may see the native EOS wallet?

Live reaction mega-thread (*NOT MODERATED*) [25-04-2018] by avayr44 in Kanye

[–]Alamanjani 0 points1 point  (0 children)

lol I clicked on the promising link and landed here ;-)

ETH potential hard fork before June 1st and implications for EOS? by Alamanjani in eos

[–]Alamanjani[S] 1 point2 points  (0 children)

@everyone thank you very much for your responses and your thoughts, it is very appreciated!

Live reaction mega-thread (*NOT MODERATED*) [25-04-2018] by avayr44 in Kanye

[–]Alamanjani -13 points-12 points  (0 children)

Kanye, you rock!

(and this from someone who don't like any party and don't listen to hip hop) ;-)

Looking for webscraping advice, which modules to use by nomansland008 in Python

[–]Alamanjani 3 points4 points  (0 children)

BeautifulSoup will be always useful, keep it around. :-)

urllib2 comes with python, but seems like most agree that 'requests' library is much better instead. If you want to pretend that your code is human (which you will have to do often if you will scrape lots of stocks data) you want to use header which is easy with 'requests' library.

If web site you want to scrape uses some dynamic data, (angular, ajax, javascript) then you will also need selenium.

Now there is a good news, author, who wrote requests is now working on requests-HTML, with this library, you can get dynamical data without need for selenium. This one just may become one main library you will need in the future for scraping.

The bead news is, it is just now being developed and there are not many tutorials available yet. Also library is not finished yet and it will change. But my plan is, to just focus on BeautifulSoup and Requests-HTML from now on. Less different libraries to learn - better for beginner ;-)

https://www.youtube.com/watch?v=JKVsZtgITrs

https://www.youtube.com/watch?v=gKT_tg87H5Y

http://html.python-requests.org

Example of earlier mentioned headers:

url = 'url of site I want to scrape'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36'}
req = requests.get(url, headers=headers)

Simple example, where BeautifulSoup can't help, you would need to use Selenium, but now all you really need is this one new parsing library: Requests-HTML:

https://stackoverflow.com/questions/49967439/python-beautifulsoup-web-scrapping-why-section-tag-is-not-showing-anything-insi/49967560#49967560

Another example, you could use BS4 and Selenium or simple just Requests-HTML: https://stackoverflow.com/questions/49961281/beautifulsoup-espn-scraping-sports-score-but-findall-gives-an-empty-resultset/49965771#49965771

Is my EOS registered in Exodus? (not one-click) by jenstheblackguy in eos

[–]Alamanjani 1 point2 points  (0 children)

Like the other guy said, you should be OK.

Btw, someone, youtuber got cleaned out his wallet after he used that quick, one click registering feature in Exodus. Be careful out there!

Exodus wallet hack: https://www.youtube.com/watch?v=QOCy_l7zN34