|
Thread Rules 1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution. 2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20) 3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible. 4. Use [code] tags to format code blocks. |
On July 27 2016 11:19 Frudgey wrote: Does anyone know if it's possible to paginate (I hope I spelt that right) a text area on a HTML page?
I'm okay to use HTML, JavaScript or JQuery to try and do this. I was just wondering if anyone knows what I am talking about.
For context, thousands of values are being loaded into a text area and I think it's slowing down the HTML page that it's on, so I want to try and rectify this.
Thanks!
Well, technically you could save the text into js variable, slice it and use scroll events or something to append textarea value.
But if your textareas are so big that they slow down the browser then I think your problem might be lying somewhere else...
|
On July 27 2016 15:49 Manit0u wrote:Show nested quote +On July 27 2016 11:19 Frudgey wrote: Does anyone know if it's possible to paginate (I hope I spelt that right) a text area on a HTML page?
I'm okay to use HTML, JavaScript or JQuery to try and do this. I was just wondering if anyone knows what I am talking about.
For context, thousands of values are being loaded into a text area and I think it's slowing down the HTML page that it's on, so I want to try and rectify this.
Thanks!
Well, technically you could save the text into js variable, slice it and use scroll events or something to append textarea value. But if your textareas are so big that they slow down the browser then I think your problem might be lying somewhere else... If you know how many lines will fit into the text box at all times, responsively, then you could design something like android's listview, which stores the data that should be displayed plus the immediate scroll content, retrieves more content from memory as the user scrolls.
|
Hyrule18968 Posts
Paginate a textarea? Sure. Create some link elements for page buttons, then you have a few approaches: 1. js array of the values for each page. Messy, and annoying if you want to save several different texts at once 2. ajax that shit. Can be slow, but better than an array 3. hidden inputs that you swap values with. lets you save everything, but still messy like js array
|
Depending on the amount of text, AJAX would be the way to go. If it's not a ton, like your page loads in less than a second, then you should think about hiding the text and displaying when necessary.
|
Shit. Got called about new job today. They want to snag me and make me a product owner.
Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...
Have any of you been there/done that? What are your experiences?
|
|
Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)...
|
Zurich15312 Posts
|
On July 28 2016 09:58 Manit0u wrote:Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)...
My goal is to see if an application is installed. If it is, then I uninstall it programmatically. Unfortunately, all the C# examples I find just list mainly Microsoft products and they miss programs such as Speccy. I'm going to see if C++ could achieve this task better by calling different API.
|
On July 28 2016 15:52 Shield wrote:Show nested quote +On July 28 2016 09:58 Manit0u wrote:Do you need your program to fetch the list or do you simply need the list? You can save CCleaner list as text you know (bottom right button on the uninstall screen)... My goal is to see if an application is installed. If it is, then I uninstall it programmatically. Unfortunately, all the C# examples I find just list mainly Microsoft products and they miss programs such as Speccy. I'm going to see if C++ could achieve this task better by calling different API.
If you are looking for a specific application, wouldn't it be more sensible to look for it's registry entry to determine whether it's installed and then run it's uninstall, which should be in the registry as well?
|
28078 Posts
That's amazing 
And true.
|
|
http://blog.durandal.io/2016/07/27/aurelia-1-0-is-here/ - Talking about Aurelia earlier, they've released 1.0... So no more beta!
Also on that html9responsive, I love it, gotta love this part too:
2. How do I install this? Um... are you stupid or something? Just attackclone the grit repo pushmerge, then rubygem the lymphnode js shawarma module – and presto!
|
I don't know if MSIINSTALLCONTEXT_MACHINE means "all installed products" on machine, but if it does, then MsiGetProductInfoEx is probably still not good enough. I'm using this API: msdn.microsoft.com
Edit: It feels good when I don't have to use heap memory.
|
Is anyone here proficient with CMake (3.0+)?
|
On July 28 2016 05:18 Manit0u wrote: Shit. Got called about new job today. They want to snag me and make me a product owner.
Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...
Have any of you been there/done that? What are your experiences?
So, I went from being a backend programmer to frontend while making more $$ and now I'm more of a UX/UI consulting guy. I really like the analytical part of building websites, so I haven't really touched building guts of a beast in a while, and to tell you the truth, I love it. Less stress, more pay, and eventually you'll be up at the top as long as you show performance. Also, as a product owner, I definitely think you'll be in the guts anyways making sure code doesn't look like shit.
Are you doing Agile development or Scrum within the new/old company?
|
|
On July 29 2016 23:33 Nesserev wrote:Show nested quote +On July 29 2016 17:39 Khalum wrote: Is anyone here proficient with CMake (3.0+)? Posting your question never hurts  That was a question..  Alright, in all seriousness, this is my situation:
I'm using CMake to generate a Visual Studio solution. Everything works as intended for the different libs and executables in there. Now I also have some files that need to be copied into different directories.
The way I have it set up right now is that I made a custom command similar to this:
add_custom_command(OUTPUT ${dst} COMMAND ${CMAKE_COMMAND} ARGS -E copy ${src} ${dst} DEPENDS ${src})
${src} would be a source file, ${dst} the destination file.
I'm creating these commands in a foreach loop that iterates over all the input files and output paths ('[..]/release/' and '[..]/debug/'), so each source/destination combination has its own command. All the ${dst} values get added to a list, let's call it ${all_dsts} now.
Then I wrote a custom target that depends on the commands outputs, like this:
add_custom_target(CopyStuff ALL DEPENDS ${all_dsts})
Okay, so far so good. Whenever a source file changes it gets copied into the places it needs to go. Great.
BUT! Let's say I ran the debug build and all files have been copied. Now I run the release build - and they get copied again since the release build has no idea about what the debug build did. Also: every build copies the files into both the /debug and the /release directories, which is totally not what I want to happen. What If I have no intentions of ever building the debug configuration - I don't need any files to be copied!
So. I know about generator expressions and know about $<CONFIG:cfg>, but I have no idea how to combine that with what I wrote so far.
Is there a way to write something like this? (pseudo code below)
set(${dst} if($<CONFIG:Debug>) ${dst_debug} elseif($<Config:Release>) ${dst_release})
[edit] I also thought about adding the configuration to the DEPENDS section of the command but have no idea if/how I can combine generator expressions and file dependencies.
How can I achieve what I want?
|
|
On July 29 2016 23:27 ShoCkeyy wrote:Show nested quote +On July 28 2016 05:18 Manit0u wrote: Shit. Got called about new job today. They want to snag me and make me a product owner.
Not really sure I'm up to it because during the interview I realized how much I like to dwell in the guts of the beast actually. Coding is always amazing for me, but it seems like a cool opportunity to get a bit different experience. I'm so torn...
Have any of you been there/done that? What are your experiences? So, I went from being a backend programmer to frontend while making more $$ and now I'm more of a UX/UI consulting guy. I really like the analytical part of building websites, so I haven't really touched building guts of a beast in a while, and to tell you the truth, I love it. Less stress, more pay, and eventually you'll be up at the top as long as you show performance. Also, as a product owner, I definitely think you'll be in the guts anyways making sure code doesn't look like shit. Are you doing Agile development or Scrum within the new/old company?
I did go through various implementations of Agile development and Scrum techniques in a couple companies I worked for (was a scrum master for about a month in one of them). Anyway, I think I'll ditch the offer since I just like coding too much (and higher pay isn't my priority).
|
|
|
|