16 اوت 2017
Mohammadreza Yazdanifarدوستان back end کار! سوالی در مورد دریافت کردن Stringفارسی دارم:
یه فرم ساده رو در نظر بگیرید که از طریق متد POST یه String رو سمت Backend میفرسته.
وقتی مقدار "متن فارسی" رو توی تکست باکس مینویسم تو Backend مقدار "نام فارسی" رو میگیرم. کسی میدونه این St
پیوند
برای نمایش کلیک کنید
برای نمایش کلیک کنید
Front End Sol.:
https://www.w3schools.com/jsref/jsref_unescape.asp
BackEnd Sol.(JAVA):
import org.apache.commons.text.StringEscapeUtils;
StringEscapeUtils.unescapeHtml4(str);
پیوند
برای نمایش کلیک کنید
برای نمایش کلیک کنید
مطلبی در سایت gnu.org تحت عنوان The Danger of E-Books منتشر شده که مقایسهای بین کتاب چاپی و کتاب الکترونیک از نظر سلب آزادی....
With printed books,
You can buy one with cash, anonymously.
Then you own it.
You are not required to sign a license that restricts your use of it.
The format is known, and no proprietary technology is needed to read the book.
You can give, lend or sell the book to another.
You can, physically, scan and copy the book, and it's sometimes lawful under copyright.
Nobody has the power to destroy your book.
Contrast that with Amazon e-books (fairly typical):
Amazon requires users to identify themselves to get an e-book.
In some countries, including the US, Amazon says the user cannot own the e-book.
Amazon requires the user to accept a restrictive license on use of the e-book.
The format is secret, and only proprietary user-restricting software can read it at all.
An ersatz “lending” is allowed for some books, for a limited time, but only by specifying by name another user of the same system. No giving or selling.
To copy the e-book is impossible due to Digital Restrictions Management in the player and prohibited by the license, which is more restrictive than copyright law.
Amazon can remotely delete the e-book using a back door. It used this back door in 2009 to delete thousands of copies of George Orwell's 1984.
https://www.gnu.org/philosophy/the-danger-of-ebooks.en.html
آیا می دانستید درصد آراء کاندید های ریاست جمهوری ایران از قبل مشخص شده بود؟
همان تیمی که سیستم هوش مصنوعی پیش بینی انتخابات را نوشته بود، در همایشی جمع می شوند تا حرف های تازه ای از آینده ایران ارائه دهند.
در صورت علاقه مندی، شما می توانید با کد تخفیف 100% در همایش رایگان ثبت نام نمایید.
آدرس ثبت نام : goo.gl/ABd3Hi
کد تخفیف : telemine
اطلاعات بیشتر : nlpcontest.com
170.6K · پیوند
برای نمایش کلیک کنید
برای نمایش کلیک کنید
import random
import urllib.request
def download_image(url):
name = random.randrange(1,10000000)
full = str(name)+".jpg"
urllib.request.urlretrieve(url,full)
download_image("http://www.picture-organic-clothing.com/wp-content/uploads/2017/06/586x912.jpg")
اونجایی که نیم رو تعریف کرده یه رنج ساخته اون رنج برای چیه (آیا مقدار باینری عکسی هستش که از نت میگیرم یا ... )
آیا می دانستید درصد آراء کاندید های ریاست جمهوری ایران از قبل مشخص شده بود؟
همان تیمی که سیستم هوش مصنوعی پیش بینی انتخابات را نوشته بود، در همایشی جمع می شوند تا حرف های تازه ای از آینده ایران ارائه دهند.
در صورت علاقه مندی، شما می توانید با کد تخفیف 100% در همایش رایگان ثبت نام نمایید.
آدرس ثبت نام : goo.gl/ABd3Hi
کد تخفیف : telemine
اطلاعات بیشتر : nlpcontest.com
170.6K · عکس
برای نمایش کلیک کنید
برای نمایش کلیک کنید
ددلاین از مرگ به شما نزدیک تر است.
با تشکر از: @Kingofcode
🆔 @ai_python
1.2K ·