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 62588 times)

Offline yakov116

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: May 2014
  • Posts: 1480
  • Total likes: 75
  • 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: 1480
  • Total likes: 75
  • 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: 2180
  • 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: 1480
  • Total likes: 75
  • 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: 102
  • Total likes: 1
  • 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 Platinum Elite
  • ****
  • Join Date: Apr 2017
  • Posts: 470
  • Total likes: 58
  • DansDeals.com Hat Tips 4
    • View Profile
  • Location: Abiya
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?

Offline Cholentfresser

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Mar 2009
  • Posts: 1845
  • Total likes: 20
  • 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 Platinum Elite
  • ****
  • Join Date: Apr 2017
  • Posts: 470
  • Total likes: 58
  • DansDeals.com Hat Tips 4
    • View Profile
  • Location: Abiya
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?

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • 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: 3014
  • Total likes: 4
  • 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.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #400 on: June 26, 2017, 10:55:37 PM »
Make sure you're not filtering the issues. Default is to show only open ones.

You can try archive.org too.
1. I'm using a link to the issue, which I have in my email.
2. Doesn't seem to give me any results.
Workflowy. You won't know what you're missing until you try it.

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #401 on: May 08, 2018, 11:00:34 AM »
Workflowy. You won't know what you're missing until you try it.

Offline Boruch999

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Jun 2014
  • Posts: 1891
  • Total likes: 136
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #402 on: May 08, 2018, 11:19:02 AM »

Online etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 11406
  • Total likes: 1435
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Programming for Beginners
« Reply #403 on: May 08, 2018, 11:21:21 AM »
Why this thread?
I didn't think most people who read the jokes thread would understand it
Workflowy. You won't know what you're missing until you try it.

Online Josef.koney

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1914
  • Total likes: 10
  • DansDeals.com Hat Tips 0
    • View Profile
Re: Programming for Beginners
« Reply #404 on: May 08, 2018, 11:22:33 AM »
I still don't.