building a server or buy a server for offensive security tasks (home lab)

I am trying to build a home lab server , but I am a bit overwheelm with the hardware. the scope is to host 30+ systems *nix , windows xp ,7,8,10,2k,server, vlans. I also want the hardware that I want to buy that could handle 30+ operating systems ,but it needs to be quiet because it is going to be in the living room. (snapshots are important). i am worried about the heat(I dont have a special room with air conditioning) , and easy and cheap to maintain.

software to use

  1. vmware esxi or promox
  2. if it’s possible to build a virtual NFS it is better.

hardware

  1. dell r7 noisy # second hand
    1. storage HDD or ssd
    2. ethernet cables
    3. route ?
    4. switch ?
    5. legos for the rack

budget

1200 USD

Error: Building UI from XML. > onNavigatedFrom is not defined. Surely is, I deleted it!

I’m new to nativescript and I’m trying to build an app. The situation is that I’m getting an error from a function that I had used and now I deleted because it wasn’t needed anymore. It was a page event navigatingFrom=”onNavigatedFrom”, but as I said it’s already deleted. I hope you can help me, because I’m not getting why am I having an error related to something that isn’t on my code anymore…

Edit: This happened when I built the app through tns run android on a real mobile device, tried to uninstall the app, rebuild and the error persists.

Here’s my stacktrace:

System.err: com.tns.NativeScriptException: System.err: Calling js method onItemClick failed System.err: System.err: Error: Building UI from XML. @file:///app/home.1/home-items-page.xml:19:13 System.err: > onNavigatedFrom is not defined System.err: File: “file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js, line: 244, column: 20 System.err: System.err: StackTrace: System.err: Frame: function:’ScopeError’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/utils/debug.js’, line: 63, column: 24 System.err: Frame: function:’SourceError’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/utils/debug.js’, line: 74, column: 23 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 263, column: 17 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 244, column: 33 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/xml/xml.js’, line: 148, column: 13 System.err: Frame: function:’EasySAXParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/js-libs/easysax/easysax.js’, line: 751, column: 23 System.err: Frame: function:’XmlParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/xml/xml.js’, line: 195, column: 22 System.err: Frame: function:’XmlStringParser.parse’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 250, column: 27 System.err: Frame: function:’parseInternal’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 212, column: 11 System.err: Frame: function:’loadInternal’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 117, column: 27 System.err: Frame: function:’loadPage’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 53, column: 27 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 72, column: 12 System.err: Frame: function:”, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/builder/builder.js’, line: 86, column: 20 System.err: Frame: function:’FrameBase.navigate’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/frame/frame-common.js’, line: 119, column: 30 System.err: Frame: function:’onItemTap’, file:’file:///data/data/org.nativescript.Airflow/files/app/pairing/pairing-list-page.js’, line: 18, column: 16 System.err: Frame: function:’Observable.notify’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/data/observable/observable.js’, line: 110, column: 23 System.err: Frame: function:’ItemClickListenerImpl.onItemClick’, file:’file:///data/data/org.nativescript.Airflow/files/app/tns_modules/tns-core-modules/ui/list-view/list-view.js’, line: 29, column: 19 System.err: System.err: at com.tns.Runtime.callJSMethodNative(Native Method) System.err: at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1120) System.err: at com.tns.Runtime.callJSMethodImpl(Runtime.java:1000) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:987) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:967) System.err: at com.tns.Runtime.callJSMethod(Runtime.java:959) System.err: at com.tns.gen.java.lang.Object_view_22_32_ItemClickListenerImpl.onItemClick(Object_view_22_32_ItemClickListenerImpl.java:20) System.err: at android.widget.AdapterView.performItemClick(AdapterView.java:339) System.err: at android.widget.AbsListView.performItemClick(AbsListView.java:1705) System.err: at android.widget.AbsListView$ PerformClick.run(AbsListView.java:4171) System.err: at android.widget.AbsListView$ 13.run(AbsListView.java:6734) System.err: at android.os.Handler.handleCallback(Handler.java:751) System.err: at android.os.Handler.dispatchMessage(Handler.java:95) System.err: at android.os.Looper.loop(Looper.java:154) System.err: at android.app.ActivityThread.main(ActivityThread.java:6682) System.err: at java.lang.reflect.Method.invoke(Native Method) System.err: at com.android.internal.os.ZygoteInit$ MethodAndArgsCaller.run(ZygoteInit.java:1520) System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)

home-items-page.js –>

 var application = require('application').android; function statusBar(action){     var activity = application.startActivity;     //activity.runOnUiThread(function(){     var win = activity.getWindow();     if(action === 'hide'){         win.addFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);     } else if(action === 'show'){         win.clearFlags(android.view.WindowManager.LayoutParams.FLAG_FULLSCREEN);     } }  function onPageLoaded(args) {      const page = args.object;     statusBar('hide');  }  exports.onPageLoaded = onPageLoaded; 

home-items-page.xml –>

<Page actionBarHidden="true" loaded="onPageLoaded">     <TabView id="tabViewContainer" androidTabsPosition="bottom">         <TabViewItem title="Fan" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="hvt/hvt-page"></Frame>         </TabViewItem>         <TabViewItem title="HvT" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="hvt/hvt-page"></Frame>         </TabViewItem>         <TabViewItem title="Usage" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="search/search-page"></Frame>         </TabViewItem>         <TabViewItem title="Settings" ios:iconSource="res://tabIcons/circle" android:iconSource="res://circle">             <Frame defaultPage="settings/settings-page"></Frame>         </TabViewItem>     </TabView> </Page> 

Thanks!

building a pushdown automata that receives L*

would appreciate if you could look upon what i did and help me finish it:

problem: given a pushdown automata that receives a language L by getting to an accepting states, build a pushdown automata that receives L* ( might use a “double buttom” if needed)

my attempt: given $ M = (Q,\Sigma,Γ,\delta,q_0,⊥,∅)$ , we’ll add a double buttom by altering the function: $ \delta’ := \delta'(q_0′,\epsilon, ⊥’)={(q_0, ⊥⊥)}$ , so M’ is basically $ M’ = (Q\cup{q_0′,q_f},\Sigma,Γ∪{⊥’},\delta’,q_0′,⊥’,{q_f})$ . the accepting state is achieved by $ \forall q \in Q: \delta’ (q,\epsilon,⊥’)={(q_f,⊥’)}$

how do i finish it so that it accepts L*?

thank you very much for your help

**** 80 High Quality Special SEO Link Building Service.**** for $4

Hello, Thanks for visiting My service **I will give you 80 Dofollow Profile Backlinks. Profile Backlinks is one of the powerful Techniques to increase the rankings of your Website. You collect more traffic for your site** Why will you choose MY service? * White Hat 100% Manual work. Fast Delivery. * 100% Satisfaction Guaranteed. * High-Quality backlinks * Increase your website ranking * Extremely Friendly with Panda, Penguin, and Hummingbird * We will deliver our service as promised. * Delivery Always On Time. Plus 24/7 Support. * Detailed Excel Report. * 100% White Hat SEO * Full report in Excel sheet * Full report with username and passwords

by: seoexpertbd36
Created: —
Category: Link Building
Viewed: 149


I am building android app and in this it is E-Commerce application i want to do increment and decrement in quantity and prices?

public class CartAdapter extends RecyclerView.Adapter {

private Cursor mCursor; private Context mContext;    public CartAdapter(Context mContext) { this.mContext = mContext;}  @NonNull @Override public CartViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {     LayoutInflater inflater = LayoutInflater.from(mContext);     View view = inflater.inflate(R.layout.cart_item,parent,false);      return new CartViewHolder(view); }  @Override public void onBindViewHolder(@NonNull CartViewHolder holder, int position) {      int image = mCursor.getColumnIndex("image");     int text1 = mCursor.getColumnIndex("title");     int text2 = mCursor.getColumnIndex("amount");    mCursor.moveToPosition(position);     String name = mCursor.getString(text1);     String name1 = mCursor.getString(text2);     String image1 = mCursor.getString(image);      holder.tt1.setText(name);     holder.tt2.setText(name1);        Glide.with(mContext)             .asBitmap()             .load(image1)             .into(holder.imageview);    }  @Override public int getItemCount() {     if (mCursor == null){     return 0;}     return mCursor.getCount(); }   public class CartViewHolder extends RecyclerView.ViewHolder {      TextView tt1,tt2,tt3;     ImageView imageview;      public CartViewHolder(View itemView) {         super(itemView);          tt1 = itemView.findViewById(R.id.quantitycart);         tt2 = itemView.findViewById(R.id.pricecart);         imageview = itemView.findViewById(R.id.cartImage);      } } 

}

Building Slack message

I have the function which builds and return Slack message with text and attachments. How can I refactor this function to make it easier to test? Should I split it into multiple functions?

def build_list_message(team_id, user_id, msg_state=None, chl_state=None):     if not msg_state:         msg_state = {}      if not chl_state:         chl_state = {}      resource_type = msg_state.get('resource_type', 'all')     availability = msg_state.get('resource_availability', 'all')      pages = Page.objects.none()     async_tasks = AsyncTask.objects.none()      if resource_type in ['web_pages', 'all']:         pages = Page.objects.filter(             user__team__team_id=team_id).order_by('title')      if resource_type in ['async_tasks', 'all']:         async_tasks = AsyncTask.objects.filter(             user__team__team_id=team_id).order_by('title')      if availability == 'available':         pages = pages.filter(available=True)         async_tasks = async_tasks.filter(available=True)      elif availability == 'unavailable':         pages = pages.filter(available=False)         async_tasks = async_tasks.filter(available=False)      channel_id = chl_state.get('channel_id')     if channel_id:         pages = pages.filter(alert_channel=channel_id)         async_tasks = async_tasks.filter(alert_channel=channel_id)      user = SlackUser.retrieve(team_id, user_id)      attachments = [         _build_filters(resource_type, availability),         *[_build_page_item(p, user) for p in pages],         *[_build_async_task_item(at, user) for at in async_tasks]     ]      return {         'text': "Here's the list of all monitoring resources",         'attachments': attachments     } 

Here is private functions:

def _build_filters(resource_type, availability):     resource_types = [         {"text": "All types", "value": "all"},         {"text": ":link: Webpages", "value": "web_pages"}     ]      availability_choices = [         {"text": "Available / Unavailable", "value": "all"},         {"text": ":white_circle: Available", "value": "available"},         {"text": ":red_circle: Unavaliable", "value": "unavailable"}     ]      selected_resource_types = list(filter(         lambda t: t['value'] == resource_type, resource_types))      selected_availability_choices = list(filter(         lambda a: a['value'] == availability, availability_choices))      return {         "fallback": "Resource filters",         "color": "#d2dde1",         "mrkdwn_in": ["text"],         "callback_id": "resource_filters",         "actions": [             {                 "name": "resource_type",                 "text": "Type",                 "type": "select",                 "options": resource_types,                 "selected_options": selected_resource_types             },             {                 "name": "resource_availability",                 "text": "Available",                 "type": "select",                 "options": availability_choices,                 "selected_options": selected_availability_choices             }         ]     }   def _build_page_item(page, user):     return {         "fallback": "Page",         "color": page.status_color,         "mrkdwn_in": ["fields"],         "callback_id": 'page_change',         "fields": [             {                 "title": page.title,                 "value": f"_Page_ ({page.status})"             },             {                 "title": "URL",                 "value": page.url             }         ],         "footer": _build_resource_footer(page),         "actions": _build_resource_item_actions(page, user)     }   def _build_async_task_item(async_task, user):     return {         "fallback": "Async task",         "color": async_task.status_color,         "mrkdwn_in": ["fields"],         "callback_id": 'async_task_change',         "fields": [             {                 "title": async_task.title,                 "value": f"_Async task_ ({async_task.status})"             },             {                 "title": "URL",                 "value": async_task.url             }         ],         "footer": _build_resource_footer(async_task),         "actions": _build_resource_item_actions(async_task, user)     } 

Building an Online Service, need general advice

0

Hopefully I am posting this the right place. Please tell me if this belongs somewhere else.

This is a rather broad question regarding building an service. I am not asking for specific code or anything, just general advice.

Does anyone have an idea of how I should approach the following:

A website sends a text file with some custom info based on parameters a user changes. text file is sent to local computer of mine. The text file is used for some external calculation, creating an “asset”, 3D model. (I got this part). Then the asset is sent back to the website and uploaded live, made available for the user. So my biggest question is how could one make a website send a text file to a local computer (the website is hosted by some third-part most likely..) Is there any system, protocol, methods for doing such. And vise versa, send the processed file back to the website and make it live, automatically.

I am very grateful for any advice at all regarding any of this. I am a VFX artist so currently working with phyton and VEX, but looking into java, html and those things now a day. Thanks!

package error when building spfx webpart

I am using the following breadcrum sample andto replicate error use: gulp serve

Error:

./src/extensions/siteBreadcrumb/SiteBreadcrumbApplicationCustomizer.ts Module parse failed: C:\Users\username\Projets_name\Code\Breadcrumb\sp-dev-fx-extensions\samples\react-application-breadcrumb\src\extensions\siteBreadcrumb\SiteBreadcrumbApplicationCustomizer.ts Unexpected token (15:16) You may need an appropriate loader to handle this file type. | import { ISiteBreadcrumbProps } from './components/ISiteBreadcrumb'; | | const LOG_SOURCE: string = 'SiteBreadcrumbApplicationCustomizer'; | | /**

provide my top 250 UK link building guide to boost seo for $25

Hey viewers! In this gig, for just $ 25 bucks I will provide you my list of over 300+ links tailor made for the British UK market. Use this list to boost your SEO and record your progress as you go in the provided worksheet. PRESENTING MY UK LINK GUIDE Made for the British UK Market to rank any business or website organically in GoogleLink Building and Social Activity is CRUCIAL to long lasting online rankingsOutrank your competition by following our Guide to success. 300+ Directories, Social Networks & More!Mix of Free and Paid Listings BONUS!! Top 4 Tips For Creating Profiles! Rock Solid SEO efforts for your business should include linkbuilding as part of the foundation and this spreadsheet will help you reach those Google rankings you deserve. The benefits for your business or brand means more exposure for your business and of course more conversions. Use these worksheets to track and plan your search engine optimisation efforts and attain success. Check our extras for our 100 SEO Tips Ebook and SEO Tracking and Planning Worksheets to help new businesses get a head start. Love your work!

by: StevenMorgan675
Created: —
Category: Link Development
Viewed: 164