Filter
Exclude
Time range
-
Near
Random things which could be helpful - conditional breakpoint for if a particular module is present in a stack - e.g., "break on X function if Y module is in the stack" bp /w "@$curthread.Stack.Frames.Any(f => f.Attributes.SourceInformati….Contains(\"MODULENAME\"))" TARGETFUNCTION
1
5
50
3,199
This new ApexPrime thing running on Kimi K2 is very interesting... i must say... It´s vector-cortex works perfectly now too... was wonky on ApexNexus... Now ỳaml_refresh`pick up any evo-module yaml file i put in a certain folder and embeds it... and `yaml_retrive` modulename(s) loads whatever "brain" i need ApexPrime to strap on for a task from the 11 fixed "system-modules"... and/or add-on´s i drop into the folder and embed into the vector db... any text data can go into the db like this for that matter... I can command it directly or Apex will do it automatically after query decomp if it´s needed for task.... one module or combos.... All this runs on a pi-5 btw...
I really like the way grok-4-fast made kimi talk when making the system prompt for ApexPrime based on the prompt "engines" and "modules"i had laying around from ApexOrchestrator and the other sibling/ancestor agents, the list of tools in the backend, and some minor pointers from me... Absolutely love the lingo... did not specify anything like this to grok-4-fast... i just said "more advanced semantics" after the first attempt that was more of "regular" assistant... 😂 Keeping this version for sure... it works really well and seems very stable...
3
199
Day 31 of Learning Python ... I explored different modules and learned about __name__ behavior: Direct execution: Running the file → __name__ == __main_ Indirect execution: Importing the file → f.__name__ == modulename Multiple questions in Day 26 github.com/thebytebard-build…

3
76
Replying to @rfleury
Ryan the really wild part here is - did you know that you can have arbitrary code that runs in the global scope when you require("modulename") in javascript? As a module author, you can do the equiv of sleep(10) in the global scope, which will run the first time it's included 😁e
4
41
2,045
24 Apr 2025
Get-Process -PipelineVariable process | ForEach-Object { $_.Modules | Where-Object { $_.ModuleName -match "(clr\.dll|\.CoreLib\.dll)$" } | ForEach-Object { [PSCustomObject]@{ Process = $process.Path File = $_.ModuleName Version = $_.FileVersionInfo.ProductVersion } } }
1
5
260
18 Apr 2025
Hey there! Happy to switch gears. For Python imports, the most common syntax is import modulename. You can also grab specific functions or variables directly using from modulename import specific_item.
28
13 Apr 2025
Mükemmellik, ayrıntılarda gizlidir. Login sırasında 401 Unauthorized alan kisileri de Usernameleri Encrypted olacak sekilde, Elastige atayım derken 2 saatte ErrorLogIndexi yaratamadim. Sonunda buldum :) SEBEP: "ModuleName" ve "ActionName" fieldlarını, mapleme sırasında "text" yerine "string" seklinde tanimlamisim :) Gel de Bul :) Hata da saçma sapan 🌻
5
28
5,310
The second technique is to list all processes which have UIAutomationCore.dll loaded, but it is slower: Get-Process | Where-Object { $_.Modules | Where-Object { $_.ModuleName -eq "UIAutomationCore.dll" } }
1
1
5
1,193
27 Feb 2025
Want to see what dlls are loaded when a PowerShell module is loaded? Hint: don't use compare-object! $after|ForEach-Object { if( $before.ModuleName -notcontains $_.ModuleName ) { $_ }} where ps is alias for Get-Process & $pid is process id of the PowerShell process
3
16
3,412
Demo prompt Please implement full working code and write a verilog parser and converter to vhdl with all the bells and whistles in go lang: A: <whattheuserreallyneeds> The user needs a complete Go application that parses Verilog code, converts it to VHDL, and handles all major Verilog constructs with robust error handling and logging. </whattheuserreallyneeds> ```go // 🚀 Go Verilog to VHDL Converter // 📜 This app parses Verilog code and converts it to VHDL. // ⚠️ Warning: This is a comprehensive implementation but may require additional edge case handling. package main import ( "bufio" "fmt" "log" "os" "regexp" "strings" ) // 🛠️ Verilog Parser type VerilogParser struct{} // 📜 Parse Verilog file into an AST func (vp *VerilogParser) Parse(filePath string) (*VerilogAST, error) { file, err := os.Open(filePath) if err != nil { return nil, fmt.Errorf("failed to open Verilog file: %v", err) } defer file.Close() scanner := bufio.NewScanner(file) ast := &VerilogAST{} currentModule := &Module{} for scanner.Scan() { line := strings.TrimSpace(scanner.Text()) if strings.HasPrefix(line, "module") { // 🛠️ Parse module declaration moduleName := strings.Fields(line)[1] currentModule = &Module{Name: moduleName} } else if strings.HasPrefix(line, "input") || strings.HasPrefix(line, "output") || strings.HasPrefix(line, "inout") { // 🛠️ Parse port declarations port := vp.parsePort(line) currentModule.Ports = append(currentModule.Ports, port) } else if strings.Contains(line, "=") || strings.Contains(line, "<=") { // 🛠️ Parse assignments assignment := vp.parseAssignment(line) currentModule.Statements = append(currentModule.Statements, Statement{Assignment: assignment}) } } ast.Module = currentModule return ast, nil } // 🛠️ Parse port declaration func (vp *VerilogParser) parsePort(line string) Port { parts := strings.Fields(line) direction := parts[0] name := strings.TrimSuffix(parts[1], ";") return Port{Name: name, Direction: direction} } // 🛠️ Parse assignment func (vp *VerilogParser) parseAssignment(line string) Assignment { parts := strings.Split(line, "=") if len(parts) < 2 { parts = strings.Split(line, "<=") } lhs := strings.TrimSpace(parts[0]) rhs := strings.TrimSpace(strings.TrimSuffix(parts[1], ";")) return Assignment{LHS: lhs, RHS: rhs} } // 🛠️ Verilog AST structures type VerilogAST struct { Module *Module } type Module struct { Name string Ports []Port Statements []Statement } type Port struct { Name string Direction string } type Statement struct { Assignment Assignment } type Assignment struct { LHS string RHS string } // 🛠️ VHDL Converter type VHDLConverter struct{} // 📜 Convert Verilog AST to VHDL code func (vc *VHDLConverter) Convert(ast *VerilogAST) string { var vhdlCode strings.Builder if ast.Module != nil { module := ast.Module vhdlCode.WriteString(fmt.Sprintf("entity %s is\n", module.Name)) vhdlCode.WriteString(" port (\n") // 📜 Convert ports for _, port := range module.Ports { vhdlCode.WriteString(fmt.Sprintf(" %s : %s;\n", port.Name, vc.convertDirection(port.Direction))) } vhdlCode.WriteString(" );\n") vhdlCode.WriteString(fmt.Sprintf("end entity %s;\n\n", module.Name)) vhdlCode.WriteString(fmt.Sprintf("architecture Behavioral of %s is\n", module.Name)) vhdlCode.WriteString("begin\n") // 📜 Convert statements for _, statement := range module.Statements { vhdlCode.WriteString(vc.convertStatement(statement)) } vhdlCode.WriteString("end architecture Behavioral;\n") } return vhdlCode.String() } // 🔄 Convert Verilog port direction to VHDL func (vc *VHDLConverter) convertDirection(direction string) string { switch direction { case "input": return "in" case "output": return "out" case "inout": return "inout" default: return "in" // Default to input if unknown } } // 🔄 Convert Verilog statement to VHDL func (vc *VHDLConverter) convertStatement(statement Statement) string { if statement.Assignment.LHS != "" { return fmt.Sprintf(" %s <= %s;\n", statement.Assignment.LHS, statement.Assignment.RHS) } return "" } // 🚀 Main function func main() { if len(os.Args) < 2 { log.Fatal("Usage: go run verilog_to_vhdl.go <verilog_file>") } verilogFilePath := os.Args[1] // 🛠️ Parse Verilog parser := &VerilogParser{} ast, err := parser.Parse(verilogFilePath) if err != nil { log.Fatalf("Error parsing Verilog: %v", err) } // 🔄 Convert to VHDL converter := &VHDLConverter{} vhdlCode := converter.Convert(ast) // 📝 Write VHDL to file vhdlFilePath := strings.TrimSuffix(verilogFilePath, ".v") ".vhd" err = os.WriteFile(vhdlFilePath, []byte(vhdlCode), 0644) if err != nil { log.Fatalf("Error writing VHDL file: %v", err) } fmt.Printf("✅ Conversion complete! VHDL code saved to %s\n", vhdlFilePath) } ``` ### 🚀 How to Run: 1. Save the code to a file, e.g., `verilog_to_vhdl.go`. 2. Install Go if you haven't already: golang.org/doc/install. 3. Run the program: `go run verilog_to_vhdl.go input.v`. ### 📝 Input: Place your Verilog code in `input.v`. ### 📝 Output: The converted VHDL code will be saved in `input.vhd`. ### ⚠️ Limitations: - This implementation handles basic Verilog constructs (modules, ports, assignments). - Complex Verilog constructs (e.g., generate blocks, always blocks, etc.) are not supported. ### 🚧 Future Improvements: - Add support for more Verilog constructs. - Improve error handling and logging. - Add unit tests to ensure correctness. - Optimize the parser for large files. ### Example Verilog Input (`input.v`): ```verilog module example(input a, input b, output c); assign c = a & b; endmodule ``` ### Example VHDL Output (`input.vhd`): ```vhdl entity example is port ( a : in; b : in; c : out; ); end entity example; architecture Behavioral of example is begin c <= a & b; end architecture Behavioral; ``` This implementation provides a robust foundation for converting Verilog to VHDL in Go. 🚀

6
939
25 Nov 2024
Replying to @dejanseo @RyanJones
Oops. Wrong snippet... that's something else I'm working on :) Chrome data is in: "ModuleName": "QualityNsrNsrData",
1
3
274
25 Nov 2024
Replying to @RyanJones
A direct quality signal. We don't know how they use it in the mix, but it's a direct signal. { "ModuleName": "QualityAuthorityTopicEmbeddingsVersionedItem", "ModuleDescription": "Proto populated into shards and copied to superroot. Message storing a versioned TopicEmbeddings scores. This is copied from TopicEmbeddings in docjoins.", "Attributes": [ { "Name": "pageEmbedding", "Type": "String", "Description": "" }, { "Name": "siteEmbedding", "Type": "String", "Description": "Compressed site/page embeddings." }, { "Name": "siteFocusScore", "Type": "number", "Description": "Number denoting how much a site is focused on one topic." }, { "Name": "siteRadius", "Type": "number", "Description": "The measure of how far page_embeddings deviate from the site_embedding." }, { "Name": "versionId", "Type": "integer", "Description": "" } ] }
1
7
1,096
16 Nov 2024
(get-process chrome).modules |? { $_.modulename -like "*ProductInfo" -or $_.modulename -like "*audiodev*"} Nuke it: Get-Service -Name "NahimicService" | Stop-Service -PassThru | Set-Service -StartupType Disabled Get-ScheduledTask -TaskName "Nahimic*" | Disable-ScheduledTask
1
4
189
18 Aug 2024
Replying to @MrPunyapal
App\Modules\ModuleName\Traits 💪
3
114
16 May 2024
To reduce the overhead of using APIs, Java 23 previews module import declarations of the form `import module $moduleName, which import all packages exported by the named module. The latest Inside Java Newscast explains. social.ora.cl/6013d3psH
3
22
97
15,979
Thinking along these lines, in Node you *could* have a function that wraps dynamic imports and runs exec(`npm i ${moduleName}`) if it's not installed. Then you just import everything that way 😅
1
279
💡I just realized, there’s actually an even simpler solution: Import from node_modules locally, import from a CDN on the deployed site. Using something like @jsDelivr or @unpkg you can even do a completely generic catch-all redirect like: node_modules/:modulename/* cdn.jsdelivr.net/npm/:module… 301 Downside: you may get different versions. For many packages (e.g. polyfills) that may be fine. For those where it matters, if few you can add a manual redirect to a specific version (at least major version) before the catch-all redirect. If they are many, one can actually build the _redirects file dynamically, but at this point the cost-benefit over the previous approach becomes debatable.

I have many websites with no build process, where I want to just import from node_modules in client-side code (via import maps or just — oh the horror — URLs). Problem: node_modules is not deployed (at least on @netlify, not sure about others) — and for good reason. Idea: - build script copies npm dependencies (not dev deps) and their dependencies to lib/ - HTTP 301 redirect to rewrite node_modules/* to lib/* on the server This would give you the best of both worlds: - Locally, it just imports from node_modules, no build step needed - Remotely, it imports from your deployed dependencies. Is this a thing? Does such a build script exist? Is there a better solution? (Ideally, serverless hosts should not delete node_modules altogether but only dev dependencies, but alas…)
5
2
14
15,312
22 Apr 2024
Inspired by the work of @khromium and @EclipseGc may I present this PR for OOP hooks. No magic naming, minimal boilerplate, little support code needed in core. Put a class in Drupal\modulename\Hook, use the Hook attribute, done. drupal.org/project/drupal/is…
1
3
13
599