It's not working for me. When I run npm start and open localhost:8000, it shows Error occured while trying to proxy to: 127.0.0.1:8000/ . There was no other process that occupying that port. What could be the problem? ([HPM] Error occurred while trying to proxy request /favicon.ico from 127.0.0.1:8000 to http://127.0.0.1:8001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors))
@datbv cho e hỏi với, e dùng kafka streams đếm số từ trong message thì khi in ra nó bị thế này, bên cmd thì nó toàn hiển thị icon, mặc dù e chạy restcontroller để xem thì nó vẫn trả về kết quả, a help e cái trường hợp này với 😅
Chỗ này map bằng constructor nhé. Chỗ UserModel::new là method reference của lambda user -> new UserModel(user). Bạn có thể đọc thêm về stream api để hiểu chỗ này.
có thể là momo đã remove feature / disable thanh toán qua web rồi
chỉ enable thanh toán qua mobile
vì mobile nhiều user hơn, và để đỡ phải maintain car web và API
bạn tìm trong doc của MoMo link tải app test nha
bài viết đã lâu nên mình cũng không nhớ chính xác nữa
Anh ơi cho em hỏi với, do em có thử chạy code của anh trên google colab tới đoạn này nó bị lỗi như thế này! Anh cho em hỏi với lỗi này là lỗi gì á, do em mới tìm hiểu python nên vẫn còn ngơ lắm! Em cảm ơn anh ạ!
from timeit import default_timer as timer
NUM_EPOCHS = 20
for epoch in range(1, NUM_EPOCHS+1):
start_time = timer()
train_loss = train_epoch(transformer, optimizer)
end_time = timer()
print((f"Epoch: {epoch}, Train loss: {train_loss:.3f}, "f"Epoch time = {(end_time - start_time):.3f}s"))
3 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
1101 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1102 return forward_call(*input, **kwargs)
1103 # Do not call functions when jit is used
1104 full_backward_hooks, non_full_backward_hooks = [], []
TypeError: forward() takes 4 positional arguments but 5 were given
THẢO LUẬN
@Nammmmmmmmmmmmmmmm e có up source lên đâu k chứ nhìn ntn hơi khó
It's not working for me. When I run npm start and open localhost:8000, it shows Error occured while trying to proxy to: 127.0.0.1:8000/ . There was no other process that occupying that port. What could be the problem? ([HPM] Error occurred while trying to proxy request /favicon.ico from 127.0.0.1:8000 to http://127.0.0.1:8001 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors))
Cảm ơn bài viết
@datbv cho e hỏi với, e dùng kafka streams đếm số từ trong message thì khi in ra nó bị thế này, bên cmd thì nó toàn hiển thị icon, mặc dù e chạy restcontroller để xem thì nó vẫn trả về kết quả, a help e cái trường hợp này với 😅

Hay bổ ích nha ad 👍👍👍👍
thả tim 👍😍
@tonghoangvu Vâng em cảm ơn anh
Bài viết dễ hiểu và bổ ích!
Chỗ này map bằng constructor nhé. Chỗ
UserModel::newlà method reference của lambdauser -> new UserModel(user). Bạn có thể đọc thêm về stream api để hiểu chỗ này.cảm ơn bạn nha. Nodejs mình sẽ update sau khi viết xong nha
có thể là momo đã remove feature / disable thanh toán qua web rồi chỉ enable thanh toán qua mobile vì mobile nhiều user hơn, và để đỡ phải maintain car web và API
bạn tìm trong doc của MoMo link tải app test nha bài viết đã lâu nên mình cũng không nhớ chính xác nữa
List<UserModel> userModels = users.stream().map(UserModel::new).collect(Collector.toList());
Dạ anh cho em hỏi cái này nó dùng Constructor của UserModel do mình tạo để map qua, hay nó tự map theo tên các thuộc tính ạ.
thank
thanks
bài viết rất hay, cảm ơn tác giả đã tâm huyết như vậy. Hy vọng có thể đồng hành cùng tác giả đến series cuối cùng. Một lần nữa cảm ơn tác giả.
Anh ơi cho em hỏi với, do em có thử chạy code của anh trên google colab tới đoạn này nó bị lỗi như thế này! Anh cho em hỏi với lỗi này là lỗi gì á, do em mới tìm hiểu python nên vẫn còn ngơ lắm! Em cảm ơn anh ạ!
from timeit import default_timer as timer NUM_EPOCHS = 20
for epoch in range(1, NUM_EPOCHS+1): start_time = timer() train_loss = train_epoch(transformer, optimizer) end_time = timer() print((f"Epoch: {epoch}, Train loss: {train_loss:.3f}, "f"Epoch time = {(end_time - start_time):.3f}s"))
TypeError Traceback (most recent call last) <ipython-input-22-e5ea35a73bbf> in <module>() 4 for epoch in range(1, NUM_EPOCHS+1): 5 start_time = timer() ----> 6 train_loss = train_epoch(transformer, optimizer) 7 end_time = timer() 8 print((f"Epoch: {epoch}, Train loss: {train_loss:.3f}, "f"Epoch time = {(end_time - start_time):.3f}s"))
3 frames /usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) 1100 if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks 1101 or _global_forward_hooks or _global_forward_pre_hooks): -> 1102 return forward_call(*input, **kwargs) 1103 # Do not call functions when jit is used 1104 full_backward_hooks, non_full_backward_hooks = [], []
TypeError: forward() takes 4 positional arguments but 5 were given
Hihi thanks bạn kk
Cảm ơn bạn, bài viết hay quá~~~
Bài viết hay ạ!
Hay quá. đang cần làm metaverse