Giter Club home page Giter Club logo

opencodez-samples's Introduction

www.opencodez.com - code samples

This is where we keep all of our code samples. Please feel free to download, try and suggest any changes or enhancements. I am providing here link for each of the article that is associated with code. This will help you understand and give you a chance to express your thoughts.

Java

2-way-ssl-authentication https://www.opencodez.com/java/implement-2-way-authentication-using-ssl.htm

actuators https://www.opencodez.com/java/spring-boot-actuators.htm

ad-ldap-demo https://www.opencodez.com/java/configure-ldap-authentication-using-spring-boot.htm

apache-cxf-ws https://www.opencodez.com/java/soap-web-services-with-apache-cxf-spring-boot.htm

currency-conversion https://www.opencodez.com/java/currency-conversion-app-spring-boot-java.htm

device-detection https://www.opencodez.com/java/device-detection-using-spring-mobile.htm

encrypted-mail https://www.opencodez.com/java/send-encrypted-email-using-java.htm

generic-csv-reader https://www.opencodez.com/java/generic-csv-file-reader-in-java.htm

java-deep-learning https://www.opencodez.com/java/deeplearaning4j.htm

kafka-demo https://www.opencodez.com/java/using-apache-kafka-java.htm

mail-demo https://www.opencodez.com/java/java-mail-framework-using-spring-boot.htm

microservices https://www.opencodez.com/java/microservices-action-spring-boot.htm

multi-db https://www.opencodez.com/java/connecting-multiple-databases-spring-data-jpa.htm

quartz-demo https://www.opencodez.com/java/quartz-scheduler-with-spring-boot.htm

restful-demo https://www.opencodez.com/java/building-restful-web-services-using-java.htm

spring-boot-datatable https://www.opencodez.com/java/datatable-with-spring-boot.htm

spring-kafka-demo https://www.opencodez.com/java/how-to-build-message-driven-application-using-kafka-and-spring-boot.htm

web-app-starter https://www.opencodez.com/java/java-web-application-starter-template-using-spring-boot.htm

zip-test https://www.opencodez.com/java/zip-file-using-java.htm

Python

keras-text-classification https://www.opencodez.com/python/text-classification-using-keras.htm

Oracle

Oracle https://www.opencodez.com/oracle/oracle-job-scheduler-guide-examples-part-1.htm

opencodez-samples's People

Contributors

pavansolapure avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

opencodez-samples's Issues

Can't send Email

Nice example.

Why I can't send email with your code?

Is there anything I left or something?

Thanks.

Capitalization

Hi Pavan, thanks for sharing this awesome project! I'm running it on Linux and ran into issues with the database references switching between User and USER (I think this might not be an issue on Windows?). For Linux, I named the table "User" and made all references match "User" (first letter capitalized). Also, the totalRecords being part of the userModel seems to be causing an error Unknown column 'user0_.totalrecords'.

I made all references to totalRecords the same capitalization-wise (as "totalRecords") and then I added a "totalRecords" field to the User table as a workaround because "updatable=false, insertable=false" (in the @column annotation for totalRecords in the User class) doesn't seem to be working for me and I get error Unknown column 'user0_.totalRecords' in 'field list' when trying to enter a record. I tried using @transient with the declaration for totalRecords in class User and that worked for insertion but not for looking at the datatables paginated report, since then totalRecords didn't persist.

Ldap

security autentication controll is not working correctly. you can bypass the autentication controll typing index into the browser

i could not undrestand this line

cTemplate = cTemplate.replace("{{" + entry.getKey() + "}}", entry.getValue());

you want to change the value of every key by new value?
or { 1 -> one} {one}
???

if 1 -> one
2 -> two
the result ???

Fit the Tokenizer on some data before using tfidf mode

Hi,
I am trying to run your code. However, I am getting the following error. I have fitted the tokenizer as following.

tokenizer.fit_on_texts(train_posts)

print(tokenizer.texts_to_matrix(train_posts, mode='count'))

I am using python 3 with keras 2.2.2 and tensorflow 1.9.0. Can you please help me to fox this issue?

Thanks
----------------- Error -----------------------
Traceback (most recent call last):
File "", line 1, in
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_bundle/pydev_umd.py", line 194, in runfile
pydev_imports.execfile(filename, global_vars, local_vars) # execute the script
File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydev_imps/_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "/Users/Ahmad/mydevelopment/datasciencePractice/textclassificationwithleras.py", line 99, in
x_train = tokenizer.texts_to_matrix(train_posts, mode='tfidf')
File "/Users/Ahmad/anaconda3/envs/datasciencePractice/lib/python3.6/site-packages/keras_preprocessing/text.py", line 376, in texts_to_matrix
return self.sequences_to_matrix(sequences, mode=mode)
File "/Users/Ahmad/anaconda3/envs/datasciencePractice/lib/python3.6/site-packages/keras_preprocessing/text.py", line 403, in sequences_to_matrix
raise ValueError('Fit the Tokenizer on some data '
ValueError: Fit the Tokenizer on some data before using tfidf mode.

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 289: invalid start byte

Hi, am getting error while loading the files into dataframe.
Please advice on this.
Here is the code and error:

Read and add data from file to a list

i=0
for f in labelled_files:
data_list.append((f,label_names[label_index[i]],Path(f).read_text()))
i += 1


UnicodeDecodeError Traceback (most recent call last)
in ()
2 i=0
3 for f in labelled_files:
----> 4 data_list.append((f,label_names[label_index[i]],Path(f).read_text()))
5 i += 1

~/anaconda3/lib/python3.6/pathlib.py in read_text(self, encoding, errors)
1195 """
1196 with self.open(mode='r', encoding=encoding, errors=errors) as f:
-> 1197 return f.read()
1198
1199 def write_bytes(self, data):

~/anaconda3/lib/python3.6/codecs.py in decode(self, input, final)
319 # decode input (taking the buffer into account)
320 data = self.buffer + input
--> 321 (result, consumed) = self._buffer_decode(data, self.errors, final)
322 # keep undecoded input until the next call
323 self.buffer = data[consumed:]

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xab in position 289: invalid start byte

Not Working on Liberty Profile

Server.xml

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">
    <featureManager>
        <feature>webProfile-7.0</feature>
    </featureManager>
    <httpEndpoint id="defaultHttpEndpoint"
                  httpPort="9080"
                  httpsPort="9443" />                  
 <applicationManager autoExpand="true"/>
</server>

Added this dependency :

<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>3.1.0</version>
			<scope>provided</scope>
		</dependency>

When I hit the http://localhost:9080/apache-cxf-ws-0.0.1-SNAPSHOT/services - it gives an error FileNotfound Exception.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.