windows: call to FormatMessage() should _IGNORE_INSERTS

Calling FormatMessage without a FORMAT_MESSAGE_IGNORE_INSERTS flag could cause trouble, as explained in an article by Raymond Chen:

The importance of the FORMAT_MESSAGE_IGNORE_INSERTS flag
https://devblogs.microsoft.com/oldnewthing/20071128-00/?p=24353

Codecov Report

Merging #849 (79160d4) into master (278ed96) will decrease coverage by 0.07%.
The diff coverage is n/a.

 Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sounds reasonable. Thanks!


Add FindNIFTICLIB.cmake module which only requires NIFTICLIB_DIR

We should use a custom FindNIFTICLIB.cmake module (if necessary) to find the NIfTI library components which mainly asks the user for the installation directory of the library. The current module requires to specify the include directory and CDF, IO, and ZNZ libraries separately.
The FindNiftiCLib.cmake module of CMake BASIS could be used.

As a side note, the code expects to find the NIfTI headers in the NIFTICLIB_INCLUDE_DIR directly, but my installation has them in <prefix>/include/nifti. The question is if it wouldn't be better to change the include statements to #include <nifti/nifti1_io.h>.


Feat: port Data.Countable.Basic

[ ] depends on: #1745

This PR/issue depends on:

leanprover-community/mathlib4#1745
By Dependent Issues (🤖). Happy coding!

This PR/issue depends on:

leanprover-community/mathlib4#1745
By Dependent Issues (🤖). Happy coding!


Add support for sparse arrays.

This PR adds support for COO sparse array structures in Tiled, with a path for adding other sparse layouts (e.g. CSR, CSC, ...) later if we need them. This is implemented one new "structure family", named sparse, whose structure contains a layout enum that can currently only have one value: COO.
A COO array consists of an array of coordinates and an array of data. If we consider a sparse image, the coordinates locate non-zero pixels and the data gives each (nonzero) pixel's intensity. Clients can access the data in several ways:

two separate dense arrays (coords and data) in any array format
one dataframe, with columns named dim0, dim1, ... dimN, and data
an HDF5 file containing two datasets named coords and data

For example, here we request a 2D sparse array as CSV:
$ http ':8000/api/array/full/sparse_image?format=csv' | head
dim0,dim1,data
0,1,0.9957333263478026
0,6,0.971952480048062
0,12,0.9458306735951458
0,28,0.9547592798255042
0,34,0.9149721498794997
0,41,0.9348810529580909
0,43,0.9955759061468235
0,46,0.934573774689563
0,73,0.9681815098353701

Here, we slice the 2D array (in "dense" coordinates) to obtain a 1D sparse array:
$ http ':8000/api/array/full/sparse_image?format=csv&slice=0' | head
dim0,data
1,0.9957333263478026
6,0.971952480048062
12,0.9458306735951458
28,0.9547592798255042
34,0.9149721498794997
41,0.9348810529580909
43,0.9955759061468235
46,0.934573774689563
73,0.9681815098353701

The Python client loads the data into an array-like COO object from the library sparse, which can be treated in many ways like a normal (dense) numpy array while using efficient sparse storage and fast (numba JIT-accelerated) sparse computation internally. See below for an illustration of what is possible.
In [1]: from tiled.client import from_uri, show_logs, hide_logs

In [2]: c = from_uri("http://<IP_ADDRESS>:8000/api")

In [3]: sc = c['sparse_image']

In [4]: sc
Out[4]: <SparseClient>

In [5]: sc[:]
Out[5]: <COO: shape=(100, 100), dtype=float64, nnz=1076, fill_value=0.0>

In [6]: sc[0]
Out[6]: <COO: shape=(100,), dtype=float64, nnz=14, fill_value=0.0>

In [7]: sc[:5]
Out[7]: <COO: shape=(5, 100), dtype=float64, nnz=63, fill_value=0.0>

In [8]: sc[:5, :5].todense()
Out[8]:
array([[0.        , 0.        , 0.        , 0.        , 0.        ],
       [0.        , 0.9563462 , 0.        , 0.        , 0.        ],
       [0.        , 0.        , 0.99344106, 0.        , 0.        ],
       [0.        , 0.        , 0.        , 0.        , 0.        ],
       [0.        , 0.        , 0.        , 0.        , 0.        ]])

In [9]: sc[:5, :5].data
Out[9]: array([0.9563462 , 0.99344106])

In [10]: sc[:5, :5].coords
Out[10]:
array([[1, 2],
       [1, 2]])

There is an opportunity to try this on the floor at NSLS-II this week. I think this is ready for practical use.


🐛 | BUG SUMMARY Replacing pirc with mfrc

pirc522 is not working in Reader.py
I installed this github on a freshly clean Raspian Environment, but for me, the code in the Reader.py.experimental file is not working. I have the blue RFID-RC522 module, connected to GPIO. Here is the original Code:
class Mfrc522Reader(object):
def init(self):
import pirc522
self.device = pirc522.RFID()
def readCard(self):
    # Scan for cards
    self.device.wait_for_tag()
    (error, tag_type) = self.device.request()

    if not error:
        logger.info("Card detected.")
        # Perform anti-collision detection to find card uid
        (error, uid) = self.device.anticoll()
        if not error:
            card_id = ''.join((str(x) for x in uid))
            logger.info(card_id)
            return card_id
    logger.debug("No Device ID found.")
    return None

@staticmethod
def cleanup():
    GPIO.cleanup()

However I found a Tutorial (Sorry, its german language: https://devdrik.de/pi-mit-rfid-rc522/) and I found out that my Module is working fine.
Unfortunately I am not a really good python developer but in 2023 we have access to chatGPT :) I asked to convert the class to work with SimpleMFRC522 and chatGPT entered this code for me (which is working well):
class Mfrc522Reader(object):
def init(self):
from mfrc522 import SimpleMFRC522
self.device = SimpleMFRC522()
def readCard(self):
    try:
        # Scan for cards
        (uid, text) = self.device.read()

        if uid:
            card_id = str(uid)
            logger.info(card_id)
            return card_id
    except Exception as e:
        logger.error("Error reading card: {}".format(str(e)))
        logger.error("uid: {}".format(uid))

    logger.debug("No card found.")
    return None

@staticmethod
def cleanup():
    GPIO.cleanup()

Just wanted to share because some others may have the same issue. Feel free to import this code in the github, I love this project!! I use the following version:
$ uname -r; python -V
6.1.21-v8+
Python 3.9.2

Hi, just for clarification: do you have the IRQ pin connected to Pin 18/GPIO 24? https://github.com/MiczFlor/RPi-Jukebox-RFID/wiki/Wiring_for_RC522_card_reader
This is needed in this project and differs from your linked tutorial.

I did NOT connect Pin 18 / GPIO 24... Even if "You have to wire the IRQ Pin from RC522 to Raspberry Pin 18/GPIO 24" in the manual is written in bold.
Thank you very much! Now it works as designed

So this can be closed, right?

Yes. Thank you very much.


Implement search bar UI component on mobile/desktop

Finalized mocks TBD but discussion here: https://github.com/waterthetrees/wtt_server/issues/120
Mobile/desktop likely to have differences (mobile search results should take up whole screen with a dialog)

Input field
Autocomplete menu, which replaces input field text when result is selected
Search results organized into categories
Custom styled search result rows
Keyboard shortcuts (Split up into separate github issue if not out of the box)
Accessibility (Split up into separate github issue if not out of the box)

See MUI components

@ri0nardo It looks like you removed the searchbar mock from the figma. Any chance you can add it back or link me to it elsewhere? It was a good visual to base my first iteration component on

@mwpark2014 the design is still on figma, I just organized the file so everything is categorized. To find the design, go to the left side panel where pages are and click on "search / side menu design"

@mwpark2014 the design is still on figma, I just organized the file so everything is categorized. To find the design, go to the left side panel where pages are and click on "search / side menu design"

oh, my bad. that's awesome!


Treat resilience_level=0 for EstimatorV2 properly

Summary
EstimatorV2 applies TREX even if resilience_level is set 0 as follows.
This PR fixes the issue. The current code treat 0 as same as Unset. So, null will be delivered to the runtime server.
TODO:

I'm wondering what kind of unit test to add. I need a help by experts.

from qiskit import QuantumCircuit
from qiskit.quantum_info import SparsePauliOp
from qiskit.transpiler.preset_passmanagers import generate_preset_pass_manager

from qiskit_ibm_runtime import QiskitRuntimeService, EstimatorV2, Session

circuit = QuantumCircuit(2)
circuit.h(0)
circuit.cx(0, 1)

obs = [SparsePauliOp("XY"), SparsePauliOp("YZ")]

service = QiskitRuntimeService()
backend = service.get_backend("ibm_kyiv")
pm = generate_preset_pass_manager(optimization_level=1, backend=backend)
isa_circuit = pm.run(circuit)
isa_obs = [ob.apply_layout(isa_circuit.layout) for ob in obs]

with Session(backend=backend) as session:
    estimator = EstimatorV2(session=session, backend=backend)
    jobs = []
    for lev in [0, 1]:
        estimator.options.resilience_level = lev
        jobs.append(estimator.run([(isa_circuit, isa_obs)]))
    results = [job.result() for job in jobs]

for level, result in enumerate(results):
    print('resilience_level', level)
    print(result[0].data.evs)
    print(result[0].metadata)
    print()

output
resilience_level 0
[ 0.0495992 -0.001002 ]
{'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {'twirled_readout_errors': [[0, 0.00439453125], [1, 0.00830078125]]}, 'num_randomizations': 32}
# TREX looks applied though resilience_level=0

resilience_level 1
[ 0.03233831 -0.01144279]
{'shots': 4096, 'target_precision': 0.015625, 'circuit_metadata': {}, 'resilience': {'twirled_readout_errors': [[0, 0.00146484375], [1, 0.0087890625]]}, 'num_randomizations': 32}

Details and comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.476%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
6163

Relevant Lines:
7383

💛  - Coveralls

Replaced with #1542


[BUG] [Forge]

Mod Loader

[] Fabric
[x] Forge

Versions

SimpleAuth 1.5.0~1.5.1
Forge 1.16.1-32.0.108

Describe the bug
I created a world in singleplayer and tried to get in and the game just closes
To Reproduce
Steps to reproduce the behavior:

Place the mod in the mods folder
Create a world
Try to enter
Game closes

Expected behavior
The game opens at least
Crash log
https://pastebin.pl/view/9d36fbb2

Mod is meant to be run on the server.


Omit the deleted parameter if its value is 0 when listing packages

This is to workaround an inconsistent behavion on projects that have multibuild-
enabled packages.
Closes #72

I'm afraid, this is a more generic problem regarding how build service treats "boolean" parameters, that is not limited to the deleted parameter, where the issue is perceived most severely. :slightly_frowning_face:


Refactor the class viewer and level up dialog

While working through the various enriched HTML bugs as part of version 1.7.2, I ran into a lot of difficulty with enriching the fields and content for the class viewer and level up dialog. There's a lot of really old code in there and it was over engineered in hindsight.
Acceptance Criteria

[ ] Refactor the level up dialog to use pack indexes for better performance.
[ ] Abstract the logic used for merging items from the world and items from the compendium in order to simplify things like enriching their HTML fields in one place.
[ ] Move it into a separate application outside of the character sheet
[ ] Other improvements as they become neccessary/apparent

Hi! I want to coordinate efforts: I'd like to refactor DwActorSheet._onLevelUpSave so I can change the HP calculation more easily.
Context: I've been working on an Uncommon World module for the past week, and changing the HP formula so far involves subclassing DwActorSheet and overriding _onLevelUpSave with a slightly modified version.
I wanted to check if you're amenable to accepting PRs, and after seeing this ticket I also wanted to ask if I should wait for this refactor to be done before I start butchering refactoring _onLevelUpSave.
Cheers!

Hi @somnolik! I'm definitely open to PRs for anything on the system. I don't have a specific timeline for when I'll start this refactor, but I do believe it will be the first thing I prioritize when I am actively working on new DW features again.
If you want to implement your override before the refactor is done, feel free to link to your override in a comment here and I'll add it as a checklist item to make sure you're notified before the eventual refactor goes out.


fixes #567 split CDI-lite into own module

Technically there is no dependency from the 'Full' api to the lite api.
CDI-Lite is only an additional mechanism to support build time generation of proxies etc.
It is a kind of build-time replacement of the classic CDI Extension mechanism.
Servers should be free to support Full or Lite, but not forced to implement both.

@Ladicek this is actually not a bad idea either way since technically these classes are not needed at runtime (except for the synthetic bean stuff maybe that could be a cdi-lite-runtime module?)

It is a good start to move lite away from the normal api but since it is by design another spec it should move to a build spec since it breaks the full spec and pkatform and not stay in cdi.
Anyway +1000 to NOT include it in any new release of cdi since it is a massive shout in the foot of cdi spec and jakarta platform (basically it says dont use us anymore since you cant rely on any investment done on us)

CDI Lite is designed to be a subset of CDI Full and for that reason any CDI Full implementation needs to support CDI Lite as well.

This seems not to be correct. Lite technically needs CDI Full, but not the other way around as I did prove with the PR. The dependencies clearly shows that.

Note that moving just these few classes doesn't solve much because CDI Lite still needs most of the other CDI-related parts.

Yes, but not the other way around. If someone doesn't run on Quarkus then one doesn't need those APIs. In other words: CDI lite is actually not lighter in terms of code but adds additional support for build time generators. That's fine, but the name indicates that 'lite' is a subset whereas in reality it's the other way around.

Note that moving just these few classes
Those 'few' classes add about 30%.

Furthermore, these classes are actually needed during runtime for any runtime implementation of CDI Lite

Yes, but not for Full. That's the whole point.

Last but not least, @starksm64 is working on a CR release of CDI API

Is this really an argument for a technical question? What is that for a deadline? It's not a final release yet. Do ship your preview, but we can still do this properly afterwards.

It is actually worse: CDI "full" and lite are not interoperable which means both have a clear overlap but none of both can work together at any time so they are really  2 distinct specs (I assume we could extract a cdi-common like spec to share what is shareable but not sure it would help and wouldnt mess more what is in user minds).
Also note that it is not true that the CDI implementation runtime needs these classes, most are only build time classes so very worse case they belong to another jar (just speaking in terms of modularity but the point is that it is not the same spec since it is not compatible with the existing and other package flavor so shouldnt be there at all).

I've change the module name from cdi-light to cdi-lite.

This seems not to be correct. Lite technically needs CDI Full, but not the other way around as I did prove with the PR.

This is simply untrue statement. Lite was deliberately designed to be a functional subset of Full and works as such as is captured in API, TCK and compatible implementation(s).
The dependencies you refer to are simply a matter of agreement that we do not want to split CDI JAR in this release as that would be breaking everything. But if we were really going to break it, than we should split all CDI Full parts into separate JARs (and therefore even different packages) and make CDI Full depend on CDI Lite which would then contain the core functionality.
That is how it was designed and intended as I am sure you read in the numerous documents, email conversations, issues,...

Yes, but not the other way around. If someone doesn't run on Quarkus then one doesn't need those APIs. In other words: CDI lite is actually not lighter in terms of code but adds additional support for build time generators. That's fine, but the name indicates that 'lite' is a subset whereas in reality it's the other way around.

Quarkus is not the only implementation, Micronaut folks started and actively work on OpenDI. See https://projects.eclipse.org/projects/ee4j.odi
And once again, Lite is a functional subset. Build compatible extension are designed to be supported in both environments and can be easily implemented in Full via portable extensions as can be seen in compatible implementation (and the StillDI PoC that initially showed that). Therefore, they are also part of Full, albeit as a new feature compared to previous CDI major version.

Yes, but not for Full. That's the whole point.

Yes, for Full. That was the whole point ever since the work on Build Compatible Extensions started - for them to be available and usable in both approaches, if the user wishes to go that way.

Is this really an argument for a technical question? What is that for a deadline? It's not a final release yet. Do ship your preview, but we can still do this properly afterwards.

No, it's not. It is a note saying that the design, discussion and development across CDI, TCK and at least three implementations is ongoing for a long period of time and has reached a point where we have it working and in CR state for Jakarta EE 10. Simple as that.

It is actually worse: CDI "full" and lite are not interoperable which means both have a clear overlap...

As stated above, CDI Full contains CDI Lite and Weld 5 implements both, so I am not sure what is the "not interoperable" part supposed to mean?

Also note that it is not true that the CDI implementation runtime needs these classes, most are only build time classes so very worse case they belong to another jar

Your statement is based on false presumption that CDI Full doesn't support that. As stated above, it does, and as such it needs those classes at runtime. Again, Weld 5 is a proof of that.

Tempted to answer that you got warned this design was not working month ago but didn't listen...

The design works just fine - we have APIs, TCKs and implementations. And we had them, or at least PoC of them, even that month ago so pardon me for now listening but I am still not seeing that grave design flaw you are talking about.

How do you reconcile runtime and build time extensions? How do you make discovery unified? How to you make build-less (what jakarta platform targets for next release and tck) working for a build only api?
How do you provide an unified api at build time compatible with annot proc round trips to integrate with java instead of reinventing another partial build time api? How do you make build time extensions running properly with existing cdi extensions frameworks made? How do you integrate it with the platform (jaxrs, jbatch, jsf, ...)? How do you respect the type safety of cdi - its root core - if you have 2 envs to unify with no guarantee between both? How can you claim to be CDI compatible if using CDI makes you no more compatible with CDI (indeed add full and lite but it is the mess you create for users). And so on...
Last, which use case do you enable? Configure at buld time CDI? It is already doable and done by vendors. Becoming native? It is already done. Anything else you didnt mention and worth duplicating so much API?
Please dont mix "we dont do" and "we cant do". For ex quarkus does not support decorators but it can to show a trivial example.

Lite was deliberately designed to be a functional subset of Full

No, it is a superset of current CDI. It is NOT lighter than current CDI. It adds 30% more complexity. I personally don't get the gain because already now one can easily do build-time generation and then let this run in a standard CDI-2.0 container. And if one says he's fine with not using Extensions, then he can even run pretty much free of reflection. This is now Arthur, Helidon etc do work.

That is how it was designed and intended as I am sure you read in the numerous documents, email conversations, issues,...

I read it and spoke out against it many times. Like many others did. You did choose to ignore the opinion of all those people. I totally understand and support to explore new grounds and play around what can be done. But when it comes to the final spec we really must review the findings and make honest decisions. "We spent so many hours" is simply not an argument. There are many implementations which did easily manage to run on GraalVM without those APIs. Fine to keep it as optional API nonetheless if some vendors want it, but it should not be forced on Full CDI imo.

Here's a short historical digression. The original idea was that CDI Lite would be just a subset of the CDI API, without extensions. People complained that they need extensions, so a new extension API was born (because no matter how loud you say that Portable Extensions can easily be implemented at build time, it just won't become true). The original idea of that API was that it would only be part of CDI Lite and CDI Full would not have to implement that. People complained that Lite would no longer be a subset of Full, so the API was reshaped a little to make sure it can be implemented on top of Portable Extensions. People should make up their minds :-)
One thing that deserves extra clarification:

How do you reconcile runtime and build time extensions? [...]

You don't. In Weld, Build Compatible Extensions are executed together with Portable Extensions. (In fact, they are executed by a Portable Extension.) Build Compatible Extensions are build compatible, not build only.
Hence, users can have Portable Extensions and Build Compatible Extensions on their classpath (hand-waving a little here), and they will all be processed at the same time. There's also an annotation to skip a Build Compatible Extension if a corresponding Portable Extension is present, allowing libraries to ship both.

Lite was deliberately designed to be a functional subset of Full

No, it is a superset of current CDI.

Those two sentences are not in contradiction. Core CDI in version 4.0 is obviously a superset of Core CDI in 3.0 (or 2.0). A subset of that is called CDI Lite.

@Ladicek well, you well explained why it can't sit in CDI, because 1. it breaks EE "runtime" design - which is important in enterprises, 2. it breaks CDI itself since you never reconcile both worlds as expected and you can't use build time api at runtime so it must not be there in cdi-api by design so it is an optional CDI build time API (likely a vendor one since it is at build by design in EE)
So it must be at least extracted as an optional layer integrating with CDI like JAX-RS does for example (in terms of integration) and not be in cdi-api at all as you explained and by CDI design.

I have explained that the build compatible API can be used at runtime, is supposed to be used at runtime by runtime implementations of CDI, and is actually used at runtime by Weld. There is no expectation that build compatible extensions are always executed during build, only to be reconciled later with whatever portable extensions do. If an implementation decides to do it anyway, it's their job to define, implement and document their semantics and limitations -- but, again, there's nothing in CDI that would suggest that this is required or even recommended. All in all, it 1. doesn't break any runtime design, because there are no build time requirements, 2. doesn't break CDI, because there are no reconciliation requirements, 3. belongs to CDI just fine.

The reconcialiation requirement is in the cdi "current" api with extension design. Lite breaks that by design. Look quarkus for an example. Another thing is the goal of graalvm compat is not reached as you explains cause you need the runtime. So it is just noise in the api and no new feature is added so no need to x2 the api for no user gain so please drop this useless package from what is called "cdi" and move it to another spec.

+1 It's literally optional! @Ladicek as you said yourself, it even can be done in a portable extension.
Ask yourself the question: is ANY of those classes neeed at runtime by the user code? Clearly not!

This PR is no longer relevant because CDI 4.0 has been released some time ago.
Closing it.


how to translate if statement to raw records query?

this is what I have on normal  show.html.erb
<%- if  @invoice.short_over == nil %>
<EMAIL_ADDRESS>%>
<%end%>

but using the ajax datables i cant use if statement so i want to know how to translate it to query
to query method
Invoice.where(:short_over....?)
in my data
im using
(record.short_over)

you can put confition like this
class CityDatatable < AjaxDatatablesRails::Base
....
  def data
    records.map do |city|
      rec = {
        id: invoice.id,
        name: invoice.name,
         .....
      }
     rec[:invoice_amnt] = invoice.invoice_amnt if  @invoice.short_over == nil
     rec
    end
  end
....
end

what version is this?
I have an error trying it..
  def data
    records.map do |record|
      [
        link_to(record.invoicenum,record),
        link_to(Seller.find(record.sellername.to_i).name,record),
        link_to(record.account_name, record),
        link_to(record.whlocation,record),
        link_to(number_to_currency(record.invoice_amnt),record),
        link_to(record.invoice_created_at.strftime("%Y-%m-%d"),record),
        link_to(record.delivery_status, record),
        link_to(record.delivery_date, record),
        # link_to(record.short_over, record),
        rec = {
        id: invoice.id,
        name: invoice.name
        }
        rec[:invoice_amnt] = invoice.invoice_amnt if  @invoice.short_over == nil
        rec
        #record.post_payment_status

        # comma separated list of the values for each cell of a table row
        # example: record.attribute,
      ]
    end
  end

gives me syntax error unexpected "]" expecting keyword end

wait so i cleaned it up
  def data
    records.map do |record|
        rec = {
        id: Invoice.id,
        name: invoice.name
        }
        rec[:Invoice_amnt] = Invoice.invoice_amnt if  @Invoice.short_over == nil
        rec

    end
  end

then this?
  def get_raw_records
    Invoice.all
  end

what is the id: and the name: because i usually do it like the one on top

def data
records.map do |record|
rec =  [
link_to(record.invoicenum,record),
link_to(Seller.find(record.sellername.to_i).name,record),
link_to(record.account_name, record),
link_to(record.whlocation,record),
link_to(number_to_currency(record.invoice_amnt),record),
link_to(record.invoice_created_at.strftime("%Y-%m-%d"),record),
link_to(record.delivery_status, record),
link_to(record.delivery_date, record),
]
rec<<  invoice.invoice_amnt if  @invoice.short_over == nil
rec
end
end

i tried it.. it gives me ajax error

well, you have to define this condition in datatable.js
2016-12-16 9:02 GMT+03:00 Oscar Chng<EMAIL_ADDRESS>
i tried it.. it gives me ajax error
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/antillas21/ajax-datatables-rails/issues/183#issuecomment-267523728,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAmJdnHDmPA56uT2pKXTfgD54D9iYrIWks5rIiltgaJpZM4LO3Gb
.

--
Jakhongir Alimov
email<EMAIL_ADDRESS>skype: alimov.jahongir
tel: +7 964 589-25-57
+998 90 995-52-67

wait, what do u mean? i define it on  datatable.js.
the rec? how so?
thank you. My datatable is working fine before i was trying to add the condition, i added a new column and everything on my .js and the show.html.erb

this is my code currently..
class UserDatatable < AjaxDatatablesRails::Base
  include AjaxDatatablesRails::Extensions::Kaminari
  def_delegator :@view, :link_to
  def_delegator :@view, :number_to_currency
  def sortable_columns
    # Declare strings in this format: ModelName.column_name
    @sortable_columns ||=
    ['invoices.invoicenum','invoices.sellername','invoices.account_name','invoices.whlocation','invoices.invoice_amnt','invoices.invoice_created_at','invoices.delivery_status','invoices.delivery_date','invoices.post_status']
  end

  def searchable_columns
    # Declare strings in this format: ModelName.column_name
    @searchable_columns ||=
    ['invoices.invoicenum','invoices.sellername','invoices.account_name','invoices.whlocation','invoices.invoice_amnt','invoices.invoice_created_at','invoices.delivery_status','invoices.delivery_date','invoices.post_status']
  end

  private

  def data
    records.map do |record|
     rec =  [
        link_to(record.invoicenum,record),
        link_to(Seller.find(record.sellername.to_i).name,record),
        link_to(record.account_name, record),
        link_to(record.whlocation,record),
        link_to(number_to_currency(record.invoice_amnt),record),
        link_to(record.invoice_created_at.strftime("%Y-%m-%d"),record),
        link_to(record.delivery_status, record),
        link_to(record.delivery_date, record),
      ]
     rec <<  @invoice.invoice_amnt if  @invoice.short_over == nil
     rec
    end
  end

  def get_raw_records
    # insert query here
    Invoice.all

  end

  # ==== Insert 'presenter'-like methods below if necessary
end

could you put your view file and js?

this is my view

 Invoice
<%= form_tag import_invoices_path, multipart: true do %>

  <%= file_field_tag :file, class:"btn btn-large btn-success btn-file" %>

  <%= submit_tag "Import", class:"btn btn-large btn-success btn-file"%>

<%end%>

<table id = "users-table" class="display" cellspacing="0" width="100%", data-source="<%= invoices_path(current_user: current_user, format: "json") %>">

        Invoice Num
        Seller Name
        Account Name
        Warehouse
        Invoice Amount
        Created At
        Delivery Status
        Req Delivery Date
        Short/Over

this is my js
$(document).ready(function() {
        $('#users-table').dataTable({
        "jQueryUI": true,
        "processing": true,
        "serverSide": true,
        'searchable': true,
        dom: 'Bfrtip',
        buttons: [
            'copy', 'csv', 'excel', 'pdf', 'print'
        ],
        "ajax": $('#users-table').data('source'),
        pagingType: 'full_numbers'
            }).yadcf([{
        column_number: 0,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 1,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 2,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 3,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 4,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 5,
        filter_type: "text",
        filter_delay: 500,
        filter_default_label: "Filter"
        },
        {
        column_number: 6,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 7,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        },
        {
        column_number: 8,
        filter_type: 'text',
        filter_delay: 500,
        filter_default_label: "Filter"

        }
        ],
        {
            cumulative_filtering: true
        }
        );

});

thank you

you have to use https://datatables.net/reference/option/columns.render
render handler
2016-12-16 9:35 GMT+03:00 Oscar Chng<EMAIL_ADDRESS>
thank you
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/antillas21/ajax-datatables-rails/issues/183#issuecomment-267527663,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAmJdsZWJXQJ7qlZro7OgICFBj9TxpNDks5rIjFEgaJpZM4LO3Gb
.

--
Jakhongir Alimov
email<EMAIL_ADDRESS>skype: alimov.jahongir
tel: +7 964 589-25-57
+998 90 995-52-67

ah i see so the one u specified on top would not work right?

ah i see so the one u specified on top would not work right?

Yep, It will not work in your case.
You have to consider to handle your data on client side.
by the way I will recomend to use branch 0-4


Assignment two SQL Completed

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
I was adding SQL commands and learning SQL queries.
What did you learn from the changes you have made?
I learnt running SQL.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
No.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Yes, since I am new I faced challenge in understanding certain things.
How were these changes tested?
By running on SQLlite DB.
A reference to a related issue in your repository (if applicable)
NA
Checklist

[x] I can confirm that my changes are working as intended

Hi. You have unfortunately made a pull request to the wrong repo. You shouldn't be making a pull request to uoft-dsi/sql, but rather your own forked sql repo. Please see further instructions on your onboarding Assignment Submission Guide.

Hi,
Apologies.
I have resubmitted the assignment. Looking forward to your confirmation if
the assignment has been submitted correctly.
Warm regards
Rashita
On Sat, 21 Dec 2024 at 09:33, CODE, POTATO @.***> wrote:

Hi. You have unfortunately made a pull request to the wrong repo. You
shouldn't be making a pull request to uoft-dsi/sql, but rather your own
forked sql repo. Please see further instructions on your onboarding Assignment
Submission Guide
https://github.com/UofT-DSI/onboarding/blob/main/onboarding_documents/submissions.md
.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2558138487, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBK3FQB7ZGVKSOOCIQENN32GV33ZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGEZTQNBYG4
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi @rashitakalra looks like your commit didn't went through (it was on UofT's repo). Please commit it to your repo.

Hi,
Can you please guide if I should create a new branch and resubmit the
assignment again or i can modify the existing assignment as I am getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like your commit
didn't went through (it was on UofT's repo). Please commit it to your repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Rashita
You must commit it to your own repo (see your username there) and not to
the UofT's repo.
Best regards
Ernani Fantinatti
On Sat, Dec 28, 2024 at 12:49 PM rashitakalra @.***>
wrote:

Hi,
Can you please guide if I should create a new branch and resubmit the
assignment again or i can modify the existing assignment as I am getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like your
commit
didn't went through (it was on UofT's repo). Please commit it to your
repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564389921, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLMDBWNJBO7ITYVBNLKWIL2H3QDZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4DSOJSGE
.
You are receiving this because you commented.Message ID:
@.***>

Hi Ernani,
Please find below two links for my completed assignment 2.

The below link corresponds to the github assignment two branch where I
have completed my assignment.

https://github.com/rashitakalra/sql/blob/assignment-two/02_activities/assignments/assignment2.sql completed

The below link refers to the pull request I made on the updated
assignment in my Repo.

https://github.com/rashitakalra/sql/pull/2
Please see if the assignment is correct.
Warm Regards
Rashita
On Sat, 28 Dec 2024 at 13:28, Ernani Fantinatti @.***>
wrote:

Hi Rashita
You must commit it to your own repo (see your username there) and not to
the UofT's repo.
Best regards
Ernani Fantinatti
On Sat, Dec 28, 2024 at 12:49 PM rashitakalra @.***>
wrote:

Hi,
Can you please guide if I should create a new branch and resubmit the
assignment again or i can modify the existing assignment as I am getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like your
commit
didn't went through (it was on UofT's repo). Please commit it to your
repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119,
or
unsubscribe
<

https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564389921, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABLMDBWNJBO7ITYVBNLKWIL2H3QDZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4DSOJSGE>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564397272, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBK3FWHH6KJ5XBEYVYP2ST2H3UVJAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4TOMRXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Ernani
Please confirm if the assignment is submitted correctly based on the links
I have shared below considering tomorrow is the deadline for submission.
Regards
Rashita
On Sat, Dec 28, 2024 at 4:08 PM Rashita Makkar @.***>
wrote:

Hi Ernani,
Please find below two links for my completed assignment 2.

The below link corresponds to the github assignment two branch where I
have completed my assignment.

https://github.com/rashitakalra/sql/blob/assignment-two/02_activities/assignments/assignment2.sql completed

The below link refers to the pull request I made on the updated
assignment in my Repo.

https://github.com/rashitakalra/sql/pull/2
Please see if the assignment is correct.
Warm Regards
Rashita
On Sat, 28 Dec 2024 at 13:28, Ernani Fantinatti @.***>
wrote:

Hi Rashita
You must commit it to your own repo (see your username there) and not to
the UofT's repo.
Best regards
Ernani Fantinatti
On Sat, Dec 28, 2024 at 12:49 PM rashitakalra @.***>
wrote:

Hi,
Can you please guide if I should create a new branch and resubmit the
assignment again or i can modify the existing assignment as I am
getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like your
commit
didn't went through (it was on UofT's repo). Please commit it to your
repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119,
or
unsubscribe
<

https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564389921, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABLMDBWNJBO7ITYVBNLKWIL2H3QDZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4DSOJSGE>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564397272, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBK3FWHH6KJ5XBEYVYP2ST2H3UVJAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4TOMRXGI
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi Rashita
Looks like your assignment was committed to the wrong repo (UofT). Please
check it out.
Also your reviewer is Nyiaz. Please reach out to her.
Best regards
Ernani Fantinatti
On Sun, Dec 29, 2024 at 11:31 AM rashitakalra @.***>
wrote:

Hi Ernani
Please confirm if the assignment is submitted correctly based on the links
I have shared below considering tomorrow is the deadline for submission.
Regards
Rashita
On Sat, Dec 28, 2024 at 4:08 PM Rashita Makkar @.***>
wrote:

Hi Ernani,
Please find below two links for my completed assignment 2.

The below link corresponds to the github assignment two branch where
I
have completed my assignment.

https://github.com/rashitakalra/sql/blob/assignment-two/02_activities/assignments/assignment2.sql completed

The below link refers to the pull request I made on the updated
assignment in my Repo.

https://github.com/rashitakalra/sql/pull/2
Please see if the assignment is correct.
Warm Regards
Rashita
On Sat, 28 Dec 2024 at 13:28, Ernani Fantinatti @.***>
wrote:

Hi Rashita
You must commit it to your own repo (see your username there) and not
to
the UofT's repo.
Best regards
Ernani Fantinatti
On Sat, Dec 28, 2024 at 12:49 PM rashitakalra @.***>
wrote:

Hi,
Can you please guide if I should create a new branch and resubmit the
assignment again or i can modify the existing assignment as I am
getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like your
commit
didn't went through (it was on UofT's repo). Please commit it to
your
repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119,

or

unsubscribe
<

https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564389921,
or
unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABLMDBWNJBO7ITYVBNLKWIL2H3QDZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4DSOJSGE>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564397272, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/BNBK3FWHH6KJ5XBEYVYP2ST2H3UVJAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4TOMRXGI>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564774945, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABLMDBXWRAEX6S2DIDFMJFL2IAPX7AVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUG43TIOJUGU
.
You are receiving this because you commented.Message ID:
@.***>

Dear Fakhteh and team,
Greetings for the day.
Kindly note that I have made the changes to the assignment and submitted
through my repository.
Please check the completed assignment through below links.
https://github.com/rashitakalra/sql/blob/assignment-two/02_activities/assignments/assignment2.sql completed
https://github.com/rashitakalra/sql/pull/2
I would request you to kindly check and confirm if you have received the
assignment correctly. Or I shall delete the branch and redo the
assignment so it is submitted correctly as I have finished the assignment
on my end and I don't want the module to be marked as incomplete. I would
really appreciate your prompt response considering the deadline is 30th
December 2024.
Awaiting your response and assistance.
Warm Regards
Rashita
On Sun, 29 Dec 2024 at 18:50, Ernani Fantinatti @.***>
wrote:

Hi Rashita
Looks like your assignment was committed to the wrong repo (UofT). Please
check it out.
Also your reviewer is Nyiaz. Please reach out to her.
Best regards
Ernani Fantinatti
On Sun, Dec 29, 2024 at 11:31 AM rashitakalra @.***>
wrote:

Hi Ernani
Please confirm if the assignment is submitted correctly based on the
links
I have shared below considering tomorrow is the deadline for submission.
Regards
Rashita
On Sat, Dec 28, 2024 at 4:08 PM Rashita Makkar @.***>
wrote:

Hi Ernani,
Please find below two links for my completed assignment 2.

The below link corresponds to the github assignment two branch
where
I
have completed my assignment.

https://github.com/rashitakalra/sql/blob/assignment-two/02_activities/assignments/assignment2.sql completed

The below link refers to the pull request I made on the updated
assignment in my Repo.

https://github.com/rashitakalra/sql/pull/2
Please see if the assignment is correct.
Warm Regards
Rashita
On Sat, 28 Dec 2024 at 13:28, Ernani Fantinatti @.***>
wrote:

Hi Rashita
You must commit it to your own repo (see your username there) and not
to
the UofT's repo.
Best regards
Ernani Fantinatti
On Sat, Dec 28, 2024 at 12:49 PM rashitakalra @.***>
wrote:

Hi,
Can you please guide if I should create a new branch and resubmit
the
assignment again or i can modify the existing assignment as I am
getting
confused.
Warm Regards
Rashita
On Fri, Dec 27, 2024 at 11:15 PM Ernani Fantinatti @.***>
wrote:

Hi @rashitakalra https://github.com/rashitakalra looks like
your
commit
didn't went through (it was on UofT's repo). Please commit it to
your
repo.
—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564166119,

or

unsubscribe
<

https://github.com/notifications/unsubscribe-auth/BNBK3FTNWYLNGB2MDHFQMBD2HYQUXAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGE3DMMJRHE>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564389921,

or

unsubscribe
<

https://github.com/notifications/unsubscribe-auth/ABLMDBWNJBO7ITYVBNLKWIL2H3QDZAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4DSOJSGE>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564397272,
or
unsubscribe
<

https://github.com/notifications/unsubscribe-auth/BNBK3FWHH6KJ5XBEYVYP2ST2H3UVJAVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUGM4TOMRXGI>

.
You are receiving this because you were mentioned.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564774945, or
unsubscribe
<
https://github.com/notifications/unsubscribe-auth/ABLMDBXWRAEX6S2DIDFMJFL2IAPX7AVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUG43TIOJUGU>

.
You are receiving this because you commented.Message ID:
@.***>

—
Reply to this email directly, view it on GitHub
https://github.com/UofT-DSI/sql/pull/166#issuecomment-2564870028, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BNBK3FUHFIF4EAZ53R7HE5T2ICDE3AVCNFSM6AAAAABUAH4XTCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRUHA3TAMBSHA
.
You are receiving this because you were mentioned.Message ID:
@.***>


tryRecv template in a loop leaks memory.

cowstrings/tests/bcowstring.nim when changed to use the trySend template.

Using .nodestroy in spsc_queue.tryPush is pbl incorrect. Needs rethinking.

threading/channels leaks as well. Btw trySend template doesn't even compile.
import threading/channels, cowstrings

const
  seed = 99
  numIters = 1000

template sendLoop(tx, data: typed, body: untyped): untyped =
  # var p = isolate(data)
  while not tx.trySend(data):
    body

template recvLoop(rx, data: typed, body: untyped): untyped =
  while not rx.tryRecv(data):
    body

proc consume(rx: Chan[string]) =
  for i in 0 ..< numIters:
    var res: string
    recvLoop(rx, res): cpuRelax()
    #echo " >> received ", res.toCstr, " ", $(seed + i)
    assert res == $(seed + i)

proc produce(tx: Chan[string]) =
  for i in 0 ..< numIters:
    sendLoop(tx, $(i + seed)): cpuRelax()
    #echo " >> sent ", $(i + seed)

proc testSpScRing =
  let xx = newChan[string]() # tx for transmission, rx for receiving
  var
    thr1: Thread[Chan[string]]
    thr2: Thread[Chan[string]]
  createThread(thr1, produce, xx)
  createThread(thr2, consume, xx)
  joinThread(thr1)
  joinThread(thr2)

testSpScRing()

No template (correct):
block :tmp:
  var i_cursor
  mixin inc
  var i_1 = 0
  block :tmp_1:
    while i_1 < 1000:
      var p`gensym3
      i_cursor = i_1
      p`gensym3 = isolate($(i_cursor + 99))
      block :tmp_2:
        while not trySend(tx, p`gensym3):
          cpuRelax()
      inc i_1, 1
      `=destroy`(p`gensym3)

tryRecv template (bug):
block :tmp:
  var i_cursor
  mixin inc
  var i_1 = 0
  block :tmp_1:
    while i_1 < 1000:
      i_cursor = i_1
      block :tmp_2:
        var p`gensym4
        while not
          `=sink`(p`gensym4, isolate($(i_cursor + 99)))
          trySend(tx, p`gensym4):
          cpuRelax()
        `=destroy`(p`gensym4)
      inc i_1, 1

Worked around. New bug found.


Allow Frontend build phases no need to write in order

Before opening, please confirm:

[X] I have checked to see if my question is addressed in the FAQ.
[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting questions.
[X] I have removed any sensitive information from my code snippets and submission.

App Id
arn:aws:amplify:us-east-1:209057985304:apps/d3dzvvrrpoxcz8
AWS Region
us-east-1
Amplify Hosting feature
Build settings, Frontend builds
Is your feature request related to a problem? Please describe:
I'm currently using CDK Java amplify-alpha service to deploy my next.js frontend. I noticed that after cdk deploy, the build process error occurred as
# Starting phase: build
2023-12-05T09:42:57.747Z [INFO]: # Executing command: npm run build
2023-12-05T09:43:11.049Z [INFO]: ><EMAIL_ADDRESS>build
> next build
endeg. 1. 0 but: apm run build
2023-12-05T09:43:11.055Z [WARNING]: sh: line 1: next: command not found
...

Because the amplify.yml defined by java.util.Map does not maintain the order of phases as preBuild then build, it might generate something as:
frontend:
    phases:
         build:
              commands:
                - npm run build
         preBuild:
              commands:
                 - npm ci
...

From my personal understanding, the container will try to run build first, and next has not been installed yet by preBuild command, thus caused the error. I always need to manually adjust the amplify.yml afterwards.
Describe how you'd like this feature to work
So I hope that it's possible to always execute preBuild, then build, and then postBuild, regardless of the order in which they are written under phases in amplify.yml.

One possible solution for JAVA CDK user is using java.util.LinkedHashMap instead of java.util.Map, for example:
new LinkedHashMap<>() {{
                            put("version", "1.0");
                            put("applications", new LinkedHashMap<>() {{
                                put("appRoot", "frontend");
                                put("frontend", new LinkedHashMap<>() {{
                                    put("buildPath", "frontend");
                                    put("phase", new LinkedHashMap<>() {{
                                        put("preBuild", new LinkedHashMap<>() {{
                                            put("commands", List.of("npm ci")); //clean install
                                        }});
                                        put("build", new LinkedHashMap<>() {{
                                            put("commands", List.of("npm run build")); //set postBuild if needed
                                        }});
                                    }});

This will preserve the order of amplify.yaml


vscode package has been deprecated

use "@types/vscode" and "@vscode/test-electron" instead of "vscode"
see: https://www.npmjs.com/package/vscode
The test config files are in accordance with the official specification.
see: https://code.visualstudio.com/api/working-with-extensions/testing-extension#migrating-from-vscode

updated in master


update capd template to use 1.6 best practices

What this PR does / why we need it:
This change modifies the capd control plane template to follow the main cluster-api testing capd template. It mainly updates the nodeRegistration fields now that the capd controller will populate these dynamically.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged):
fixes #
Special notes for your reviewer:
Release notes:

NONE

/hold
still doing some hacking on this with the test resources

tested this against capi 1.6.2, make test-e2e worked as expected and deployed a cluster. i think this is ready to merge.
@damdo or @killianmuldoon , might i trouble for a review?
/hold cancel


Error trying to install Ubuntu through Crouton

Please paste the output of the following command here: sudo edit-chroot -all

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
Creating hwaudio group with GID 18...
su: pam_start: error 26
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...

So, I have though it would be cool to run Ubuntu on my Chromebook, while preserving my ChromeOS. I went into developer mode, and installed Crouton. Unfortunately, when I have tried to install Ubuntu in the ChromeOS developer shell (while following exactly what the instructions say) and when I get to the step with "sudo crouton -t xfce" everything looks fine, until the last few lines. They read:
I: Installing core packages...
W: Failure trying to run: dpkg --force-depends --install /var/cache/apt/archives/libc6_2.23-0ubuntu3_amd64.deb
W: See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/libc6_2.23-0ubuntu3_amd64.deb is at fault)
Failed to complete chroot setup.
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
I do not know why this is happening, and have tried powerwashing, reinstallling, and rebooting. Any tips or information will help! This is on a Chromebox G2

I download Crouton, do "sudo install -Dt /usr/local/bin -m 755 ~/Downloads/crouton" and then "sudo crouton -t xfce" and that is where this issue takes place

I have the same problem

I am having this same problem.
Failure trying to run: dpkg --force-depends --install /var/cache/apt/archives/libc6_2.23-0ubuntu3_amd64.deb
See //debootstrap/debootstrap.log for details (possibly the package /var/cache/apt/archives/libc6_2.23-0ubuntu3_amd64.deb is at fault)
Failed to complete chroot setup

Well, someone on Reddit suggested that I revert back to ChromeOS 89, and I tried it and it worked. So, to fix this just download ChromeOS version 89 ( download from https://cros.tech/ ), use the Chrome Recovery Tool (which will wipe all the data, so make sure to backup and save everything) and then install Crouton. This worked for me, and I hope that it willl work for you.


I added the mousewheel js but the mouse wheel is not working.

Is there anything specific i need to do to achieve the mouse wheel scroll? I am working on rails project, Everything works fine, just not the mouse wheel

Simply include the conveniently packaged mousewheel JS file in your HTML (or include it in your javascript package if you're doing some form of automated concatenation/minification). The jquery.mousewheel.js file is included in the js directory of this repository.
  <script src="js/jquery.scrolltabs.js"></script>
  <script src="js/jquery.mousewheel.js"></script>

Please refer to the bottom of the documentation page for reference: http://joshreed.github.io/jQuery-ScrollTabs/documentation.html

I just realized you mentioned Rails. Most rails projects use sprockets, so you'd likely need to copy the mousewheel file over to the vendor/assets/javascripts directory, and then include it in the app/assets/javascripts/application.js file (or a similar file, telling Sprockets what files to concatenate).


Failing CI

main branch has multiple failing CI builds:

unit tests
precommit

fixed failing precommit build with 2a307f892df32a79c0cb2dfbf8e4811726279b2d

builds are green again


What are the download instructions?

Hey. Sorry about that. I just updated the readme with instructions. Let me know if you're having any problems.


Adding foundation-apps to an existing Rails Application

I appologize if this information is readily available, but I couldn't seem to find a clear answer anywhere. Is it possible to add foundation-apps to an existing rails project? From the documentation, it looks like you have to create a brand new project in order to include the foundation-apps files.
Thanks for your help!

The standalone framework files (all Sass, JS, and Iconic assets) are distributed through Bower and NPM. If you want to use our components in a Rails project, you'll want to add the framework to your asset pipeline. There are a few tools that connect Bower and Rails, including rails-assets and bower-rails.

@gakimball
I used bower-rails to and got ready with node components in my vendor/assets/bower-components folder.
Where can i specify which particular foundation components to be included & where should _settings.scss reside...?

@gakimball
I used bower-rails to get ready the foundation-app node components in my vendor/assets/bower-components folder.
Where can i specify which particular foundation components to be included & where should _settings.scss reside...?
I am not sure, if i should be creation a new issue for this..
@turn2norm Did you figured this out yet..?

@ahmed1490 we actually put this on the back burner for now. We have everything set already with standard foundation and will look into foundation-apps a little later.

@jacquesachille Okay cool! I left foundation-apps for now.

hi @jacquesachille and @ahmed1490: Did you guys figure this out?

why not keeping front and back totally separated and use REST ? Rails and Angular are great with REST

@tunecino: understand your point but need to get this out asap and don't want to wangle with Angular right now.


Fix thumbnail disappears if FileSystemDock is floated

Fixes https://github.com/godotengine/godot/issues/87113

Thanks!


Remove unnecessary symbols

@bors r+
Thanks!

:pushpin: Commit 2351a93055aef93e4171363817932d341a960a23 has been approved by epage
It is now in the queue for this repository.

:hourglass: Testing commit 2351a93055aef93e4171363817932d341a960a23 with merge d0cb869167d6521aa76a9b7d9cf8d018ad0e128e...

:sunny: Test successful - checks-actions
Approved by: epage
Pushing d0cb869167d6521aa76a9b7d9cf8d018ad0e128e to master...


Replace complicated helpers

Hi,
great job with Materialize, I love it! But I think complicated helpers like .hide-on-med-and-down could be easily replacable.
I suggest followings:
.hide-on-small-only => .not-small
.hide-on-med-only => .not-med
.hide-on-med-and-down => .large-only
.hide-on-med-and-up => .small-only
.hide-on-large-only => .not-large

Plus new helper .med-only would be great.
I think this syntax is much easier and nicer.
Thanks!

While it saves space and look nicer, I think it's more intuitive as it is right now.
But .med-only would be nice ;)


[Feature] Resume combat tracks from last played position

Thanks for this great module!
I'm testing out Combat Music Master to provide both general combat tracks for NPCs and also personalize hype tracks for Players. As a consequence, the music changes with every player change.
At present, Combat Music Master begins each designated track from the beginning each time a character's turn starts. The results in the same 20-30 seconds of the song over and over again.
Is it possible to have the track resume from where it left off last time? That's the behavior that currently exists in the current module I'm using (Video Game Music), and I'm finding it's something my players miss when we've tested out Combat Music Master.
If this is something that would be considered, I'd be happy to take a stab at it to submit a pull request.

I believe this suggestion is pretty good. I will add a configuration for this behavior.

Oh wow, this is incredible! It works great.
One minor detail I noticed: when the combat ends, all of the combat tracks are removed from the playlist, as expected. The exception is the track that was playing when the combat ended, which is paused and left on the playlist. Is that part of the design or an unintended side-effect?

It seems like a bug but Im not being able to reproduce this behavior.
Can you consistentely reproduce it?
Could you show me your specific configurations when doing so?

Yes, it happens consistently for me, every time. I just tested on a new world, pf2e, no modules except CMM, and I get the same result. The last track played always stays on the list after combat is ended.
I've tested with a wide range of conditions (default playlists, token-specific playlists, etc.), and it seems consistent. Here's a video demoing settings under the simplest circumstances I could think of. If other info could be helpful, please let me know!
https://github.com/elizeuangelo/fvtt-module-combat-music-master/assets/9303694/a06d9c22-6abe-42ef-b847-15e015de565b

It was a concurrency bug when more than 2 tracks were paused.
Please checkout the latest version v1.4.7 and confirm if its solved

Works great! Thanks so much for adding this feature. It has added a really nice polish to our game.


Question: Why traffic_direction is set to OUTBOUND

Title: traffic_direction in config.listener.v3.Listener
Description:
I looked at front-envoy and jaeger-native-tracing.
Both example uses front-envoy, which handles request from remote user.

Front proxy
https://www.envoyproxy.io/docs/envoy/latest/start/sandboxes/front_proxy

Front envoy must forward request from remote user to envoy mesh by ingress listener. In this listener configuration, traffic_direction should be INBOUND.
However, some tracing-enabled examples set traffic_direction: OUTBOUND

https://github.com/envoyproxy/envoy/blob/main/examples/jaeger-native-tracing/front-envoy-jaeger.yaml#L7
https://github.com/envoyproxy/envoy/blob/main/examples/zipkin-tracing/front-envoy-zipkin.yaml#L7

whereas front envoy example does not set traffic_direction, so traffic_direction: UNSPECIFIED is used implicitly.

https://github.com/envoyproxy/envoy/blob/main/examples/front-proxy/front-envoy.yaml

Question: What is the correct value for traffic_direction for the front envoy? traffic_direction: OUTBOUND
is correct?
[optional Relevant Links]

https://www.envoyproxy.io/docs/envoy/latest/intro/life_of_a_request.html explains ingress and egress listener

cc @phlax

Outbound makes sense if you think about the connection to the backend. Gateway must start a trace and half-open a span on the gateway. Inbound makes sense if you expect the incoming connection to have a trace already. In reality, we should really add a GATEWAY traffic direction with the right logic to handle both cases at the same time.

Thanks for the reply.
Ah, I guess Outbound does not mean ingress traffic.

Outbound makes sense if you think about the connection to the backend. gateway must start a trace and half-open a span on the gateway.

That makes sense when I think about creating span.


Fix auth_params for Stripe backend

The overridden auth_params method in the Stripe backend isn't needed. The implementation in social/backends/oauth.py performs the same functionality and correctly handles redirect_uri.

I've ported this PR into social-core.
Thanks!


[FLINK-3547] add support for streaming filter, project, and union in the Table API

This PR adds:

Java and Scala stream translators
methods to convert a table to a DataStream and vice versa
streaming rules to FlinkRuleSets
DataStream rules for calc, scan, and union
tests and streaming test utils

Rebased on current tableOnCalcite.

I'm closing this PR because it's made against tableOnCalcite and I'll open a new one against master.


[Models][UX]: Design Icon for ArgoCD Component - App Project

Description
Meshery is a powerful platform that contains over 200 integrations for managing cloud-native applications. MeshMap is an extension of Meshery that visually represents these integrations and components. Currently, most of the icons used in MeshMap have the default shape of a circle. However, to improve visual clarity and consistency, we need to design custom icons for MeshMap components.
Desired Behavior
A new Icon for  App Project needs to be created. This issue calls for a volunteer to draft a new Icon.
Instructions for Designing a Component Icon

Create two versions of the icon one is white and another one is colored
Provide the icon in SVG format
Make a PR after adding the icon inside the new-icon folder present in the meshery repository
Make sure the icon for the component is different from the Model icon

How to check whether the icon you designed is the same as the Model icon or any other component icon?

Go to the playground -> search for the component you are trying to design an icon for and check whether the icon that you are designing is already present for another component or not if not then you can make a PR.
If you don't have access to Playground then you have to fill out a signup and get verified before you access the Playground by the time you get access, you can go to integrations page in layer5.io site and search for the component and see whether an icon is already present or not.

Contributor Guides and Handbook

MeshModel Repository
🖥 MeshModel Overview
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

i want to work on this issue..

Go ahead @narasimha-1511 👍


[ISV-4600] Send Tekton Pipeline log results to Slack channel

Tekton Pipeline log results are sent to Slack channel. Notifications to Gchat are disabled.

new Slack channel proj-isv-operator-events was created
new Slack app ISV Operator Events Notifier was created and added to the channel
web-hook URL secret was stored to ansible vault (not bitwarden)

Notifications were deployed to preprod environment for testing and can be found in the slack channel. Once this PR is approved, I will manually deploy it to prod environment and invite all members to new Slack channel.

Successfully deployed to prod. Preprod notifications were disabled and old gchat tasks deleted from OC.
I am merging the PR.


Dealing with continuous columns

Hi. I know that all the columns in my dataset are continuous variables. So, should I specify these columns in "mixed_columns" while initializing the synthesizer? If yes, what value should I specify for the mode since we have to specify these columns as a dictionary? Should I always keep it 0.0?

Hi @PradKalkar  if are they just continuous, you don't need to specify anything. For mixed_columns, only if you have the column say it contains "-100" or some other continuous value, then you specify the value '-100' for this column. it's not always 0, it depends the outstanding value you have in the column.

yes, it is.


Printable schedule

I've laid out a printable schedule for @santina to print, but I thought that perhaps other organizers would want to look at it too and add feedback.

Thanks @daisieh ! It's awesome!


Add a testing branch into the project

Greetings
This is a good videogame project, really I've fun with it. So my suggestion is if we could create a new branch in the project for only testing purposes??
Thank you and I excited to contribute to this project.

hi i would like to work on this. i can use different test suites.


Only connecting when iRacing is already open.

Hi there!
I've recently creating a fresh project utilising this amazing project, however I'm running into an issue. Currently, my software only connects when iRacing is already open. If I start the software with iRacing closed, and then open iRacing, it never connects.
This is what is in my Debug Output:
'SubparRacing.exe' (CoreCLR: clrhost): Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.10\System.Reflection.Primitives.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Microsoft.Hosting.Lifetime: Information: Application started. Press Ctrl+C to shut down.
Microsoft.Hosting.Lifetime: Information: Hosting environment: Production
Microsoft.Hosting.Lifetime: Information: Content root path: E:\Subpar Racing\SubparRacing\SubparRacing\bin\Debug\net8.0-windows
The thread '[Thread Destroyed]' (68636) has exited with code 0 (0x0).
The thread '[Thread Destroyed]' (69656) has exited with code 0 (0x0).
The thread '[Thread Destroyed]' (62020) has exited with code 0 (0x0).
The thread '[Thread Destroyed]' (73108) has exited with code 0 (0x0).
The thread '[Thread Destroyed]' (26296) has exited with code 0 (0x0).
The thread '[Thread Destroyed]' (61228) has exited with code 0 (0x0).

All of this occurs whether I start loading iRacing or not (Rules out something going wrong due to opening iRacing)
The Thread Destroyed messages concern me, but I am also new to C# Desktop Applications- so maybe they are of no concern.
My TelementryService.cs File
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SubparRacing
{
    public class TelemetryService
    {
        public event Action<string> OnRPM;
        public event Action OnStart;

        public IRacingSdk irsdk { get; }

        public TelemetryService()
        {
            irsdk = new IRacingSdk();

            irsdk.OnException += OnException;
            irsdk.OnConnected += OnConnected;
            irsdk.OnDisconnected += OnDisconnected;
            irsdk.OnStopped += OnStopped;
            irsdk.OnTelemetryData += OnTelemetryData;

            // this means fire the OnTelemetryData event every 30 data frames (2 times a second)
            irsdk.UpdateInterval = 30;
        }

        private void OnTelemetryData()
        {
            Debug.WriteLine("Telem Data");
            var rpm = irsdk.Data.GetValue("RPM");

            OnRPM?.Invoke($"RPM: {rpm}");
        }

        public void Start()
        {
            Debug.WriteLine("Starting...");
            irsdk.Start();
        }

        public void Stop() {
            irsdk.Stop();
        }

        private void OnStopped()
        {
            Stop();
        }

        private void OnDisconnected()
        {
            Debug.WriteLine("Disconnected.");
        }

        private void OnConnected()
        {
            Debug.WriteLine("Connected.");
            OnStart?.Invoke();
        }

        private void OnException(Exception exception)
        {
            Debug.Write("Exception: " + exception);
        }

    }
}

The Start() function is called from inside my App.cs file, when the application starts:
{
    TelemetryService = new TelemetryService();
    _host.Start();

    TelemetryService.Start();
}

I hope this is an easy fix, if I can provide any further information I'd be more than happy to do so.
Thanks again!

I hate to say it... I turned my PC off and back on again and it worked perfectly. If this issue reoccurs I'll keep you posted.

Well, this got a whole lot weirder. I initially turned my PC off and back on, and then all of a sudden it was able to connect when the application was open before iRacing. However, after doing some more development, it all of a sudden stopped being able to. Once again, I turned my PC back off and on and again, and it worked perfectly.
I have very little clue what the issue is, and I'd truly appreciate your help.

Hmm - I have a bunch of apps using IRSDKSharper and all of them work either with the iRacing simulator already running or started up afterwards.  When you say "iRacing is already open" you mean the actual simulator that gets launched when you join a race or a start a replay, right?  Not the iRacing UI which is just the front end, and doesn't have any telemetry.
Try adding a callback to irsdk.OnDebugLog and that'll give you a lot more information as to what is going on.
irsdk.OnDebugLog += OnDebugLog;
private void OnDebugLog( string message ) {     Debug.WriteLine( message ) }
It's weird that you are calling Stop() inside of OnStopped().

Hey There.
I did mean the Simulator when referring to 'iRacing already being open', apologies for not clarifying.
Adding the debug logs didn't actually seem to do anything- I didn't notice any debug messages being printed in my Output.
I have no idea why I called Stop() inside of OnStopped(), I deleted it but it made no different to my issue.
I have noticed something interesting however, the first time I load my software after restarting my PC, I am able to open/close the iRacing Simulator multiple times, and each time it connects. However after I close my software and open it again, then it becomes unable to connect to the iRacing Simulator.
Additionally, when I close my software after running it for the first time, I don't see the Debug message for OnStopped() being called, but I do each time I restart the software after that.
Here is my repository: https://github.com/joshua-adriftdev/SubparRacing
The TelementryService.cs class holds my IRSDKSharper instance, and I run Start/Stop in the App.cs file.
I have also tried moving all of the IRSDK-related code into the MainWindow.cs, but faces the same issue.
Thanks!

Not seeing any debug output when you have irsdk.OnDebugLog hooked up and passing messages to Debug.WriteLine is very suspect.  I can take a look at your repo this weekend, but my feeling is that, from what you say (working the first time, not working after that) is that there is something funky going on when you launch it - like it is staying in the background even after you close the app.
Meanwhile, here's a few ideas -

How are you using IRSDKSharper?  Are you including the project directly in yours, or are you using Nuget?
If via Nuget - what version do you have installed?  You should be using the latest (1.1.0 at this time).
Can you send me the full output window you see when you run it for the first time, and the full output window each time you run it afterwards?
Instead of using Nuget, you can download IRSDKSharper directly from Github, and include it in your project as a project reference.  Then you can add breakpoints in Start(), Stop(), ConnectionLoop(), etc.  My feeling is that when you run your app for the 2nd time, something like MemoryMappedFile.OpenExisting(), or memoryMappedFile.CreateViewAccessor(), or one of those related Windows API calls in ConnectionLoop() is failing.
You can put breakpoints in your own app functions to make sure its running the way you expected it to run.

Well, I think we've got the issue now. After installing IRSDKSharper via a Project Reference instead of NuGet (The way I originally was), the debug logs started working.
This was the first time I launched it (where it worked), I also restarted the sim multiple times while the first software instance was open, and everything worked perfectly: https://pastecode.io/s/d0hvrvmk
The 2nd time I open it, these are the debug logs I see:
IRSDKSharper is starting.
IRSDKSharper has been started.
Connection loop has been started.
memoryMappedFile != null
Connection loop has been stopped.

Full log of the 2nd software instance: https://pastecode.io/s/78ksg0zj
I'll fiddle with what I can to see if I can get this fixed, but I highly doubt I'm going to get anywhere.
Thanks for your help so far, and for the tip on installing without NuGet.

After some debug logs & whatnot, I found that
var errorCode = Marshal.GetLastWin32Error(); is 2- ERROR_FILE_NOT_FOUND.
I've just added
if (errorCode == 2)
{
    Thread.Sleep(2000);
    continue;
}

(No I do not feel good about this lol) It's an incredibly temporary and rudimentary fix so I can keep going with development,
I look forwards to hearing your thoughts on how to actually fix it. I should be able to try any suggestions you have first thing tomorrow morning.

Nice work narrowing down the cause.
What line did you insert your hacky code into IRacingSdk.cs?  It's really strange because it should have caught any file not found exception in the try / catch around MemoryMappedFile.OpenExisting.

Another thought - are you calling irsdk.Stop() when your app is ready to exit?  I am wondering if  you're not doing that then its possible that some things are not cleaned up from the last app run, and those things are interfering with the next app run.
For an example, look at my small iRacingStages app here - https://github.com/mherbold/iRacingStages
You'll note that in MainWindow.xaml.cs  I have a Window_Closing event handler which calls irsdk.Stop().

'Hacky' Fix

Nice work narrowing down the cause.
What line did you insert your hacky code into IRacingSdk.cs? It's really strange because it should have caught any file not found exception in the try / catch around MemoryMappedFile.OpenExisting.

The code I added was in IRacingSdk#ConnectionLoop:
if ( hEvent == (IntPtr) null )
{
    var errorCode = Marshal.GetLastWin32Error();
    // If the error code is FileNotFound, wait 2 seconds and try to connect again
    if (errorCode == 2)
    {
        Thread.Sleep(2000);
        continue;
    }

    Marshal.ThrowExceptionForHR( errorCode, IntPtr.Zero );
}

As I stated earlier, it's only a temporary fix that allows me to keep working on my project.
Window_Closing

Another thought - are you calling irsdk.Stop() when your app is ready to exit? I am wondering if you're not doing that then its possible that some things are not cleaned up from the last app run, and those things are interfering with the next app run.
For an example, look at my small iRacingStages app here - https://github.com/mherbold/iRacingStages
You'll note that in MainWindow.xaml.cs I have a Window_Closing event handler which calls irsdk.Stop().

While I was calling irsdk.Stop() in my App.cs class in my OnExit method, I tried adding a Window_Closing event handler to my MainWindow.xaml.cs, but the issue persisted.

Ok Joshua - I updated IRSDKSharper to 1.1.2 with added code to address the possibility that getting the event handler could fail with a file not found error.  I tested the code out but since I cannot reproduce the exact error you are getting, I suggest getting package 1.1.2 and testing it out and letting me know if the fix works or not.  Thank you for your help!

Apologies for the delay, I only just had a chance to test it, and as far as I can see it seemed to work perfectly.
Thank you for all of your help!

Thank you for your help as well!  :-)


Workers Script: accept config without content

Current Terraform and Cloudflare provider version
Terraform v1.1.2
on darwin_arm64
Cloudflare Provider
3.9.1
Description
As of today (Mar 8 2022) the content attribute of a cloudflare_worker_script cannot be empty. This means that configuring a worker via terraform will
1/ upload the first instance of the script
1/ will always check for differences between the deployed version and the "machine version"
The idea behind this issue is to allow developers to create workers with no content, avoiding the difference check from Terraform plans (and apply!).
I understand that Workers might need a default script "at creation time", which would render this issue a lot more complicated.
Use cases
The only use-case I can think of -- but very important -- are CI/CD solutions since:
1/ I might be running terraform on a cloud computer and not have access to my worker script
2/ I might (very possibly) be deploying my worker scripts from a CI/CD solution (Travis, GitHub Actions...) using a more simple method than running my Terraform config (ie: using Wrangler)
Potential Terraform configuration
Simply omitting the conent property, or:
resource cloudflare_worker_script "my_super_script" {
    content = null
    check_content = false
}

References
No response

i'm afraid the public endpoint ties the script and configuration together (https://api.cloudflare.com/#worker-script-properties) meaning that we cannot split them in the provider.
if this is something you'd like to see changed, best option a support ticket to have the feature request routed to the service team and we can incorporate it here following that.


Refine/optimise glasses/add fashion/accessories icons

Closely related to #1473.
glasses-sun related to #1393.

I like handbag, but I find the others not recognisable enough.

@danielbayley Can you apply the new PR template on this PR?

This PR is merged to the lab branch. This PR does not match our PR template, which requires valid use cases. To move on we merged this PR to the lab branch, which will be moved to a separate repo in the future.


Relighted image generation

Congrats on such great work!
In Figure A6 as well as Figure 4 of the paper, a relighted scene under envmap and point light for specific object is captured. Would someone kindly explain to me how is the relighted image generated? Do we need to use a separate rendering for this step or can we get this result from the trained model?

hi i have the same problem. Did you solve it?


New pattern suggestion: ECS service discovery

I've just created an example of how to use AWS CDK to deploy two ECS services (NodeJS based "microservices") that talk to each other using AWS CloudMap.
I wondered if this is worthy enough to be published here and what steps I can take to get it included.
https://github.com/Dzhuneyt/aws-cdk-pattern-ecs-service-discovery

@kolomied


Deploy PowerShell function app

Enable the following functionality under a hide key for the PowerShell preview:
Creation:

[ ] List PowerShell as one of the supported runtimes i.e. FUNCTIONS_WORKER_RUNTIME="powershell" when creating a function app in azure
[x] List available templates for PowerShell /cc @soninaren

Deployment:
Create a new app on Linux Dedicated with underlying container set to "mcr.microsoft.com/azure-functions/powershell:2.0"

/cc @nimakms

@asavaritayal is there an action item on me for this. The templates are already part of the templates from the feed. We can put filter property on it like we did for python.
https://github.com/Azure/azure-functions-tooling-feed/blob/master/cli-feed-v3.json#L454

I can already see these templates for PowerShell so @soninaren I don't think you need to do anything:

@asavaritayal what's the priority of this?:

Create a new app on Linux Dedicated with underlying container set to "mcr.microsoft.com/azure-functions/powershell:2.0"

I assume Windows Consumption will be the default/most common for PowerShell?

@EricJizbaMSFT yes Windows Consumption will be the default for public preview.
(For context, we experimented with Linux dedicated for private preview but have decided to discontinue on that path for now.)
/cc @eamonoreilly @anirudhgarg

Fixed in https://github.com/Microsoft/vscode-azuretools/pull/460


Feature: DynamicGenericRelationField write flows

Follows up on #94, adding the ability to put/patch against a polymorphic field.
I'll be following up with some additional testing, as I'm only currently testing the PATCH case.
Depends on #94
Note that this also changes the assumption around the _type properties... Now, they're the singular version of the name, not the plural.

@DeviateFish - #94 merged. Can you make a new PR against master?

@ryochiji  I rebased this on master to capture the changes from #94

Sorry about the slow response on this. Few minor comments, but overall looks great.

👍 - Good to merge once tests pass


custom SSO

is it possible to use a custom single sign on with Helpy? it would be great if we can connect it to our own app's login

Do you use Devise for auth?

On our app? No. We are not on Ruby on Rails
Hadi Farnoud
On Thu, 18 Aug 2016 at 17:46 Scott Miller
<
mailto:Scott Miller<EMAIL_ADDRESS>
wrote:

a, pre, code, a:link, body { word-wrap: break-word !important; }
Do you use Devise for auth?
—
You are receiving this because you authored the thread.
Reply to this email directly,
https://github.com/helpyio/helpy/issues/302#issuecomment-240719346
, or
https://github.com/notifications/unsubscribe-auth/AAj_8Pbfbk12aSl2qZDdUmEPoUwXSG8qks5qhFsYgaJpZM4JnIb0
.

It would be a great addition to Helpy. Customers expect to be logged in already. forcing them to sign up in yet another place may confuse them.

Yeah I agree although it is a somewhat complicated thing.  Can your app support oauth2?

oauth2 will do, but I think there are better ways. I'm not sure how Zendesk works but it's very convenient.

Helpy uses omniauth under the hood. That's a rails tool to support different authentication strategies. Here's a list of the different existing strategies:
https://github.com/omniauth/omniauth/wiki/List-of-Strategies
I wrote an omniauth strategy for our own sso solution and plugged it in and it basically just worked. If your system supports oauth2 that may be a good starting point.

an example would be awesome @azul.

https://0xacab.org/riseup/helpy/commit/b1444d269ff5f6efbb83ea28a51b0053c5a028e8
Not sure this is helpful though.
You replace the other gems with your own omniauth strategy, require it in the devise initializer and add a callback in the omniauth_callbacks_controller. The other changes are specific to the strategy we use.
If you are using oath2 use one of the existing oauth2 based strategies as a sample instead.
hope this helps.

@azul I used your code but it turns out it only works with omniauth. this is harder than I thought and requires editing core files (which makes future updates a bit painful). do you have any plan for this @scott ?

@hadifarnoud I think there is no way around loading your custom auth gem, requiring it and having hooks for it in your routes and maybe even the callback controller. Additions to the gemfile can occasionally lead to conflicts if they are in the same line another gem is added upstream. But usually these are straight forward to resolve. Gemfile.lock is autogenerated by running bundler so conflicts in there are easy to resolve.
I agree this increases maintainance but i don't see any shortcut.

@azul you may be right. I have to first figure out how to make this work. However, I think having a configurable custom Oauth2 is the way forward. most helpdesk systems have it. It may make sense to add it to Helpy.


Add drag cursor on hover?

By default a cursor should indicate item that an item is draggable and change on drag.
This turns out to be very tricky. The states that need to be supported:
Must:

[ ] draggble: cursor: -moz-grab; cursor: -webkit-grab; cursor: grab;
[ ] dragged cursor: -moz-grabbing; cursor: -webkit-grabing; cursor: grabing;

Nice to have:

[ ] copy: when item is moved into list where it can be copied, show copy cursor
[ ] not-allowed: show not allowed cursor when moving somewhere on a sortable where the item can not be dropped.

Maybe this helps:

https://stackoverflow.com/questions/44447210/custom-cursor-with-drag-and-drop-an-html-element-without-libraries

I was able to accomplish this by adding the following to my CSS
.is-hovered {
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
}
.sortable-placeholder {
    cursor: grabbing !important;
    cursor: -moz-grabbing !important;
    cursor: -webkit-grabbing !important;
}

Can you upload an example of this? I remember having some issues when dragging.

My config was as follows. I'll setup a codepen with a sample.
    sortable('.sortable', {
      forcePlaceholderSize: true,
      placeholderClass: 'sortable-placeholder',
      hoverClass: 'is-hovered'
    });

Here is a codepen: https://codepen.io/CWSites/full/wjeNbb/
I noticed some odd behavior though, the sortable area is only the top row of objects even though I have adjusted the styles to be full width. The dark gray background is the sortable container but notice the red border only appears at the top. Similarly the grabbing cursor style only works in that top box and not 100% of the time.

Hey @lukasoppermann I fixed all of the issues and improved the sortable-placeholder as well. Check out my referenced codepen above for a working example.
Configuration
sortable('.sortable', {
    forcePlaceholderSize: true,
    placeholderClass: 'sortable-placeholder',
    hoverClass: 'is-hovered'
});

Styles Applied
// Class of the element that is sortable
.box {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
    &.is-hovered {
      cursor: grab;
      cursor: -moz-grab;
      cursor: -webkit-grab;
  }
}

// Class of the sortable place holder
.sortable-placeholder {
    cursor: grabbing;
    cursor: -moz-grabbing;
    cursor: -webkit-grabbing;
}

Is this something that you would want added to the docs or code? Can you point me in the right direction of where I can contribute this update?

Hey, very neat, I think this issue should be enough as a reference. I would like this behaviour to be added as a default to the library, but of course that is a bit more complicated, as you can not rely on classes.

this doesn't really work for me... i think this needs to be achieved by JS. The hover gets triggered when moving the element so its sets it back to 'grab'

Hey @joephuz would you be able to send a PR for this? That would be great.

@lukasoppermann Ill give it a shot if i have some time!


Update to 5.1.0 seems to have broken my sensor.samba_backup?

I updated to 5.1.0 and it appears to have broken my sensor.samba_backup?
I was running the startup automation to restore the sensor prior to updating to 5.1.0 also. I have tried manually triggering the restore sensor automation also with no luck.

I had similar issue and backup didn't run this morning for me.  Checked addon and said log_level entry was missing from configuration.  Reinstalled addon, testing now, will report back results shortly, just tried to trigger a backup.

Confirmed.
Seems the update doesnt select a default log level. Once a log level is selected and the addon restarted, the issue is resolved.
Maybe add log level = error to the default config?
Thankyou.

Issue is fixed in v5.1.1. The log level is now optional again.


Not working for pubmed

Hey, your extension doesn't seem to work for PubMed, even though there are some comments on your website and PubMed mentions DOI.
E.g.

https://www.ncbi.nlm.nih.gov/pubmed/25633418 -
https://pubpeer.com/publications/FB7103F85378967E5BC08AFD94C427
https://www.ncbi.nlm.nih.gov/pubmed/18391985 - https://pubpeer.com/publications/90F06BAB260A131D05F2A20D4023E0
...

Hello @several27,
You're right, the extension as it is will not show the comments on the two publications you mention only because the api transition to the new site is not completely finished, meaning only old publications (commented before June 15th) will be listed by the plugin. We are planning to update the API probably next week. It will come with a new version of the extension.
Thanks.


add feature that touch-action style is restored in Hammer.destroy

feat(TouchAction): add originalTouchActionStyle property and some methods in TouchAction
touch-action style is not removed on destroy. (#853)
so, I add originalTouchActionStyle property for caching and some methods.

add destroy, canApplyStyle methods in TouchAction.
add PREFIXED_TOUCH_ACTION, NATIVE_TOUCH_ACTION in Hammer for testing.
add 'test_touchaction.js' testcase

feat(Hammer): add TouchAction.destroy in hammer.destroy and testcase

This is definitely  good idea we should always try to clean up after ourselves. will review in detail shortly

@sculove this looks good but it conflicts with changes we made for iOS 9.3 can you rebase and update?

@arschmitz ok I'll update it

I made a mistake. I close this pr. and then I'll other pr.


my test action in google app.,not  founded?

my test action in google app.,not  founded?

find ok