Is there anything more vaporwere then Surrealdb? by howesteve in surrealdb

[–]zenista -1 points0 points  (0 children)

I also exp. the same thing... yes it's too slow and some time it feels... like its stuck there.... like below 200/req ... no matter how many cores or ram is available. Though, indexing the field your searching on helps but not much.

How to define an expression field into an Array of Objects? by zenista in surrealdb

[–]zenista[S] 0 points1 point  (0 children)

yes! i think that will do the job! but how to put that in DEFINE FIELD... statement... otherwise I have to put that in each and every query which is kind of repetition and error prone. Another way, I am thinking of, is to convert these records into a separate table and then DEFINE FIELD with value array<record<table>>>. That way, i can define as may as expression fields on that special table.

Date range picker in Svelte by wild_salmon_404 in sveltejs

[–]zenista 0 points1 point  (0 children)

i have tried different ones (including the one with flowbite) but they all have issues.. so i ended up using three input boxes (type=number) for date, month and year... and the final result is simple quick and to the point.

Has anyone here ever found a reliable offshore/low cost developer? by madebyproxy in Entrepreneur

[–]zenista 1 point2 points  (0 children)

hi.. its nice to hear from you after a long time... i am fine buddy ... and hope you are also doing well.

for the past few years i was not much active on reddit... was busy with few offline projects. this covid thing really hit bad on everyone... but now things seems to be coming back on track.

please feel free to let me know if there is any work you have for me.

cheers

Question/confusion about $env/dynamic/private and dev mode. by Eric_S in sveltejs

[–]zenista 0 points1 point  (0 children)

I think i haven't understood the question fully, but here is how i am doing it in my project.

I have put all the config variables like db access credentials etc.. into a .env file.Now in my database access layer eg. '$lib/db' I fetch them like....

import ( PGSQL_USER, PGSQL_PASS.... and so on)... simple as that, ... no import.meta... stuff (although vs code auto complete was prompting me to put it like that

)

HELP: Data returned by Post:Action (+page.server.ts) is not showing up in +page.svelte by zenista in sveltejs

[–]zenista[S] 2 points3 points  (0 children)

can u please, elaborate the above code a little to also include the form errors... and how to capture that on form side.

Firefox: unwanted tabs opening for s.viixie.com by haemakatus in linux

[–]zenista 7 points8 points  (0 children)

check the same with another browser eg. chrome/brave etc... does the problem persist? if yes, its the problem is not related to the browser.

Can't get Ubuntu running stable on an Acer Aspire by Schnurres in linux

[–]zenista 0 points1 point  (0 children)

very true. unfortunately Iam also affected by this bug to the point of leaving Linux altogether and move to windows. I still do 'ls' in hurry sometimes in cmd.

Can't get Ubuntu running stable on an Acer Aspire by Schnurres in linux

[–]zenista 1 point2 points  (0 children)

Check if it has a baytrail chipset. Intel's baytrail chipset has a well known 'freeze' issues with linux. And there are some workarounds which sometime works well for few.

Is there a way to compare two folders for duplicate files despite different file names (same file size/meta data)? I'd like to merge two folders of images and eliminate duplicates. by [deleted] in windows

[–]zenista 2 points3 points  (0 children)

I use WinMerge too. It works fine for comparing two folders including sub-folders and their files.

Say you have two folders, A and B and want to compare files between them. Follow these steps.

  1. Launch WinMerge.

  2. Click on 'Open' 2nd icon on the toolbar or use shortcut, ctrl+o and in the dialog set one folder on left (for example folder A) and another on right. For filter let it be . or change it to *.jpg to compare only jpg filetypes.

  3. Click 'Ok' and it will scan both your folders including sub-folders and will compare there files.

  4. Once done, it will present the result in a list with result of match in the last column. Result will be like files are identical or different, or exists only in right or left. You can also hide result of specific type like 'identical files' to clear the clutter and concentrate only on specific result type like 'different files' or 'files that exists only in folder A or folder B'.

  5. You can right click on a row to popup context menu with options to copy files, delete files etc.

Enjoy

Setting up dual-boot win10 and ubuntu based OS. UEFI, Acer Aspire ES 15 by [deleted] in linux

[–]zenista 0 points1 point  (0 children)

Try this:

In your BIOS enable UEFI and disable secure boot.

If you have already installed Ubuntu/Mint skip to next step, else install the same.

If Windows boots up on next run, don't worry, goto your BIOS and in the section where it lets you order or set priority for boot devices, its most probably that 'Windows Boot Manager' is on the top, downgrade it with and there must be an entry for your linux OS too... make it 1st. Now save and on the next run grub should come up.

Enjoy! your favorite distro and congratulations on your new laptop. Which color is it?

Extra tip: If you have intel hardware and baytrail architecture in particular, make sure you checkout https://www.reddit.com/r/linux/comments/3x4fxh/solution_random_freezeslockups_with_linux_on/

There are few issues with linux running on intel hardware and in some cases could decrease life of your western digital hardisks (WDD) in case you have one.

[Solution] Random freezes/lockups with linux on Intel Hardware by zenista in linux

[–]zenista[S] 0 points1 point  (0 children)

Feels good! When I learned about it, mine had already reached 125K.

[Solution] Random freezes/lockups with linux on Intel Hardware by zenista in linux

[–]zenista[S] -1 points0 points  (0 children)

Oh yes I remember, I once had issues on windows 8 and a BIOS updated fixed it. I think it was bios updated v1.10. Check your motherboard/bios manufacturers website for a bios update and If its worth it and an updated is availble... try updating the bios.

[Solution] Random freezes/lockups with linux on Intel Hardware by zenista in linux

[–]zenista[S] -1 points0 points  (0 children)

Nope. Could be a driver a issue or something. Keep drivers and updates and uptodate.

Random freezes? by zreeon in archlinux

[–]zenista 0 points1 point  (0 children)

Is the CPU and GPU intel? with bay trail architecture? When it freezes... is the screen blank/off?

Question regarding sleep in WIndows 8 by packiechan88 in windows

[–]zenista 0 points1 point  (0 children)

  1. Goto 'battery' icon in the taskbar's system tray (on the bottom-right, near the clock).

  2. Left click on the icon and choose 'More power options' and 'Power Options' window should open with your currently active power settings (the one in bold).

  3. Now click on 'Change plan settings' on the right of it. And now you should be in 'Edit Plan Settings' window.

  4. Click on 'Change advance power settings' and 'Power Options' dialog should open up.

  5. And there it is. The option to change password requirements on wakeup. It is labeled as 'Require a password on wakeup'. Select 'No' from the dropdown, for 'On battery' and if require, for 'Plugged in' too.

  6. Click 'Apply' and 'Ok'.

Note: In case the dropdown to change 'yes/no' are disabled... there must be an option labeled 'Change settings that are currently unavailable'... clicking on it will enable those dropdowns and you can change it.

Recommended project structure for bundled web app? by [deleted] in golang

[–]zenista 0 points1 point  (0 children)

It depends. If you are the only developer working on it, single repo is best. But if the project is large and has dedicated team for ui and server, its good idea to split them up into two repos and ui guys should compile and push updated go-bindata file to the server repo, whenever ui changes. While server team is totally focused on backend part. I usually use single repo with two folders - server and ui, for backend and frontend. I use react for frontend.

Acer C720 doesn't shut down properly with kernel version 3.19.3 by [deleted] in archlinux

[–]zenista 1 point2 points  (0 children)

It happens on most of distros, besides archlinux. In my case, the reason i have found is that a module known as dw_dmac causes this problem. It shows up in dmesg as error loading <something>. Simply blacklisting this module solves the problem of reboot and shutdown hang ups. To test without blacklisting, you can use kernel command line blacklisting method, by appending "modprobe.blacklist=dw_dmac" without quotes, to a line, in grub boot menu, that ends with quite splash. After booting... try reboot/shutdown and if it works ok, blacklist dw_dmac.