Sortings stocks into quantiles based on their signal

This function sorts stocks into quantiles. To do so I used this function that accepts sig_df (dataframe with the timeseries of stocks signal) and number of quantiles as imput:

qs = ['Q' + str(i) for i in range(1, len(perc)+1)] q_labels= list(itertools.chain.from_iterable( itertools.repeat(x, int(sig_df.shape[1]/q_num)) for x in qs))  rank_labels = ['rank_{}'.format(i) for i in range(sig_df.shape[1])]  bucketed_names = pd.DataFrame(         sig_df.columns.values[np.argsort(-sig_df.values, axis=1)],          columns=[q_labels, rank_labels]         ) 

The second function computes portfolio returns, based on the names bucketed in the function above. It accepts two input a df containing stocks return and the output from the function above. To do so I used:

bucketed_returns = dict() for i in range(1, int(ret_df.shape[1]/bucketed_names.Q1.shape[1])):     Q = []      for row in bucketed_names['Q' + str(i)].itertuples():         temp = ret_df.loc[list(row[:1]) ,list(row[1:])]         Q.append(float(, weights)))         bucketed_returns['Q' + str(i)] = Q           bucketed_returns = pd.DataFrame(bucketed_returns) 

To optimize this code I thought about multiprocessing – not able to code that – or maybe there could be a better way remaining in pandas/numpy environment.

Sampling and Reconstructing a signal in Julia

I am a newcomer to the Julia world, so I started trying to implement a very simple program:

  • Sample a signal
  • Reconstruct it (various ways, just rectangular for now)
  • Plot it

Everything is fine and ‘working’ properly, but coming from a OOP (java) and functional (python) background, I’m thinking that the following snippet can be improved to be in a more julia-ish style:

(required packages: DSP, Plots, PyPlot) # parameters Ts = 0.02; n = 0:(100 / Ts);  f0 = 5;  dt = 0.001; t = 0:dt:10;  # sampling x = sin.(2 * pi * f0 * Ts * n); # target signal to sample  # reconstruct (need improvement) rectangular_reconstr(i) = x[floor(Int, i * (length(n) / length(t)) + 1)]  x_recon_sinc = [rectangular_reconstr(e) for e in 1:(length(t)-1)] 

I’m concerned about this list comprehension. Essentially, create a function that maps indices from (sampled) -> reconstructed is the whole idea here. If you were to do other kinds of interpolation (via spline, triangular or whatever), you can even access all the elements of the sampled array.

Is there any better alternative than this loop-comprehension version?

Signal transmission

A signal should be send from s to t as fast as possible. For this purpose a conductor has to be installed between s and t. The conductors width has to be deteminend by you. Because it is expensive to build the whole conductor of the same width, the conductor has been divided into n segments of equal length. Each Segment shall be connected by a piece of constant width. The Task is to decide the width of each segment. You are given a set M of k predefinded segments you can choose from. A segment can be chosen 0 or multiple times. Each segment has a resistance of w_i and a capacity of c_i the latency of a segment calculates as w_*c_i + w_i*C where C is the sum of capacities between the current segment and t. The complete latency is the sum of the latencies of all segments. Find the minimal latency of a signal transmission with the help of dynamic programming

an Example of for n= 3 and k = 3 would be M={(15,1),(8,2),(5,3)} with (w_i,c_i) an optimal path would be p = (15,1),(8,2),(5,3) with a minimal latency of 69

How to use Username/Password in Signal Protocol

I am trying to create a communication app from scratch (more like an html parsed messaging app) using the Signal protocol. While I do have lot to of programming experience, I am a crypto novice and therefore I am unable to figure out how do I sign in my users to this their so called email IDs (i.e. in the Signal protocol, where does the concept of Username and Password fit in). On the top of my head I have this idea:

  1. Use Username + Password to generate the keys
  2. Encrypt the Signal’s key store with Username + Password

How wrong am I? What would be the real use case of username and password?


How to signal to my players that the following part is supposed to be played on fast forward?

So in the campaign I DM there is a ritual that is supposed to take ⅔ of a year. Obviously, we need to skip most of these days, and some of the events deserve only a bit of role playing and that’s it.

On the other hand, my players love to go into details, and it causes lags. For example they solved the mystery of a curse, got everything they needed to break it, and then it resulted in round by round PvP that soon got boring for everyone. I could have told them that this was a part of the story that isn’t important. That identifying what happened and gathering ingredients was the interesting part. But I’d need to break immersion to do this.

Using my own advice, I plan to have another session zero and another grab on the Same Page Tool, but I’d like to have some ideas first, and I don’t want to reinvent the wheel.

So is there any tried way to communicate to players that

this isn’t the important part, don’t use too much time on it, more interesting things are waiting to happen!

without breaking immersion too much?

I’m interested in saving real play time, not in-game one. Players are aware of time constrains, and in-game they are doing great to progress as fast as feasible.

How do I block a strong wi-fi signal

The problem in detail: Trying to keep a wi-fi connection when there is a stronger signal that is mislabeled as free. 9pie keeps grabbing the stronger one. In Canada Shaw has 2 public wi-fi signals both are password protected and paid yet only one says so. This forces 9pie to choose the stronger one all the time.

gps signal pokemon go ios

=========> Download Link

gps signal pokemon go ios
gps for pokemon go ios
gps joystick for pokemon go ios
fake gps for pokemon go ios without jailbreak
mock gps for pokemon go ios
fake gps for pokemon go ios download
gps spoof pokemon go ios no jailbreak
gps 11 pokemon go ios
gps drift pokemon go ios
gps pokemon go apple

Latest Downloads:
quanto custa office para mac…

gps signal pokemon go ios

Galaxy S8+ occasionally gives off a brief 3 tone signal. Why?

After two years of use my Samsung Galaxy S8+ split open. Samsung original repair shop told me the battery had swollen and changed it one week ago.

The phone works, but it now gives of a signal (~3-4 falling tones?, quickly). The signal comes irregularly, maybe once every 1-2 hours at home, charging. It often comes after I pick it up and work a little. I have held the phone still when the signal has sounded.

I have only heard the signal once when not charging.

The reason I take this seriously is that I once had an old Galaxy Note 3 that started giving off the same signal frequently. After a while it did not charge well. I had to turn this phone off to charge it. It was thoroughly investigated at Samsung repair shops but no error found. Battery, charger, cable and finally internal charging components changed (not at original workshop). But its charging never recovered. (This entire paragraph was about my old phone.)

I run optimization and only few apps at the same time.

When they changed battery last week they demanded that I removed the lockscreen and they connected the phone shortly.

I asked today at the workshop and they cleaned the contact. I have not used the phone much after, but the signal has come once more, when not charging.

So far it charges OK, but a new battery has not improved usage time.

What is the reason for the signal? Will this phone too develop charging problems? Can I do anything about it?

The last question is a little conspiratory: Does Samsung introduce software on older phones to make them less functional by not charging well?


I can now say the situation is not immediately connected to the charging. Today the signal has come three times when using the phone without it being connected to the charger.