rproffitt 2,701 https://5calls.org Moderator

Just today I read this.

"Message to programmers: ALL USER INPUT IS EVIL."

For your assembler app to be useful it likely takes input and produces output. Writing in assembler does not automatically shield you from the evil users, bots or other bad computers.

Example: DDOS attacks that leverage your IP stack. Your code for instance has some feature to send status or more to a return IP. Hello DDOS and it does not matter what your code was written in.

rproffitt 2,701 https://5calls.org Moderator

Here's the thing. https://www.google.com/search?q=Write+a+function+lucky_sevens%3F%28numbers%29%2C+which+takes+in+an+array+of+integers+and+returns+true+if+any+three+consecutive+elements+sum+to+7.&ie=utf-8&oe=utf-8 finds priors and I think this is homework or coding challenges.

As to your idea to port your python code, since you have a spec on what to write, do that instead from scratch in Ruby. If you need to get back to the books or web on Ruby, then do that. But don't let what you wrote in Python dictate how to do such in Ruby.

rproffitt 2,701 https://5calls.org Moderator

"So Assembly is monolithic only, it's not possible to somehow split it up?"

Sure you can. In fact we now use dual ARM chips to dedicate one to motor control and one to I/O. This is an embedded system so from the ground up, the app as a whole is dual core. This still won't help if we added say some WiFi or other link and wanted the host OS to do the work of splitting the load up.

"Could you give me an idea how well written binary program would have flaws?"

Since the executable might be in the clear, you can reverse assemble and edit it to do your bidding. There is no "signing" of the app so it's wide open to editing. https://www.google.com/search?q=android+apk+signing for example broaches how in an OS we can have signed apps.

Apple takes that a step farther. Some say too far.

PS. Your topic is quite large. If you ever try this again, keep it on a single topic or one question.

rproffitt 2,701 https://5calls.org Moderator

There are so many topics in your post that each one could take a session on its own.

A lot of what you wrote is based on assumptions long gone. When was the last time you were on a computer with just a single core? For me that can happen in embedded work but most of what you wrote and I have to make a big assumption is your run of the mill smart phone or PC.

This means that assembler is not your best choice as there is no known system to that will take your code and thread/break it across the cores for more throughput. This is possible with byte code systems (Java, others.)

The speed angle buckles and breaks as processors sprout new instructions. Your assembler code is a "do this" code and your byte code says "do this as best you can." So your Java/Android app can optimize it for each CPU and instruction set.

I've written a lot of assembler for embedded systems but today, I'd skip assembler for a next level up language.

Finally that's news to me that assembler has no security flaws. This must be from an assembler fanboy?

rproffitt 2,701 https://5calls.org Moderator

OK, the app runs up to line 42 and all looks OK. Now which line is troublesome?

Focus on that line and print or use a debugger to check the values to the calls.

rproffitt 2,701 https://5calls.org Moderator

To me, not a bug. The priors show that it's not a new problem and some folk have "fixed it." Here I think it's proper behavior and again, I'm running into more and more folk that demand that actions match what you see in Microsoft Word.

rproffitt 2,701 https://5calls.org Moderator

Here's the thing. That question has been kicked around for years. https://www.google.com/search?q=can't+backspace+a+newline+in+vim tells me a lot and can be deep reading.

In some views this is not a bug but a feature.

My call would be to not fix this.

PS. Added with edit. Vim is not Word. Once in a while you find folk using Word as the standard of how editing should work.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

To speed things along, tell what error you see. That's 140 lines of code to slog through and the screen cap doesn't tell me it failed.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question before you update your post.

rproffitt 2,701 https://5calls.org Moderator

My thought is I'd research if others have found a way to check ffmpeg progress and from there see if I could code from there.
https://www.google.com/search?q=ffmpeg+progress+bar shows some PHP and bars so you can take it from there and use the progress as you see fit and drop the bar.

rproffitt 2,701 https://5calls.org Moderator

Since you are not up to speed on app creation and the research you did on this didn't work out, it may be time to bring an app developer on board.

rproffitt 2,701 https://5calls.org Moderator

You know the answer. And I've seen a power supply respond badly and wipe out everything in the PC.

Chances are it's just the mainboard.

rproffitt 2,701 https://5calls.org Moderator

A few problems. The potato quality images show what looks like some cyan colored plastic so is that one of the billion cheap not Apple cables? Those are in the news.

The USB spec allows for shorts so for this to burn up, something's not right. Front ports are always a carpshoot. That is I find them to be iffy in many builds.

If the machine is dead, given the story, it's usually the motherboard.

http://bgr.com/2016/10/25/fake-lightning-cable-charger-counterfeit-apple-usb-amazon/ if you want to know more. It's a shame that low price sucks folk in and then this happens.

rproffitt 2,701 https://5calls.org Moderator

When confused where to start you start at the beginning. Along the way you design your apps first before you write code. If you need to automate something then you document each step from the beginning to the end.

Now you have steps that you code so when the button is clicked, the computer does all the work.

Sometimes you find a new coder that wants to skip all that design work.

diafol commented: I think we have a few nominations for that on here :) +15
rproffitt 2,701 https://5calls.org Moderator

Here's the priors to this question on DaniWeb
https://www.google.com/search?q=add+sounds+to+a+Tkinter+application&ie=utf-8&oe=utf-8#q=add+sounds+to+a+Tkinter+application+site:www.daniweb.com

It appears you have some odd issue beyond what you asked. If this was me I'd being asking why Pygame isn't working.

rproffitt 2,701 https://5calls.org Moderator

@Abdulaziz_2. Burying your post under a 7 year post?

Before you post read this link -> https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question

rproffitt 2,701 https://5calls.org Moderator

In answer to your statement, yes. You may want to pose questions or show where you got stuck. There are many papers on your topic (that's in your first post) and some try to expand or go somewhere else later in the discussion. So how you solve this is your choice. At least it's one with plenty of paper written all about it.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

Given all the content on the subject at https://scholar.google.com/scholar?hl=en&q=shared+memory+synchronization+techniques&btnG=&as_sdt=1%2C5&as_sdtp= can you share more about what you are trying to do?

rproffitt 2,701 https://5calls.org Moderator

I see how to set it up at https://firebase.google.com/docs/ios/setup and later down the page is the CodeLab.

Since there are 10 PODs in Firebase, your question needs refinement. This is not to say I will give up 10 answers or 1.

rproffitt 2,701 https://5calls.org Moderator

This appears to be a challange you want to tackle. Show some work on your part and tell the forum where you got stuck.

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question first.

rproffitt 2,701 https://5calls.org Moderator

It looks hard coded. http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.con.doc/q015860_.htm does not show any option to show less.

Maybe you need to pipe the result to your code to strip it down to what you want?

rproffitt 2,701 https://5calls.org Moderator

Why would you write that? http://islandprogrammers.blogspot.com/2014/09/create-menu-driven-program-to-add.html seems relevant.

But if you are learning how to code, you wouldn't use that.

rproffitt 2,701 https://5calls.org Moderator

I think you have to wait for the #1 site to blink or crash. Example? Samsung. If you were a competitor, your rank will now rise against Sam.

rproffitt 2,701 https://5calls.org Moderator

I've looked at attachments 1 and 2 and found no difference. Help me out here.

rproffitt 2,701 https://5calls.org Moderator

By a good deal do you mean you are looking to hire if the deal is right or good?

That said, please read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question so you don't leave folk wondering what you really want.

rproffitt 2,701 https://5calls.org Moderator

While not homework this doesn't appear to be the place for "give me code." Supply your work so far and where you are stuck.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

My thought was how I'd tackle it, not to supply code.

While in Visual Studio does the event fire (use of VS is assumed here) and how to tie code to events as well. Once in a while you find a VS coder that doesn't have the basics down.

rproffitt 2,701 https://5calls.org Moderator

If I wanted to just fix a bunch of Excel files I'd be more inclined to look again at using http://www.datamystic.com/excelpipe.html which can also be scripted, called and doesn't rely on the installed Excel version.

Otherwise you have to dive into the issue you found until you found what it was. My bet is you'll need a new VS and object library. Microsoft is like that.

rproffitt 2,701 https://5calls.org Moderator

This could make your third post with no answers. I think why this is happening is you need to share your work so far and polish the question. Also, make it open to other solutions. So an one and a two.

  1. Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question
  2. Tell more what this "bind" is.

For me I think I would tackle this by event handlers. That is, I put in the scroolbar and it's event handler does what you want it to do. This is by coding so you write the code. I only offer my approach.

rproffitt 2,701 https://5calls.org Moderator

@Don. I didn't find an answer to my question. That test would have me offer the method I used in another app where I launch workers to do the thing then workers die as they finish. The main app manages how many workers are running. Since we have multicore machines now, this is how I maximized my old app throughput.

rproffitt 2,701 https://5calls.org Moderator

@doncwilson. When I read your top post it was "Excel Workbooks are not being completely Closed via VB.net" and now
"I cannot get these instances of Excel to close after numerous changes and attempts".

So that's different so as a test, do these processes exit/close when your app or if running in Visual Studio (which version?) closes?

Why I ask is in one app that I fielded I had to spawn a copy of my app to do a thing and it would exit when done and that would clean up nicely. Files closing is one thing, a process is another. Sorry that I didn't read that right in your opening post.

rproffitt 2,701 https://5calls.org Moderator

This is a common shill question that has yet to be genuine over in a forum I am a moderator at. It got so bad the spambot is loaded for bear in regards to file repair . com links and more.

It's a real shame but anytime you see a person ask about how to repair a corrupt file, you can bet it's another shill.

IP matching did this one in. My favorite is when they use the same question posted 5 and more years ago. Not very smart is being kind about shills and spammers.

rproffitt 2,701 https://5calls.org Moderator
rproffitt 2,701 https://5calls.org Moderator

I have to write no. Any app I've made over the years had me using more than 6 clicks as I crafted the app.

Maybe you meant 6 clicks max in your app but you neglected to show your work so far and where you got stuck.

rproffitt 2,701 https://5calls.org Moderator

@doncwilson

I didn't write to change the name but noted I would not use spaces in project folders. If it works for you, fine, but I don't.

Remember there are prior discussions so I didn't duplicate what they noted here. For example I read http://stackoverflow.com/questions/4813975/why-is-visual-studio-2010-not-able-to-find-open-pdb-files and find a dozen ideas. Which one is it this time? After reading it I like the one about "I had the same problem. It turns out that, compiling a project I got from someone else, I haven't set the correct StartUp project" since it sounds close to your issue where you are working an old, maybe imported project.

ddanbe commented: Indeed,no spaces. +15
rproffitt 2,701 https://5calls.org Moderator

Keep in mind I didn't read priors from https://www.google.com/search?q=pdb+not+found+visual+studio but 2 things I would try after I read prior posts on this.

  1. Create the folder structure myself. Do not use Windows Explorer. Use the command line.
  2. There's a space in the folder name. For reasons I never do that on projects. Your choice about that.
rproffitt 2,701 https://5calls.org Moderator

Here's a thing. One of my clients had a mail filter that would block zip files. So we renamed our zip to pdf and went back to work.

Wouldn't you know it I got a call from a new team member asking me how to open the PDFs I sent in.

PS. If you want others to try opening this PDF. Put it up on dropbox in your public folder for others to try it.

rproffitt 2,701 https://5calls.org Moderator

Another workaround came up last year. After saving it (noted by others), toss it into Dropbox and view it there. I think you can even edit them with the Dropbox app on phone/tablet.

rproffitt 2,701 https://5calls.org Moderator

That's easy. Have them send a good one.

There are shills that lead with your question so the spammer can reply with PDF Repair.com tools. But anyone I know sees right through that and downvotes you.

rproffitt 2,701 https://5calls.org Moderator

Read https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question next.

Asking for a snipe hunt in one hundred lines of code is asking a bit much. You likely know the line that blows up and on compile or runtime. Share the line of code that fails along with why you think it failed.

rproffitt 2,701 https://5calls.org Moderator

If it's too complex, break the problem apart into smaller steps. You have a goal and to get their you move towards it in steps.

rproffitt 2,701 https://5calls.org Moderator

@OP. So much blowing up on your last post. I suggest you reread the chapters on union again in the K&R book. (Heck it's free to read.)

Also, http://www.tutorialspoint.com/cprogramming/c_unions.htm comes nowhere close to what you are doing. Try other tutorials too.

And I thought you were bit flipping. Not yet. A char is not a bit.

rproffitt 2,701 https://5calls.org Moderator

I'd like to try this but it works fine here. The <fake> does not exist before I mklink to the <target> (re-read the article?) So for what I'm reading here there's no link, just 2 folders.

rproffitt 2,701 https://5calls.org Moderator

When "neither the target or link has a duplicate of the same file" then it sounds like there is no link at all. Just a pair of folders.

rproffitt 2,701 https://5calls.org Moderator

When normal and safe mode fails, the OS is blown. It doesn't tell us where or why it's blown. I usually test the PC further with Live OS CD/DVD/USB. I noted this a few years back at http://tips.oncomputers.info/archives2004/0401/2004-Jan-11.htm

There are odd instances where XP will just reboot if I plug in some USB thing it's not ready for. Just last week a client brought in an old PC and we looked around, declared it too far gone and then they revealed they had moved the HDD from a truly dead PC. Windows doesn't like that either. They got an extra hour of billing by not telling us that.

rproffitt 2,701 https://5calls.org Moderator

I re-read http://www.sevenforums.com/tutorials/278262-mklink-create-use-links-windows.html and can't see how the fake (link) can exist before I mklink. The target, yes, that must exist.

rproffitt 2,701 https://5calls.org Moderator

So link and target existed before mklink. Time to think about that again. Try a <link> that doesn't exist, as the mklink creates the new connection to the target.

rproffitt 2,701 https://5calls.org Moderator

I'd like to follow along here. Did the <link> folder exist prior to the mklink command? If so, I don't know what would happen.