Topic Wiki

Training
Codecademy.com offers hand on courses for  various coding languages including HTML, JavaScript, CSS, and more. FREE
TreeHouse.com 8)
w3schools.com
regex

Resources
Browser compatibility
Can i use

To test/show-of your skills
html - css - js
http://codepen.io/pen/
http://jsfiddle.net/

My sql
www.sqlfiddle.com

Editor
notepad-plus-plus.org/

android development
http://developer.android.com/sdk/index.html

js librery
http://greensock.com/ nice animation
getbootstrap.com/css/ responsive layout
jquery.com do more write less

Free Books
http://it-ebooks.info/

Test client browser version
http://browser-update.org/
« Last edited by yesitsme on May 17, 2015, 11:13:37 AM »

Author Topic: Programming for Beginners  (Read 107027 times)

Offline Yonah

  • Dansdeals Platinum Elite + Lifetime Silver Elite
  • *****
  • Join Date: Mar 2014
  • Posts: 608
  • Total likes: 386
  • DansDeals.com Hat Tips 4
    • View Profile
Re: Programming for Beginners
« Reply #380 on: September 26, 2016, 11:28:05 AM »
Is there any reason to render views client-side with frameworks like Angular or Backbone, as opposed to doing everything on the server?

Speed, Performance and #requests on the server.

For example, let's say you were loading a set of data from the server and wanted your end users to be able to sort and search it. If you rendered it server side, every sort request or search request would require a round-trip to the server. If you render the client in Angular/Backbone, you can sort/search using the local data, which is a lot quicker, and sends fewer requests back to you.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3001
  • Total likes: 13
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #381 on: September 27, 2016, 12:16:43 AM »
Speed, Performance and #requests on the server.

For example, let's say you were loading a set of data from the server and wanted your end users to be able to sort and search it. If you rendered it server side, every sort request or search request would require a round-trip to the server. If you render the client in Angular/Backbone, you can sort/search using the local data, which is a lot quicker, and sends fewer requests back to you.
Good point.
I assume that data that will not be manipulated client-side is faster to render on the server.

Offline Achas Veachas

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Jul 2012
  • Posts: 4399
  • Total likes: 114
  • DansDeals.com Hat Tips 3
    • View Profile
    • Torah && Tech
Re: Programming for Beginners
« Reply #382 on: October 30, 2016, 02:02:17 PM »
Did you do their online course or on campus? I know python basics (I too used DDMS for a project. A few years ago I built a python script to text me when DDMS had certain keywords like 'mistake' etc) but want to learn RoR to better understand my company's website. Would you recommend Flatiron?
I know this is from a while ago (I've been kinda missing lately :) )
I'm doing the online course (Learn-verified). Pretty happy with it. Let me know if it's still pertinent for you and if you want more info.

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12863
  • Total likes: 3321
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #383 on: November 06, 2016, 10:37:04 PM »
Does anyone know if it's possible to send data to a webhook via a bookmarklet?

TY
Workflowy. You won't know what you're missing until you try it.

Offline bubbles

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Jul 2011
  • Posts: 5060
  • Total likes: 20
  • DansDeals.com Hat Tips 67
    • View Profile
Re: Programming for Beginners
« Reply #384 on: November 07, 2016, 01:07:10 AM »
Create and post a form?

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12863
  • Total likes: 3321
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #385 on: November 07, 2016, 10:47:17 AM »
Workflowy. You won't know what you're missing until you try it.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3001
  • Total likes: 13
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #386 on: November 07, 2016, 01:43:25 PM »
Huh?
Find the URL and data structure that the webhook takes, then write a script in the bookmarklet that submits that request.

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12863
  • Total likes: 3321
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #387 on: November 07, 2016, 01:46:34 PM »
Find the URL and data structure that the webhook takes, then write a script in the bookmarklet that submits that request.
How do I write a script to submit the request? I've never dealt with webhooks before and not really sure how they work.
Workflowy. You won't know what you're missing until you try it.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3001
  • Total likes: 13
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #388 on: November 07, 2016, 02:13:58 PM »
How do I write a script to submit the request? I've never dealt with webhooks before and not really sure how they work.
A webhook is a service that takes an HTTP request and does something. That request is usually sent when an event is triggered and you want the webhook to be notified about it.
You need to find the API for the webhook, and then send a request using the appropriate format.
Google "js send http request" and ignore the jquery answers.
It's hard to give a more specific answer without more details.

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12863
  • Total likes: 3321
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #389 on: November 07, 2016, 02:32:23 PM »
A webhook is a service that takes an HTTP request and does something. That request is usually sent when an event is triggered and you want the webhook to be notified about it.
You need to find the API for the webhook, and then send a request using the appropriate format.
Google "js send http request" and ignore the jquery answers.
It's hard to give a more specific answer without more details.
Got it - thanks! I'll give it a try and come back if I have questions
Workflowy. You won't know what you're missing until you try it.

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1556
  • Total likes: 205
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #390 on: December 21, 2016, 03:21:42 PM »
Any one here know python that can help me edit something?
Money talks...mine says goodbye!

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1556
  • Total likes: 205
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #391 on: December 21, 2016, 11:01:01 PM »
Any one here know python that can help me edit something?
Anyone?
Money talks...mine says goodbye!

Offline DanH

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Oct 2011
  • Posts: 2181
  • Total likes: 26
  • DansDeals.com Hat Tips 2
    • View Profile
Re: Programming for Beginners
« Reply #392 on: December 22, 2016, 03:40:03 AM »
For tech help feel free to Telegram me @DanTechSupp

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1556
  • Total likes: 205
  • DansDeals.com Hat Tips 1
  • Gender: Male
    • View Profile
Re: Programming for Beginners
« Reply #393 on: December 22, 2016, 09:19:50 AM »
A little bit.   Whats up?
Thank you

Code: [Select]
#!/usr/bin/env python3
import binascii
import csv
import os.path
import sys
from tkinter.filedialog import askopenfilename, askdirectory
from tkinter.simpledialog import askinteger

def split_csv_file(f, dst_dir, keyfunc):
    csv_reader = csv.reader(f)
    csv_writers = {}
    for row in csv_reader:
        k = keyfunc(row)
        if k not in csv_writers:
            csv_writers[k] = csv.writer(open(os.path.join(dst_dir, k),
                                             mode='w', newline=''))
        csv_writers[k].writerow(row)

def get_args_from_cli():
    input_filename = sys.argv[1]
    column = int(sys.argv[2])
    dst_dir = sys.argv[3]
    return (input_filename, column, dst_dir)

def get_args_from_gui():
    input_filename = askopenfilename(
        filetypes=(('CSV', '.csv'),),
        title='Select CSV Input File')
    column = askinteger('Choose Table Column', 'Table column')
    dst_dir = askdirectory(title='Select Destination Directory')
    return (input_filename, column, dst_dir)

if __name__ == '__main__':
    if len(sys.argv) == 1:
        input_filename, column, dst_dir = get_args_from_gui()
    elif len(sys.argv) == 4:
        input_filename, column, dst_dir = get_args_from_cli()
    else:
        raise Exception("Invalid number of arguments")
    with open(input_filename, mode='r', newline='') as f:
        split_csv_file(f, dst_dir, lambda r: r[column-1]+'.csv')
        # if the column has funky values resulting in invalid filenames
        # replace the line from above with:
        # split_csv_file(f, dst_dir, lambda r: binascii.b2a_hex(r[column-1].encode('utf-8')).decode('utf-8')+'.csv')

I need to add that it should add 2 more columns to the CSV file it should ask me what to put in each field

What this is doing its spitting the selected CSV dile and splitting it by column that I define. i use this to split a 3,000,000 line csv.
I need to add the above.
Note: this i not my code i found it, and can really save me alot of time if someone can help me.
Money talks...mine says goodbye!

Offline 16guitar

  • Dansdeals Gold Elite
  • ***
  • Join Date: Aug 2012
  • Posts: 109
  • Total likes: 2
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #394 on: January 23, 2017, 09:27:13 AM »
Has anyone done a coding bootcamp?

Offline Essen est zich

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Apr 2017
  • Posts: 2030
  • Total likes: 704
  • DansDeals.com Hat Tips 31
    • View Profile
  • Programs: Nichoach Vol 2
Re: Programming for Beginners
« Reply #395 on: May 17, 2017, 03:16:35 PM »
Is there a point of learning how to use Linux properly before starting to code?
Shloffen Shloft Zich

Offline Cholentfresser

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Mar 2009
  • Posts: 1920
  • Total likes: 50
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Programming for Beginners
« Reply #396 on: May 17, 2017, 03:20:15 PM »
Is there a point of learning how to use Linux properly before starting to code?
It can be helpful down the road especially if you're planning on using linux hosting, but it definitely isn't necessary to learn it to start programming.
In order to understand recursion, you first need to understand recursion.

Offline Essen est zich

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Apr 2017
  • Posts: 2030
  • Total likes: 704
  • DansDeals.com Hat Tips 31
    • View Profile
  • Programs: Nichoach Vol 2
Re: Programming for Beginners
« Reply #397 on: May 18, 2017, 12:24:20 AM »
Does anyone have any good suggestions on where/how to learn how to properly utilize Linux?
Shloffen Shloft Zich

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 12863
  • Total likes: 3321
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #398 on: June 26, 2017, 05:57:14 PM »
Anyone know how to view history on github? I'm having an issue with a wordpress plugin. I know I had the same issue before and the author helped me with it on their github page, but the plugin was taken over by someone else and my "issue" page is gone, so I can't see what solved it last time.

Any idea?
Workflowy. You won't know what you're missing until you try it.

Offline AnonymousUser

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Feb 2013
  • Posts: 3001
  • Total likes: 13
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #399 on: June 26, 2017, 10:52:56 PM »
Anyone know how to view history on github? I'm having an issue with a wordpress plugin. I know I had the same issue before and the author helped me with it on their github page, but the plugin was taken over by someone else and my "issue" page is gone, so I can't see what solved it last time.

Any idea?
Make sure you're not filtering the issues. Default is to show only open ones.

You can try archive.org too.