Categories
Mastering Development

modalPresentationStyle not updating the data

The below code can show the ratings screen using modal or i can push it. if i use modal i can see the animation effect and not in pushed controller method, the animation are defined in a view class separately, but in case of pushed i can see the ratings gets updated instantly but not […]

Categories
Ask English Speaking

What is the difference between /ʊ/ and /ʌ/?

/ʌ/ cut, hut, bun, nothing, love, enough, flood, does /ʊ/ put, soot, foot, good, look, cook To me the ʌ is a more short, low front (unrounded?) vowel, but the vowel /ʊ/ which sounds like “uh” is a short, high back (rounded?) vowel but this difference is only minor that you could probably swap each […]

Categories
Development User Help

Regex: Delete all operators (commas) from tags

I have to delete all commas from tags (not from the entire html files): <!DOCTYPE, html> <html, xmlns=”http://www.w3.org/1999/xhtml” dir=”ltr” lang=”ro”> <title>I, love, Myself, Now | Nick, Francisco</title> <meta, property=”fb:admins”, content=”1446157242″/> <link, rel=”sitemap” type=”application/rss+xml” href=”rss.xml” /> <meta, name=”googlebot” content=”index,follow”/> <link, rel=”shortcut, icon” href=”goiu.ico”/> <meta, http-equiv=”X-UA-Compatible” content=”IE=edge,”/> I made a regex, but is not too good. FIND: […]

Categories
Development

Survey User Form count vba

I have a survey and I want to evaluate the results. There are 10 topics Football, Music, Instagram, Snapchat, Food, Love, Clouds, Travel, Discover, Fashion, They can be rated by 1. Good 2. Okay 3. Boring 4. Don’t care 5. Not interested I have created option buttons and I want that the result will be […]

Categories
Development

Naive Bayesian ML code. I don’t understand this program from my lecture

This is an ML model that detects if an owner is abusing their dog based on keywords. Specifically I don’t understand how the probabilities of abusive words are calculated or what is even going on.( I know this sound pathetic) Finally I don’t understand the reason for the power function in the lines. I get […]

Categories
Development

Can’t find where the error is in this JavaScript code. Not very familliar with ‘class’ syntax

This is the code. It is an assignment from a random stranger that asked me to solve it for him since he saw a post of mine on IG. // Player class class Player { constructor(name, strength = 2, weapons) { this.name = name; this.health = 10; this.strength = strength; this.weapons = […weapons]; } applyDamage(int) […]

Categories
Development

Passing word2vec embedding to a custom LSTM pytorch model

I have a set of input sentences. I am using the pretrained word2vec model from gensim to get the embedding of the input sentences. I want to pass these embeddings as input to a custom pytorch LSTM model hidden_size = 32 num_layers = 1 num_classes = 2 class customModel(nn.Module): def __init__(self, input_size, hidden_size, num_layers, num_classes): […]

Categories
Development

AutoCompleteTextView list – Not displaying single word string first followed by two words string

I am new to Android application development and I am currently working on an existing Android application I have an alphabetically sorted list of strings for the AutoCompleteTextView and some of the strings have 2 words. when I start typing a letter then I would like to have the autocomplete list appeared such that it […]

Categories
Development

How to use sklearn TFIdfVectorizer on pandas dataframe

I am working with a tab separated file that looks like this: 0 abch7619 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. 42Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat…………. 1 uewl0928 Duis aute irure […]

Categories
Ask

[ Lyrics ] Open Question : Help me to find a pop/electro/techno song ;-;?

I don’t know what song i hear at the gym. Sounds like a pop/electronic, and a bit melodic… The chorus it’s something like (sounds like) (after the beat) “I put/pull my heart/head against my eye…” . It’s a kind of pop, and electro. “Melodic”. The beginning is with acoustic guitar. A mix of “Apologize” (Timbaland […]